@pisell/charts-materials 1.0.21 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,18 +0,0 @@
1
- !function t(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.ChartsMaterials=n():e.ChartsMaterials=n()}(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 e(){return t.default}:function e(){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=444)}({0:function(t,e,n){"use strict";n.d(e,"f",(function(){return a})),n.d(e,"A",(function(){return a})),n.d(e,"i",(function(){return u})),n.d(e,"m",(function(){return T})),n.d(e,"n",(function(){return P})),n.d(e,"o",(function(){return F})),n.d(e,"q",(function(){return B})),n.d(e,"u",(function(){return G})),n.d(e,"ib",(function(){return Q})),n.d(e,"jb",(function(){return tt})),n.d(e,"ob",(function(){return rt})),n.d(e,"ub",(function(){return it})),n.d(e,"yb",(function(){return st})),n.d(e,"z",(function(){return ct})),n.d(e,"U",(function(){return lt})),n.d(e,"l",(function(){return c})),n.d(e,"k",(function(){return gt})),n.d(e,"nb",(function(){return vt})),n.d(e,"v",(function(){return jt})),n.d(e,"w",(function(){return xt})),n.d(e,"x",(function(){return Ot})),n.d(e,"c",(function(){return It})),n.d(e,"p",(function(){return Lt})),n.d(e,"N",(function(){return $t})),n.d(e,"Y",(function(){return N})),n.d(e,"Z",(function(){return Qt})),n.d(e,"bb",(function(){return z})),n.d(e,"cb",(function(){return Jt})),n.d(e,"eb",(function(){return ee})),n.d(e,"sb",(function(){return ce})),n.d(e,"r",(function(){return le})),n.d(e,"y",(function(){return he})),n.d(e,"T",(function(){return j})),n.d(e,"J",(function(){return _})),n.d(e,"xb",(function(){return pe})),n.d(e,"V",(function(){return ve})),n.d(e,"pb",(function(){return Oe})),n.d(e,"wb",(function(){return Me})),n.d(e,"C",(function(){return v})),n.d(e,"D",(function(){return Pe})),n.d(e,"E",(function(){return Fe})),n.d(e,"I",(function(){return d})),n.d(e,"K",(function(){return y})),n.d(e,"L",(function(){return Ne})),n.d(e,"M",(function(){return Dt})),n.d(e,"O",(function(){return m})),n.d(e,"P",(function(){return A})),n.d(e,"Q",(function(){return et})),n.d(e,"R",(function(){return p})),n.d(e,"S",(function(){return Xe})),n.d(e,"F",(function(){return qe})),n.d(e,"kb",(function(){return Ue})),n.d(e,"d",(function(){return Ke})),n.d(e,"e",(function(){return nn})),n.d(e,"g",(function(){return on})),n.d(e,"ab",(function(){return an})),n.d(e,"h",(function(){return un})),n.d(e,"j",(function(){return x})),n.d(e,"B",(function(){return dn})),n.d(e,"G",(function(){return vn})),n.d(e,"H",(function(){return bn})),n.d(e,"W",(function(){return jn})),n.d(e,"X",(function(){return _n})),n.d(e,"db",(function(){return Qe})),n.d(e,"b",(function(){return Qe})),n.d(e,"s",(function(){return Mn})),n.d(e,"lb",(function(){return Sn})),n.d(e,"hb",(function(){return An})),n.d(e,"gb",(function(){return kn})),n.d(e,"qb",(function(){return Tn})),n.d(e,"rb",(function(){return En})),n.d(e,"tb",(function(){return ge})),n.d(e,"vb",(function(){return In})),n.d(e,"fb",(function(){return Fn})),n.d(e,"mb",(function(){return Bn})),n.d(e,"t",(function(){return zn})),n.d(e,"a",(function(){return Gn}));var r,i=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)},o,a=function(t,e){return!!i(t)&&t.indexOf(e)>-1},s,c=function(t,e){if(!i(t))return t;for(var n=[],r=0;r<t.length;r++){var o=t[r];e(o,r)&&n.push(o)}return n},l,u=function(t,e){return void 0===e&&(e=[]),c(t,(function(t){return!a(e,t)}))},h={}.toString,f,p=function(t,e){return h.call(t)==="[object "+e+"]"},d=function(t){return p(t,"Function")},g,y=function(t){return null==t},v=function(t){return Array.isArray?Array.isArray(t):p(t,"Array")},m=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e};function b(t,e){var n;if(t)if(v(t))for(var r=0,i=t.length;r<i&&!1!==(n=e(t[r],r));r++);else if(m(t))for(var o in t)if(t.hasOwnProperty(o)&&!1===(n=e(t[o],o)))break}var x=b,O,j=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return x(t,(function(n,r){d(t)&&"prototype"===r||e.push(r)})),e};function w(t,e){var n=j(e),r=n.length;if(y(t))return!r;for(var i=0;i<r;i+=1){var o=n[i];if(e[o]!==t[o]||!(o in t))return!1}return!0}var _=w,M,S=function(t){return"object"==typeof t&&null!==t},C,A=function(t){if(!S(t)||!p(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 k(t,e){if(!v(t))return null;var n;if(d(e)&&(n=e),A(e)&&(n=function(t){return _(t,e)}),n)for(var r=0;r<t.length;r+=1)if(n(t[r]))return t[r];return null}var T=k;function E(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}var P=E,I,F=function(t,e){for(var n=null,r=0;r<t.length;r++){var i,o=t[r][e];if(!y(o)){n=v(o)?o[0]:o;break}}return n},L,B=function(t){if(!v(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e},D=function(t,e){if(void 0===e&&(e=[]),v(t))for(var n=0;n<t.length;n+=1)D(t[n],e);else e.push(t);return e},R=D,N=function(t){if(v(t))return t.reduce((function(t,e){return Math.max(t,e)}),t[0])},z=function(t){if(v(t))return t.reduce((function(t,e){return Math.min(t,e)}),t[0])},Y,G=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if(v(t[0])){for(var n=[],r=0;r<t.length;r++)n=n.concat(t[r]);e=n}var i=N(e),o;return{min:z(e),max:i}},H=Array.prototype,V=H.splice,W=H.indexOf,X,$=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 i=e[r],o=-1;(o=W.call(t,i))>-1;)V.call(t,o,1);return t},q=Array.prototype.splice,U,K=function t(e,n){if(!i(e))return[];for(var r=e?n.length:0,o=r-1;r--;){var a=void 0,s=n[r];r!==o&&s===a||(a=s,q.call(e,s,1))}return e},Z,Q=function(t,e,n){if(!v(t)&&!A(t))return t;var r=n;return x(t,(function(t,n){r=e(r,t,n)})),r},J,tt=function(t,e){var n=[];if(!i(t))return n;for(var r=-1,o=[],a=t.length;++r<a;){var s=t[r];e(s,r,t)&&(n.push(s),o.push(r))}return K(t,o),n},et=function(t){return p(t,"String")};function nt(t,e){var n;if(d(e))n=function(t,n){return e(t)-e(n)};else{var r=[];et(e)?r.push(e):v(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}var rt=nt;function it(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 o=t[r];e.has(o)||(n.push(o),e.set(o,!0))}return n}var ot,at=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return it([].concat.apply([],t))},st=function(t,e){for(var n=[],r={},i=0;i<t.length;i++){var o,a=t[i][e];if(!y(a)){v(a)||(a=[a]);for(var s=0;s<a.length;s++){var c=a[s];r[c]||(n.push(c),r[c]=!0)}}}return n};function ct(t){if(i(t))return t[0]}function lt(t){if(i(t)){var e=t;return t[t.length-1]}}function ut(t,e){return!(!v(t)&&!et(t))&&t[0]===e}var ht=ut;function ft(t,e){return!(!v(t)&&!et(t))&&t[t.length-1]===e}var pt=ft,dt,gt=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0},yt,vt=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1},mt=Object.prototype.hasOwnProperty;function bt(t,e){if(!e||!v(t))return{};for(var n={},r=d(e)?e:function(t){return t[e]},i,o=0;o<t.length;o++){var a=t[o];i=r(a),mt.call(n,i)?n[i].push(a):n[i]=[a]}return n}var xt=bt;function Ot(t,e){if(!e)return{0:t};if(!d(e)){var n=v(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 xt(t,e)}var jt=function(t,e){if(!e)return[t];var n=Ot(t,e),r=[];for(var i in n)r.push(n[i]);return r};function wt(t,e){return t["_wrap_"+e]}var _t=wt;function Mt(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n}var St=Mt,Ct={};function At(t){var e=Ct[t];if(!e){for(var n=t.toString(16),r=n.length;r<6;r++)n="0"+n;e="#"+n,Ct[t]=e}return e}var kt=At;function Tt(t){var e=0,n=0,r=0,i=0;return v(t)?1===t.length?e=n=r=i=t[0]:2===t.length?(e=r=t[0],n=i=t[1]):3===t.length?(e=t[0],n=i=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],i=t[3]):e=n=r=i=t,{r1:e,r2:n,r3:r,r4:i}}var Et=Tt,Pt,It=function(t,e,n){return t<e?e:t>n?n:t},Ft,Lt=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))},Bt,Dt=function(t){return p(t,"Number")},Rt,Nt=function(t){return Dt(t)&&t%1!=0},zt,Yt=function(t){return Dt(t)&&t%2==0},Gt,Ht=Number.isInteger?Number.isInteger:function(t){return Dt(t)&&t%1==0},Vt,Wt=function(t){return Dt(t)&&t<0},Xt=1e-5;function $t(t,e,n){return void 0===n&&(n=1e-5),Math.abs(t-e)<n}var qt,Ut=function(t){return Dt(t)&&t%2!=0},Kt,Zt=function(t){return Dt(t)&&t>0},Qt=function(t,e){if(v(t)){for(var n,r=-1/0,i=0;i<t.length;i++){var o=t[i],a=d(e)?e(o):o[e];a>r&&(n=o,r=a)}return n}},Jt=function(t,e){if(v(t)){for(var n,r=1/0,i=0;i<t.length;i++){var o=t[i],a=d(e)?e(o):o[e];a<r&&(n=o,r=a)}return n}},te,ee=function(t,e){return(t%e+e)%e},ne=180/Math.PI,re,ie=function(t){return ne*t},oe=parseInt,ae=Math.PI/180,se,ce=function(t){return ae*t},le=x,ue,he=function(t,e){return t.hasOwnProperty(e)},fe,pe=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return x(t,(function(n,r){d(t)&&"prototype"===r||e.push(n)})),e},de=function(t,e){return a(pe(t),e)},ge=function(t){return y(t)?"":t.toString()},ye,ve=function(t){return ge(t).toLowerCase()},me,be=function(t){var e=ge(t);return e.charAt(0).toLowerCase()+e.substring(1)};function xe(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}var Oe=xe,je,we=function(t){return ge(t).toUpperCase()},_e,Me=function(t){var e=ge(t);return e.charAt(0).toUpperCase()+e.substring(1)},Se={}.toString,Ce,Ae=function(t){return Se.call(t).replace(/^\[object /,"").replace(/]$/,"")},ke,Te=function(t){return p(t,"Arguments")},Ee,Pe=function(t){return p(t,"Boolean")},Ie,Fe=function(t){return p(t,"Date")},Le,Be=function(t){return p(t,"Error")},De=function(t){return Dt(t)&&isFinite(t)},Re,Ne=function(t){return null===t},ze=Object.prototype,Ye,Ge=function(t){var e=t&&t.constructor,n;return t===("function"==typeof e&&e.prototype||ze)},He,Ve=function(t){return p(t,"RegExp")},We,Xe=function(t){return void 0===t},$e,qe=function(t){return t instanceof Element||t instanceof HTMLDocument};function Ue(t){var e;return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}function Ke(t){var e;(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t)}function Ze(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function Qe(t,e,n,r){return e&&Ze(t,e),n&&Ze(t,n),r&&Ze(t,r),t}var Je,tn=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 i=t[r];d(i)&&(i=i.prototype),Qe(n.prototype,i)}},en=function(t){if("object"!=typeof t||null===t)return t;var e;if(v(t)){e=[];for(var n=0,r=t.length;n<r;n++)"object"==typeof t[n]&&null!=t[n]?e[n]=en(t[n]):e[n]=t[n]}else for(var i in e={},t)"object"==typeof t[i]&&null!=t[i]?e[i]=en(t[i]):e[i]=t[i];return e},nn=en;function rn(t,e,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||t.apply(i,o)},s=n&&!r;clearTimeout(r),r=setTimeout(a,e),s&&t.apply(i,o)}}var on=rn,an=function(t,e){if(!d(t))throw new TypeError("Expected a function");var n=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=e?e.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var s=t.apply(this,r);return a.set(o,s),s};return n.cache=new Map,n},sn=5;function cn(t,e,n,r){for(var i in n=n||0,r=r||5,e)if(e.hasOwnProperty(i)){var o=e[i];null!==o&&A(o)?(A(t[i])||(t[i]={}),n<r?cn(t[i],o,n+1,r):t[i]=e[i]):v(o)?(t[i]=[],t[i]=t[i].concat(o)):void 0!==o&&(t[i]=o)}}var ln,un=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)cn(t,e[r]);return t},hn,fn=function(t,e,n,r){d(e)||(n=e,e=t,t=function(){});var i=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},o=i(e.prototype,t);return t.prototype=Qe(o,t.prototype),t.superclass=i(e.prototype,e),Qe(o,n),Qe(t,r),t},pn,dn=function(t,e){if(!i(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var r=-1,o=0;o<t.length;o++)if(t[o]===e){r=o;break}return r},gn=Object.prototype.hasOwnProperty;function yn(t){if(y(t))return!0;if(i(t))return!t.length;var e=Ae(t);if("Map"===e||"Set"===e)return!t.size;if(Ge(t))return!Object.keys(t).length;for(var n in t)if(gn.call(t,n))return!1;return!0}var vn=yn,mn=function(t,e){if(t===e)return!0;if(!t||!e)return!1;if(et(t)||et(e))return!1;if(i(t)||i(e)){if(t.length!==e.length)return!1;for(var n=!0,r=0;r<t.length&&(n=mn(t[r],e[r]));r++);return n}if(S(t)||S(e)){var o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;for(var n=!0,r=0;r<o.length&&(n=mn(t[o[r]],e[o[r]]));r++);return n}return!1},bn=mn,xn=function(t,e,n){return d(n)?!!n(t,e):bn(t,e)},On,jn=function(t,e){if(!i(t))return t;for(var n=[],r=0;r<t.length;r++){var o=t[r];n.push(e(o,r))}return n},wn=function(t){return t},_n=function(t,e){void 0===e&&(e=wn);var n={};return m(t)&&!y(t)&&Object.keys(t).forEach((function(r){n[r]=e(t[r],r)})),n},Mn=function(t,e,n){for(var r=0,i=et(e)?e.split("."):e;t&&r<i.length;)t=t[i[r++]];return void 0===t||r<i.length?n:t},Sn=function(t,e,n){var r=t,i=et(e)?e.split("."):e;return i.forEach((function(t,e){e<i.length-1?(m(r[t])||(r[t]=Dt(i[e+1])?[]:{}),r=r[t]):r[t]=n})),t},Cn=Object.prototype.hasOwnProperty,An=function(t,e){if(null===t||!A(t))return{};var n={};return x(e,(function(e){Cn.call(t,e)&&(n[e]=t[e])})),n},kn=function(t,e){return Q(t,(function(t,n,r){return e.includes(r)||(t[r]=n),t}),{})},Tn=function(t,e,n){var r,i,o,a,s=0;n||(n={});var c=function(){s=!1===n.leading?0:Date.now(),r=null,a=t.apply(i,o),r||(i=o=null)},l=function(){var l=Date.now();s||!1!==n.leading||(s=l);var u=e-(l-s);return i=this,o=arguments,u<=0||u>e?(r&&(clearTimeout(r),r=null),s=l,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(c,u)),a};return l.cancel=function(){clearTimeout(r),s=0,r=i=o=null},l},En=function(t){return i(t)?Array.prototype.slice.call(t):[]},Pn={},In=function(t){return Pn[t=t||"g"]?Pn[t]+=1:Pn[t]=1,t+Pn[t]},Fn=function(){},Ln=function(t){return t};function Bn(t){return y(t)?0:i(t)?t.length:Object.keys(t).length}var Dn=n(1),Rn,Nn=an((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,o=e.fontStyle,a=e.fontVariant;return Rn||(Rn=document.createElement("canvas").getContext("2d")),Rn.font=[o,a,i,n+"px",r].join(" "),Rn.measureText(et(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),Object(Dn.__spreadArrays)([t],pe(e)).join("")})),zn=function(t,e,n,r){void 0===r&&(r="...");var i=16,o=Nn(r,n),a=et(t)?t:ge(t),s=e,c=[],l,u;if(Nn(t,n)<=e)return t;for(;l=a.substr(0,16),!((u=Nn(l,n))+o>s&&u>s);)if(c.push(l),s-=u,!(a=a.substr(16)))return c.join("");for(;l=a.substr(0,1),!((u=Nn(l,n))+o>s);)if(c.push(l),s-=u,!(a=a.substr(1)))return c.join("");return""+c.join("")+r},Yn,Gn=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}()},1:function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return i})),n.d(e,"__assign",(function(){return o})),n.d(e,"__rest",(function(){return a})),n.d(e,"__decorate",(function(){return s})),n.d(e,"__param",(function(){return c})),n.d(e,"__esDecorate",(function(){return l})),n.d(e,"__runInitializers",(function(){return u})),n.d(e,"__propKey",(function(){return h})),n.d(e,"__setFunctionName",(function(){return f})),n.d(e,"__metadata",(function(){return p})),n.d(e,"__awaiter",(function(){return d})),n.d(e,"__generator",(function(){return g})),n.d(e,"__createBinding",(function(){return y})),n.d(e,"__exportStar",(function(){return v})),n.d(e,"__values",(function(){return m})),n.d(e,"__read",(function(){return b})),n.d(e,"__spread",(function(){return x})),n.d(e,"__spreadArrays",(function(){return O})),n.d(e,"__spreadArray",(function(){return j})),n.d(e,"__await",(function(){return w})),n.d(e,"__asyncGenerator",(function(){return _})),n.d(e,"__asyncDelegator",(function(){return M})),n.d(e,"__asyncValues",(function(){return S})),n.d(e,"__makeTemplateObject",(function(){return C})),n.d(e,"__importStar",(function(){return k})),n.d(e,"__importDefault",(function(){return T})),n.d(e,"__classPrivateFieldGet",(function(){return E})),n.d(e,"__classPrivateFieldSet",(function(){return P})),n.d(e,"__classPrivateFieldIn",(function(){return I})),n.d(e,"__addDisposableResource",(function(){return F})),n.d(e,"__disposeResources",(function(){return B}));var r=function(t,e){return(r=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)};function i(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}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function t(e){for(var n,r=1,i=arguments.length;r<i;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e}).apply(this,arguments)};function a(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)for(var i=0,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}function s(t,e,n,r){var i=arguments.length,o=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r,a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(o=(i<3?a(o):i>3?a(e,n,o):a(e,n))||o);return i>3&&o&&Object.defineProperty(e,n,o),o}function c(t,e){return function(n,r){e(n,r,t)}}function l(t,e,n,r,i,o){function a(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var s=r.kind,c="getter"===s?"get":"setter"===s?"set":"value",l=!e&&t?r.static?t:t.prototype:null,u=e||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),h,f=!1,p=n.length-1;p>=0;p--){var d={};for(var g in r)d[g]="access"===g?{}:r[g];for(var g in r.access)d.access[g]=r.access[g];d.addInitializer=function(t){if(f)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(t||null))};var y=(0,n[p])("accessor"===s?{get:u.get,set:u.set}:u[c],d);if("accessor"===s){if(void 0===y)continue;if(null===y||"object"!=typeof y)throw new TypeError("Object expected");(h=a(y.get))&&(u.get=h),(h=a(y.set))&&(u.set=h),(h=a(y.init))&&i.unshift(h)}else(h=a(y))&&("field"===s?i.unshift(h):u[c]=h)}l&&Object.defineProperty(l,r.name,u),f=!0}function u(t,e,n){for(var r=arguments.length>2,i=0;i<e.length;i++)n=r?e[i].call(t,n):e[i].call(t);return r?n:void 0}function h(t){return"symbol"==typeof t?t:"".concat(t)}function f(t,e,n){return"symbol"==typeof e&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:n?"".concat(n," ",e):e})}function p(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function d(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){t.done?n(t.value):i(t.value).then(a,s)}c((r=r.apply(t,e||[])).next())}))}function g(t,e){var n={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return c([t,e])}}function c(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(o=2&s[0]?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(!(o=n.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){n=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(6===s[0]&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=e.call(t,n)}catch(t){s=[6,t],i=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}var y=Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]};function v(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||y(e,t,n)}function m(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 b(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],a;try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(t){a={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o}function x(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(b(arguments[e]));return t}function O(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var r=Array(t),i=0,e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function j(t,e,n){if(n||2===arguments.length)for(var r=0,i=e.length,o;r<i;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}function w(t){return this instanceof w?(this.v=t,this):new w(t)}function _(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),i,o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(t){r[t]&&(i[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||s(t,e)}))})}function s(t,e){try{c(r[t](e))}catch(t){h(o[0][3],t)}}function c(t){t.value instanceof w?Promise.resolve(t.value.v).then(l,u):h(o[0][2],t)}function l(t){s("next",t)}function u(t){s("throw",t)}function h(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function M(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:w(t[r](e)),done:!1}:i?i(e):e}:i}}function S(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=m(t),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){i(r,o,(n=t[e](n)).done,n.value)}))}}function i(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)}}function C(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var A=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function k(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&y(e,t,n);return A(e,t),e}function T(t){return t&&t.__esModule?t:{default:t}}function E(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)}function P(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 I(t,e){if(null===e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)}function F(t,e,n){if(null!=e){if("object"!=typeof e)throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose]}if("function"!=typeof r)throw new TypeError("Object not disposable.");t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}var L="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function B(t){function e(e){t.error=t.hasError?new L(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}function n(){for(;t.stack.length;){var r=t.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,(function(t){return e(t),n()}))}catch(t){e(t)}}if(t.hasError)throw t.error}return n()}e.default={__extends:i,__assign:o,__rest:a,__decorate:s,__param:c,__metadata:p,__awaiter:d,__generator:g,__createBinding:y,__exportStar:v,__values:m,__read:b,__spread:x,__spreadArrays:O,__spreadArray:j,__await:w,__asyncGenerator:_,__asyncDelegator:M,__asyncValues:S,__makeTemplateObject:C,__importStar:k,__importDefault:T,__classPrivateFieldGet:E,__classPrivateFieldSet:P,__classPrivateFieldIn:I,__addDisposableResource:F,__disposeResources:B}},10:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},i={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"},o=["click","mousedown","mouseup","dblclick","contextmenu","mouseenter","mouseleave","mouseover","mouseout","mousemove","wheel"]},115:function(t,e,n){"use strict";n.r(e),n.d(e,"Area",(function(){return XL})),n.d(e,"Bar",(function(){return UL})),n.d(e,"Box",(function(){return pB})),n.d(e,"Bullet",(function(){return QL})),n.d(e,"Column",(function(){return eB})),n.d(e,"Funnel",(function(){return iB})),n.d(e,"Histogram",(function(){return sB})),n.d(e,"Line",(function(){return uB})),n.d(e,"Liquid",(function(){return yB})),n.d(e,"Heatmap",(function(){return bB})),n.d(e,"Pie",(function(){return jB})),n.d(e,"Progress",(function(){return AB})),n.d(e,"Radar",(function(){return EB})),n.d(e,"Facet",(function(){return FD})),n.d(e,"RingProgress",(function(){return FB})),n.d(e,"Rose",(function(){return DB})),n.d(e,"Chord",(function(){return zB})),n.d(e,"Scatter",(function(){return HB})),n.d(e,"TinyArea",(function(){return XB})),n.d(e,"TinyColumn",(function(){return UB})),n.d(e,"TinyLine",(function(){return eD})),n.d(e,"Waterfall",(function(){return iD})),n.d(e,"WordCloud",(function(){return sD})),n.d(e,"Sunburst",(function(){return uD})),n.d(e,"DualAxes",(function(){return QB})),n.d(e,"Stock",(function(){return pD})),n.d(e,"RadialBar",(function(){return yD})),n.d(e,"CirclePacking",(function(){return ED})),n.d(e,"Gauge",(function(){return MB})),n.d(e,"Sankey",(function(){return bD})),n.d(e,"Treemap",(function(){return jD})),n.d(e,"Violin",(function(){return MD})),n.d(e,"Venn",(function(){return AD})),n.d(e,"MultiView",(function(){return RD})),n.d(e,"Mix",(function(){return RD})),n.d(e,"BidirectionalBar",(function(){return YD})),n.d(e,"G2",(function(){return r})),n.d(e,"getCanvasPattern",(function(){return Pp})),n.d(e,"FUNNEL_CONVERSATION_FIELD",(function(){return mg})),n.d(e,"flow",(function(){return Vf})),n.d(e,"measureTextWidth",(function(){return Qf})),n.d(e,"adaptors",(function(){return XF})),n.d(e,"Plot",(function(){return gd}));var r={};n.r(r),n.d(r,"VIEW_LIFE_CIRCLE",(function(){return g})),n.d(r,"BRUSH_FILTER_EVENTS",(function(){return zh})),n.d(r,"ELEMENT_RANGE_HIGHLIGHT_EVENTS",(function(){return xu})),n.d(r,"VERSION",(function(){return vo})),n.d(r,"Chart",(function(){return Xr})),n.d(r,"View",(function(){return Vr})),n.d(r,"Event",(function(){return Br})),n.d(r,"ComponentController",(function(){return $r})),n.d(r,"TooltipController",(function(){return Kr})),n.d(r,"Geometry",(function(){return Ci})),n.d(r,"Element",(function(){return li})),n.d(r,"GeometryLabel",(function(){return Hi})),n.d(r,"Interaction",(function(){return jn})),n.d(r,"Action",(function(){return ge})),n.d(r,"Facet",(function(){return ue})),n.d(r,"InteractionAction",(function(){return ge})),n.d(r,"registerComponentController",(function(){return kr})),n.d(r,"registerGeometry",(function(){return Hr})),n.d(r,"registerShape",(function(){return xi})),n.d(r,"registerShapeFactory",(function(){return bi})),n.d(r,"getShapeFactory",(function(){return Oi})),n.d(r,"registerGeometryLabel",(function(){return pi})),n.d(r,"registerGeometryLabelLayout",(function(){return gi})),n.d(r,"getGeometryLabel",(function(){return fi})),n.d(r,"getGeometryLabelLayout",(function(){return di})),n.d(r,"getInteraction",(function(){return In})),n.d(r,"registerInteraction",(function(){return Fn})),n.d(r,"registerAction",(function(){return Oe})),n.d(r,"getActionClass",(function(){return xe})),n.d(r,"getFacet",(function(){return fe})),n.d(r,"registerFacet",(function(){return pe})),n.d(r,"getTheme",(function(){return lr})),n.d(r,"registerTheme",(function(){return ur})),n.d(r,"registerEngine",(function(){return S})),n.d(r,"getEngine",(function(){return M})),n.d(r,"registerAnimation",(function(){return Jr})),n.d(r,"getAnimation",(function(){return Qr})),n.d(r,"LAYER",(function(){return l})),n.d(r,"DIRECTION",(function(){return u})),n.d(r,"Coordinate",(function(){return rt})),n.d(r,"Scale",(function(){return Z.c})),n.d(r,"Util",(function(){return mo}));var i={};n.r(i),n.d(i,"cluster",(function(){return Qw})),n.d(i,"hierarchy",(function(){return Tx})),n.d(i,"pack",(function(){return hx})),n.d(i,"packSiblings",(function(){return ox})),n.d(i,"packEnclose",(function(){return Wb})),n.d(i,"partition",(function(){return Gw})),n.d(i,"stratify",(function(){return r_})),n.d(i,"tree",(function(){return f_})),n.d(i,"treemap",(function(){return v_})),n.d(i,"treemapBinary",(function(){return m_})),n.d(i,"treemapDice",(function(){return Yw})),n.d(i,"treemapSlice",(function(){return p_})),n.d(i,"treemapSliceDice",(function(){return b_})),n.d(i,"treemapSquarify",(function(){return y_})),n.d(i,"treemapResquarify",(function(){return x_}));var o=n(2),a=n.n(o),s=n(1),c=n(0),l,u,h;!function(t){t.FORE="fore",t.MID="mid",t.BG="bg"}(l||(l={})),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"}(u||(u={})),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"}(h||(h={}));var f=3,p=2,d=1,g,y,v,m;!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"}(g||(g={})),function(t){t.BEFORE_DRAW_ANIMATE="beforeanimate",t.AFTER_DRAW_ANIMATE="afteranimate",t.BEFORE_RENDER_LABEL="beforerenderlabel",t.AFTER_RENDER_LABEL="afterrenderlabel"}(y||(y={})),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"}(v||(v={})),function(t){t.ACTIVE="active",t.INACTIVE="inactive",t.SELECTED="selected",t.DEFAULT="default"}(m||(m={}));var b=["color","shape","size"],x="_origin",O=1,j=1,w=.25,_={};function M(t){var e=_[t];if(!e)throw new Error("G engine '".concat(t,"' is not exist, please register it at first."));return e}function S(t,e){_[t]=e}var C=n(14);function A(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)}}function k(t){return"number"==typeof t&&!isNaN(t)}function T(t,e,n,r){var i=n,o=r;if(e){var a=A(t);i=a.width?a.width:i,o=a.height?a.height:o}return{width:Math.max(k(i)?i:1,1),height:Math.max(k(o)?o:1,1)}}function E(t){var e=t.parentNode;e&&e.removeChild(t)}var P=n(92),I,F=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 Object(s.__extends)(e,t),e.prototype.show=function(){var t;this.visible||this.changeVisible(!0)},e.prototype.hide=function(){var t;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}(P.a),L=n(13),B=n(86),D=function(t,e){return Object(c.Q)(e)?e:t.invert(t.scale(e))},R,N=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],o;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,r=void 0===n?"base":n,i=t.names,o=void 0===i?[]:i,a=t.scales,s=void 0===a?[]:a,l=t.values,u=void 0===l?[]:l,h=t.callback;this.type=r,this.scales=s,this.values=u,this.names=o,this.callback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(h){var r=h.apply(void 0,t);if(!Object(c.K)(r))return[r]}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:Object(c.C)(t)?t.map((function(t){return D(e,t)})):D(e,t)},t}(),z=n(40),Y,G=function(t){function e(e){var n=t.call(this,e)||this;return n.type="color",n.names=["color"],Object(c.Q)(n.values)&&(n.linear=!0),n.gradient=z.a.gradient(n.values),n}return Object(s.__extends)(e,t),e.prototype.getLinearValue=function(t){return this.gradient(t)},e}(N),H,V=function(t){function e(e){var n=t.call(this,e)||this;return n.type="opacity",n.names=["opacity"],n}return Object(s.__extends)(e,t),e}(N),W,X=function(t){function e(e){var n=t.call(this,e)||this;return n.names=["x","y"],n.type="position",n}return Object(s.__extends)(e,t),e.prototype.mapping=function(t,e){var n=this.scales,r=n[0],i=n[1];return Object(c.K)(t)||Object(c.K)(e)?[]:[Object(c.C)(t)?t.map((function(t){return r.scale(t)})):r.scale(t),Object(c.C)(e)?e.map((function(t){return i.scale(t)})):i.scale(e)]},e}(N),$,q=function(t){function e(e){var n=t.call(this,e)||this;return n.type="shape",n.names=["shape"],n}return Object(s.__extends)(e,t),e.prototype.getLinearValue=function(t){var e=Math.round((this.values.length-1)*t);return this.values[e]},e}(N),U,K=function(t){function e(e){var n=t.call(this,e)||this;return n.type="size",n.names=["size"],n}return Object(s.__extends)(e,t),e}(N),Z=n(46),Q={},J=function(t){return Q[t.toLowerCase()]},tt=function(t,e){if(J(t))throw new Error("Attribute type '".concat(t,"' existed."));Q[t.toLowerCase()]=e};tt("Color",G),tt("Opacity",V),tt("Position",X),tt("Shape",q),tt("Size",K);var et=n(4),nt,rt=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,r=t.matrix,i=void 0===r?[1,0,0,0,1,0,0,0,1]:r,o=t.isTransposed,a=void 0!==o&&o;this.start=e,this.end=n,this.matrix=i,this.originalMatrix=Object(s.__spreadArray)([],i),this.isTransposed=a}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){Object(c.b)(this,t),this.initial()},t.prototype.convertDim=function(t,e){var n,r=this[e],i=r.start,o=r.end;return this.isReflect(e)&&(i=(n=[o,i])[0],o=n[1]),i+t*(o-i)},t.prototype.invertDim=function(t,e){var n,r=this[e],i=r.start,o=r.end;return this.isReflect(e)&&(i=(n=[o,i])[0],o=n[1]),(t-i)/(o-i)},t.prototype.applyMatrix=function(t,e,n){void 0===n&&(n=0);var r=this.matrix,i=[t,e,n];return et.d.transformMat3(i,i,r),i},t.prototype.invertMatrix=function(t,e,n){void 0===n&&(n=0);var r=this.matrix,i=et.b.invert([0,0,0,0,0,0,0,0,0],r),o=[t,e,n];return i&&et.d.transformMat3(o,o,i),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 et.a.leftTranslate(e,e,[-n.x,-n.y]),et.a.leftRotate(e,e,t),et.a.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 et.a.leftTranslate(n,n,[-r.x,-r.y]),et.a.leftScale(n,n,[t,e]),et.a.leftTranslate(n,n,[r.x,r.y]),this},t.prototype.translate=function(t,e){var n=this.matrix;return et.a.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||Object(s.__spreadArray)([],this.originalMatrix)},t}(),it,ot=function(t){function e(e){var n=t.call(this,e)||this;return n.isRect=!0,n.type="cartesian",n.initial(),n}return Object(s.__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}(rt),at,st=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,o=e.endAngle,a=void 0===o?7.25*Math.PI:o,s=e.innerRadius,c=void 0===s?0:s,l=e.radius;return n.startAngle=i,n.endAngle=a,n.innerRadius=c,n.radius=l,n.initial(),n}return Object(s.__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"),o=this.a*i,a=this.convertDim(r,"y");return{x:this.center.x+Math.cos(i)*(o+a),y:this.center.y+Math.sin(i)*(o+a)}},e.prototype.invertPoint=function(t){var e,n=this.d+this.y.start,r=et.c.subtract([0,0],[t.x,t.y],[this.center.x,this.center.y]),i=et.a.angleTo(r,[1,0],!0),o=i*this.a,a;et.c.length(r)<o&&(o=et.c.length(r)),i=2*Math.floor((et.c.length(r)-o)/n)*Math.PI+i;var s=this.a*i,l=et.c.length(r)-s;l=Object(c.N)(l,0)?0:l;var u=this.invertDim(i,"x"),h=this.invertDim(l,"y");return u=Object(c.N)(u,0)?0:u,h=Object(c.N)(h,0)?0:h,this.isTransposed&&(u=(e=[h,u])[0],h=e[1]),{x:u,y:h}},e}(rt),ct,lt=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,o=e.endAngle,a=void 0===o?3*Math.PI/2:o,s=e.innerRadius,c=void 0===s?0:s,l=e.radius;return n.startAngle=i,n.endAngle=a,n.innerRadius=c,n.radius=l,n.initial(),n}return Object(s.__extends)(e,t),e.prototype.initial=function(){for(t.prototype.initial.call(this);this.endAngle<this.startAngle;)this.endAngle+=2*Math.PI;var e=this.getOneBox(),n=e.maxX-e.minX,r=e.maxY-e.minY,i=Math.abs(e.minX)/n,o=Math.abs(e.minY)/r,a;this.height/r>this.width/n?(a=this.width/n,this.circleCenter={x:this.center.x-(.5-i)*this.width,y:this.center.y-(.5-o)*a*r}):(a=this.height/r,this.circleCenter={x:this.center.x-(.5-i)*a*n,y:this.center.y-(.5-o)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=a*this.radius:(this.radius<=0||this.radius>a)&&(this.polarRadius=a):this.polarRadius=a,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,o=i.startAngle,a=i.endAngle;this.isReflect("x")&&(o=(e=[a,o])[0],a=e[1]);var s=[1,0,0,0,1,0,0,0,1];et.a.leftRotate(s,s,o);var l=[1,0,0];et.d.transformMat3(l,l,s);var u=[l[0],l[1]],h=et.a.angleTo(u,r,a<o);Object(c.N)(h,2*Math.PI)&&(h=0);var f=et.c.length(r),p=h/(a-o);p=a-o>0?p:-p;var d=this.invertDim(f,"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}(rt),ut={},ht=function(t){return ut[t.toLowerCase()]},ft=function(t,e){ut[t.toLowerCase()]=e};ft("rect",ot),ft("cartesian",ot),ft("polar",lt),ft("helix",st);var pt=n(17),dt=pt.Axis.Line,gt=pt.Axis.Circle,yt=pt.Grid.Line,vt=pt.Grid.Circle,mt=pt.Legend.Category,bt=pt.Legend.Continuous,xt=pt.Tooltip.Html;function Ot(t){if(Object(c.G)(t))return null;var e=t[0].x,n=t[0].x,r=t[0].y,i=t[0].y;return Object(c.j)(t,(function(t){e=e>t.x?t.x:e,n=n<t.x?t.x:n,r=r>t.y?t.y:r,i=i<t.y?t.y:i})),{minX:e,maxX:n,minY:r,maxY:i,centerX:(e+n)/2,centerY:(r+i)/2}}function jt(t){return 1===Array.from(new Set(t)).length}function wt(t){return(Object(c.bb)(t)+Object(c.Y)(t))/2}function _t(t,e,n,r){return{x:t+n*Math.cos(r),y:e+n*Math.sin(r)}}function Mt(t,e,n,r,i,o){void 0===o&&(o=0);var a=_t(t,e,n,r),s=_t(t,e,n,i),c=_t(t,e,o,r),l=_t(t,e,o,i);if(i-r==2*Math.PI){var u=_t(t,e,n,r+Math.PI),h=_t(t,e,o,r+Math.PI),f=[["M",a.x,a.y],["A",n,n,0,1,1,u.x,u.y],["A",n,n,0,1,1,s.x,s.y],["M",c.x,c.y]];return o&&(f.push(["A",o,o,0,1,0,h.x,h.y]),f.push(["A",o,o,0,1,0,l.x,l.y])),f.push(["M",a.x,a.y]),f.push(["Z"]),f}var p=i-r<=Math.PI?0:1,d=[["M",a.x,a.y],["A",n,n,0,p,1,s.x,s.y],["L",l.x,l.y]];return o&&d.push(["A",o,o,0,p,0,c.x,c.y]),d.push(["L",a.x,a.y]),d.push(["Z"]),d}function St(t,e,n,r,i){var o=_t(t,e,n,r),a=_t(t,e,n,i);if(Object(c.N)(i-r,2*Math.PI)){var s=_t(t,e,n,r+Math.PI);return[["M",o.x,o.y],["A",n,n,0,1,1,s.x,s.y],["A",n,n,0,1,1,o.x,o.y],["A",n,n,0,1,0,s.x,s.y],["A",n,n,0,1,0,o.x,o.y],["Z"]]}var l=i-r<=Math.PI?0:1;return[["M",o.x,o.y],["A",n,n,0,l,1,a.x,a.y]]}function Ct(t,e){var n,r=Ot(t.points),i,o,a=e.startAngle,s,c=e.endAngle-a;return e.isTransposed?(i=r.maxY*c,o=r.minY*c):(i=r.maxX*c,o=r.minX*c),{startAngle:o+=a,endAngle:i+=a}}function At(t,e){if(Object(c.M)(t)&&Object(c.M)(e))return[t,e];if(e=e,jt(t=t)||jt(e))return[wt(t),wt(e)];for(var n=-1,r=0,i=0,o,a=t.length-1,s,l=0;++n<t.length;)o=a,a=n,l+=s=t[o]*e[a]-t[a]*e[o],r+=(t[o]+t[a])*s,i+=(e[o]+e[a])*s;return[r/(l*=3),i/l]}function kt(t,e){var n=t.attr(),r=e.attr();return Object(c.j)(n,(function(t,e){void 0===r[e]&&(r[e]=void 0)})),r}function Tt(t,e,n){var r=Math.min(e,n),i=Math.max(e,n);return t>=r&&t<=i}function Et(t,e,n){if(Object(c.Q)(t))return t.padEnd(e,n);if(Object(c.C)(t)){var r=t.length;if(r<e)for(var i=e-r,o=0;o<i;o++)t.push(n)}return t}function Pt(t,e){return"object"==typeof t&&e.forEach((function(e){delete t[e]})),t}function It(t,e,n){var r,i;void 0===e&&(e=[]),void 0===n&&(n=new Map);try{for(var o=Object(s.__values)(t),a=o.next();!a.done;a=o.next()){var c=a.value;n.has(c)||(e.push(c),n.set(c,!0))}}catch(t){r={error:t}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return e}var Ft=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 Object(c.j)(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 Object(c.j)(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 u.TOP:case u.TOP_LEFT:case u.TOP_RIGHT:return t.fromRange(this.minX,this.minY+i,this.maxX,this.maxY);case u.RIGHT:case u.RIGHT_TOP:case u.RIGHT_BOTTOM:return t.fromRange(this.minX,this.minY,this.maxX-r,this.maxY);case u.BOTTOM:case u.BOTTOM_LEFT:case u.BOTTOM_RIGHT:return t.fromRange(this.minX,this.minY,this.maxX,this.maxY-i);case u.LEFT:case u.LEFT_TOP:case u.LEFT_BOTTOM:return t.fromRange(this.minX+r,this.minY,this.maxX,this.maxY);default:return this}},t.prototype.shrink=function(e){var n=Object(s.__read)(e,4),r=n[0],i=n[1],o=n[2],a=n[3];return new t(this.x+a,this.y+r,this.width-a-i,this.height-r-o)},t.prototype.expand=function(e){var n=Object(s.__read)(e,4),r=n[0],i=n[1],o=n[2],a=n[3];return new t(this.x-a,this.y-r,this.width+a+i,this.height+r+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}(),Lt=function(t,e){var n=e.start,r=e.end;return new Ft(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))};function Bt(t){return[[t.minX,t.minY],[t.maxX,t.minY],[t.maxX,t.maxY],[t.minX,t.maxY]]}function Dt(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))}function Rt(t){if(t.isPolar){var e=t.startAngle,n;return t.endAngle-e==2*Math.PI}return!1}function Nt(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function zt(t,e){var n=!1;if(t)if("theta"===t.type){var r=t.start,i=t.end;n=Tt(e.x,r.x,i.x)&&Tt(e.y,r.y,i.y)}else{var o=t.invert(e);n=Tt(o.x,0,1)&&Tt(o.y,0,1)}return n}function Yt(t,e){var n=t.getCenter();return Math.atan2(e.y-n.y,e.x-n.x)}function Gt(t,e){void 0===e&&(e=0);var n=t.start,r=t.end,i=t.getWidth(),o=t.getHeight(),a;if(t.isPolar){var s=t.startAngle,c=t.endAngle,l=t.getCenter(),u=t.getRadius();return{type:"path",startState:{path:Mt(l.x,l.y,u+e,s,s)},endState:function(t){var n=(c-s)*t+s,r;return{path:Mt(l.x,l.y,u+e,s,n)}},attrs:{path:Mt(l.x,l.y,u+e,s,c)}}}return a=t.isTransposed?{height:o+2*e}:{width:i+2*e},{type:"rect",startState:{x:n.x-e,y:r.y-e,width:t.isTransposed?i+2*e:0,height:t.isTransposed?0:o+2*e},endState:a,attrs:{x:n.x-e,y:r.y-e,width:i+2*e,height:o+2*e}}}function Ht(t,e){void 0===e&&(e=0);var n=t.start,r=t.end,i=t.getWidth(),o=t.getHeight(),a=Math.min(n.x,r.x),s=Math.min(n.y,r.y);return Ft.fromRange(a-e,s-e,a+i+e,s+o+e)}var Vt=/^(?:(?!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]))?$/;function Wt(t){var e="linear";return Vt.test(t)?e="timeCat":Object(c.Q)(t)&&(e="cat"),e}function Xt(t,e,n,r){return void 0===e&&(e={}),e.type?e.type:"identity"!==t.type&&b.includes(n)&&["interval"].includes(r)||t.isCategory?"cat":t.type}function $t(t,e,n){var r=e||[],i;if(Object(c.M)(t)||Object(c.K)(Object(c.o)(r,t))&&Object(c.G)(n))return new(Object(Z.d)("identity"))({field:t.toString(),values:[t]});var o=Object(c.yb)(r,t),a=Object(c.s)(n,"type",Wt(o[0])),l;return new(Object(Z.d)(a))(Object(s.__assign)({field:t,values:o},n))}function qt(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)}}function Ut(t){return t.alias||t.field}function Kt(t,e,n){var r,i=t.values.length,o;if(1===i)o=[.5,1];else{var a=1,s=0;o=Rt(e)?e.isTransposed?[(s=1/i*(a=Object(c.s)(n,"widthRatio.multiplePie",1/1.3)))/2,1-s/2]:[0,1-1/i]:[s=1/i/2,1-s]}return o}function Zt(t){var e=t.values.filter((function(t){return!Object(c.K)(t)&&!isNaN(t)}));return Math.max.apply(Math,Object(s.__spreadArray)(Object(s.__spreadArray)([],Object(s.__read)(e),!1),[Object(c.K)(t.max)?-1/0:t.max],!1))}function Qt(t){var e,n;switch(t){case u.TOP:e={x:0,y:1},n={x:1,y:1};break;case u.RIGHT:e={x:1,y:0},n={x:1,y:1};break;case u.BOTTOM:e={x:0,y:0},n={x:1,y:0};break;case u.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 Jt(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 te(t,e){var n={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?n=Qt(e):t.isPolar&&(n=Jt(t));var r=n.start,i=n.end;return{start:t.convert(r),end:t.convert(i)}}function ee(t,e){return t.isRect?t.isTransposed?[u.RIGHT,u.BOTTOM].includes(e)?1:-1:[u.BOTTOM,u.RIGHT].includes(e)?-1:1:t.isPolar&&t.x.start<0?-1:1;var n}function ne(t){var e=t.start,n=t.end;return e.x===n.x}function re(t,e){var n=t.start,r=t.end,i;return ne(t)?(n.y-r.y)*(e.x-n.x)>0?1:-1:(r.x-n.x)*(n.y-e.y)>0?-1:1}function ie(t,e){var n=Object(c.s)(t,["components","axis"],{});return Object(c.h)({},Object(c.s)(n,["common"],{}),Object(c.h)({},Object(c.s)(n,[e],{})))}function oe(t,e,n){var r=Object(c.s)(t,["components","axis"],{});return Object(c.h)({},Object(c.s)(r,["common","title"],{}),Object(c.h)({},Object(c.s)(r,[e,"title"],{})),n)}function ae(t){var e=t.x,n=t.y,r=t.circleCenter,i=n.start>n.end,o=t.isTransposed?t.convert({x:i?0:1,y:0}):t.convert({x:0,y:i?0:1}),a=[o.x-r.x,o.y-r.y],s=[1,0],c=o.y>r.y?et.c.angle(a,s):-1*et.c.angle(a,s),l=c+(e.end-e.start),u;return{center:r,radius:Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2)),startAngle:c,endAngle:l}}function se(t,e){return Object(c.D)(t)?!1!==t&&{}:Object(c.s)(t,[e])}function ce(t,e){return Object(c.s)(t,"position",e)}function le(t,e){return Object(c.s)(e,["title","text"],Ut(t))}var ue=function(){function t(t,e){this.destroyed=!1,this.facets=[],this.view=t,this.cfg=Object(c.h)({},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,o=this.view.createView({region:e,padding:i});o.data(n||[]),t.view=o,this.beforeEachView(o,t);var a=this.cfg.eachView;return a&&a(o,t),this.afterEachView(o,t),o},t.prototype.createContainer=function(){var t;return this.view.getLayer(l.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;Object(c.j)(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,r;return this.cfg.spacing.map((function(t,r){return Object(c.M)(t)?t/(0===r?e:n):parseFloat(t)/100}))},t.prototype.getFieldValues=function(t,e){var n=[],r={};return Object(c.j)(t,(function(t){var i=t[e];Object(c.K)(i)||r[i]||(n.push(i),r[i]=!0)})),n},t.prototype.getRegion=function(t,e,n,r){var i=Object(s.__read)(this.parseSpacing(),2),o=i[0],a=i[1],c=(1+o)/(0===e?1:e)-o,l=(1+a)/(0===t?1:t)-a,u={x:(c+o)*n,y:(l+a)*r},h;return{start:u,end:{x:u.x+c,y:u.y+l}}},t.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},t.prototype.getDefaultTitleCfg=function(){var t;return{style:{fontSize:14,fill:"#666",fontFamily:this.view.getTheme().fontFamily}}},t.prototype.processAxis=function(t,e){var n=t.getOptions(),r=n.coordinate,i=t.geometries,o;if("rect"===Object(c.s)(r,"type","rect")&&i.length){Object(c.K)(n.axes)&&(n.axes={});var a=n.axes,l=Object(s.__read)(i[0].getXYFields(),2),u=l[0],h=l[1],f=se(a,u),p=se(a,h);!1!==f&&(n.axes[u]=this.getXAxisOption(u,a,f,e)),!1!==p&&(n.axes[h]=this.getYAxisOption(h,a,p,e))}},t.prototype.getFacetDataFilter=function(t){return function(e){return Object(c.k)(t,(function(t){var n=t.field,r=t.value;return!(!Object(c.K)(r)&&n)||e[n]===r}))}},t}(),he={},fe=function(t){return he[Object(c.V)(t)]},pe=function(t,e){he[Object(c.V)(t)]=e},de,ge=function(){function t(t,e){this.context=t,this.cfg=e,t.addAction(this)}return t.prototype.applyCfg=function(t){Object(c.b)(this,t)},t.prototype.init=function(){this.applyCfg(this.cfg)},t.prototype.destroy=function(){this.context.removeAction(this),this.context=null},t}(),ye,ve=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__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}(ge),me={};function be(t,e){var n=me[t],r=null,i,o;n&&((r=new(0,n.ActionClass)(e,n.cfg)).name=t,r.init());return r}function xe(t){var e=me[t];return Object(c.s)(e,"ActionClass")}function Oe(t,e,n){me[t]={ActionClass:e,cfg:n}}function je(t){delete me[t]}function we(t,e){var n=new ve(e);return n.callback=t,n.name="callback",n}function _e(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 o=t[r];n.push(["L",o.x,o.y])}e&&n.push(["Z"])}return n}function Me(t,e){for(var n=[t[0]],r=1,i=t.length;r<i;r+=2){var o=e.convert({x:t[r],y:t[r+1]});n.push(o.x,o.y)}return n}function Se(t,e){var n=e.isTransposed,r=t[1],i=t[6],o=t[7],a=e.convert({x:i,y:o}),s;return["A",r,r,0,0,n?0:1,a.x,a.y]}function Ce(t,e,n){var r=n.isTransposed,i=n.startAngle,o=n.endAngle,a="a"===t[0].toLowerCase()?{x:t[6],y:t[7]}:{x:t[1],y:t[2]},s={x:e[1],y:e[2]},c=[],l=r?"y":"x",u=Math.abs(s[l]-a[l])*(o-i),h=s[l]>=a[l]?1:0,f=u>Math.PI?1:0,p=n.convert(s),d=Nt(n,p);if(d>=.5)if(u===2*Math.PI){var g={x:(s.x+a.x)/2,y:(s.y+a.y)/2},y=n.convert(g);c.push(["A",d,d,0,f,h,y.x,y.y]),c.push(["A",d,d,0,f,h,p.x,p.y])}else c.push(["A",d,d,0,f,h,p.x,p.y]);return c}function Ae(t){Object(c.j)(t,(function(e,n){var r;if("a"===e[0].toLowerCase()){var i=t[n-1],o=t[n+1];o&&"a"===o[0].toLowerCase()?i&&"l"===i[0].toLowerCase()&&(i[0]="M"):i&&"a"===i[0].toLowerCase()&&o&&"l"===o[0].toLowerCase()&&(o[0]="M")}}))}var ke=function(t,e,n,r){var i,o=[],a=!!r,c,l,u,h,f,p,d;if(a){u=(i=Object(s.__read)(r,2))[0],h=i[1];for(var g=0,y=t.length;g<y;g++){var v=t[g];u=et.c.min([0,0],u,v),h=et.c.max([0,0],h,v)}}for(var g=0,m=t.length;g<m;g++){var v=t[g];if(0!==g||n)if(g!==m-1||n){c=t[n?g?g-1:m-1:g-1],l=t[n?(g+1)%m:g+1];var b=[0,0];b=et.c.sub(b,l,c),b=et.c.scale(b,b,e);var x=et.c.distance(v,c),O=et.c.distance(v,l),j=x+O;0!==j&&(x/=j,O/=j);var w=et.c.scale([0,0],b,-x),_=et.c.scale([0,0],b,O);p=et.c.add([0,0],v,w),f=et.c.add([0,0],v,_),f=et.c.min([0,0],f,et.c.max([0,0],l,v)),f=et.c.max([0,0],f,et.c.min([0,0],l,v)),w=et.c.sub([0,0],f,v),w=et.c.scale([0,0],w,-x/O),p=et.c.add([0,0],v,w),p=et.c.min([0,0],p,et.c.max([0,0],c,v)),p=et.c.max([0,0],p,et.c.min([0,0],c,v)),_=et.c.sub([0,0],v,p),_=et.c.scale([0,0],_,O/x),f=et.c.add([0,0],v,_),a&&(p=et.c.max([0,0],p,u),p=et.c.min([0,0],p,h),f=et.c.max([0,0],f,u),f=et.c.min([0,0],f,h)),o.push(d),o.push(p),d=f}else p=v,o.push(d),o.push(p);else d=v}return n&&o.push(o.shift()),o};function Te(t,e,n){for(var r=!!e,i=[],o=0,a=t.length;o<a;o+=2)i.push([t[o],t[o+1]]);for(var s=ke(i,.4,r,n),c=i.length,l=[],u,h,f,o=0;o<c-1;o++)u=s[2*o],h=s[2*o+1],f=i[o+1],l.push(["C",u[0],u[1],h[0],h[1],f[0],f[1]]);return r&&(u=s[c],h=s[c+1],f=i[0],l.push(["C",u[0],u[1],h[0],h[1],f[0],f[1]])),l}function Ee(t,e){return _e(t,e)}function Pe(t,e,n){var r=[],i=t[0],o=null;if(t.length<=2)return Ee(t,e);for(var a=0,s=t.length;a<s;a++){var c=t[a];o&&o.x===c.x&&o.y===c.y||(r.push(c.x),r.push(c.y),o=c)}var l,u=Te(r,e,n||[[0,0],[1,1]]);return u.unshift(["M",i.x,i.y]),u}function Ie(t,e){var n=[];return Object(c.j)(e,(function(e){var r;switch(e[0].toLowerCase()){case"m":case"l":case"c":n.push(Me(e,t));break;case"a":n.push(Se(e,t));break;case"z":default:n.push(e)}})),n}function Fe(t,e){var n=[],r,i,o,a;return Object(c.j)(e,(function(s,c){var l;switch(s[0].toLowerCase()){case"m":case"c":case"q":n.push(Me(s,t));break;case"l":r=e[c-1],i=s,o=t.isTransposed,(a=o?r[r.length-2]===i[1]:r[r.length-1]===i[2])?n=n.concat(Ce(r,i,t)):n.push(Me(s,t));break;case"a":n.push(Se(s,t));break;case"z":default:n.push(s)}})),Ae(n),n}var Le=n(39);function Be(t,e){var n,r;return Re(t.event.target,e)}function De(t,e){var n=t.getCanvasBBox(),r=n.width,i=n.height;return r>0&&i>0&&(r>=e||i>=e)}function Re(t,e){var n=t.getCanvasBBox();return De(t,e)?n:null}function Ne(t,e){var n;return t.event.maskShapes.map((function(t){return Re(t,e)})).filter((function(t){return!!t}))}function ze(t,e){var n,r;return Ye(t.event.target,e)}function Ye(t,e){return De(t,e)?t.attr("path"):null}function Ge(t,e){var n;return t.event.maskShapes.map((function(t){return Ye(t,e)}))}function He(t){var e,n,r=t.event.target;return r&&(n=r.get("element")),n}function Ve(t){var e,n=t.event.target,r;return n&&(r=n.get("delegateObject")),r}function We(t){var e=t.event.gEvent;return!(e&&e.fromShape&&e.toShape&&e.fromShape.get("element")===e.toShape.get("element"))}function Xe(t){return t&&t.component&&t.component.isList()}function $e(t){return t&&t.component&&t.component.isSlider()}function qe(t){var e,n=t.event.target;return n&&"mask"===(null==n?void 0:n.get("name"))||Ue(t)}function Ue(t){var e;return"multi-mask"===(null===(e=t.event.target)||void 0===e?void 0:e.get("name"))}function Ke(t,e){var n=t.event.target;if(Ue(t))return Ze(t,e);if("path"===n.get("type")){var r=ze(t,e);if(!r)return;return ln(t.view,r)}var i=Be(t,e);return i?sn(t.view,i):null}function Ze(t,e){var n;if("path"===t.event.target.get("type")){var r=Ge(t,e);return r.length>0?r.flatMap((function(e){return ln(t.view,e)})):null}var i=Ne(t,e);return i.length>0?i.flatMap((function(e){return sn(t.view,e)})):null}function Qe(t,e,n){if(Ue(t))return tn(t,e,n);var r=Be(t,n);return r?Je(r,t,e):null}function Je(t,e,n){var r=e.view,i=yn(r,n,{x:t.x,y:t.y}),o=yn(r,n,{x:t.maxX,y:t.maxY}),a;return sn(n,{minX:i.x,minY:i.y,maxX:o.x,maxY:o.y})}function tn(t,e,n){var r=Ne(t,n);return r.length>0?r.flatMap((function(n){return Je(n,t,e)})):null}function en(t){var e=t.geometries,n=[];return Object(c.j)(e,(function(t){var e=t.elements;n=n.concat(e)})),t.views&&t.views.length&&Object(c.j)(t.views,(function(t){n=n.concat(en(t))})),n}function nn(t,e,n){var r;return en(t).filter((function(t){return on(t,e)===n}))}function rn(t,e){var n=t.geometries,r=[];return Object(c.j)(n,(function(t){var n=t.getElementsBy((function(t){return t.hasState(e)}));r=r.concat(n)})),r}function on(t,e){var n,r=t.getModel().data,i;return i=Object(c.C)(r)?r[0][e]:r[e]}function an(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function sn(t,e){var n=en(t),r=[];return Object(c.j)(n,(function(t){var n,i=t.shape.getCanvasBBox();an(e,i)&&r.push(t)})),r}function cn(t){var e=[];return Object(c.j)(t,(function(t){var n;if("A"!==t[0])for(var r=1;r<t.length;r+=2)e.push([t[r],t[r+1]]);else{var i=t.length;e.push([t[i-2],t[i-1]])}})),e}function ln(t,e){var n=en(t),r=cn(e),i;return n.filter((function(t){var e=t.shape,n,i;"path"===e.get("type")?n=cn(e.attr("path")):n=Bt(e.getCanvasBBox());return Object(Le.b)(r,n)}))}function un(t){return t.getComponents().map((function(t){return t.component}))}function hn(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function fn(t,e){if(t.length<=2)return Ee(t,!1);var n=t[0],r=[];Object(c.j)(t,(function(t){r.push(t.x),r.push(t.y)}));var i=Te(r,e,null);return i.unshift(["M",n.x,n.y]),i}function pn(t,e){return t.x<=e.x&&t.maxX>=e.x&&t.y<=e.y&&t.maxY>e.y}function dn(t){var e=t.parent,n=null;return e&&(n=e.views.filter((function(e){return e!==t}))),n}function gn(t,e){var n;return t.getCoordinate().invert(e)}function yn(t,e,n){var r=gn(t,n);return e.getCoordinate().convert(r)}function vn(t,e,n,r){var i=!1;return Object(c.j)(t,(function(t){if(t[n]===e[n]&&t[r]===e[r])return i=!0,!1})),i}function mn(t,e){var n=t.getScaleByField(e);return!n&&t.views&&Object(c.j)(t.views,(function(t){if(n=mn(t,e))return!1})),n}var bn,xn=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,e,n;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 Object(c.s)(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=un(this.view),n=this.getCurrentPoint();return!!n&&!!e.find((function(e){var r=e.getBBox();return t?e.get("name")===t&&pn(r,n):pn(r,n)}))},t.prototype.destroy=function(){Object(c.j)(this.actions.slice(),(function(t){t.destroy()})),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},t}(),On,jn=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}();function wn(t,e,n){var r=t.split(":"),i=r[0],o=e.getAction(i)||be(i,e),a;if(!o)throw new Error("There is no action named ".concat(i));return{action:o,methodName:r[1],arg:n}}function _n(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)}var Mn="start",Sn="showEnable",Cn="end",An="rollback",kn="processing",Tn,En=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.callbackCaches={},r.emitCaches={},r.steps=n,r}return Object(s.__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;Object(c.j)(this.steps,(function(e,n){Object(c.j)(e,(function(e){var r=t.getActionCallback(n,e);r&&t.bindEvent(e.trigger,r)}))}))},e.prototype.clearEvents=function(){var t=this;Object(c.j)(this.steps,(function(e,n){Object(c.j)(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 xn(t);this.context=e;var n=this.steps;Object(c.j)(n,(function(t){Object(c.j)(t,(function(t){if(Object(c.I)(t.action))t.actionObject={action:we(t.action,e),methodName:"execute"};else if(Object(c.Q)(t.action))t.actionObject=wn(t.action,e,t.arg);else if(Object(c.C)(t.action)){var n=t.action,r=Object(c.C)(t.arg)?t.arg:[t.arg];t.actionObject=[],Object(c.j)(n,(function(n,i){t.actionObject.push(wn(n,e,r[i]))}))}}))}))},e.prototype.isAllowStep=function(t){var e=this.currentStepName,n=this.steps;if(e===t)return!0;if(t===Sn)return!0;if(t===kn)return e===Mn;if(t===Mn)return e!==kn;if(t===Cn)return e===kn||e===Mn;if(t===An){if(n[Cn])return e===Cn;if(e===Mn)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!==Sn&&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,i=this.callbackCaches,o=e.actionObject;if(e.action&&o){var a=this.getKey(t,e);if(!i[a]){var s=function(i){r.event=i,n.isAllowExecute(t,e)?(Object(c.C)(o)?Object(c.j)(o,(function(t){r.event=i,_n(t)})):(r.event=i,_n(o)),n.afterExecute(t,e),e.callback&&(r.event=i,e.callback(r))):r.event=null};e.debounce?i[a]=Object(c.g)(s,e.debounce.wait,e.debounce.immediate):e.throttle?i[a]=Object(c.qb)(s,e.throttle.wait,{leading:e.throttle.leading,trailing:e.throttle.trailing}):i[a]=s}return i[a]}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}(jn),Pn={};function In(t){return Pn[Object(c.V)(t)]}function Fn(t,e){Pn[Object(c.V)(t)]=e}function Ln(t,e,n){var r=In(t),i;if(!r)return null;if(Object(c.P)(r)){var o=Object(c.db)(Object(c.e)(r),n);return new En(e,o)}return new r(e,n)}function Bn(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}}function Dn(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}}function Rn(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}}},r=Bn(t),i=Dn(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=Ct(t.getModel(),e),i,o,a=(r.startAngle+r.endAngle)/2,s=7.5,c=s*Math.cos(a),l=s*Math.sin(a);return{matrix:et.a.transform(null,[["t",c,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:Object(s.__assign)(Object(s.__assign)({},n.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:Object(s.__assign)(Object(s.__assign)({},n.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:Object(s.__assign)(Object(s.__assign)({},n.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:Object(s.__assign)(Object(s.__assign)({},n.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:Object(s.__assign)(Object(s.__assign)({},n.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:Object(s.__assign)(Object(s.__assign)({},n.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:Object(s.__assign)(Object(s.__assign)({},n.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:Object(s.__assign)(Object(s.__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:r,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:Object(c.h)({},r.grid,{line:{type:"line"}})},radius:{title:null,grid:Object(c.h)({},r.grid,{line:{type:"circle"}})}},legend:{common:i,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:i.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(pt.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(pt.TOOLTIP_CSS_CONST.TITLE_CLASS)]={marginBottom:"12px",marginTop:"12px"},e["".concat(pt.TOOLTIP_CSS_CONST.LIST_CLASS)]={margin:0,listStyleType:"none",padding:0},e["".concat(pt.TOOLTIP_CSS_CONST.LIST_ITEM_CLASS)]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},e["".concat(pt.TOOLTIP_CSS_CONST.MARKER_CLASS)]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},e["".concat(pt.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}}}var Nn="#000",zn="#0D0D0D",Yn="#262626",Gn="#595959",Hn="#8C8C8C",Vn="#BFBFBF",Wn="#D9D9D9",Xn="#F0F0F0",$n="#FFFFFF",qn="#F2F2F2",Un="#D9D9D9",Kn="#A6A6A6",Zn="#737373",Qn="#404040",Jn="#262626",tr="#0F0F0F",er=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],nr=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],rr=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],ir=function(t){void 0===t&&(t={});var e=t.paletteQualitative10,n=void 0===e?er:e,r=t.paletteQualitative20,i=void 0===r?nr:r,o=t.brandColor,a=void 0===o?n[0]:o,c={backgroundColor:"transparent",brandColor:a,subColor:"rgba(0,0,0,0.05)",paletteQualitative10:n,paletteQualitative20:i,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:rr,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:Vn,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:Gn,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:Un,axisTickLineBorderColor:Vn,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:Wn,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:Hn,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:Wn,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:Hn,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:a,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:Gn,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:Nn,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:Nn,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:Hn,legendPageNavigatorTextFontSize:12,sliderRailFillColor:Wn,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:Hn,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:Xn,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:Vn,annotationArcBorderColor:Wn,annotationArcBorder:1,annotationLineBorderColor:Vn,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:Gn,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:Nn,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:Vn,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:Gn,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:Gn,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:$n,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:Gn,overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:$n,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:Vn,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:a,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:$n,pointBorderOpacity:1,pointActiveBorderColor:Nn,pointSelectedBorder:2,pointSelectedBorderColor:Nn,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:a,hollowPointBorderOpacity:.95,hollowPointFillColor:$n,hollowPointActiveBorder:1,hollowPointActiveBorderColor:Nn,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:Nn,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:a,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:a,areaFillOpacity:.25,areaActiveFillColor:a,areaActiveFillOpacity:.5,areaSelectedFillColor:a,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:a,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:Nn,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:Nn,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:a,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:Nn,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:Nn,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:a,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:$n,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:Nn,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:Nn,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return Object(s.__assign)(Object(s.__assign)({},c),t)},or=ir();function ar(t){var e=t.styleSheet,n=void 0===e?{}:e,r=Object(s.__rest)(t,["styleSheet"]),i=ir(n);return Object(c.h)({},Rn(i),r)}var sr,cr={default:ar({})};function lr(t){return Object(c.s)(cr,Object(c.V)(t),cr.default)}function ur(t,e){cr[Object(c.V)(t)]=ar(e)}function hr(t,e,n){var r=n.translate(t),i=n.translate(e);return Object(c.N)(r,i)}function fr(t,e){var n=e.coordinate,r=e.getXScale(),i=r.range,o=i[i.length-1],a=i[0],s,c=n.invert(t).x;return n.isPolar&&c>(1+o)/2&&(c=a),r.translate(r.invert(c))}function pr(t,e,n){var r=n.coordinate,i=n.getYScale(),o=i.field,a=r.invert(e),s=i.invert(a.y),l;return Object(c.m)(t,(function(t){var e=t._origin;return e[o][0]<=s&&e[o][1]>=s}))||t[t.length-1]}var dr=Object(c.ab)((function(t){if(t.isCategory)return 1;for(var e=t.values,n=e.length,r=t.translate(e[0]),i=r,o=0;o<n;o++){var a=e[o],s=t.translate(a);s<r&&(r=s),s>i&&(i=s)}return(i-r)/(n-1)}));function gr(t,e,n){var r,i=e.getAttribute("position").getFields(),o=e.scales,a=Object(c.I)(n)||!n?i[0]:n,s=o[a],l=s?s.getText(t[a]):t[a]||a;return Object(c.I)(n)?n(l,t):l}function yr(t){var e=Object(c.xb)(t.attributes);return Object(c.l)(e,(function(t){return Object(c.f)(b,t.type)}))}function vr(t){var e,n,r=yr(t),i;try{for(var o=Object(s.__values)(r),a=o.next();!a.done;a=o.next()){var l=a.value,u=l.getScale(l.type),h,f;if(u&&u.isLinear)if("cat"!==Xt(u,Object(c.s)(t.scaleDefs,u.field),l.type,t.type)){i=u;break}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}var p=t.getXScale(),d=t.getYScale();return i||d||p}function mr(t,e){var n,r=t[e.field],i;return Object(c.C)(r)?r.map((function(t){return e.getText(t)})).join("-"):e.getText(r)}function br(t,e){var n,r=e.getGroupScales(),i;if(r.length&&(n=r[0]),n){var o=n.field;return n.getText(t[o])}return Ut(vr(e))}function xr(t,e,n){if(0===e.length)return null;var r=n.type,i=n.getXScale(),o=n.getYScale(),a=i.field,s=o.field,l=null;if("heatmap"===r||"point"===r){for(var u,h=n.coordinate.invert(t),f=i.invert(h.x),p=o.invert(h.y),d=1/0,g=0;g<e.length;g++){var y=e[g],v=y._origin,m=Math.pow(v[a]-f,2)+Math.pow(v[s]-p,2);m<d&&(d=m,l=y)}return l}var b=e[0],x=e[e.length-1],O=fr(t,n),j=b._origin[a],w=b._origin[s],_=x._origin[a],M=o.isLinear&&Object(c.C)(w);if(Object(c.C)(j)){for(var g=0;g<e.length;g++){var S,v=(S=e[g])._origin;if(i.translate(v[a][0])<=O&&i.translate(v[a][1])>=O){if(!M){l=S;break}Object(c.C)(l)||(l=[]),l.push(S)}}Object(c.C)(l)&&(l=pr(l,t,n))}else{var C=void 0;if(i.isLinear||"timeCat"===i.type){if((O>i.translate(_)||O<i.translate(j))&&(O>i.max||O<i.min))return null;for(var A=0,k=e.length-1,T=void 0;A<=k;){var E=e[T=Math.floor((A+k)/2)]._origin[a];if(hr(E,O,i))return e[T];i.translate(E)<=i.translate(O)?(A=T+1,x=e[T],C=e[T+1]):(0===k&&(x=e[0]),k=T-1)}}else{for(var g=0;g<e.length;g++){var S,v;if(hr((v=(S=e[g])._origin)[a],O,i)){if(!M){l=S;break}Object(c.C)(l)||(l=[]),l.push(S)}else i.translate(v[a])<=O&&(x=S,C=e[g+1])}Object(c.C)(l)&&(l=pr(l,t,n))}x&&C&&Math.abs(i.translate(x._origin[a])-O)>Math.abs(i.translate(C._origin[a])-O)&&(x=C)}var P=dr(n.getXScale());return!l&&Math.abs(i.translate(x._origin[a])-O)<=P/2&&(l=x),l}function Or(t,e,n,r){var i,o;void 0===n&&(n=""),void 0===r&&(r=!1);var a=t._origin,l=gr(a,e,n),u=e.tooltipOption,h=e.theme.defaultColor,f=[],p,d;function g(e,n){if(r||!Object(c.K)(n)&&""!==n){var i={title:l,data:a,mappingData:t,name:e,value:n,color:t.color||h,marker:!0};f.push(i)}}if(Object(c.O)(u)){var y=u.fields,v=u.callback;if(v){var m=y.map((function(e){return t._origin[e]})),b=v.apply(void 0,Object(s.__spreadArray)([],Object(s.__read)(m),!1)),x=Object(s.__assign)({data:t._origin,mappingData:t,title:l,color:t.color||h,marker:!0},b);f.push(x)}else{var O=e.scales;try{for(var j=Object(s.__values)(y),w=j.next();!w.done;w=j.next()){var _=w.value;if(!Object(c.K)(a[_])){var M=O[_];g(p=Ut(M),d=M.getText(a[_]))}}}catch(t){i={error:t}}finally{try{w&&!w.done&&(o=j.return)&&o.call(j)}finally{if(i)throw i.error}}}}else{var S=vr(e);d=mr(a,S),g(p=br(a,e),d)}return f}function jr(t,e,n,r){var i,o,a=r.showNil,l=[],u=t.dataArray;if(!Object(c.G)(u)){t.sort(u);try{for(var h=Object(s.__values)(u),f=h.next();!f.done;f=h.next()){var p,d=xr(e,f.value,t);if(d){var g=t.getElementId(d),y=t.elementsMap[g];if("heatmap"===t.type||y.visible){var v=Or(d,t,n,a);v.length&&l.push(v)}}}}catch(t){i={error:t}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}}return l}function wr(t,e,n,r){var i=r.showNil,o=[],a,s=t.container.getShape(e.x,e.y);if(s&&s.get("visible")&&s.get("origin")){var c,l=Or(s.get("origin").mappingData,t,n,i);l.length&&o.push(l)}return o}function _r(t,e,n){var r,i,o=[],a=t.geometries,c=n.shared,l=n.title,u=n.reversed;try{for(var h=Object(s.__values)(a),f=h.next();!f.done;f=h.next()){var p=f.value;if(p.visible&&!1!==p.tooltipOption){var d=p.type,g=void 0;(g=["point","edge","polygon"].includes(d)?wr(p,e,l,n):["area","line","path","heatmap"].includes(d)||!1!==c?jr(p,e,l,n):wr(p,e,l,n)).length&&(u&&g.reverse(),o.push(g))}}}catch(t){r={error:t}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}return o}function Mr(t,e,n){var r,i,o=_r(t,e,n);try{for(var a=Object(s.__values)(t.views),c=a.next();!c.done;c=a.next()){var l=c.value;o=o.concat(_r(l,e,n))}}catch(t){r={error:t}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}function Sr(t){return!Object(c.M)(t)&&!Object(c.C)(t)}function Cr(t){void 0===t&&(t=0);var e=Object(c.C)(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=Object(s.__spreadArray)(Object(s.__spreadArray)([],Object(s.__read)(e),!1),Object(s.__read)(e),!1);break;case 3:e=Object(s.__spreadArray)(Object(s.__spreadArray)([],Object(s.__read)(e),!1),[e[1]],!1);break;default:e=e.slice(0,4)}return e}var Ar={};function kr(t,e){Ar[t]=e}function Tr(t){delete Ar[t]}function Er(){return Object.keys(Ar)}function Pr(t){return Ar[t]}var Ir,Fr=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 Object(c.nb)(e,(function(e){return e[0]===t}))},t.prototype.create=function(t,e){var n=this.option,r=n.type,i=n.cfg,o="theta"===r,a=Object(s.__assign)({start:t,end:e},i),c=ht(o?"polar":r);return this.coordinate=new c(a),this.coordinate.type=r,o&&(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 Object(s.__assign)({type:"rect",actions:[],cfg:{}},t)},t.prototype.execActions=function(t){var e=this,n=this.option.actions;Object(c.j)(n,(function(n){var r,i=Object(s.__read)(n),o=i[0],a=i.slice(1),l;(!!Object(c.K)(t)||t.includes(o))&&(r=e.coordinate)[o].apply(r,Object(s.__spreadArray)([],Object(s.__read)(a),!1))}))},t}(),Lr,Br=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,r){return new t(e,new L.Event(n,{}),r)},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}();function Dr(t){var e=t.getController("axis"),n=t.getController("legend"),r=t.getController("annotation"),i,o;[e,t.getController("slider"),t.getController("scrollbar"),n,r].forEach((function(t){t&&t.layout()}))}var Rr=function(){function t(){this.scales=new Map,this.syncScales=new Map}return t.prototype.createScale=function(t,e,n,r){var i=n,o=this.getScaleMeta(r);if(0===e.length&&o){var a=o.scale,s={type:a.type};a.isCategory&&(s.values=a.values),i=Object(c.h)(s,o.scaleDef,n)}var l=$t(t,e,i);return this.cacheScale(l,n,r),l},t.prototype.sync=function(t,e){var n=this;this.syncScales.forEach((function(r,i){var o=Number.MAX_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER,s=[];Object(c.j)(r,(function(t){var e=n.getScale(t);a=Object(c.M)(e.max)?Math.max(a,e.max):a,o=Object(c.M)(e.min)?Math.min(o,e.min):o,Object(c.j)(e.values,(function(t){s.includes(t)||s.push(t)}))})),Object(c.j)(r,(function(r){var i=n.getScale(r);if(i.isContinuous)i.change({min:o,max:a,values:s});else if(i.isCategory){var l=i.range,u=n.getScaleMeta(r);s&&!Object(c.s)(u,["scaleDef","range"])&&(l=Kt(Object(c.h)({},i,{values:s}),t,e)),i.change({values:s,range:l})}}))}))},t.prototype.cacheScale=function(t,e,n){var r=this.getScaleMeta(n);r&&r.scale.type===t.type?(qt(r.scale,t),r.scaleDef=e):(r={key:n,scale:t,scaleDef:e},this.scales.set(n,r));var i=this.getSyncKey(r);if(r.syncKey=i,this.removeFromSyncScales(n),i){var o=this.syncScales.get(i);o||(o=[],this.syncScales.set(i,o)),o.push(n)}},t.prototype.getScale=function(t){var e=this.getScaleMeta(t);if(!e){var n=Object(c.U)(t.split("-")),r=this.syncScales.get(n);r&&r.length&&(e=this.getScaleMeta(r[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,r=e.field,i=Object(c.s)(n,["sync"]);return!0===i?r:!1===i?void 0:i},t.prototype.getScaleMeta=function(t){return this.scales.get(t)},t}(),Nr=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=Object(s.__read)(t,4),n=e[0],r=e[1],i=e[2],o=e[3];return this.top=Math.max(this.top,n),this.right=Math.max(this.right,r),this.bottom=Math.max(this.bottom,i),this.left=Math.max(this.left,o),this},t.prototype.shrink=function(t){var e=Object(s.__read)(t,4),n=e[0],r=e[1],i=e[2],o=e[3];return this.top+=n,this.right+=r,this.bottom+=i,this.left+=o,this},t.prototype.inc=function(t,e){var n=t.width,r=t.height;switch(e){case u.TOP:case u.TOP_LEFT:case u.TOP_RIGHT:this.top+=r;break;case u.RIGHT:case u.RIGHT_TOP:case u.RIGHT_BOTTOM:this.right+=n;break;case u.BOTTOM:case u.BOTTOM_LEFT:case u.BOTTOM_RIGHT:this.bottom+=r;break;case u.LEFT:case u.LEFT_TOP:case u.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,Object(s.__spreadArray)([void 0],Object(s.__read)(this.getPadding()),!1)))},t}();function zr(t){var e=t.padding;if(!Sr(e))return new(Nr.bind.apply(Nr,Object(s.__spreadArray)([void 0],Object(s.__read)(Cr(e)),!1)));var n=t.viewBBox,r=new Nr,i=[],o=[],a=[];return Object(c.j)(t.getComponents(),(function(t){var e=t.type;e===h.AXIS?i.push(t):[h.LEGEND,h.SLIDER,h.SCROLLBAR].includes(e)?o.push(t):e!==h.GRID&&e!==h.TOOLTIP&&a.push(t)})),Object(c.j)(i,(function(t){var e,i=t.component.getLayoutBBox(),o,a=new Ft(i.x,i.y,i.width,i.height).exceed(n);r.max(a)})),Object(c.j)(o,(function(t){var e=t.component,n=t.direction,i=e.getLayoutBBox(),o=e.get("padding"),a=new Ft(i.x,i.y,i.width,i.height).expand(o);r.inc(a,n)})),Object(c.j)(a,(function(t){var e=t.component,n=t.direction,i=e.getLayoutBBox(),o=new Ft(i.x,i.y,i.width,i.height);r.inc(o,n)})),r}function Yr(t,e,n){var r=n.instance();e.forEach((function(t){t.autoPadding=r.max(t.autoPadding.getPadding())}))}var Gr=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=Er(),n.scalePool=new Rr,n.layoutFunc=Dr,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 r=e.id,i=void 0===r?Object(c.vb)("view"):r,o=e.parent,a=e.canvas,l=e.backgroundGroup,u=e.middleGroup,h=e.foregroundGroup,f=e.region,p=void 0===f?{start:{x:0,y:0},end:{x:1,y:1}}:f,d=e.padding,g=e.appendPadding,y=e.theme,v=e.options,m=e.limitInPlot,b=e.syncViewPadding;return n.parent=o,n.canvas=a,n.backgroundGroup=l,n.middleGroup=u,n.foregroundGroup=h,n.region=p,n.padding=d,n.appendPadding=g,n.options=Object(s.__assign)(Object(s.__assign)({},n.options),v),n.limitInPlot=m,n.id=i,n.syncViewPadding=b,n.themeObject=Object(c.O)(y)?Object(c.h)({},lr("default"),ar(y)):lr(y),n.init(),n}return Object(s.__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(g.BEFORE_RENDER,Br.fromData(this,g.BEFORE_RENDER,e)),this.paint(t),this.emit(g.AFTER_RENDER,Br.fromData(this,g.AFTER_RENDER,e)),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this;this.emit(g.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=[];for(var r=this.controllers,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();for(var i=this.views,n=0;n<i.length;n++)i[n].clear();this.emit(g.AFTER_CLEAR)},e.prototype.destroy=function(){this.emit(g.BEFORE_DESTROY);var e=this.interactions;Object(c.j)(e,(function(t){t&&t.destroy()})),this.clear();for(var n=this.controllers,r=0,i=n.length;r<i;r++){var o;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++){var o;n[r].changeVisible(e)}for(var a=this.controllers,r=0,i=a.length;r<i;r++){var s;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 Object(c.lb)(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 Object(c.I)(e)?(Object(c.lb)(this.options,["filters",t],e),this):(!e&&Object(c.s)(this.options,["filters",t])&&delete this.options.filters[t],this)},e.prototype.axis=function(t,e){return Object(c.D)(t)?Object(c.lb)(this.options,["axes"],t):Object(c.lb)(this.options,["axes",t],e),this},e.prototype.legend=function(t,e){return Object(c.D)(t)?Object(c.lb)(this.options,["legends"],t):Object(c.Q)(t)?(Object(c.lb)(this.options,["legends",t],e),Object(c.P)(e)&&(null==e?void 0:e.selected)&&Object(c.lb)(this.options,["filters",t],(function(t){var n;return null===(n=null==e?void 0:e.selected[t])||void 0===n||n}))):Object(c.lb)(this.options,["legends"],t),this},e.prototype.scale=function(t,e){var n=this;return Object(c.Q)(t)?Object(c.lb)(this.options,["scales",t],e):Object(c.O)(t)&&Object(c.j)(t,(function(t,e){Object(c.lb)(n.options,["scales",e],t)})),this},e.prototype.tooltip=function(t){return Object(c.lb)(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 Object(c.Q)(t)?Object(c.lb)(this.options,"coordinate",{type:t,cfg:e}):Object(c.lb)(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=fe(t);if(!n)throw new Error("facet '".concat(t,"' is not exist!"));return this.facetInstance=new n(this,Object(s.__assign)(Object(s.__assign)({},e),{type:t})),this},e.prototype.animate=function(t){return Object(c.lb)(this.options,"animate",t),this},e.prototype.updateOptions=function(t){return this.clear(),Object(c.db)(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 Object(c.lb)(this.options,t,n),this},e.prototype.theme=function(t){return this.themeObject=Object(c.O)(t)?Object(c.h)({},this.themeObject,ar(t)):lr(t),this},e.prototype.interaction=function(t,e){var n=this.interactions[t];n&&n.destroy();var r=Ln(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(g.BEFORE_CHANGE_DATA,Br.fromData(this,g.BEFORE_CHANGE_DATA,null)),this.data(t),this.paint(!0);for(var e=this.views,n=0,r=e.length;n<r;n++){var i;e[n].changeData(t)}this.emit(g.AFTER_CHANGE_DATA,Br.fromData(this,g.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:Object(c.e)(this.options.scales),axes:Object(c.e)(this.options.axes),coordinate:Object(c.e)(this.coordinateController.getOption()),tooltip:Object(c.e)(this.options.tooltip),legends:Object(c.e)(this.options.legends),animate:this.options.animate,visible:this.visible},r=new e(Object(s.__assign)(Object(s.__assign)({parent:this,canvas:this.canvas,backgroundGroup:this.backgroundGroup.addGroup({zIndex:d}),middleGroup:this.middleGroup.addGroup({zIndex:p}),foregroundGroup:this.foregroundGroup.addGroup({zIndex:f}),theme:this.themeObject,padding:this.padding},t),{options:Object(s.__assign)(Object(s.__assign)({},n),Object(c.s)(t,"options",{}))}));return this.views.push(r),r},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=Object(c.jb)(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 o=e[r],a="x"===t?o.getXScale():o.getYScale();a&&!n[a.field]&&(n[a.field]=a)}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 Object(c.ib)(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===l.BG?this.backgroundGroup:t===l.MID?this.middleGroup:(l.FORE,this.foregroundGroup)},e.prototype.isPointInPlot=function(t){return zt(this.getCoordinate(),t)},e.prototype.getLegendAttributes=function(){return Object(c.q)(this.geometries.map((function(t){return t.getGroupAttributes()})))},e.prototype.getGroupScales=function(){var t=this.geometries.map((function(t){return t.getGroupScales()}));return It(Object(c.q)(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=this.getCoordinate(),n=this.getScalesByDim("x"),r=this.getScalesByDim("y"),i,o;if(Object(c.j)(t,(function(t,e){n[e]&&(i=n[e].scale(t)),r[e]&&(o=r[e].scale(t))})),!Object(c.K)(i)&&!Object(c.K)(o))return e.convert({x:i,y:o})},e.prototype.getController=function(t){return Object(c.m)(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 o=e[r],a=o.dataArray;o.sort(a);for(var s=void 0,c=0,l=a.length;c<l;c++){var u;(s=xr(t,a[c],o))&&n.push(s)}}for(var h=this.views,r=0,i=h.length;r<i;r++){var f,p=h[r].getSnapRecords(t);n=n.concat(p)}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===Object(c.mb)(e)?t:Object(c.l)(t,(function(t,n){var r;return Object.keys(e).every((function(r){var i;return(0,e[r])(t[r],t,n)}))}))},e.prototype.filterFieldData=function(t,e){var n=this.options.filters,r=Object(c.s)(n,t);return Object(c.S)(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,i=this.coordinateBBox.tr;Object(c.H)(e,r)&&Object(c.H)(n,i)?this.isCoordinateChanged=!1:(this.isCoordinateChanged=!0,this.coordinateInstance=this.coordinateController.adjust(r,i))},e.prototype.paint=function(t){this.renderDataRecursive(t),this.syncScale(),this.emit(g.BEFORE_PAINT),this.renderPaddingRecursive(t),this.renderLayoutRecursive(t),this.renderBackgroundStyleShape(),this.renderPaintRecursive(t),this.emit(g.AFTER_PAINT),this.isDataChanged=!1},e.prototype.renderBackgroundStyleShape=function(){if(!this.parent){var t=Object(c.s)(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,i=e.width,o=e.height;this.backgroundStyleRectShape.attr({fill:t,x:n,y:r,width:i,height:o})}else this.backgroundStyleRectShape&&(this.backgroundStyleRectShape.remove(!0),this.backgroundStyleRectShape=void 0)}},e.prototype.renderPaddingRecursive=function(t){var e;this.calculateViewBBox(),this.adjustCoordinate(),this.initComponents(t),this.autoPadding=zr(this).shrink(Cr(this.appendPadding)),this.coordinateBBox=this.viewBBox.shrink(this.autoPadding.getPadding()),this.adjustCoordinate(),this.controllers.find((function(t){return"tooltip"===t.name})).update();for(var n=this.views,r=0,i=n.length;r<i;r++){var o;n[r].renderPaddingRecursive(t)}},e.prototype.renderLayoutRecursive=function(t){var e=!0===this.syncViewPadding?Yr:Object(c.I)(this.syncViewPadding)?this.syncViewPadding:void 0;e&&(e(this,this.views,Nr),this.views.forEach((function(t){t.coordinateBBox=t.viewBBox.shrink(t.autoPadding.getPadding()),t.adjustCoordinate()}))),this.doLayout();for(var n=this.views,r=0,i=n.length;r<i;r++){var o;n[r].renderLayoutRecursive(t)}},e.prototype.renderPaintRecursive=function(t){var e=this.middleGroup;if(this.limitInPlot){var n=Gt(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 o=this.views,a=0,s=o.length;a<s;a++){var c;o[a].renderPaintRecursive(t)}},e.prototype.createScale=function(t,e,n,r){var i=Object(c.s)(this.options.scales,[t]),o=Object(s.__assign)(Object(s.__assign)({},i),n);return this.parent?this.parent.createScale(t,e,o,r):this.scalePool.createScale(t,e,o,r)},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++){var i;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 o=this.region,a=o.start,s=o.end,c=new Ft(t+n*a.x,e+r*a.y,n*(s.x-a.x),r*(s.y-a.y));this.viewBBox&&this.viewBBox.isEqual(c)||(this.viewBBox=new Ft(t+n*a.x,e+r*a.y,n*(s.x-a.x),r*(s.y-a.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,i=Pr(t[e]);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 Br(this,t,r);return i.type=n,i},e.prototype.doPlotEvent=function(t){var e=t.type,n,r,i={x:t.x,y:t.y},o;if(["mousedown","mouseup","mousemove","mouseleave","mousewheel","touchstart","touchmove","touchend","touchcancel","click","dblclick","contextmenu"].includes(e)){var a=this.isPointInPlot(i),s=t.clone();if(a){var c="plot:".concat(e);s.type=c,this.emit(c,s),"mouseleave"!==e&&"touchend"!==e||(this.isPreMouseInPlot=!1)}"mousemove"===e||"touchmove"===e?(this.isPreMouseInPlot&&!a?("mousemove"===e&&(s.type=v.MOUSE_LEAVE,this.emit(v.MOUSE_LEAVE,s)),s.type=v.LEAVE,this.emit(v.LEAVE,s)):!this.isPreMouseInPlot&&a&&("mousemove"===e&&(s.type=v.MOUSE_ENTER,this.emit(v.MOUSE_ENTER,s)),s.type=v.ENTER,this.emit(v.ENTER,s)),this.isPreMouseInPlot=a):"mouseleave"!==e&&"touchend"!==e||this.isPreMouseInPlot&&("mouseleave"===e&&(s.type=v.MOUSE_LEAVE,this.emit(v.MOUSE_LEAVE,s)),s.type=v.LEAVE,this.emit(v.LEAVE,s),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=Object(c.s)(this.options,"scales",{}),r=this.geometries,i=0,o=r.length;i<o;i++){var a=r[i];a.scales=this.getGeometryScales();var s={coordinate:e,scaleDefs:n,data:this.filteredData,theme:this.themeObject,isDataChanged:this.isDataChanged,isCoordinateChanged:this.isCoordinateChanged};t?a.update(s):a.init(s)}this.adjustScales()},e.prototype.createOrUpdateScales=function(){for(var t=this.getScaleFields(),e=this.getGroupedFields(),n=this.getOptions(),r=n.data,i=n.scales,o=void 0===i?{}:i,a=this.filteredData,s=0,c=t.length;s<c;s++){var l=t[s],u=o[l],h=this.getScaleKey(l);this.createScale(l,e.includes(l)?r:a,u,h),this.createdScaleKeys.set(h,!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,o;It(n[r].getScaleFields(),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,o;It(n[r].getGroupFields(),t,e)}return t},e.prototype.adjustScales=function(){this.adjustCategoryScaleRange()},e.prototype.adjustCategoryScaleRange=function(){var t=this,e=Object(s.__spreadArray)([this.getXScale()],Object(s.__read)(this.getYScales()),!1).filter((function(t){return!!t})),n=this.getCoordinate(),r=this.options.scales;Object(c.j)(e,(function(e){var i=e.field,o=e.values,a=e.isCategory,s=e.isIdentity;(a||s)&&o&&!Object(c.s)(r,[i,"range"])&&(e.range=Kt(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,o=0;o<i.length;o++){var a=i[o];a.coordinate=n,a.canvasRegion=r,e||a.animate(!1),a.paint(t)}},e.prototype.renderComponents=function(t){for(var e=this.getComponents(),n=0;n<e.length;n++){var r;e[n].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,r=void 0===n?[]:n,i=e.interactions,o=void 0===i?[]:i,a=e.views,l=void 0===a?[]:a,u=e.annotations,h=void 0===u?[]:u,f=e.coordinate,p=e.events,d=e.facets;this.coordinateController?f&&this.coordinateController.update(f):this.coordinateController=new Fr(f);for(var g=0;g<r.length;g++){var y=r[g];this.createGeometry(y)}for(var v=0;v<o.length;v++){var m=o[v],b=m.type,x=m.cfg;this.interaction(b,x)}for(var O=0;O<l.length;O++){var j=l[O];this.createView(j)}for(var w=this.getController("annotation"),_=0;_<h.length;_++){var M=h[_];w.annotation(M)}p&&Object(c.j)(p,(function(e,n){t.on(n,e)})),d&&Object(c.j)(d,(function(e){var n=e.type,r=Object(s.__rest)(e,["type"]);t.facet(n,r)}))},e.prototype.createGeometry=function(t){var e=t.type,n=t.cfg,r=void 0===n?{}:n;if(this[e]){var i=this[e](r);Object(c.j)(t,(function(t,e){Object(c.I)(i[e])&&i[e](t)}))}},e.prototype.getScaleKey=function(t){return"".concat(this.id,"-").concat(t)},e}(F);function Hr(t,e){Gr.prototype[t.toLowerCase()]=function(t){void 0===t&&(t={});var n=Object(s.__assign)({container:this.middleGroup.addGroup(),labelsContainer:this.foregroundGroup.addGroup()},t),r=new e(n);return this.geometries.push(r),r}}var Vr=Gr,Wr,Xr=function(t){function e(e){var n=this,r=e.container,i=e.width,o=e.height,a=e.autoFit,l=void 0!==a&&a,u=e.padding,h=e.appendPadding,g=e.renderer,y=void 0===g?"canvas":g,v=e.pixelRatio,m=e.localRefresh,b=void 0===m||m,x=e.visible,O=void 0===x||x,j=e.supportCSSTransform,w=void 0!==j&&j,_=e.defaultInteractions,S=void 0===_?["tooltip","legend-filter","legend-active","continuous-filter","ellipsis-text","axis-description"]:_,A=e.options,k=e.limitInPlot,E=e.theme,P=e.syncViewPadding,I=Object(c.Q)(r)?document.getElementById(r):r,F=Object(C.b)('<div style="position:relative;"></div>');I.appendChild(F);var L=T(I,l,i,o),B,D=new(M(y).Canvas)(Object(s.__assign)({container:F,pixelRatio:v,localRefresh:b,supportCSSTransform:w},L));return(n=t.call(this,{parent:null,canvas:D,backgroundGroup:D.addGroup({zIndex:d}),middleGroup:D.addGroup({zIndex:p}),foregroundGroup:D.addGroup({zIndex:f}),padding:u,appendPadding:h,visible:O,options:A,limitInPlot:k,theme:E,syncViewPadding:P})||this).onResize=Object(c.g)((function(){n.forceFit()}),300),n.ele=I,n.canvas=D,n.width=L.width,n.height=L.height,n.autoFit=l,n.localRefresh=b,n.renderer=y,n.wrapperElement=F,n.updateCanvasStyle(),n.bindAutoFit(),n.initDefaultInteractions(S),n}return Object(s.__extends)(e,t),e.prototype.initDefaultInteractions=function(t){var e=this;Object(c.j)(t,(function(t){e.interaction(t)}))},e.prototype.aria=function(t){var e="aria-label";!1===t?this.ele.removeAttribute(e):this.ele.setAttribute(e,t.label)},e.prototype.changeSize=function(t,e){return this.width===t&&this.height===e||(this.emit(g.BEFORE_CHANGE_SIZE),this.width=t,this.height=e,this.canvas.changeSize(t,e),this.render(!0),this.emit(g.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(),E(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=T(this.ele,!0,this.width,this.height),e=t.width,n=t.height;this.changeSize(e,n)}},e.prototype.updateCanvasStyle=function(){Object(C.e)(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}(Vr),$r=function(){function t(t){this.visible=!0,this.components=[],this.view=t}return t.prototype.clear=function(t){Object(c.j)(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}();function qr(t){for(var e=[],n=function(n){var r=t[n],i;Object(c.m)(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}var Ur,Kr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isLocked=!1,e}return Object(s.__extends)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.isVisible=function(){var t;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 r=this.getTitle(n),i={x:n[0].x,y:n[0].y};e.emit("tooltip:show",Br.fromData(e,"tooltip:show",Object(s.__assign)({items:n,title:r},t)));var o=this.getTooltipCfg(),a=o.follow,l=o.showMarkers,u=o.showCrosshairs,h=o.showContent,f=o.marker,p=this.items,d=this.title;if(Object(c.H)(d,r)&&Object(c.H)(p,n)?(this.tooltip&&a&&(this.tooltip.update(t),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(e.emit("tooltip:change",Br.fromData(e,"tooltip:change",Object(s.__assign)({items:n,title:r},t))),(Object(c.I)(h)?h(n):h)&&(this.tooltip||this.renderTooltip(),this.tooltip.update(Object(c.db)({},o,{items:this.getItemsAfterProcess(n),title:r},a?t:{})),this.tooltip.show()),l&&this.renderTooltipMarkers(n,f)),this.items=n,this.title=r,u){var g=Object(c.s)(o,["crosshairs","follow"],!1);this.renderCrosshairs(g?t:i,o)}}else this.hideTooltip()}},e.prototype.hideTooltip=function(){var t;if(this.getTooltipCfg().follow){var e=this.tooltipMarkersGroup;e&&e.hide();var n=this.xCrosshair,r=this.yCrosshair;n&&n.hide(),r&&r.hide();var i=this.tooltip;i&&i.hide(),this.view.emit("tooltip:hide",Br.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,e=t.tooltip,n=t.xCrosshair,r=t.yCrosshair,i=t.tooltipMarkersGroup;e&&(e.hide(),e.clear()),n&&n.clear(),r&&r.clear(),i&&i.clear(),(null==e?void 0:e.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,n=e.tooltip,r=e.tooltipMarkersGroup,i=e.xCrosshair,o=e.yCrosshair;t?(n&&n.show(),r&&r.show(),i&&i.show(),o&&o.show()):(n&&n.hide(),r&&r.hide(),i&&i.hide(),o&&o.hide()),this.visible=t}},e.prototype.getTooltipItems=function(t){var e,n,r,i,o,a,l=this.findItemsFromView(this.view,t);if(l.length){l=Object(c.q)(l);try{for(var u=Object(s.__values)(l),h=u.next();!h.done;h=u.next()){var f=h.value;try{for(var p=(r=void 0,Object(s.__values)(f)),d=p.next();!d.done;d=p.next()){var g=d.value,y=g.mappingData,v=y.x,m=y.y;g.x=Object(c.C)(v)?v[v.length-1]:v,g.y=Object(c.C)(m)?m[m.length-1]:m}}catch(t){r={error:t}}finally{try{d&&!d.done&&(i=p.return)&&i.call(p)}finally{if(r)throw r.error}}}}catch(t){e={error:t}}finally{try{h&&!h.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}var b;if(!1===this.getTooltipCfg().shared&&l.length>1){var x=l[0],O=Math.abs(t.y-x[0].y);try{for(var j=Object(s.__values)(l),w=j.next();!w.done;w=j.next()){var _=w.value,M=Math.abs(t.y-_[0].y);M<=O&&(x=_,O=M)}}catch(t){o={error:t}}finally{try{w&&!w.done&&(a=j.return)&&a.call(j)}finally{if(o)throw o.error}}l=[x]}return qr(Object(c.q)(l))}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,o=r.y,a=r.width,s=r.height;return new Ft(i,o,a,s).isPointIn(t)}}return!1},e.prototype.getTooltipCfg=function(){var t=this.view,e=t.getOptions().tooltip,n=this.processCustomContent(e),r=t.getTheme(),i=Object(c.s)(r,["components","tooltip"],{}),o=Object(c.s)(n,"enterable",i.enterable);return Object(c.h)({},i,n,{capture:!(!o&&!this.isLocked)})},e.prototype.processCustomContent=function(t){if(Object(c.D)(t)||!Object(c.s)(t,"customContent"))return t;var e=t.customContent,n=function(t,n){var r=e(t,n)||"";return Object(c.Q)(r)?'<div class="g2-tooltip">'+r+"</div>":r};return Object(s.__assign)(Object(s.__assign)({},t),{customContent:n})},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(),r=new xt(Object(s.__assign)(Object(s.__assign)({parent:t.get("el").parentNode,region:e},n),{visible:!1,crosshairs:null}));r.init(),this.tooltip=r},e.prototype.renderTooltipMarkers=function(t,e){var n,r,i=this.getTooltipMarkersGroup(),o=this.view.getRootView(),a=o.limitInPlot;try{for(var l=Object(s.__values)(t),u=l.next();!u.done;u=l.next()){var h=u.value,f=h.x,p=h.y;if(a||(null==i?void 0:i.getClip())){var d=Gt(o.getCoordinate()),g=d.type,y=d.attrs;null==i||i.setClip({type:g,attrs:y})}else null==i||i.setClip(void 0);var v=this.view.getTheme(),m=Object(c.s)(v,["components","tooltip","marker"],{}),b=Object(s.__assign)(Object(s.__assign)({fill:h.color,symbol:"circle",shadowColor:h.color},Object(c.I)(e)?Object(s.__assign)(Object(s.__assign)({},m),e(h)):e),{x:f,y:p});i.addShape("marker",{attrs:b})}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}},e.prototype.renderCrosshairs=function(t,e){var n=Object(c.s)(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(),r,i;if(n.isRect)n.isTransposed?(r={x:n.start.x,y:t.y},i={x:n.end.x,y:t.y}):(r={x:t.x,y:n.end.y},i={x:t.x,y:n.start.y});else{var o=Yt(n,t),a=n.getCenter(),s=n.getRadius();i=_t(a.x,a.y,s,o),r=a}var l=Object(c.h)({start:r,end:i,container:this.getTooltipCrosshairsGroup()},Object(c.s)(e,"crosshairs",{}),this.getCrosshairsText("x",t,e));delete l.type;var u=this.xCrosshair;u?u.update(l):(u=new pt.Crosshair.Line(l)).init(),u.render(),u.show(),this.xCrosshair=u},e.prototype.renderYCrosshairs=function(t,e){var n=this.getViewWithGeometry(this.view).getCoordinate(),r,i;if(n.isRect){var o=void 0,a=void 0;n.isTransposed?(o={x:t.x,y:n.end.y},a={x:t.x,y:n.start.y}):(o={x:n.start.x,y:t.y},a={x:n.end.x,y:t.y}),r={start:o,end:a},i="Line"}else r={center:n.getCenter(),radius:Nt(n,t),startAngle:n.startAngle,endAngle:n.endAngle},i="Circle";delete(r=Object(c.h)({container:this.getTooltipCrosshairsGroup()},r,Object(c.s)(e,"crosshairs",{}),this.getCrosshairsText("y",t,e))).type;var s=this.yCrosshair;s?n.isRect&&"circle"===s.get("type")||!n.isRect&&"line"===s.get("type")?(s=new pt.Crosshair[i](r)).init():s.update(r):(s=new pt.Crosshair[i](r)).init(),s.render(),s.show(),this.yCrosshair=s},e.prototype.getCrosshairsText=function(t,e,n){var r=Object(c.s)(n,["crosshairs","text"]),i=Object(c.s)(n,["crosshairs","follow"]),o=this.items;if(r){var a=this.getViewWithGeometry(this.view),s=o[0],l=a.getXScale(),u=a.getYScales()[0],h=void 0,f=void 0;if(i){var p=this.view.getCoordinate().invert(e);h=l.invert(p.x),f=u.invert(p.y)}else h=s.data[l.field],f=s.data[u.field];var d="x"===t?h:f;return Object(c.I)(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,r;if(!1===t.getOptions().tooltip)return[];var i,o=_r(t,e,this.getTooltipCfg());try{for(var a=Object(s.__values)(t.views),c=a.next();!c.done;c=a.next()){var l=c.value;o=o.concat(this.findItemsFromView(l,e))}}catch(t){n={error:t}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o},e.prototype.getViewWithGeometry=function(t){var e=this;return t.geometries.length?t:Object(c.m)(t.views,(function(t){return e.getViewWithGeometry(t)}))},e.prototype.getItemsAfterProcess=function(t){var e=this.getTooltipCfg().customItems,n;return(e||function(t){return t})(t)},e}($r),Zr={};function Qr(t){return Zr[t.toLowerCase()]}function Jr(t,e){Zr[t.toLowerCase()]=e}var ti={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},ei={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"}}},ni={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){var e;return{animation:e=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"}}};function ri(t,e){return{delay:Object(c.I)(t.delay)?t.delay(e):t.delay,easing:Object(c.I)(t.easing)?t.easing(e):t.easing,duration:Object(c.I)(t.duration)?t.duration(e):t.duration,callback:t.callback,repeat:t.repeat}}function ii(t,e,n){var r=ei[t];return r&&(Object(c.I)(r)&&(r=r(e)),r=Object(c.h)({},ti,r),n)?r[n]:r}function oi(t,e,n){var r=Object(c.s)(t.get("origin"),"data","_origin"),i=e.animation,o=ri(e,r);if(i){var a=Qr(i);a&&a(t,o,n)}else t.animate(n.toAttrs,o)}function ai(t,e,n,r,i){if(ni[n]){var o=ni[n](r),a=Qr(Object(c.s)(o,"animation",""));if(a){var l=Object(s.__assign)(Object(s.__assign)(Object(s.__assign)({},ti.appear),o),e);t.stopAnimate(),a(t,l,{coordinate:r,minYPoint:i,toAttrs:null})}}}var si="element-background",ci,li=function(t){function e(e){var n=t.call(this,e)||this;n.labelShape=[],n.states=[];var r=e.shapeFactory,i=e.container,o=e.offscreenGroup,a=e.elementIndex,s=e.visible,c=void 0===s||s;return n.shapeFactory=r,n.container=i,n.offscreenGroup=o,n.visible=c,n.elementIndex=a,n}return Object(s.__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,n=e.shapeFactory,r=e.shape;if(r){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(r,t);var i=this.getOffscreenGroup(),o=n.drawShape(this.shapeType,t,i);o.cfg.data=this.data,o.cfg.origin=t,o.cfg.element=this,this.syncShapeStyle(r,o,this.getStates(),this.getAnimateCfg("update"))}},e.prototype.destroy=function(){var e=this,n=e.shapeFactory,r=e.shape;if(r){var i=this.getAnimateCfg("leave");i?oi(r,i,{coordinate:n.coordinate,toAttrs:Object(s.__assign)({},r.attr())}):r.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,a=n.shape,s=n.shapeType,c=r.indexOf(t);if(e){if(c>-1)return;r.push(t),"active"!==t&&"selected"!==t||null==a||a.toFront()}else{if(-1===c)return;if(r.splice(c,1),"active"===t||"selected"===t){var l=this.geometry,u=l.sortZIndex,h,f=l.zIndexReversed?this.geometry.elements.length-this.elementIndex:this.elementIndex;u?a.setZIndex(f):a.set("zIndex",f)}}var p=i.drawShape(s,o,this.getOffscreenGroup());r.length?this.syncShapeStyle(a,p,r,null):this.syncShapeStyle(a,p,["reset"],null),p.remove(!0);var d={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",d),Object(pt.propagationDelegate)(this.shape,"statechange",d)},e.prototype.clearStates=function(){var t=this,e=this.states;Object(c.j)(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,e=t.shape,n=t.labelShape,r={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return e&&(r=e.getCanvasBBox()),n&&n.forEach((function(t){var e=t.getCanvasBBox();r.x=Math.min(e.x,r.x),r.y=Math.min(e.y,r.y),r.minX=Math.min(e.minX,r.minX),r.minY=Math.min(e.minY,r.minY),r.maxX=Math.max(e.maxX,r.maxX),r.maxY=Math.max(e.maxY,r.maxY)})),r.width=r.maxX-r.minX,r.height=r.maxY-r.minY,r},e.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this,e=t.shapeType,n=t.geometry,r=t.shapeFactory,i=n.stateOption,o=r.defaultShapeType,a=r.theme[e]||r.theme[o];this.statesStyle=Object(c.h)({},a,i)}return this.statesStyle},e.prototype.getStateStyle=function(t,e){var n=this.getStatesStyle(),r=Object(c.s)(n,[t,"style"],{}),i=r[e]||r;return Object(c.I)(i)?i(this):i},e.prototype.getAnimateCfg=function(t){var e=this,n=this.animate;if(n){var r=n[t];return r?Object(s.__assign)(Object(s.__assign)({},r),{callback:function(){var t;Object(c.I)(r.callback)&&r.callback(),null===(t=e.geometry)||void 0===t||t.emit(y.AFTER_DRAW_ANIMATE)}}):r}return null},e.prototype.drawShape=function(t,e){var n;void 0===e&&(e=!1);var r=this,i=r.shapeFactory,o=r.container,a=r.shapeType;if(this.shape=i.drawShape(a,t,o),this.shape){this.setShapeInfo(this.shape,t);var l=this.shape.cfg.name;l?Object(c.Q)(l)&&(this.shape.cfg.name=["element",l]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var u=e?"enter":"appear",h=this.getAnimateCfg(u);h&&(null===(n=this.geometry)||void 0===n||n.emit(y.BEFORE_DRAW_ANIMATE),oi(this.shape,h,{coordinate:i.coordinate,toAttrs:Object(s.__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,r;(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,i){var o=this,a;if(void 0===n&&(n=[]),void 0===i&&(i=0),t&&e){var s=t.get("clipShape"),l=e.get("clipShape");if(this.syncShapeStyle(s,l,n,r),t.isGroup())for(var u=t.get("children"),h=e.get("children"),f=0;f<u.length;f++)this.syncShapeStyle(u[f],h[f],n,r,i+f);else{if(!Object(c.G)(n)&&!Object(c.H)(n,["reset"])){var p=t.get("name");Object(c.C)(p)&&(p=p[1]),Object(c.j)(n,(function(t){if(e.get("name")!==si){var n=o.getStateStyle(t,p||i);e.attr(n)}}))}var d=kt(t,e);this.animate?r?(null===(a=this.geometry)||void 0===a||a.emit(y.BEFORE_DRAW_ANIMATE),oi(t,r,{coordinate:this.shapeFactory.coordinate,toAttrs:d,shapeModel:this.model})):Object(c.G)(n)?t.attr(d):(t.stopAnimate(),t.animate(d,{duration:300})):t.attr(d)}}},e.prototype.getShapeType=function(t){var e=Object(c.s)(t,"shape");return Object(c.C)(e)?e[0]:e},e}(F),ui={},hi={};function fi(t){return ui[t.toLowerCase()]}function pi(t,e){ui[t.toLowerCase()]=e}function di(t){return hi[t.toLowerCase()]}function gi(t,e){hi[t.toLowerCase()]=e}var yi={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 Object(c.s)(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=Object(c.s)(i,[t,"default"],{}),a=n.getMarker(e);return Object(c.h)({},o,a)},drawShape:function(t,e,n){var r;return this.getShape(t).draw(e,n)}},vi={coordinate:null,parsePath:function(t){var e=this.coordinate,n=Object(Le.c)(t);return n=e.isPolar?Fe(e,n):Ie(e,n)},parsePoint:function(t){var e;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){}},mi={};function bi(t,e){var n=Object(c.wb)(t),r=Object(s.__assign)(Object(s.__assign)(Object(s.__assign)({},yi),e),{geometryType:t});return mi[n]=r,r}function xi(t,e,n){var r=Object(c.wb)(t),i=mi[r],o=Object(s.__assign)(Object(s.__assign)({},vi),n);return i[e]=o,o}function Oi(t){var e=Object(c.wb)(t);return mi[e]}function ji(t,e,n){var r,i;if(void 0===n&&(n={}),!e)return[t];var o=Object(c.x)(t,e),a=[];if(1===e.length&&n[e[0]]){var l=n[e[0]];try{for(var u=Object(s.__values)(l),h=u.next();!h.done;h=u.next()){var f=h.value,p=o["_".concat(f)];p&&a.push(p)}}catch(t){r={error:t}}finally{try{h&&!h.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}}else for(var d in o)if(o.hasOwnProperty(d)){var g=o[d];a.push(g)}return a}function wi(t,e){return Object(c.nb)(["color","shape","size","x","y","isInCircle","data","style","defaultStyle","points","mappingData"],(function(n){return!Object(c.H)(t[n],e[n])}))}function _i(t){return Object(c.C)(t)?t:t.split("*")}function Mi(t,e){for(var n=[],r=[],i=[],o=new Map,a=0;a<e.length;a++){var s=e[a];t[s]?r.push(s):n.push(s),o.set(s,!0)}return Object.keys(t).forEach((function(t){o.has(t)||i.push(t)})),{added:n,updated:r,removed:i}}var Si,Ci=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,o=e.coordinate,a=e.data,s=e.sortable,c=void 0!==s&&s,l=e.visible,u=void 0===l||l,h=e.theme,f=e.scales,p=void 0===f?{}:f,d=e.scaleDefs,g=void 0===d?{}:d,y=e.intervalPadding,v=e.dodgePadding,m=e.maxColumnWidth,b=e.minColumnWidth,x=e.columnWidthRatio,O=e.roseWidthRatio,j=e.multiplePieWidthRatio,w=e.zIndexReversed,_=e.sortZIndex,M=e.useDeferredLabel;return n.container=r,n.labelsContainer=i,n.coordinate=o,n.data=a,n.sortable=c,n.visible=u,n.userTheme=h,n.scales=p,n.scaleDefs=g,n.intervalPadding=y,n.dodgePadding=v,n.maxColumnWidth=m,n.minColumnWidth=b,n.columnWidthRatio=x,n.roseWidthRatio=O,n.multiplePieWidthRatio=j,n.zIndexReversed=w,n.sortZIndex=_,n.useDeferredLabel=M?"number"==typeof M?M:1/0:null,n}return Object(s.__extends)(e,t),e.prototype.position=function(t){var e=t;Object(c.P)(t)||(e={fields:_i(t)});var n=Object(c.s)(e,"fields");return 1===n.length&&(n.unshift("1"),Object(c.lb)(e,"fields",n)),Object(c.lb)(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(Object(c.Q)(t)||Object(c.P)(t))&&(e=[t]),Object(c.j)(e,(function(t,n){Object(c.O)(t)||(e[n]={type:t})})),this.adjustOption=e,this},e.prototype.style=function(t,e){if(Object(c.Q)(t)){var n=_i(t);this.styleOption={fields:n,callback:e}}else{var r=t,n=r.fields,i=r.callback,o=r.cfg;this.styleOption=n||i||o?t:{cfg:t}}return this},e.prototype.tooltip=function(t,e){if(Object(c.Q)(t)){var n=_i(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(Object(c.Q)(t)){var r={},i=_i(t);r.fields=i,Object(c.I)(e)?r.callback=e:Object(c.P)(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,o=i.attributeOption,a=i.lastAttributeOption;Object(c.H)(o,a)?!e||!n&&Object(c.H)(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,n;void 0===t&&(t=!1),this.animateOption&&(this.animateOption=Object(c.h)({},ii(this.type,this.coordinate),this.animateOption)),this.defaultSize=void 0,this.elementsMap={},this.elements=[],this.getOffscreenGroup().clear();var r=this.beforeMappingData,i=this.beforeMapping(r);this.dataArray=new Array(i.length);for(var o=0;o<i.length;o++){var a=i[o];this.dataArray[o]=this.mapping(a)}if(this.updateElements(this.dataArray,t),this.lastElementsMap=this.elementsMap,this.canDoGroupAnimation(t)){var l=this.container,u=this.type,h=this.coordinate,f=Object(c.s)(this.animateOption,"appear"),p=this.getYScale(),d=h.convert({x:0,y:p.scale(this.getYMinValue())});ai(l,f,u,h,d)}if(this.labelOption){var g=this.useDeferredLabel,y=function(){return e.renderLabels(Object(c.q)(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=Object(s.__assign)({},this.attributeOption),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this,e=t.container,n=t.geometryLabel,r=t.offscreenGroup;e&&e.clear(),n&&n.clear(),r&&r.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(){var e;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 Object(c.j)(this.attributes,(function(e){b.includes(e.type)&&t.push(e)})),t},e.prototype.getDefaultValue=function(t){var e,n=this.getAttribute(t);return n&&Object(c.G)(n.scales)&&(e=n.values[0]),e},e.prototype.getAttributeValues=function(t,e){for(var n=[],r=t.scales,i=0,o=r.length;i<o;i++){var a=r[i],c=a.field;a.isIdentity?n.push(a.values):n.push(e[c])}return t.mapping.apply(t,Object(s.__spreadArray)([],Object(s.__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){var n;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=Object(c.C)(t)?t[0]:t)._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=this.type,o=this.getXScale(),a=this.getYScale(),s=o.field||"x",l,u=e[a.field||"y"],h,f;h="identity"===o.type?o.values[0]:e[s],f="interval"===i||"schema"===i?"".concat(h):"line"===i||"area"===i||"path"===i?i:"".concat(h,"-").concat(u);for(var p=this.groupScales,r=0,d=p.length;r<d;r++){var g,y=p[r].field;f="".concat(f,"-").concat(e[y])}var v=this.getAdjust("dodge");if(v){var m=v.dodgeBy;m&&(f="".concat(f,"-").concat(e[m]))}return this.getAdjust("jitter")&&(f="".concat(f,"-").concat(t.x,"-").concat(t.y)),f},e.prototype.getScaleFields=function(){var t=[],e=new Map,n=this,r=n.attributeOption,i=n.labelOption,o=n.tooltipOption;for(var a in r)if(r.hasOwnProperty(a)){var s=r[a];s.fields?It(s.fields,t,e):s.values&&It(s.values,t,e)}return i&&i.fields&&It(i.fields,t,e),Object(c.O)(o)&&o.fields&&It(o.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++){var o;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){var r;((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=b.length;n<r;n++){var i=b[n],o=this.attributeOption[i];o&&o.fields&&It(o.fields,t,e)}return t},e.prototype.getXYFields=function(){var t=Object(s.__read)(this.attributeOption.position.fields,2),e,n;return[t[0],t[1]]},e.prototype.getXField=function(){return Object(c.s)(this.getXYFields(),[0])},e.prototype.getYField=function(){return Object(c.s)(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++){var i;t[r].sort((function(t,r){return e.translate(t._origin[n])-e.translate(r._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(Oi(t))return this.shapeFactory||(this.shapeFactory=Object(c.e)(Oi(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(),r,i;return{x:this.normalizeValues(t[e.field],e),y:i=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),o=this.getShapeFactory(),a=new li({shapeFactory:o,container:r,offscreenGroup:this.getOffscreenGroup(),elementIndex:e});return a.animate=this.animateOption,a.geometry=this,a.draw(i,n),a},e.prototype.getDrawCfg=function(t){var e=t._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=Object(c.s)(i,[r,"default"],{}).style,!n.defaultStyle&&this.getShapeFactory()&&(n.defaultStyle=this.getShapeFactory().getDefaultStyle(i));var o=this.styleOption;return o&&(n.style=this.getStyleCfg(o,e)),this.generatePoints&&(n.points=t.points,n.nextPoints=t.nextPoints),n},e.prototype.updateElements=function(t,e){var n,r,i,o,a,c;void 0===e&&(e=!1);for(var l=new Map,u=[],h=new Map,f=0,p=0;p<t.length;p++)for(var d=t[p],g=0;g<d.length;g++){var y=d[g],v=this.getElementId(y),m=l.has(v)?"".concat(v,"-").concat(p,"-").concat(g):v;u.push(m),l.set(m,y),h.set(m,f),f++}this.elements=new Array(f);var b=Mi(this.lastElementsMap,u),x=b.added,O=b.updated,j=b.removed;try{for(var w=Object(s.__values)(x),_=w.next();!_.done;_=w.next()){var v=_.value,y=l.get(v),p=h.get(v),M=this.createElement(y,p,e);this.elements[p]=M,this.elementsMap[v]=M,M.shape&&M.shape.set("zIndex",this.zIndexReversed?this.elements.length-p:p)}}catch(t){n={error:t}}finally{try{_&&!_.done&&(r=w.return)&&r.call(w)}finally{if(n)throw n.error}}try{for(var S=Object(s.__values)(O),C=S.next();!C.done;C=S.next()){var v=C.value,M=this.lastElementsMap[v],y=l.get(v),A=this.getDrawCfg(y),k=M.getModel(),p=h.get(v);(this.isCoordinateChanged||wi(A,k))&&(M.animate=this.animateOption,M.update(A)),this.elements[p]=M,this.elementsMap[v]=M,M.shape&&M.shape.set("zIndex",this.zIndexReversed?this.elements.length-p:p)}}catch(t){i={error:t}}finally{try{C&&!C.done&&(o=S.return)&&o.call(S)}finally{if(i)throw i.error}}this.container&&this.container.sort();try{for(var T=Object(s.__values)(j),E=T.next();!E.done;E=T.next()){var v=E.value,M;(M=this.lastElementsMap[v]).animate=this.animateOption,M.destroy()}}catch(t){a={error:t}}finally{try{E&&!E.done&&(c=T.return)&&c.call(T)}finally{if(a)throw a.error}}},e.prototype.getLabelType=function(){var t=this,e=t.labelOption,n=t.coordinate,r=t.type,i=n.type,o=n.isTransposed,a=Object(c.s)(e,["cfg","type"]);return a||(a="polar"===i?o?"pie":"polar":"theta"===i?"pie":"interval"===r||"polygon"===r?"interval":"base"),a},e.prototype.getYMinValue=function(){var t=this.getYScale(),e=t.min,n=t.max,r;return r=e>=0?e:n<=0?n:0},e.prototype.createAttrOption=function(t,e,n){if(Object(c.K)(e)||Object(c.O)(e))Object(c.O)(e)&&Object(c.H)(Object.keys(e),["values"])?Object(c.lb)(this.attributeOption,t,{fields:e.values}):Object(c.lb)(this.attributeOption,t,e);else{var r={};Object(c.M)(e)?r.values=[e]:r.fields=_i(e),n&&(Object(c.I)(n)?r.callback=n:r.values=n),Object(c.lb)(this.attributeOption,t,r)}},e.prototype.initAttributes=function(){var t=this,e=this,n=e.attributes,r=e.attributeOption,i=e.theme,o=e.shapeType;this.groupScales=[];var a={},l=function(e){if(r.hasOwnProperty(e)){var l=r[e];if(!l)return{value:void 0};var u=Object(s.__assign)({},l),h=u.callback,f=u.values,p=u.fields,d,g=(void 0===p?[]:p).map((function(n){var r=t.scales[n],i;!a[n]&&b.includes(e)&&("cat"===Xt(r,Object(c.s)(t.scaleDefs,n),e,t.type)&&(t.groupScales.push(r),a[n]=!0));return r}));u.scales=g,"position"!==e&&1===g.length&&"identity"===g[0].type?u.values=g[0].values:h||f||("size"===e?u.values=i.sizes:"shape"===e?u.values=i.shapes[o]||[]:"color"===e&&(g.length?u.values=g[0].values.length<=10?i.colors10:i.colors20:u.values=i.colors10));var y=J(e);n[e]=new y(u)}};for(var u in r){var h=l(u);if("object"==typeof h)return h.value}},e.prototype.processData=function(t){var e,n;this.hasSorted=!1;for(var r,i=this.getAttribute("position").scales.filter((function(t){return t.isCategory})),o=this.groupData(t),a=[],c=0,l=o.length;c<l;c++){for(var u=o[c],h=[],f=0,p=u.length;f<p;f++){var d=u[f],g={};for(var y in d)g[y]=d[y];g._origin=d;try{for(var v=(e=void 0,Object(s.__values)(i)),m=v.next();!m.done;m=v.next()){var b=m.value,x=b.field;g[x]=b.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}}h.push(g)}a.push(h)}var O=this.adjustData(a);return this.beforeMappingData=O,O},e.prototype.adjustData=function(t){var e=this.adjustOption,n=this,r=n.intervalPadding,i=n.dodgePadding,o=n.theme,a=this.maxColumnWidth||o.maxColumnWidth,l=this.minColumnWidth||o.minColumnWidth,u=this.columnWidthRatio||o.columnWidthRatio,h=t;if(e){var f=this.getXScale(),p=this.getYScale(),d=f.field,g=p?p.field:null,y=Dt(this.coordinate),v=f.values.length,m=this.getAttribute("size"),b=void 0;m&&(b=m.values[0]);for(var x=0,O=e.length;x<O;x++){var j=e[x],w=Object(s.__assign)({xField:d,yField:g,intervalPadding:r,dodgePadding:i,xDimensionLength:y,groupNum:v,defaultSize:b,maxColumnWidth:a,minColumnWidth:l,columnWidthRatio:u},j),_=j.type;if("dodge"===_){var M=[];if(f.isCategory||"identity"===f.type)M.push("x");else{if(p)throw new Error("dodge is not support linear attribute, please use category attribute!");M.push("y")}w.adjustNames=M,w.dodgeRatio=u}else if("stack"===_){var S=this.coordinate;if(!p){w.height=S.getHeight();var C=this.getDefaultValue("size")||3;w.size=C}!S.isTransposed&&Object(c.K)(w.reverseOrder)&&(w.reverseOrder=!0)}var A=Object(B.getAdjust)(_);w.dimValuesMap={},f&&f.values&&(w.dimValuesMap[f.field]=f.values.map((function(t){return f.translate(t)})));var k=new A(w);h=k.process(h),this.adjusts[_]=k}}return h},e.prototype.groupData=function(t){for(var e=this.getGroupScales(),n=this.scaleDefs,r={},i=[],o=0;o<e.length;o++){var a,s=e[o].field;i.push(s),Object(c.s)(n,[s,"values"])&&(r[s]=n[s].values)}return ji(t,i,r)},e.prototype.updateStackRange=function(t,e){for(var n=Object(c.q)(e),r=t.field,i=t.min,o=t.max,a=0;a<n.length;a++){var s=n[a],l=Math.min.apply(null,s[r]),u=Math.max.apply(null,s[r]);l<i&&(i=l),u>o&&(o=u)}var h=this.scaleDefs,f={};i<t.min&&!Object(c.s)(h,[r,"min"])&&(f.min=i),o>t.max&&!Object(c.s)(h,[r,"max"])&&(f.max=o),t.change(f)},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 o=e[n+1];o&&(this.generateShapePoints(o),i[0].nextPoints=o[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],o=this.createShapePointsCfg(i),a=n?this.getAttributeValues(n,i):null,s=e.getShapePoints(a,o);i.points=s}},e.prototype.normalizeValues=function(t,e){var n=[];if(Object(c.C)(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],o={_origin:i._origin,points:i.points,nextPoints:i.nextPoints};for(var a in e)if(e.hasOwnProperty(a)){var s=e[a],l=s.names,u=this.getAttributeValues(s,i);if(l.length>1)for(var h=0;h<u.length;h+=1){var f=u[h],p;o[l[h]]=Object(c.C)(f)&&1===f.length?f[0]:f}else o[l[0]]=1===u.length?u[0]:u}this.convertPoint(o),n.push(o)}return n},e.prototype.convertPoint=function(t){var e=t.x,n=t.y,r,i,o,a=this.coordinate;if(Object(c.C)(e)&&Object(c.C)(n)){r=[],i=[];for(var s=0,l=0,u=e.length,h=n.length;s<u&&l<h;s+=1,l+=1)o=a.convert({x:e[s],y:n[l]}),r.push(o.x),i.push(o.y)}else if(Object(c.C)(n)){i=[];for(var f=0;f<n.length;f++){var p=n[f];o=a.convert({x:e,y:p}),r&&r!==o.x?(Object(c.C)(r)||(r=[r]),r.push(o.x)):r=o.x,i.push(o.y)}}else if(Object(c.C)(e)){r=[];for(var f=0;f<e.length;f++){var d=e[f];o=a.convert({x:d,y:n}),i&&i!==o.y?(Object(c.C)(i)||(i=[i]),i.push(o.y)):i=o.y,r.push(o.x)}}else{var g=a.convert({x:e,y:n});r=g.x,i=g.y}t.x=r,t.y=i},e.prototype.getStyleCfg=function(t,e){var n=t.fields,r=void 0===n?[]:n,i=t.callback,o=t.cfg;if(o)return o;var a=r.map((function(t){return e[t]}));return i.apply(void 0,Object(s.__spreadArray)([],Object(s.__read)(a),!1))},e.prototype.setCfg=function(t){var e=this,n=t.coordinate,r=t.data,i=t.theme,o=t.scaleDefs;n&&(this.coordinate=n),r&&(this.data=r),o&&(this.scaleDefs=o,this.idFields=[],Object(c.j)(o,(function(t,n){t&&t.key&&e.idFields.push(n)}))),i&&(this.theme=this.userTheme?Object(c.h)({},i,this.userTheme):i)},e.prototype.renderLabels=function(t,e){return void 0===e&&(e=!1),Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,a,l,u,h,f,p,d,g,v=this;return Object(s.__generator)(this,(function(m){switch(m.label){case 0:return n=this.geometryLabel,this.emit(y.BEFORE_RENDER_LABEL),n||(r=this.getLabelType(),i=fi(r),n=new i(this),this.geometryLabel=n),[4,n.render(t,e)];case 1:m.sent(),o=n.labelsRenderer.shapesMap,a=new Map,Object(c.j)(o,(function(t,e){for(var n=t.getChildren()||[],r=0;r<n.length;r++){var i=n[r],o=v.elementsMap[i.get("elementId")||e.split(" ")[0]];if(o){i.cfg.name=["element","label"],i.cfg.element=o;var s=a.get(o)||new Set;s.add(t),a.set(o,s)}}}));try{for(l=Object(s.__values)(a.entries()),u=l.next();!u.done;u=l.next())h=Object(s.__read)(u.value,2),f=h[0],p=h[1],f.labelShape=Object(s.__spreadArray)([],Object(s.__read)(p),!1)}catch(t){d={error:t}}finally{try{u&&!u.done&&(g=l.return)&&g.call(l)}finally{if(d)throw d.error}}return this.emit(y.AFTER_RENDER_LABEL),[2]}}))}))},e.prototype.canDoGroupAnimation=function(t){return!t&&this.animateOption&&(void 0===Object(c.s)(this.animateOption,"appear")||Object(c.s)(this.animateOption,"appear")&&void 0===Object(c.s)(this.animateOption,["appear","animation"]))},e}(F),Ai=et.a.transform;function ki(t,e,n){var r=Ai(t.getMatrix(),[["t",e,n]]);t.setMatrix(r)}function Ti(t,e){var n=t.attr(),r=n.x,i=n.y,o;return Ai(t.getMatrix(),[["t",-r,-i],["r",e],["t",r,i]])}function Ei(t,e){var n=Ti(t,e);t.setMatrix(n)}function Pi(){return[1,0,0,0,1,0,0,0,1]}function Ii(t,e){var n=t.getBBox(),r=(n.minX+n.maxX)/2,i=(n.minY+n.maxY)/2;t.applyToMatrix([r,i,1]);var o=Ai(t.getMatrix(),[["t",-r,-i],["s",e,e],["t",r,i]]);t.setMatrix(o)}function Fi(t){return t.find((function(t){return"text"===t.get("type")}))}function Li(t,e,n){void 0===n&&(n=[0,0,0,0]);var r=t&&t.getChildren()[0];if(r){var i=r.clone();(null==e?void 0:e.rotate)&&Ei(i,-e.rotate);var o=i.getCanvasBBox(),a=o.x,s=o.y,l=o.width,u=o.height;i.destroy();var h=n;return Object(c.K)(h)?h=[2,2,2,2]:Object(c.M)(h)&&(h=new Array(4).fill(h)),{x:a-h[3],y:s-h[0],width:l+h[1]+h[3],height:u+h[0]+h[2],rotation:(null==e?void 0:e.rotate)||0}}return{x:0,y:0,width:0,height:0,rotation:0}}function Bi(t,e,n){var r,i;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))}function Di(t,e){var n=t.getBBox();return Object(c.nb)(e,(function(t){var e=t.getBBox();return Bi(n,e,2)>0}))}function Ri(t,e,n){var r=n.data,i=n.origin,o=n.animateCfg,a=n.coordinate,s=Object(c.s)(o,"update");t.set("data",r),t.set("origin",i),t.set("animateCfg",o),t.set("coordinate",a),t.set("visible",e.get("visible")),(t.getChildren()||[]).forEach((function(c,l){var u=e.getChildByIndex(l);if(u){c.set("data",r),c.set("origin",i),c.set("animateCfg",o),c.set("coordinate",a);var h=kt(c,u);s?oi(c,s,{toAttrs:h,coordinate:a}):c.attr(h),u.isGroup()&&Ri(c,u,n)}else t.removeChild(c),c.remove(!0)})),Object(c.j)(e.getChildren(),(function(e,n){n>=t.getCount()&&(e.destroyed||t.add(e))}))}var Ni,zi=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),Object(s.__awaiter)(this,void 0,void 0,(function(){var r,i,o,a,l,u,h,f,p=this;return Object(s.__generator)(this,(function(d){switch(d.label){case 0:if(r={},i=this.createOffscreenGroup(),!t.length)return[3,2];try{for(o=Object(s.__values)(t),a=o.next();!a.done;a=o.next())(l=a.value)&&(r[l.id]=this.renderLabel(l,i))}catch(t){h={error:t}}finally{try{a&&!a.done&&(f=o.return)&&f.call(o)}finally{if(h)throw h.error}}return[4,this.doLayout(t,e,r)];case 1:d.sent(),this.renderLabelLine(t,r),this.renderLabelBackground(t,r),this.adjustLabel(t,r),d.label=2;case 2:return u=this.shapesMap,Object(c.j)(r,(function(t,e){if(t.destroyed)delete r[e];else{if(u[e]){var i=t.get("data"),o=t.get("origin"),a=t.get("coordinate"),l=t.get("animateCfg"),h=u[e];Ri(h,r[e],{data:i,origin:o,animateCfg:l,coordinate:a}),r[e]=h}else{if(p.container.destroyed)return;p.container.add(t);var f=Object(c.s)(t.get("animateCfg"),n?"enter":"appear");f&&oi(t,f,{toAttrs:Object(s.__assign)({},t.attr()),coordinate:t.get("coordinate")})}delete u[e]}})),Object(c.j)(u,(function(t){var e=Object(c.s)(t.get("animateCfg"),"leave");e?oi(t,e,{toAttrs:null,coordinate:t.get("coordinate")}):t.remove(!0)})),this.shapesMap=r,i.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=t.id,r=t.elementId,i=t.data,o=t.mappingData,a=t.coordinate,l=t.animate,u=t.content,h,f={id:n,elementId:r,capture:t.capture,data:i,origin:Object(s.__assign)(Object(s.__assign)({},o),{data:o._origin}),coordinate:a},p=e.addGroup(Object(s.__assign)({name:"label",animateCfg:!1!==this.animate&&null!==l&&!1!==l&&Object(c.h)({},this.animate,l)},f)),d;if(u.isGroup&&u.isGroup()||u.isShape&&u.isShape()){var g=u.getCanvasBBox(),y=g.width,v=g.height,m=Object(c.s)(t,"textAlign","left"),b=t.x,x;"center"===m?b-=y/2:"right"!==m&&"end"!==m||(b-=y),ki(u,b,t.y-v/2),d=u,p.add(u)}else{var O=Object(c.s)(t,["style","fill"]);d=p.addShape("text",Object(s.__assign)({attrs:Object(s.__assign)(Object(s.__assign)({x:t.x,y:t.y,textAlign:t.textAlign,textBaseline:Object(c.s)(t,"textBaseline","middle"),text:t.content},t.style),{fill:Object(c.L)(O)?t.color:O})},f))}return t.rotate&&Ei(d,t.rotate),p},t.prototype.doLayout=function(t,e,n){return Object(s.__awaiter)(this,void 0,void 0,(function(){var r,i=this;return Object(s.__generator)(this,(function(o){switch(o.label){case 0:return this.layout?(r=Object(c.C)(this.layout)?this.layout:[this.layout],[4,Promise.all(r.map((function(r){var o=di(Object(c.s)(r,"type",""));if(o){var a=[],s=[];return Object(c.j)(n,(function(t,n){a.push(t),s.push(e[t.get("elementId")])})),o(t,a,s,i.region,r.cfg)}})))]):[3,2];case 1:o.sent(),o.label=2;case 2:return[2]}}))}))},t.prototype.renderLabelLine=function(t,e){Object(c.j)(t,(function(t){var n=Object(c.s)(t,"coordinate");if(t&&n){var r=n.getCenter(),i=n.getRadius();if(t.labelLine){var o=Object(c.s)(t,"labelLine",{}),a=t.id,l=o.path;if(!l){var u=_t(r.x,r.y,i,t.angle);l=[["M",u.x,u.y],["L",t.x,t.y]]}var h=e[a];h.destroyed||h.addShape("path",{capture:!1,attrs:Object(s.__assign)({path:l,stroke:t.color?t.color:Object(c.s)(t,["style","fill"],"#000"),fill:null},o.style),id:a,origin:t.mappingData,data:t.data,coordinate:t.coordinate})}}}))},t.prototype.renderLabelBackground=function(t,e){Object(c.j)(t,(function(t){var n=Object(c.s)(t,"coordinate"),r=Object(c.s)(t,"background");if(r&&n){var i=t.id,o=e[i];if(!o.destroyed){var a=o.getChildren()[0];if(a){var l=Li(o,t,r.padding),u=l.rotation,h=Object(s.__rest)(l,["rotation"]),f=o.addShape("rect",{attrs:Object(s.__assign)(Object(s.__assign)({},h),r.style||{}),id:i,origin:t.mappingData,data:t.data,coordinate:t.coordinate});if(f.setZIndex(-1),u){var p=a.getMatrix();f.setMatrix(p)}}}}}))},t.prototype.createOffscreenGroup=function(){var t,e,n;return new(this.container.getGroupBase())({})},t.prototype.adjustLabel=function(t,e){Object(c.j)(t,(function(t){if(t){var n=t.id,r=e[n];if(!r.destroyed){var i=r.findAll((function(t){return"path"!==t.get("type")}));Object(c.j)(i,(function(e){e&&(t.offsetX&&e.attr("x",e.attr("x")+t.offsetX),t.offsetY&&e.attr("y",e.attr("y")+t.offsetY))}))}}}))},t}();function Yi(t){var e=0;return Object(c.j)(t,(function(t){e+=t})),e/t.length}var Gi,Hi=function(){function t(t){this.geometry=t}return t.prototype.getLabelItems=function(t){var e=this,n=[],r=this.getLabelCfgs(t);return Object(c.j)(t,(function(t,i){var o=r[i];if(!o||Object(c.K)(t.x)||Object(c.K)(t.y))n.push(null);else{var a=Object(c.C)(o.content)?o.content:[o.content];o.content=a;var l=a.length;Object(c.j)(a,(function(r,i){if(Object(c.K)(r)||""===r)n.push(null);else{var a=Object(s.__assign)(Object(s.__assign)({},o),e.getLabelPoint(o,t,i));a.textAlign||(a.textAlign=e.getLabelAlign(a,i,l)),a.offset<=0&&(a.labelLine=null),n.push(a)}}))}})),n},t.prototype.render=function(t,e){return void 0===e&&(e=!1),Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i;return Object(s.__generator)(this,(function(o){switch(o.label){case 0:return n=this.getLabelItems(t),r=this.getLabelsRenderer(),i=this.getGeometryShapes(),[4,r.render(n,i,e)];case 1:return o.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,i=n.theme;return"polygon"===r||"interval"===r&&"middle"===e||t<0&&!["line","point","path"].includes(r)?Object(c.s)(i,"innerLabels",{}):Object(c.s)(i,"labels",{})},t.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),r=e.type,i=e.theme,o;return o="polygon"===r||t.offset<0&&!["line","point","path"].includes(r)?Object(c.h)({},n,i.innerLabels,t):Object(c.h)({},n,i.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,o=this.getCoordinate().isTransposed,a=o?"x":"y",s=o?1:-1,c={x:0,y:0};return c[a]=e>0||1===n?r*s:r*s*-1,c},t.prototype.getLabelPoint=function(t,e,n){var r=this.getCoordinate(),i=t.content.length;function o(e,n,r){void 0===r&&(r=!1);var i=e;return Object(c.C)(i)&&(i=1===t.content.length?r?Yi(i):i.length<=2?i[e.length-1]:Yi(i):i[n]),i}var a={content:t.content[n],x:0,y:0,start:{x:0,y:0},color:"#fff"},s=Object(c.C)(e.shape)?e.shape[0]:e.shape,l="funnel"===s||"pyramid"===s;if("polygon"===this.geometry.type){var u=At(e.x,e.y);a.x=u[0],a.y=u[1]}else"interval"!==this.geometry.type||l?(a.x=o(e.x,n),a.y=o(e.y,n)):(a.x=o(e.x,n,!0),a.y=o(e.y,n));if(l){var h=Object(c.s)(e,"nextPoints"),f=Object(c.s)(e,"points");if(h){var p=r.convert(f[1]),d=r.convert(h[1]);a.x=(p.x+d.x)/2,a.y=(p.y+d.y)/2}else if("pyramid"===s){var p=r.convert(f[1]),d=r.convert(f[2]);a.x=(p.x+d.x)/2,a.y=(p.y+d.y)/2}}t.position&&this.setLabelPosition(a,e,n,t.position);var g=this.getLabelOffsetPoint(t,n,i);return a.start={x:a.x,y:a.y},a.x+=g.x,a.y+=g.y,a.color=e.color,a},t.prototype.getLabelAlign=function(t,e,n){var r="center",i;if(this.getCoordinate().isTransposed){var o=t.offset;r=o<0?"right":0===o?"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._origin,a=e.getElementId(t);return"line"===n||"area"===n?a+=" ".concat(o[r.field]):"path"===n&&(a+=" ".concat(o[r.field],"-").concat(o[i.field])),a},t.prototype.getLabelsRenderer=function(){var t=this.geometry,e=t.labelsContainer,n=t.labelOption,r=t.canvasRegion,i=t.animateOption,o=this.geometry.coordinate,a=this.labelsRenderer;return a||(a=new zi({container:e,layout:Object(c.s)(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=a),a.region=r,a.animate=!!i&&ii("label",o),a},t.prototype.getLabelCfgs=function(t){var e=this,n=this.geometry,r=n.labelOption,i=n.scales,o=n.coordinate,a=r,l=a.fields,u=a.callback,h=a.cfg,f=l.map((function(t){return i[t]})),p=[];return Object(c.j)(t,(function(t,n){var r=t._origin,i=e.getLabelText(r,f),a;if(u){var d=l.map((function(t){return r[t]}));if(a=u.apply(void 0,Object(s.__spreadArray)([],Object(s.__read)(d),!1)),Object(c.K)(a))return void p.push(null)}var g=Object(s.__assign)(Object(s.__assign)({id:e.getLabelId(t),elementId:e.geometry.getElementId(t),data:r,mappingData:t,coordinate:o},h),a);Object(c.I)(g.position)&&(g.position=g.position(r,t,n));var y=e.getLabelOffset(g.offset||0),v=e.getDefaultLabelCfg(y,g.position);(g=Object(c.h)({},v,g)).offset=e.getLabelOffset(g.offset||0);var m=g.content;Object(c.I)(m)?g.content=m(r,t,n):Object(c.S)(m)&&(g.content=i[0]),p.push(g)})),p},t.prototype.getLabelText=function(t,e){var n=[];return Object(c.j)(e,(function(e){var r=t[e.field];r=Object(c.C)(r)?r.map((function(t){return e.getText(t)})):e.getText(r),Object(c.K)(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 Object(c.M)(t)&&(n=t),e.isTransposed?e.applyMatrix(n,0):e.applyMatrix(0,n)},t.prototype.getGeometryShapes=function(){var t=this.geometry,e={};return Object(c.j)(t.elementsMap,(function(t,n){e[n]=t.shape})),Object(c.j)(t.getOffscreenGroup().getChildren(),(function(n){var r=t.getElementId(n.get("origin").mappingData);e[r]=n})),e},t}();function Vi(t,e,n){if(!t)return n;var r;if(t.callback&&t.callback.length>1){var i=Array(t.callback.length-1).fill("");r=t.mapping.apply(t,Object(s.__spreadArray)([e],Object(s.__read)(i),!1)).join("")}else r=t.mapping(e).join("");return r||n}var Wi={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]]}},Xi=["line","cross","tick","plus","hyphen"];function $i(t,e){return Object(c.I)(e)?e(t):Object(c.h)({},t,e)}function qi(t,e){var n=t.symbol;if(Object(c.Q)(n)&&-1!==Xi.indexOf(n)){var r=Object(c.s)(t,"style",{}),i=Object(c.s)(r,"lineWidth",1),o=r.stroke||r.fill||e;t.style=Object(c.h)({},t.style,{lineWidth:i,stroke:o,fill:null})}}function Ui(t){var e=t.symbol;Object(c.Q)(e)&&Wi[e]&&(t.symbol=Wi[e])}function Ki(t){return t.startsWith(u.LEFT)||t.startsWith(u.RIGHT)?"vertical":"horizontal"}function Zi(t,e,n,r,i){var o=n.getScale(n.type);if(o.isCategory){var a=o.field,l=e.getAttribute("color"),u=e.getAttribute("shape"),h=t.getTheme().defaultColor,f=e.coordinate.isPolar;return o.getTicks().map((function(n,p){var d,g=n.text,y=n.value,v=g,m=o.invert(y),b=0===t.filterFieldData(a,[(d={},d[a]=m,d)]).length;Object(c.j)(t.views,(function(t){var e;t.filterFieldData(a,[(e={},e[a]=m,e)]).length||(b=!0)}));var x=Vi(l,m,h),O=Vi(u,m,"point"),j=e.getShapeMarker(O,{color:x,isInPolar:f}),w=i;return Object(c.I)(w)&&(w=w(v,p,Object(s.__assign)({name:v,value:m},Object(c.h)({},r,j)))),qi(j=Object(c.h)({},r,j,Pt(Object(s.__assign)({},w),["style"])),x),w&&w.style&&(j.style=$i(j.style,w.style)),Ui(j),{id:m,name:v,value:m,marker:j,unchecked:b}}))}return[]}function Qi(t,e,n){return n.map((function(n,r){var i=e;Object(c.I)(i)&&(i=i(n.name,r,Object(c.h)({},t,n)));var o=Object(c.I)(n.marker)?n.marker(n.name,r,Object(c.h)({},t,n)):n.marker,a=Object(c.h)({},t,i,o);return Ui(a),n.marker=a,n}))}function Ji(t,e){var n=Object(c.s)(t,["components","legend"],{});return Object(c.h)({},Object(c.s)(n,["common"],{}),Object(c.h)({},Object(c.s)(n,[e],{})))}function to(t){return!t&&(null==t||isNaN(t))}function eo(t){if(Object(c.C)(t))return to(t[1].y);var e=t.y;return Object(c.C)(e)?to(e[0]):to(e)}function no(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,o=t.length;i<o;i++){var a;eo(a=t[i])||r.push(a)}return[r]}for(var s=[],c=[],i=0,o=t.length;i<o;i++){var a;eo(a=t[i])?c.length&&((1!==c.length||n)&&s.push(c),c=[]):c.push(a)}return c.length&&s.push(c),s}function ro(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 o=t[0];return o&&(e.push(["L",o.x,o.y]),e.push(["z"])),e}function io(t){for(var e=t.length/2,n=[],r=[],i=0;i<t.length;i++)i<e?n.push(t[i]):r.push(t[i]);var o=Pe(n,!1),a=Pe(r,!1);r.length&&o.push(["L",r[0].x,r[0].y]),a.shift();var s=o.concat(a);return n.length&&s.push(["L",n[0].x,n[0].y]),s.push(["z"]),s}function oo(t,e,n,r){void 0===r&&(r="");var i=t.style,o=void 0===i?{}:i,a=t.defaultStyle,l=t.color,u=t.size,h=Object(s.__assign)(Object(s.__assign)({},a),o);return l&&(e&&(o.stroke||(h.stroke=l)),n&&(o.fill||(h.fill=l))),r&&Object(c.K)(o[r])&&!Object(c.K)(u)&&(h[r]=u),h}function ao(t){return Object(c.h)({},{fill:"#CCD6EC",fillOpacity:.3},Object(c.s)(t,["background","style"]))}function so(t){var e=t.x,n;return(Object(c.C)(t.y)?t.y:[t.y]).map((function(t,n){return{x:Object(c.C)(e)?e[n]:e,y:t}}))}var co={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]]}};function lo(t,e){var n=t.color;return{symbol:co[e],style:{lineWidth:2,r:6,stroke:n}}}function uo(t,e,n){for(var r=t.isStack,i=t.connectNulls,o=t.isInCircle,a=t.showSinglePoint,s=oo(t,!0,!1,"lineWidth"),c=no(t.points,i,a),l=[],u=0,h=c.length;u<h;u++){var f=c[u];l=l.concat(po(f,o,r,e,n,s))}return s.path=l,s}function ho(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}),o=Pe(t,!1,r)):(o=Ee(t,!1),e&&o.push(["Z"])),o);var o}function fo(t,e,n,r,i,o){var a=[],s=[];Object(c.j)(t,(function(t){var e=so(t);a.push(e[1]),s.push(e[0])}));var l=ho(a,e,r,i,o),u=ho(s,e,r,i,o);return n?l:l.concat(u)}function po(t,e,n,r,i,o){if(t.length){var a=t[0];return Object(c.C)(a.y)?fo(t,e,n,r,i,o):ho(t,e,r,i,o)}return[]}var go=bi("line",{defaultShapeType:"line"});Object(c.j)(["line","dot","dash","smooth"],(function(t){xi("line",t,{draw:function(e,n){var r="smooth"===t,i;if(r){var o=this.coordinate,a=o.start,s=o.end;i=[[a.x,s.y],[s.x,a.y]]}var c=uo(e,r,i),l;return n.addShape({type:"path",attrs:c,name:"line",capture:!r})},getMarker:function(e){return lo(e,t)}})}));var yo=go,vo="4.2.10",mo={getLegendItems:Zi,translate:ki,rotate:Ei,zoom:Ii,transform:Ai,getAngle:Ct,getSectorPath:Mt,polarToCartesian:_t,getDelegationObject:Ve,getTooltipItems:Or,getMappingValue:Vi,getPath:po,getPathPoints:no},bo="#000",xo="#0D0D0D",Oo="#262626",jo="#595959",wo="#8C8C8C",_o="#BFBFBF",Mo="#D9D9D9",So="#F0F0F0",Co="#FFFFFF",Ao="#F2F2F2",ko="#D9D9D9",To="#A6A6A6",Eo="#737373",Po="#404040",Io="#262626",Fo="#0F0F0F",Lo=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],Bo=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],Do=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],Ro,No=function(t){void 0===t&&(t={});var e=t.paletteQualitative10,n=void 0===e?Lo:e,r=t.paletteQualitative20,i=void 0===r?Bo:r,o=t.brandColor,a,c={backgroundColor:"#141414",brandColor:void 0===o?n[0]:o,subColor:"rgba(255,255,255,0.05)",paletteQualitative10:n,paletteQualitative20:i,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:Do,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:Po,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:To,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:Oo,axisTickLineBorderColor:Po,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:Io,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:Eo,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:Io,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:Eo,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:Lo[0],legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:To,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:Eo,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:Eo,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:To,legendPageNavigatorTextFontSize:12,sliderRailFillColor:Io,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:Eo,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:So,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:_o,annotationArcBorderColor:Io,annotationArcBorder:1,annotationLineBorderColor:Po,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:To,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:Co,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:Po,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:To,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:To,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:bo,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:To,overflowLabelFillColorDark:"#2c3542",overflowLabelFillColorLight:"#ffffff",overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:bo,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:Po,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:Lo[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:bo,pointBorderOpacity:1,pointActiveBorderColor:Co,pointSelectedBorder:2,pointSelectedBorderColor:Co,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:Lo[0],hollowPointBorderOpacity:.95,hollowPointFillColor:bo,hollowPointActiveBorder:1,hollowPointActiveBorderColor:Co,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:Co,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:Lo[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:Lo[0],areaFillOpacity:.25,areaActiveFillColor:Lo[0],areaActiveFillOpacity:.5,areaSelectedFillColor:Lo[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:Lo[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:Co,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:Co,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:Lo[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:Co,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:Co,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:Lo[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:bo,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:Co,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:Co,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return Object(s.__assign)(Object(s.__assign)({},c),t)}(),zo=n(137),Yo=n(425),Go,Ho=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,o=e.showSinglePoint,a=void 0===o||o;return n.connectNulls=i,n.showSinglePoint=a,n}return Object(s.__extends)(e,t),e.prototype.updateElements=function(t,e){var n,r,i,o,a,c;void 0===e&&(e=!1);for(var l=new Map,u=new Map,h=[],f=0,p=0;p<t.length;p++){var d=t[p],g=this.getElementId(d);h.push(g),l.set(g,d),u.set(g,f),f++}this.elements=new Array(f);var y=Mi(this.lastElementsMap,h),v=y.added,m=y.updated,b=y.removed;try{for(var x=Object(s.__values)(v),O=x.next();!O.done;O=x.next()){var g=O.value,d=l.get(g),j=this.getShapeFactory(),w=this.getShapeInfo(d),p=u.get(g),_;(_=new li({shapeFactory:j,container:this.container,offscreenGroup:this.getOffscreenGroup(),elementIndex:p})).geometry=this,_.animate=this.animateOption,_.draw(w,e),this.elementsMap[g]=_,this.elements[p]=_}}catch(t){n={error:t}}finally{try{O&&!O.done&&(r=x.return)&&r.call(x)}finally{if(n)throw n.error}}try{for(var M=Object(s.__values)(m),S=M.next();!S.done;S=M.next()){var g=S.value,d=l.get(g),_=this.lastElementsMap[g],p=u.get(g),w=this.getShapeInfo(d),C=_.getModel();(this.isCoordinateChanged||wi(C,w))&&(_.animate=this.animateOption,_.update(w)),this.elementsMap[g]=_,this.elements[p]=_}}catch(t){i={error:t}}finally{try{S&&!S.done&&(o=M.return)&&o.call(M)}finally{if(i)throw i.error}}try{for(var A=Object(s.__values)(b),k=A.next();!k.done;k=A.next()){var g=k.value,_;(_=this.lastElementsMap[g]).animate=this.animateOption,_.destroy()}}catch(t){a={error:t}}finally{try{k&&!k.done&&(c=A.return)&&c.call(A)}finally{if(a)throw a.error}}},e.prototype.getPointsAndData=function(t){for(var e=[],n=[],r=0,i=t.length;r<i;r++){var o=t[r];e.push({x:o.x,y:o.y}),n.push(o._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}(Ci);function Vo(t,e,n,r,i){var o=[];if(t.length){for(var a=[],s=[],l=0,u=t.length;l<u;l++){var h=t[l];a.push(h[1]),s.push(h[0])}s=s.reverse(),Object(c.j)([a,s],(function(t,c){var l=[],u=r.parsePoints(t),h=u[0];1===a.length&&1===s.length?l=0===c?[["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&&u.push({x:h.x,y:h.y}),l=n?Pe(u,!1,i):Ee(u,!1),c>0&&(l[0][0]="L")),o=o.concat(l)})),o.push(["Z"])}return o}function Wo(t,e,n,r,i){for(var o=oo(t,e,!e,"lineWidth"),a=t.connectNulls,s=t.isInCircle,c,l,u=no(t.points,a,t.showSinglePoint),h=[],f=0,p=u.length;f<p;f++){var d=u[f];h=h.concat(Vo(d,s,n,r,i))}return o.path=h,o}function Xo(t){var e=t.start,n=t.end;return[[e.x,n.y],[n.x,e.y]]}var $o=bi("area",{defaultShapeType:"area",getDefaultPoints:function(t){var e=t.x,n=t.y0,r;return(Object(c.C)(t.y)?t.y:[n,t.y]).map((function(t){return{x:e,y:t}}))}});xi("area","area",{draw:function(t,e){var n=Wo(t,!1,!1,this),r;return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){var e;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,fillOpacity:1}}}});var qo=$o,Uo,Ko=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,o=e.sortable,a=void 0!==o&&o,s=e.showSinglePoint,c=void 0!==s&&s;return n.startOnZero=i,n.sortable=a,n.showSinglePoint=c,n}return Object(s.__extends)(e,t),e.prototype.getPointsAndData=function(t){for(var e=[],n=[],r=0,i=t.length;r<i;r++){var o=t[r];e.push(o.points),n.push(o._origin)}return{points:e,data:n}},e.prototype.getYMinValue=function(){return this.startOnZero?t.prototype.getYMinValue.call(this):this.getYScale().min;var e},e}(Ho),Zo=bi("edge",{defaultShapeType:"line",getDefaultPoints:function(t){return so(t)}});xi("edge","line",{draw:function(t,e){var n=oo(t,!0,!1,"lineWidth"),r=Ee(this.parsePoints(t.points),this.coordinate.isPolar);return e.addShape("path",{attrs:Object(s.__assign)(Object(s.__assign)({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}});var Qo=Zo,Jo,ta=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 Object(s.__extends)(e,t),e}(Ci),ea,na=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e.paletteCache={},e}return Object(s.__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(),a=Object(c.s)(this.styleOption,["cfg","shadowBlur"]);Object(c.M)(a)||(a=o/2),this.prepareGreyScaleBlurredCircle(o,a),this.drawWithRange(r,i,o,a)}},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,n=this.getAttribute("color").getFields()[0],r=1/0,i=-1/0;return t.forEach((function(t){var e=t._origin[n];e>i&&(i=e),e<r&&(r=e)})),r===i&&(r=i-1),[r,i]},e.prototype.prepareSize=function(){var t=this.getDefaultValue("size");return Object(c.M)(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,r){var i,o,a=this.coordinate,c=a.start,l=a.end,u=this.coordinate.getWidth(),h=this.coordinate.getHeight(),f,p=this.getAttribute("color").getFields()[0];this.clearShadowCanvasCtx();var d=this.getShadowCanvasCtx();e&&(t=t.filter((function(t){return t._origin[p]<=e[1]&&t._origin[p]>=e[0]})));var g=this.scales[p];try{for(var y=Object(s.__values)(t),v=y.next();!v.done;v=y.next()){var m=v.value,b=this.getDrawCfg(m),x=b.x,O=b.y,j=g.scale(m._origin[p]);this.drawGrayScaleBlurredCircle(x-c.x,O-l.y,n+r,j,d)}}catch(t){i={error:t}}finally{try{v&&!v.done&&(o=y.return)&&o.call(y)}finally{if(i)throw i.error}}var w=d.getImageData(0,0,u,h);this.clearShadowCanvasCtx(),this.colorize(w),d.putImageData(w,0,0);var _=this.getImageShape();_.attr("x",c.x),_.attr("y",l.y),_.attr("width",u),_.attr("height",h),_.attr("img",d.canvas),_.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 o=this.getGrayScaleBlurredCanvas();i.globalAlpha=r,i.drawImage(o,t-n,e-n)},e.prototype.colorize=function(t){for(var e=this.getAttribute("color"),n=t.data,r=this.paletteCache,i=3;i<n.length;i+=4){var o=n[i];if(Object(c.M)(o)){var a=r[o]?r[o]:z.a.rgb2arr(e.gradient(o/256));n[i-3]=a[0],n[i-2]=a[1],n[i-1]=a[2],n[i]=o}}},e.prototype.getImageShape=function(){var t=this.imageShape,e;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._origin}));return Object(s.__assign)(Object(s.__assign)({},e),{mappingData:t,data:n})},e}(Ci);function ra(t){var e,n,r=t.x,i=t.y,o=t.y0,a=t.size,l,u,h,f;Object(c.C)(i)?(l=(e=Object(s.__read)(i,2))[0],u=e[1]):(l=o,u=i),Object(c.C)(r)?(h=(n=Object(s.__read)(r,2))[0],f=n[1]):(h=r-a/2,f=r+a/2);var p=[{x:h,y:l},{x:h,y:u}];return p.push({x:f,y:u},{x:f,y:l}),p}function ia(t,e){void 0===e&&(e=!0);var n=[],r=t[0];n.push(["M",r.x,r.y]);for(var i=1,o=t.length;i<o;i++)n.push(["L",t[i].x,t[i].y]);return e&&(n.push(["L",r.x,r.y]),n.push(["z"])),n}function oa(t,e){var n=0,r=0,i=0,o=0;return Object(c.C)(t)?1===t.length?n=r=i=o=t[0]:2===t.length?(n=i=t[0],r=o=t[1]):3===t.length?(n=t[0],r=o=t[1],i=t[2]):(n=t[0],r=t[1],i=t[2],o=t[3]):n=r=i=o=t,n+r>e&&(r=e-(n=n?e/(1+r/n):0)),i+o>e&&(o=e-(i=i?e/(1+o/i):0)),[n||0,r||0,i||0,o||0]}function aa(t,e,n){var r=[];if(n.isRect){var i=n.isTransposed?{x:n.start.x,y:e[0].y}:{x:e[0].x,y:n.start.y},o=n.isTransposed?{x:n.end.x,y:e[2].y}:{x:e[3].x,y:n.end.y},a=Object(c.s)(t,["background","style","radius"]);if(a){var l=n.isTransposed?Math.abs(e[0].y-e[2].y):e[2].x-e[1].x,u=n.isTransposed?n.getWidth():n.getHeight(),h=Object(s.__read)(oa(a,Math.min(l,u)),4),f=h[0],p=h[1],d=h[2],g=h[3],y=n.isTransposed&&n.isReflect("y"),v=y?0:1,m=function(t){return y?-t:t};r.push(["M",i.x,o.y+m(f)]),0!==f&&r.push(["A",f,f,0,0,v,i.x+f,o.y]),r.push(["L",o.x-p,o.y]),0!==p&&r.push(["A",p,p,0,0,v,o.x,o.y+m(p)]),r.push(["L",o.x,i.y-m(d)]),0!==d&&r.push(["A",d,d,0,0,v,o.x-d,i.y]),r.push(["L",i.x+g,i.y]),0!==g&&r.push(["A",g,g,0,0,v,i.x,i.y-m(g)])}else r.push(["M",i.x,i.y]),r.push(["L",o.x,i.y]),r.push(["L",o.x,o.y]),r.push(["L",i.x,o.y]),r.push(["L",i.x,i.y]);r.push(["z"])}if(n.isPolar){var b=n.getCenter(),x=Ct(t,n),O=x.startAngle,j=x.endAngle;if("theta"===n.type||n.isTransposed){var w=function(t){return Math.pow(t,2)},f=Math.sqrt(w(b.x-e[0].x)+w(b.y-e[0].y)),p=Math.sqrt(w(b.x-e[2].x)+w(b.y-e[2].y));r=Mt(b.x,b.y,f,n.startAngle,n.endAngle,p)}else r=Mt(b.x,b.y,n.getRadius(),O,j)}return r}function sa(t,e,n){var r=n.getWidth(),i=n.getHeight(),o="rect"===n.type,a=[],s=(t[2].x-t[1].x)/2,c=n.isTransposed?s*i/r:s*r/i;return"round"===e?(o?(a.push(["M",t[0].x,t[0].y+c]),a.push(["L",t[1].x,t[1].y-c]),a.push(["A",s,s,0,0,1,t[2].x,t[2].y-c]),a.push(["L",t[3].x,t[3].y+c]),a.push(["A",s,s,0,0,1,t[0].x,t[0].y+c])):(a.push(["M",t[0].x,t[0].y]),a.push(["L",t[1].x,t[1].y]),a.push(["A",s,s,0,0,1,t[2].x,t[2].y]),a.push(["L",t[3].x,t[3].y]),a.push(["A",s,s,0,0,1,t[0].x,t[0].y])),a.push(["z"])):a=ia(t),a}function ca(t,e,n){var r=[];return Object(c.K)(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}function la(t,e){return[e,t]}function ua(t,e,n){var r,i,o,a,c,l,u,h=Object(s.__read)(Object(s.__spreadArray)([],Object(s.__read)(t),!1),4),f=h[0],p=h[1],d=h[2],g=h[3],y=Object(s.__read)("number"==typeof n?Array(4).fill(n):n,4),v=y[0],m=y[1],b=y[2],x=y[3];e.isTransposed&&(p=(r=Object(s.__read)(la(p,g),2))[0],g=r[1]),e.isReflect("y")&&(f=(i=Object(s.__read)(la(f,p),2))[0],p=i[1],d=(o=Object(s.__read)(la(d,g),2))[0],g=o[1]),e.isReflect("x")&&(f=(a=Object(s.__read)(la(f,g),2))[0],g=a[1],p=(c=Object(s.__read)(la(p,d),2))[0],d=c[1]);var O=[],j=function(t){return Math.abs(t)};return v=(l=Object(s.__read)(oa([v,m,b,x],Math.min(j(g.x-f.x),j(p.y-f.y))).map((function(t){return j(t)})),4))[0],m=l[1],b=l[2],x=l[3],e.isTransposed&&(v=(u=Object(s.__read)([x,v,m,b],4))[0],m=u[1],b=u[2],x=u[3]),f.y<p.y?(O.push(["M",g.x,g.y+b]),0!==b&&O.push(["A",b,b,0,0,0,g.x-b,g.y]),O.push(["L",f.x+x,f.y]),0!==x&&O.push(["A",x,x,0,0,0,f.x,f.y+x]),O.push(["L",p.x,p.y-v]),0!==v&&O.push(["A",v,v,0,0,0,p.x+v,p.y]),O.push(["L",d.x-m,d.y]),0!==m&&O.push(["A",m,m,0,0,0,d.x,d.y-m]),O.push(["L",g.x,g.y+b]),O.push(["z"])):g.x<f.x?(O.push(["M",d.x+m,d.y]),0!==m&&O.push(["A",m,m,0,0,0,d.x,d.y+m]),O.push(["L",g.x,g.y-b]),0!==b&&O.push(["A",b,b,0,0,0,g.x+b,g.y]),O.push(["L",f.x-x,f.y]),0!==x&&O.push(["A",x,x,0,0,0,f.x,f.y-x]),O.push(["L",p.x,p.y+v]),0!==v&&O.push(["A",v,v,0,0,0,p.x-v,p.y]),O.push(["L",d.x+m,d.y]),O.push(["z"])):(O.push(["M",p.x,p.y+v]),0!==v&&O.push(["A",v,v,0,0,1,p.x+v,p.y]),O.push(["L",d.x-m,d.y]),0!==m&&O.push(["A",m,m,0,0,1,d.x,d.y+m]),O.push(["L",g.x,g.y-b]),0!==b&&O.push(["A",b,b,0,0,1,g.x-b,g.y]),O.push(["L",f.x+x,f.y]),0!==x&&O.push(["A",x,x,0,0,1,f.x,f.y-x]),O.push(["L",p.x,p.y+v]),O.push(["z"])),O}var ha=bi("interval",{defaultShapeType:"rect",getDefaultPoints:function(t){return ra(t)}});xi("interval","rect",{draw:function(t,e){var n=oo(t,!1,!0),r=e,i=null==t?void 0:t.background,o;if(i){r=e.addGroup({name:"interval-group"});var a=ao(t),c=aa(t,this.parsePoints(t.points),this.coordinate);r.addShape("path",{attrs:Object(s.__assign)(Object(s.__assign)({},a),{path:c}),capture:!1,zIndex:-1,name:si})}o=n.radius&&this.coordinate.isRect?ua(this.parsePoints(t.points),this.coordinate,n.radius):this.parsePath(sa(t.points,n.lineCap,this.coordinate));var l=r.addShape("path",{attrs:Object(s.__assign)(Object(s.__assign)({},n),{path:o}),name:"interval"});return i?r:l},getMarker:function(t){var e=t.color,n;return t.isInPolar?{symbol:"circle",style:{r:4.5,fill:e}}:{symbol:"square",style:{r:4,fill:e}}}});var fa=ha;function pa(t,e){var n=t.length,r=t;Object(c.Q)(r[0])&&(r=t.map((function(t){return e.translate(t)})));for(var i=r[1]-r[0],o=2;o<n;o++){var a=r[o]-r[o-1];i>a&&(i=a)}return i}function da(t,e){if(e){var n=Object(c.q)(t),r;return Object(c.yb)(n,e).length}return t.length}function ga(t){var e=t.theme,n=t.coordinate,r=t.getXScale(),i=r.values,o=t.beforeMappingData,a=i.length,s=Dt(t.coordinate),l=t.intervalPadding,u=t.dodgePadding,h=t.maxColumnWidth||e.maxColumnWidth,f=t.minColumnWidth||e.minColumnWidth,p=t.columnWidthRatio||e.columnWidthRatio,d=t.multiplePieWidthRatio||e.multiplePieWidthRatio,g=t.roseWidthRatio||e.roseWidthRatio;if(r.isLinear&&i.length>1){i.sort();var y=pa(i,r);a=(r.max-r.min)/y,i.length>a&&(a=i.length)}var v=r.range,m=1/a,b=1,x;(n.isPolar?b=n.isTransposed&&a>1?d:g:(r.isLinear&&(m*=v[1]-v[0]),b=p),!Object(c.K)(l)&&l>=0)?m=(1-(a-1)*(l/s))/a:m*=b;if(t.getAdjust("dodge")){var O,j,w=da(o,t.getAdjust("dodge").dodgeBy),_;if(!Object(c.K)(u)&&u>=0)m=(m-u/s*(w-1))/w;else!Object(c.K)(l)&&l>=0?(m*=b,m/=w):m/=w;m=m>=0?m:0}if(!Object(c.K)(h)&&h>=0){var M=h/s;m>M&&(m=M)}if(!Object(c.K)(f)&&f>=0){var S=f/s;m<S&&(m=S)}return m}var ya,va=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 Object(s.__extends)(e,t),e.prototype.createShapePointsCfg=function(e){var n=t.prototype.createShapePointsCfg.call(this,e),r,i=this.getAttribute("size"),o,a;i?(r=this.getAttributeValues(i,e)[0],r/=Dt(this.coordinate)):(this.defaultSize||(this.defaultSize=ga(this)),r=this.defaultSize);return n.size=r,n},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:Zt(e)});else{var n=this.scaleDefs,r=e.field,i=e.min,o=e.max,a;"time"!==e.type&&(i>0&&!Object(c.s)(n,[r,"min"])&&e.change({min:0}),o<=0&&!Object(c.s)(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}(Ci),ma,ba=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 Object(s.__extends)(e,t),e}(Ho),xa=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],Oa=["cross","tick","plus","hyphen","line"];function ja(t,e,n,r,i){var o,a,c=oo(e,i,!i,"r"),l=t.parsePoints(e.points),u=l[0];if(e.isStack)u=l[1];else if(l.length>1){var h=n.addGroup();try{for(var f=Object(s.__values)(l),p=f.next();!p.done;p=f.next()){var d=p.value;h.addShape({type:"marker",attrs:Object(s.__assign)(Object(s.__assign)(Object(s.__assign)({},c),{symbol:Wi[r]||r}),d)})}}catch(t){o={error:t}}finally{try{p&&!p.done&&(a=f.return)&&a.call(f)}finally{if(o)throw o.error}}return h}return n.addShape({type:"marker",attrs:Object(s.__assign)(Object(s.__assign)(Object(s.__assign)({},c),{symbol:Wi[r]||r}),u)})}var wa=bi("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(t){return so(t)}});Object(c.j)(xa,(function(t){xi("point","hollow-".concat(t),{draw:function(e,n){return ja(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:Wi[t]||t,style:{r:4.5,stroke:n,fill:null}}}})}));var _a=wa,Ma,Sa=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 Object(s.__extends)(e,t),e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return Object(s.__assign)(Object(s.__assign)({},n),{isStack:!!this.getAdjust("stack")})},e}(Ci);function Ca(t){for(var e=t[0],n=1,r=[["M",e.x,e.y]];n<t.length;){var i=t[n];i.x===t[n-1].x&&i.y===t[n-1].y||(r.push(["L",i.x,i.y]),i.x===e.x&&i.y===e.y&&n<t.length-1&&(e=t[n+1],r.push(["Z"]),r.push(["M",e.x,e.y]),n++)),n++}return Object(c.H)(Object(c.U)(r),e)||r.push(["L",e.x,e.y]),r.push(["Z"]),r}var Aa=bi("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(t){var e=[];return Object(c.j)(t.x,(function(n,r){var i=t.y[r];e.push({x:n,y:i})})),e}});xi("polygon","polygon",{draw:function(t,e){if(!Object(c.G)(t.points)){var n=oo(t,!0,!0),r=this.parsePath(Ca(t.points));return e.addShape("path",{attrs:Object(s.__assign)(Object(s.__assign)({},n),{path:r}),name:"polygon"})}},getMarker:function(t){var e;return{symbol:"square",style:{r:4,fill:t.color}}}});var ka=Aa,Ta,Ea=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 Object(s.__extends)(e,t),e.prototype.createShapePointsCfg=function(e){var n=t.prototype.createShapePointsCfg.call(this,e),r=n.x,i=n.y,o;if(!Object(c.C)(r)||!Object(c.C)(i)){var a=this.getXScale(),s=this.getYScale(),l,u,h=.5/a.values.length,f=.5/s.values.length;a.isCategory&&s.isCategory?(r=[r-h,r-h,r+h,r+h],i=[i-f,i+f,i+f,i-f]):Object(c.C)(r)?(r=[(o=r)[0],o[0],o[1],o[1]],i=[i-f/2,i+f/2,i+f/2,i-f/2]):Object(c.C)(i)&&(i=[(o=i)[0],o[1],o[1],o[0]],r=[r-h/2,r-h/2,r+h/2,r+h/2]),n.x=r,n.y=i}return n},e}(Ci),Pa,Ia=bi("schema",{defaultShapeType:""}),Fa,La=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 Object(s.__extends)(e,t),e.prototype.createShapePointsCfg=function(e){var n=t.prototype.createShapePointsCfg.call(this,e),r,i=this.getAttribute("size"),o,a;i?(r=this.getAttributeValues(i,e)[0],r/=Dt(this.coordinate)):(this.defaultSize||(this.defaultSize=ga(this)),r=this.defaultSize);return n.size=r,n},e}(Ci);function Ba(t){if(!Object(c.C)(t))return[];var e=Object(c.Y)(t);return Object(c.W)(t,(function(t){return t/e}))}var Da=bi("violin",{defaultShapeType:"violin",getDefaultPoints:function(t){var e=t.size/2,n=[],r=Ba(t._size);return Object(c.j)(t.y,(function(i,o){var a=r[o]*e,s=0===o,c=o===t.y.length-1;n.push({isMin:s,isMax:c,x:t.x-a,y:i}),n.unshift({isMin:s,isMax:c,x:t.x+a,y:i})})),n}});xi("violin","violin",{draw:function(t,e){var n=oo(t,!0,!0),r=this.parsePath(ro(t.points));return e.addShape("path",{attrs:Object(s.__assign)(Object(s.__assign)({},n),{path:r}),name:"violin"})},getMarker:function(t){var e;return{symbol:"circle",style:{r:4,fill:t.color}}}});var Ra=Da,Na,za=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 Object(s.__extends)(e,t),e.prototype.createShapePointsCfg=function(e){var n=t.prototype.createShapePointsCfg.call(this,e),r,i=this.getAttribute("size"),o,a;i?(r=this.getAttributeValues(i,e)[0],r/=Dt(this.coordinate)):(this.defaultSize||(this.defaultSize=ga(this)),r=this.defaultSize);return n.size=r,n._size=Object(c.s)(e._origin,[this._sizeField]),n},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}(Ci);function Ya(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]}function Ga(t,e){var n=[];n.push({x:e.x,y:e.y}),n.push(t);var r=["Q"];return Object(c.j)(n,(function(t){r.push(t.x,t.y)})),r}function Ha(t,e,n){var r=Ga(e,n),i=[["M",t.x,t.y]];return i.push(r),i}function Va(t,e){var n=Ga(t[1],e),r=Ga(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}function Wa(t,e){var n=Ya(t,e),r=[["M",t.x,t.y]];return r.push(n),r}xi("area","line",{draw:function(t,e){var n=Wo(t,!0,!1,this),r;return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){var e;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}}}}),xi("area","smooth",{draw:function(t,e){var n,r=Wo(t,!1,!0,this,Xo(this.coordinate)),i;return e.addShape({type:"path",attrs:r,name:"area"})},getMarker:function(t){var e;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,fillOpacity:1}}}}),xi("area","smooth-line",{draw:function(t,e){var n,r=Wo(t,!0,!0,this,Xo(this.coordinate)),i;return e.addShape({type:"path",attrs:r,name:"area"})},getMarker:function(t){var e;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}}}}),xi("edge","arc",{draw:function(t,e){var n=oo(t,!0,!1,"lineWidth"),r=t.points,i=r.length>2?"weight":"normal",o;if(t.isInCircle){var a={x:0,y:1};return"normal"===i?o=Ha(r[0],r[1],a):(n.fill=n.stroke,o=Va(r,a)),o=this.parsePath(o),e.addShape("path",{attrs:Object(s.__assign)(Object(s.__assign)({},n),{path:o})})}if("normal"===i)return o=St(((r=this.parsePoints(r))[1].x+r[0].x)/2,r[0].y,Math.abs(r[1].x-r[0].x)/2,Math.PI,2*Math.PI),e.addShape("path",{attrs:Object(s.__assign)(Object(s.__assign)({},n),{path:o})});var c=Ya(r[1],r[3]),l=Ya(r[2],r[0]);return o=[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],c,["L",r[3].x,r[3].y],["L",r[2].x,r[2].y],l,["Z"]],o=this.parsePath(o),n.fill=n.stroke,e.addShape("path",{attrs:Object(s.__assign)(Object(s.__assign)({},n),{path:o})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),xi("edge","smooth",{draw:function(t,e){var n=oo(t,!0,!1,"lineWidth"),r=t.points,i=this.parsePath(Wa(r[0],r[1]));return e.addShape("path",{attrs:Object(s.__assign)(Object(s.__assign)({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}});var Xa=1/3;function $a(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 Object(c.j)(n,(function(t){r.push(["L",t.x,t.y])})),r}function qa(t){var e=t.x,n=t.y,r=t.y0;return Object(c.C)(n)?n.map((function(t,n){return{x:Object(c.C)(e)?e[n]:e,y:t}})):[{x:e,y:r},{x:e,y:n}]}function Ua(t){var e,n=t.x,r=t.y,i=t.y0,o=t.size,a,l;Object(c.C)(r)?(a=(e=Object(s.__read)(r,2))[0],l=e[1]):(a=i,l=r);var u=n+o/2,h=n-o/2;return[{x:n,y:a},{x:n,y:l},{x:h,y:a},{x:u,y:a},{x:h,y:l},{x:u,y:l}]}function Ka(t){return[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["M",t[4].x,t[4].y],["L",t[5].x,t[5].y]]}xi("edge","vhv",{draw:function(t,e){var n=oo(t,!0,!1,"lineWidth"),r=t.points,i=this.parsePath($a(r[0],r[1]));return e.addShape("path",{attrs:Object(s.__assign)(Object(s.__assign)({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),xi("interval","funnel",{getPoints:function(t){return t.size=2*t.size,ra(t)},draw:function(t,e){var n=oo(t,!1,!0),r=this.parsePath(ca(t.points,t.nextPoints,!1)),i;return e.addShape("path",{attrs:Object(s.__assign)(Object(s.__assign)({},n),{path:r}),name:"interval"})},getMarker:function(t){var e;return{symbol:"square",style:{r:4,fill:t.color}}}}),xi("interval","hollow-rect",{draw:function(t,e){var n=oo(t,!0,!1),r=e,i=null==t?void 0:t.background;if(i){r=e.addGroup();var o=ao(t),a=aa(t,this.parsePoints(t.points),this.coordinate);r.addShape("path",{attrs:Object(s.__assign)(Object(s.__assign)({},o),{path:a}),capture:!1,zIndex:-1,name:si})}var c=this.parsePath(ia(t.points)),l=r.addShape("path",{attrs:Object(s.__assign)(Object(s.__assign)({},n),{path:c}),name:"interval"});return i?r:l},getMarker:function(t){var e=t.color,n;return t.isInPolar?{symbol:"circle",style:{r:4.5,stroke:e,fill:null}}:{symbol:"square",style:{r:4,stroke:e,fill:null}}}}),xi("interval","line",{getPoints:function(t){return qa(t)},draw:function(t,e){var n=oo(t,!0,!1,"lineWidth"),r=Pt(Object(s.__assign)({},n),["fill"]),i=this.parsePath(ia(t.points,!1)),o;return e.addShape("path",{attrs:Object(s.__assign)(Object(s.__assign)({},r),{path:i}),name:"interval"})},getMarker:function(t){var e;return{symbol:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]},style:{r:5,stroke:t.color}}}}),xi("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,ra(t)},draw:function(t,e){var n=oo(t,!1,!0),r=this.parsePath(ca(t.points,t.nextPoints,!0)),i;return e.addShape("path",{attrs:Object(s.__assign)(Object(s.__assign)({},n),{path:r}),name:"interval"})},getMarker:function(t){var e;return{symbol:"square",style:{r:4,fill:t.color}}}}),xi("interval","tick",{getPoints:function(t){return Ua(t)},draw:function(t,e){var n=oo(t,!0,!1),r=this.parsePath(Ka(t.points)),i;return e.addShape("path",{attrs:Object(s.__assign)(Object(s.__assign)({},n),{path:r}),name:"interval"})},getMarker:function(t){var e;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}}}});var Za=function(t,e,n){var r=t.x,i=t.y,o=e.x,a=e.y,s;switch(n){case"hv":s=[{x:o,y:i}];break;case"vh":s=[{x:r,y:a}];break;case"hvh":var c=(o+r)/2;s=[{x:c,y:i},{x:c,y:a}];break;case"vhv":var l=(i+a)/2;s=[{x:r,y:l},{x:o,y:l}]}return s};function Qa(t,e){var n=[];return Object(c.j)(t,(function(r,i){var o=t[i+1];if(n.push(r),o){var a=Za(r,o,e);n=n.concat(a)}})),n}function Ja(t){return t.map((function(t,e){return 0===e?["M",t.x,t.y]:["L",t.x,t.y]}))}function ts(t,e){var n=no(t.points,t.connectNulls,t.showSinglePoint),r=[];return Object(c.j)(n,(function(t){var n=Qa(t,e);r=r.concat(Ja(n))})),Object(s.__assign)(Object(s.__assign)({},oo(t,!0,!1,"lineWidth")),{path:r})}function es(t){var e=Object(c.C)(t)?t:[t],n=e[0],r=e[e.length-1],i=e.length>1?e[1]:n,o,a;return{min:n,max:r,min1:i,max1:e.length>3?e[3]:r,median:e.length>2?e[2]:i}}function ns(t,e,n){var r=n/2,i;if(Object(c.C)(e)){var o=es(e),a=o.min,s=o.max,l=o.median,u=o.min1,h,f=t-r,p=t+r;i=[[f,s],[p,s],[t,s],[t,h=o.max1],[f,u],[f,h],[p,h],[p,u],[t,u],[t,a],[f,a],[p,a],[f,l],[p,l]]}else{e=Object(c.K)(e)?.5:e;var d=es(t),a=d.min,s=d.max,l=d.median,u,h,g=e-r,y=e+r;i=[[a,g],[a,y],[a,e],[u=d.min1,e],[u,g],[u,y],[h=d.max1,y],[h,g],[h,e],[s,e],[s,g],[s,y],[l,g],[l,y]]}return i.map((function(t){return{x:t[0],y:t[1]}}))}function rs(t){return[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["M",t[4].x,t[4].y],["L",t[5].x,t[5].y],["L",t[6].x,t[6].y],["L",t[7].x,t[7].y],["L",t[4].x,t[4].y],["Z"],["M",t[8].x,t[8].y],["L",t[9].x,t[9].y],["M",t[10].x,t[10].y],["L",t[11].x,t[11].y],["M",t[12].x,t[12].y],["L",t[13].x,t[13].y]]}function is(t){var e,n=(Object(c.C)(t)?t:[t]).sort((function(t,e){return e-t}));return Et(n,4,n[n.length-1])}function os(t,e,n){var r=is(e);return[{x:t,y:r[0]},{x:t,y:r[1]},{x:t-n/2,y:r[2]},{x:t-n/2,y:r[1]},{x:t+n/2,y:r[1]},{x:t+n/2,y:r[2]},{x:t,y:r[2]},{x:t,y:r[3]}]}function as(t){return[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["L",t[4].x,t[4].y],["L",t[5].x,t[5].y],["Z"],["M",t[6].x,t[6].y],["L",t[7].x,t[7].y]]}function ss(t,e){var n=Math.abs(t[0].x-t[2].x),r=Math.abs(t[0].y-t[2].y),i=Math.min(n,r),o,a;return e&&(i=Object(c.c)(e,0,Math.min(n,r))),i/=2,{x:(t[0].x+t[2].x)/2-i,y:(t[0].y+t[2].y)/2-i,width:2*i,height:2*i}}Object(c.j)(["hv","vh","hvh","vhv"],(function(t){xi("line",t,{draw:function(e,n){var r=ts(e,t),i;return n.addShape({type:"path",attrs:r,name:"line"})},getMarker:function(e){return lo(e,t)}})})),Object(c.j)(Oa,(function(t){xi("point",t,{draw:function(e,n){return ja(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:Wi[t],style:{r:4.5,stroke:n,fill:null}}}})})),xi("point","image",{draw:function(t,e){var n,r,i=oo(t,!1,!1,"r").r,o=this.parsePoints(t.points),a=o[0];if(t.isStack)a=o[1];else if(o.length>1){var c=e.addGroup();try{for(var l=Object(s.__values)(o),u=l.next();!u.done;u=l.next()){var h=u.value;c.addShape("image",{attrs:{x:h.x-i/2,y:h.y-i,width:i,height:i,img:t.shape[1]}})}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return c}return e.addShape("image",{attrs:{x:a.x-i/2,y:a.y-i,width:i,height:i,img:t.shape[1]}})},getMarker:function(t){var e;return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),Object(c.j)(xa,(function(t){xi("point",t,{draw:function(e,n){return ja(this,e,n,t,!1)},getMarker:function(e){var n=e.color;return{symbol:Wi[t]||t,style:{r:4.5,fill:n}}}})})),xi("schema","box",{getPoints:function(t){var e,n,r;return ns(t.x,t.y,t.size)},draw:function(t,e){var n=oo(t,!0,!1),r=this.parsePath(rs(t.points)),i;return e.addShape("path",{attrs:Object(s.__assign)(Object(s.__assign)({},n),{path:r,name:"schema"})})},getMarker:function(t){var e;return{symbol:function(t,e,n){var r,i=ns(t,[e-6,e-3,e,e+3,e+6],n);return[["M",i[0].x+1,i[0].y],["L",i[1].x-1,i[1].y],["M",i[2].x,i[2].y],["L",i[3].x,i[3].y],["M",i[4].x,i[4].y],["L",i[5].x,i[5].y],["L",i[6].x,i[6].y],["L",i[7].x,i[7].y],["L",i[4].x,i[4].y],["Z"],["M",i[8].x,i[8].y],["L",i[9].x,i[9].y],["M",i[10].x+1,i[10].y],["L",i[11].x-1,i[11].y],["M",i[12].x,i[12].y],["L",i[13].x,i[13].y]]},style:{r:6,lineWidth:1,stroke:t.color}}}}),xi("schema","candle",{getPoints:function(t){var e,n,r;return os(t.x,t.y,t.size)},draw:function(t,e){var n=oo(t,!0,!0),r=this.parsePath(as(t.points)),i;return e.addShape("path",{attrs:Object(s.__assign)(Object(s.__assign)({},n),{path:r,name:"schema"})})},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){var r,i=os(t,[e+7.5,e+3,e-3,e-7.5],n);return[["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],["M",i[2].x,i[2].y],["L",i[3].x,i[3].y],["L",i[4].x,i[4].y],["L",i[5].x,i[5].y],["Z"],["M",i[6].x,i[6].y],["L",i[7].x,i[7].y]]},style:{lineWidth:1,stroke:e,fill:e,r:6}}}}),xi("polygon","square",{draw:function(t,e){if(!Object(c.G)(t.points)){var n=oo(t,!0,!0),r=this.parsePoints(t.points);return e.addShape("rect",{attrs:Object(s.__assign)(Object(s.__assign)({},n),ss(r,t.size)),name:"polygon"})}},getMarker:function(t){var e;return{symbol:"square",style:{r:4,fill:t.color}}}}),xi("violin","smooth",{draw:function(t,e){var n=oo(t,!0,!0),r=this.parsePath(io(t.points));return e.addShape("path",{attrs:Object(s.__assign)(Object(s.__assign)({},n),{path:r})})},getMarker:function(t){var e;return{symbol:"circle",style:{stroke:null,r:4,fill:t.color}}}}),xi("violin","hollow",{draw:function(t,e){var n=oo(t,!0,!1),r=this.parsePath(ro(t.points));return e.addShape("path",{attrs:Object(s.__assign)(Object(s.__assign)({},n),{path:r})})},getMarker:function(t){var e;return{symbol:"circle",style:{r:4,fill:null,stroke:t.color}}}}),xi("violin","hollow-smooth",{draw:function(t,e){var n=oo(t,!0,!1),r=this.parsePath(io(t.points));return e.addShape("path",{attrs:Object(s.__assign)(Object(s.__assign)({},n),{path:r})})},getMarker:function(t){var e;return{symbol:"circle",style:{r:4,fill:null,stroke:t.color}}}});var cs,ls=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.getLabelValueDir=function(t){var e="y",n=t.points;return n[0].y<=n[2].y?1:-1},e.prototype.getLabelOffsetPoint=function(e,n,r,i){var o,a=t.prototype.getLabelOffsetPoint.call(this,e,n,r),c=this.getCoordinate(),l,u=c.isTransposed?"x":"y",h=this.getLabelValueDir(e.mappingData);return a=Object(s.__assign)(Object(s.__assign)({},a),((o={})[u]=a[u]*h,o)),c.isReflect("x")&&(a=Object(s.__assign)(Object(s.__assign)({},a),{x:-1*a.x})),c.isReflect("y")&&(a=Object(s.__assign)(Object(s.__assign)({},a),{y:-1*a.y})),a},e.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),r=e.theme;return Object(c.h)({},n,r.labels,"middle"===t.position?{offset:0}:{},t)},e.prototype.setLabelPosition=function(t,e,n,r){var i=this.getCoordinate(),o=i.isTransposed,a=e.points,s=i.convert(a[0]),l=i.convert(a[2]),u=this.getLabelValueDir(e),h,f,p,d,g=Object(c.C)(e.shape)?e.shape[0]:e.shape;if("funnel"===g||"pyramid"===g){var y=Object(c.s)(e,"nextPoints"),v=Object(c.s)(e,"points");if(y){var m=i.convert(v[0]),b=i.convert(v[1]),x=i.convert(y[0]),O=i.convert(y[1]);o?(h=Math.min(x.y,m.y),p=Math.max(x.y,m.y),f=(b.x+O.x)/2,d=(m.x+x.x)/2):(h=Math.min((b.y+O.y)/2,(m.y+x.y)/2),p=Math.max((b.y+O.y)/2,(m.y+x.y)/2),f=O.x,d=m.x)}else h=Math.min(l.y,s.y),p=Math.max(l.y,s.y),f=l.x,d=s.x}else h=Math.min(l.y,s.y),p=Math.max(l.y,s.y),f=l.x,d=s.x;switch(r){case"right":t.x=f,t.y=(h+p)/2,t.textAlign=Object(c.s)(t,"textAlign",u>0?"left":"right");break;case"left":t.x=d,t.y=(h+p)/2,t.textAlign=Object(c.s)(t,"textAlign",u>0?"left":"right");break;case"bottom":o&&(t.x=(f+d)/2),t.y=p,t.textAlign=Object(c.s)(t,"textAlign","center"),t.textBaseline=Object(c.s)(t,"textBaseline",u>0?"bottom":"top");break;case"middle":o&&(t.x=(f+d)/2),t.y=(h+p)/2,t.textAlign=Object(c.s)(t,"textAlign","center"),t.textBaseline=Object(c.s)(t,"textBaseline","middle");break;case"top":o&&(t.x=(f+d)/2),t.y=h,t.textAlign=Object(c.s)(t,"textAlign","center"),t.textBaseline=Object(c.s)(t,"textBaseline",u>0?"bottom":"top")}},e}(Hi),us=Math.PI/2,hs,fs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=0;if(Object(c.M)(t))n=t;else if(Object(c.Q)(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),r=this.geometry.getYScale();return Object(c.W)(n,(function(t){if(t&&r){var e=r.scale(Object(c.s)(t.data,r.field));return Object(s.__assign)(Object(s.__assign)({},t),{percent:e})}return t}))},e.prototype.getLabelAlign=function(t){var e=this.getCoordinate(),n;if(t.labelEmit)n=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(e.isTransposed){var r=e.getCenter(),i=t.offset;n=Math.abs(t.x-r.x)<1?"center":t.angle>Math.PI||t.angle<=0?i>0?"left":"right":i>0?"right":"left"}else n="center";return n},e.prototype.getLabelPoint=function(t,e,n){var r=1,i,o=t.content[n];this.isToMiddle(e)?i=this.getMiddlePoint(e.points):(1===t.content.length&&0===n?n=1:0===n&&(r=-1),i=this.getArcPoint(e,n));var a=t.offset*r,s=this.getPointAngle(i),c=t.labelEmit,l=this.getCirclePoint(s,a,i,c);return 0===l.r?l.content="":(l.content=o,l.angle=s,l.color=e.color),l.rotate=t.autoRotate?this.getLabelRotate(s,a,c):t.rotate,l.start={x:i.x,y:i.y},l},e.prototype.getArcPoint=function(t,e){return void 0===e&&(e=0),Object(c.C)(t.x)||Object(c.C)(t.y)?{x:Object(c.C)(t.x)?t.x[e]:t.x,y:Object(c.C)(t.y)?t.y[e]:t.y}:{x:t.x,y:t.y}},e.prototype.getPointAngle=function(t){return Yt(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,e,n,r){var i=this.getCoordinate(),o=i.getCenter(),a=Nt(i,n);if(0===a)return Object(s.__assign)(Object(s.__assign)({},o),{r:a});var c=t,l;i.isTransposed&&a>e&&!r?c=t+2*Math.asin(e/(2*a)):a+=e;return{x:o.x+a*Math.cos(c),y:o.y+a*Math.sin(c),r:a}},e.prototype.getLabelRotate=function(t,e,n){var r=t+us;return n&&(r-=us),r&&(r>us?r-=Math.PI:r<-us&&(r+=Math.PI)),r},e.prototype.getMiddlePoint=function(t){var e=this.getCoordinate(),n=t.length,r={x:0,y:0};return Object(c.j)(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}(Hi),ps,ds=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultLayout="distribute",e}return Object(s.__extends)(e,t),e.prototype.getDefaultLabelCfg=function(e,n){var r=t.prototype.getDefaultLabelCfg.call(this,e,n);return Object(c.h)({},r,Object(c.s)(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(),r;return r=t.angle<=Math.PI/2&&t.x>=n.x?"left":"right",t.offset<=0&&(r="right"===r?"left":"right"),r},e.prototype.getArcPoint=function(t){return t},e.prototype.getPointAngle=function(t){var e=this.getCoordinate(),n={x:Object(c.C)(t.x)?t.x[0]:t.x,y:t.y[0]},r={x:Object(c.C)(t.x)?t.x[1]:t.x,y:t.y[1]},i,o=Yt(e,n);if(t.points&&t.points[0].y===t.points[1].y)i=o;else{var a=Yt(e,r);o>=a&&(a+=2*Math.PI),i=o+(a-o)/2}return i},e.prototype.getCirclePoint=function(t,e){var n=this.getCoordinate(),r=n.getCenter(),i=n.getRadius()+e;return Object(s.__assign)(Object(s.__assign)({},_t(r.x,r.y,i,t)),{angle:t,r:i})},e}(fs),gs=4;function ys(t,e,n,r,i,o){var a,l,u=!0,h=r.start,f=r.end,p=Math.min(h.y,f.y),d=Math.abs(h.y-f.y),g,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-p]}}));for(v-=p,y-p>d&&(d=y-p);u;)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),d-t.size)})),u=!1,g=m.length;g--;)if(g>0){var b=m[g-1],x=m[g];b.pos+b.size>x.pos&&(b.size+=x.size,b.targets=b.targets.concat(x.targets),b.pos+b.size>d&&(b.pos=d-b.size),m.splice(g,1),u=!0)}g=0,m.forEach((function(t){var r=p+n/2;t.targets.forEach((function(){e[g].y=t.pos+r,r+=n,g++}))}));var O={};try{for(var j=Object(s.__values)(t),w=j.next();!w.done;w=j.next()){var _=w.value;O[_.get("id")]=_}}catch(t){a={error:t}}finally{try{w&&!w.done&&(l=j.return)&&l.call(j)}finally{if(a)throw a.error}}e.forEach((function(t){var e=t.r*t.r,n=Math.pow(Math.abs(t.y-i.y),2);if(e<n)t.x=i.x;else{var r=Math.sqrt(e-n);t.x=o?i.x+r:i.x-r}var a=O[t.id];a.attr("x",t.x),a.attr("y",t.y);var s=Object(c.m)(a.getChildren(),(function(t){return"text"===t.get("type")}));s&&(s.attr("y",t.y),s.attr("x",t.x))}))}function vs(t,e,n,r){if(t.length&&e.length){var i=t[0]?t[0].offset:0,o=e[0].get("coordinate"),a=o.getRadius(),s=o.getCenter();if(i>0){var l=14,u,h=2*(a+i)+28,f={start:o.start,end:o.end},p=[[],[]];t.forEach((function(t){t&&("right"===t.textAlign?p[0].push(t):p[1].push(t))})),p.forEach((function(t,n){var r=h/14;t.length>r&&(t.sort((function(t,e){return e["..percent"]-t["..percent"]})),t.splice(r,t.length-r)),t.sort((function(t,e){return t.y-e.y})),ys(e,t,14,f,s,n)}))}Object(c.j)(t,(function(t){if(t&&t.labelLine){var e=t.offset,n=t.angle,r=_t(s.x,s.y,a,n),i=_t(s.x,s.y,a+e/2,n),o=t.x+Object(c.s)(t,"offsetX",0),l=t.y+Object(c.s)(t,"offsetY",0),u={x:o-4*Math.cos(n),y:l-4*Math.sin(n)};Object(c.O)(t.labelLine)||(t.labelLine={}),t.labelLine.path=["M ".concat(r.x),"".concat(r.y," Q").concat(i.x),"".concat(i.y," ").concat(u.x),u.y].join(",")}}))}}function ms(t,e,n){var r=t.filter((function(t){return!t.invisible}));r.sort((function(t,e){return t.y-e.y}));var i=!0,o=n.minY,a=n.maxY,s=Math.abs(o-a),c,l=0,u=Number.MIN_VALUE,h=r.map((function(t){return t.y>l&&(l=t.y),t.y<u&&(u=t.y),{content:t.content,size:e,targets:[t.y-o],pos:null}}));for(u-=o,l-o>s&&(s=l-o);i;)for(h.forEach((function(t){var e=(Math.min.apply(u,t.targets)+Math.max.apply(u,t.targets))/2;t.pos=Math.min(Math.max(u,e-t.size/2),s-t.size),t.pos=Math.max(0,t.pos)})),i=!1,c=h.length;c--;)if(c>0){var f=h[c-1],p=h[c];f.pos+f.size>p.pos&&(f.size+=p.size,f.targets=f.targets.concat(p.targets),f.pos+f.size>s&&(f.pos=s-f.size),h.splice(c,1),i=!0)}c=0,h.forEach((function(t){var n=o+e/2;t.targets.forEach((function(){r[c].y=t.pos+n,n+=e,c++}))}))}var bs=4;function xs(t,e){var n=e.getCenter(),r=e.getRadius();if(t&&t.labelLine){var i=t.angle,o=t.offset,a=_t(n.x,n.y,r,i),s=t.x+Object(c.s)(t,"offsetX",0)*(Math.cos(i)>0?1:-1),l=t.y+Object(c.s)(t,"offsetY",0)*(Math.sin(i)>0?1:-1),u={x:s-4*Math.cos(i),y:l-4*Math.sin(i)},h=t.labelLine.smooth,f=[],p=u.x-n.x,d=u.y-n.y,g=Math.atan(d/p);if(p<0&&(g+=Math.PI),!1===h){Object(c.O)(t.labelLine)||(t.labelLine={});var y=0;(i<0&&i>-Math.PI/2||i>1.5*Math.PI)&&u.y>a.y&&(y=1),i>=0&&i<Math.PI/2&&u.y>a.y&&(y=1),i>=Math.PI/2&&i<Math.PI&&a.y>u.y&&(y=1),(i<-Math.PI/2||i>=Math.PI&&i<1.5*Math.PI)&&a.y>u.y&&(y=1);var v=o/2>4?4:Math.max(o/2-1,0),m=_t(n.x,n.y,r+v,i),b=_t(n.x,n.y,r+o/2,g),x=0;f.push("M ".concat(a.x," ").concat(a.y)),f.push("L ".concat(m.x," ").concat(m.y)),f.push("A ".concat(n.x," ").concat(n.y," 0 ").concat(0," ").concat(y," ").concat(b.x," ").concat(b.y)),f.push("L ".concat(u.x," ").concat(u.y))}else{var m=_t(n.x,n.y,r+(o/2>4?4:Math.max(o/2-1,0)),i),O=a.x<n.x?1:-1;f.push("M ".concat(u.x," ").concat(u.y));var j=(a.y-n.y)/(a.x-n.x),w=(u.y-n.y)/(u.x-n.x);Math.abs(j-w)>Math.pow(Math.E,-16)&&f.push.apply(f,["C",u.x+4*O,u.y,2*m.x-a.x,2*m.y-a.y,a.x,a.y]),f.push("L ".concat(a.x," ").concat(a.y))}t.labelLine.path=f.join(" ")}}function Os(t,e,n,r){var i,o,a=Object(c.l)(t,(function(t){return!Object(c.K)(t)})),l=e[0]&&e[0].get("coordinate");if(l){var u=l.getCenter(),h=l.getRadius(),f={};try{for(var p=Object(s.__values)(e),d=p.next();!d.done;d=p.next()){var g=d.value;f[g.get("id")]=g}}catch(t){i={error:t}}finally{try{d&&!d.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}var y=Object(c.s)(a[0],"labelHeight",14),v=Object(c.s)(a[0],"offset",0);if(!(v<=0)){var m="left",b="right",x=Object(c.w)(a,(function(t){return t.x<u.x?"left":"right"})),O=l.start,j=l.end,w=Math.min(2*(h+v+y),l.getHeight()),_=w/2,M={minX:O.x,maxX:j.x,minY:u.y-_,maxY:u.y+_};Object(c.j)(x,(function(t,e){var n=Math.floor(w/y);t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),Object(c.j)(t,(function(t,e){e+1>n&&(f[t.id].set("visible",!1),t.invisible=!0)}))),ms(t,y,M)})),Object(c.j)(x,(function(t,e){Object(c.j)(t,(function(t){var n="right"===e,r,i=f[t.id].getChildByIndex(0);if(i){var o=h+v,a=t.y-u.y,s=Math.pow(o,2),c=Math.pow(a,2),p=s-c>0?s-c:0,d=Math.sqrt(p),g=Math.abs(Math.cos(t.angle)*o);t.x=n?u.x+Math.max(d,g):u.x-Math.max(d,g)}i&&(i.attr("y",t.y),i.attr("x",t.x)),xs(t,l)}))}))}}}var js=4,ws=4,_s=4;function Ms(t,e,n){var r=e.getCenter(),i=e.getRadius(),o={x:t.x-(n?4:-4),y:t.y},a=_t(r.x,r.y,i+4,t.angle),s={x:o.x,y:o.y},l={x:a.x,y:a.y},u=_t(r.x,r.y,i,t.angle),h="";if(o.y!==a.y){var f=n?4:-4;s.y=o.y,t.angle<0&&t.angle>=-Math.PI/2&&(s.x=Math.max(a.x,o.x-f),o.y<a.y?l.y=s.y:(l.y=a.y,l.x=Math.max(l.x,s.x-f))),t.angle>0&&t.angle<Math.PI/2&&(s.x=Math.max(a.x,o.x-f),o.y>a.y?l.y=s.y:(l.y=a.y,l.x=Math.max(l.x,s.x-f))),t.angle>Math.PI/2&&(s.x=Math.min(a.x,o.x-f),o.y>a.y?l.y=s.y:(l.y=a.y,l.x=Math.min(l.x,s.x-f))),t.angle<-Math.PI/2&&(s.x=Math.min(a.x,o.x-f),o.y<a.y?l.y=s.y:(l.y=a.y,l.x=Math.min(l.x,s.x-f)))}h=["M ".concat(o.x,",").concat(o.y),"L ".concat(s.x,",").concat(s.y),"L ".concat(l.x,",").concat(l.y),"L ".concat(a.x,",").concat(a.y),"L ".concat(u.x,",").concat(u.y)].join(" "),t.labelLine=Object(c.h)({},t.labelLine,{path:h})}function Ss(t,e,n,r){var i,o,a=e[0]&&e[0].get("coordinate");if(a){var l=a.getCenter(),u=a.getRadius(),h={};try{for(var f=Object(s.__values)(e),p=f.next();!p.done;p=f.next()){var d=p.value;h[d.get("id")]=d}}catch(t){i={error:t}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}var g=Object(c.s)(t[0],"labelHeight",14),y=Math.max(Object(c.s)(t[0],"offset",0),4);Object(c.j)(t,(function(t){var e;if(t&&Object(c.s)(h,[t.id])){var n=t.x>l.x||t.x===l.x&&t.y>l.y,r=Object(c.K)(t.offsetX)?4:t.offsetX,i=_t(l.x,l.y,u+4,t.angle),o=y+r;t.x=l.x+(n?1:-1)*(u+o),t.y=i.y}}));var v=a.start,m=a.end,b="left",x="right",O=Object(c.w)(t,(function(t){return t.x<l.x?"left":"right"})),j=2*(u+y)+g;Object(c.j)(O,(function(t){var e=t.length*g;e>j&&(j=Math.min(e,Math.abs(v.y-m.y)))}));var w={minX:v.x,maxX:m.x,minY:l.y-j/2,maxY:l.y+j/2};Object(c.j)(O,(function(t,e){var n=j/g;t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),Object(c.j)(t,(function(t,e){e>n&&(h[t.id].set("visible",!1),t.invisible=!0)}))),ms(t,g,w)}));var _=w.minY,M=w.maxY;Object(c.j)(O,(function(t,e){var n="right"===e;Object(c.j)(t,(function(t){var e=Object(c.s)(h,t&&[t.id]);if(e)if(t.y<_||t.y>M)e.set("visible",!1);else{var r=e.getChildByIndex(0),i=r.getCanvasBBox(),o=n?i.x:i.maxX,s=i.y+i.height/2;ki(r,t.x-o,t.y-s),t.labelLine&&Ms(t,a,n)}}))}))}}function Cs(t,e,n,r){Object(c.j)(e,(function(t){var e=r.minX,n=r.minY,i=r.maxX,o=r.maxY,a=t.getCanvasBBox(),s=a.minX,c=a.minY,l=a.maxX,u=a.maxY,h=a.x,f=a.y,p=a.width,d=a.height,g=h,y=f;(s<e||l<e)&&(g=e),(c<n||u<n)&&(y=n),s>i?g=i-p:l>i&&(g-=l-i),c>o?y=o-d:u>o&&(y-=u-o),g===h&&y===f||ki(t,g-h,y-f)}))}function As(t,e,n,r){Object(c.j)(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)}))}var ks=100,Ts=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),o=Math.round(t.minY),a=Math.round(t.maxY),s=r;s<=i;s+=1)if(n[s]){if(s===r||s===i){for(var c=o;c<=a;c++)if(n[s][c]){e=!1;break}}else if(n[s][o]||n[s][a]){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),o=Math.round(t.maxY),a=n;a<=r;a+=1)e[a]||(e[a]={});for(var a=n;a<=r;a+=this.xGap){for(var s=i;s<=o;s+=this.yGap)e[a][s]=!0;e[a][o]=!0}if(1!==this.yGap)for(var a=i;a<=o;a+=1)e[n][a]=!0,e[r][a]=!0;if(1!==this.xGap)for(var a=n;a<=r;a+=1)e[a][i]=!0,e[a][o]=!0},t.prototype.destroy=function(){this.bitmap={}},t}();function Es(t,e,n){void 0===n&&(n=100);var r=-1,i=t.attr(),o=i.x,a=i.y,s=t.getCanvasBBox(),c=Math.sqrt(s.width*s.width+s.height*s.height),l,u=1,h=0,f=0,p=function(t){var e=.1*t;return[e*Math.cos(e),e*Math.sin(e)]};if(e.hasGap(s))return e.fillGap(s),!0;for(var d=!1,g=0,y={};Math.min(Math.abs(h),Math.abs(f))<c&&g<n;)if(h=~~(l=p(u+=-1))[0],f=~~l[1],(h||f)&&!y["".concat(h,"-").concat(f)]&&(t.attr({x:o+h,y:a+f}),h+f<0&&t.attr("textAlign","right"),g++,e.hasGap(t.getCanvasBBox()))){e.fillGap(t.getCanvasBBox()),d=!0,y["".concat(h,"-").concat(f)]=!0;break}return d}function Ps(t,e,n,r){var i=t.getCanvasBBox(),o=i.width,a=i.height,s={x:e,y:n,textAlign:"center"};switch(r){case 0:s.y-=a+1,s.x+=1,s.textAlign="left";break;case 1:s.y-=a+1,s.x-=1,s.textAlign="right";break;case 2:s.y+=a+1,s.x-=1,s.textAlign="right";break;case 3:s.y+=a+1,s.x+=1,s.textAlign="left";break;case 5:s.y-=2*a+2;break;case 6:s.y+=2*a+2;break;case 7:s.x+=o+1,s.textAlign="left";break;case 8:s.x-=o+1,s.textAlign="right"}return t.attr(s),t.getCanvasBBox()}function Is(t,e,n,r){var i=new Ts;Object(c.j)(e,(function(t){var e;Es(t.find((function(t){return"text"===t.get("type")})),i)||t.remove(!0)})),i.destroy()}function Fs(t,e,n,r){var i=new Ts;Object(c.j)(e,(function(t){for(var e=t.find((function(t){return"text"===t.get("type")})),n=e.attr(),r=n.x,o=n.y,a=!1,s=0;s<=8;s++){var c=Ps(e,r,o,s);if(i.hasGap(c)){i.fillGap(c),a=!0;break}}a||t.remove(!0)})),i.destroy()}function Ls(t,e){return(t[0]||0)*(e[0]||0)+(t[1]||0)*(e[1]||0)+(t[2]||0)*(e[2]||0)}function Bs(t){if(t.length>4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]},n,r;return[e(t[0],t[1]),e(t[1],t[2])]}function Ds(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 Rs(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?[Ds(e[0],n,e[0]),Ds(e[1],n,e[0]),Ds(e[2],n,e[0]),Ds(e[3],n,e[0])]:e}function Ns(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){n.push(Ls([t.x,t.y],e))})),{min:Math.min.apply(Math,Object(s.__spreadArray)([],Object(s.__read)(n),!1)),max:Math.max.apply(Math,Object(s.__spreadArray)([],Object(s.__read)(n),!1))}}function zs(t,e){return t.max>e.min&&t.min<e.max}function Ys(t){return"number"==typeof t&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0}function Gs(t){return["x","y","width","height"].every((function(e){return Ys(t[e])}))}function Hs(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)}function Vs(t,e,n){if(void 0===n&&(n=0),!Gs(t)||!Gs(e))return!1;if(!t.rotation&&!e.rotation)return Hs(t,e,n);for(var r=Rs(t),i=Rs(e),o=Bs(r).concat(Bs(i)),a=0;a<o.length;a++){var s=o[a],c,l;if(!zs(Ns(r,s),Ns(i,s)))return!1}return!0}var Ws=function(){function t(t){var e=this;this.queue=[],this.worker=new Worker(t),this.worker.onmessage=function(t){var n;null===(n=e.queue.shift())||void 0===n||n.resolve(t)},this.worker.onmessageerror=function(t){var n;console.warn("[AntV G2] Web worker is not available"),null===(n=e.queue.shift())||void 0===n||n.reject(t)}}return t.prototype.post=function(t,e){var n=this;return new Promise((function(r,i){n.queue.push({resolve:r,reject:i});try{n.worker.postMessage(t)}catch(t){console.warn("[AntV G2] Web worker is not available"),Object(c.I)(e)&&e()}}))},t.prototype.destroy=function(){this.worker.terminate()},t}();function Xs(t){if("undefined"!=typeof window){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 Ws(URL.createObjectURL(e))}}var $s,qs="\n self.onmessage = ".concat(function(t){function e(){function t(t,e){return(t[0]||0)*(e[0]||0)+(t[1]||0)*(e[1]||0)+(t[2]||0)*(e[2]||0)}function e(t){if(t.length>4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]},n,r;return[e(t[0],t[1]),e(t[1],t[2])]}function n(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 r(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}],r=t.rotation;return r?[n(e[0],r,e[0]),n(e[1],r,e[0]),n(e[2],r,e[0]),n(e[3],r,e[0])]:e}function i(e,n){if(e.length>4)return{min:0,max:0};var r=[];return e.forEach((function(e){r.push(t([e.x,e.y],n))})),{min:Math.min.apply(null,r),max:Math.max.apply(null,r)}}function o(t,e){return t.max>e.min&&t.min<e.max}function a(t){return"number"==typeof t&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0}function s(t){return["x","y","width","height"].every((function(e){return a(t[e])}))}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)}function l(t,n,a){if(void 0===a&&(a=0),!s(t)||!s(n))return!1;if(!t.rotation&&!n.rotation)return c(t,n,a);for(var l=r(t),u=r(n),h=e(l).concat(e(u)),f=0;f<h.length;f++){var p=h[f],d,g;if(!o(i(l,p),i(u,p)))return!1}return!0}return{intersect:l}}var n=e().intersect;function r(t){for(var e=t.slice(),r=0;r<e.length;r++){var i=e[r];if(i.visible)for(var o=r+1;o<e.length;o++){var a=e[o];i!==a&&a.visible&&n(i,a)&&(a.visible=!1)}}return e}var i={"hide-overlap":r};try{var o=JSON.parse(t.data);if(!o||!o.type||!i[o.type])return;var a=o.type,s=o.items,c=i[a](s);self.postMessage(c)}catch(t){throw t}}.toString(),"\n"),Us=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&&Vs(r,o)&&(o.visible=!1)}}return e},Ks=new Map,Zs=Xs(qs);function Qs(t,e,n,r){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,a,l;return Object(s.__generator)(this,(function(u){switch(u.label){case 0:return n=e.map((function(e,n){return Object(s.__assign)(Object(s.__assign)({},Li(e,t[n],Object(c.s)(t[n],"background.padding"))),{visible:!0})})),r=JSON.stringify(n),i=function(t){return Ks.set(r,t),Object(c.j)(t,(function(t,n){var r=t.visible,i=e[n];r?null==i||i.show():null==i||i.hide()})),t},Ks.get(r)?(i(Ks.get(r)),[3,7]):[3,1];case 1:if(!Zs)return[3,6];u.label=2;case 2:return u.trys.push([2,4,,5]),o=JSON.stringify({type:"hide-overlap",items:n}),[4,Zs.post(o,(function(){return i(Us(n))}))];case 3:return a=u.sent(),i(Array.isArray(a.data)?a.data:[]),[3,5];case 4:return l=u.sent(),console.error(l),i(Us(n)),[3,5];case 5:return[3,7];case 6:i(Us(n)),u.label=7;case 7:return[2]}}))}))}var Js={"#5B8FF9":!0},tc=function(t){var e=z.a.toRGB(t).toUpperCase();if(Js[e])return Js[e];var n=Object(s.__read)(z.a.rgb2arr(e),3),r,i,o,a;return(299*n[0]+587*n[1]+114*n[2])/1e3<128},ec;function nc(t,e,n){if(0!==n.length){var r,i=n[0].get("element").geometry.theme,o=i.labels||{},a=o.fillColorLight,s=o.fillColorDark;n.forEach((function(t,n){var r,o=e[n].find((function(t){return"text"===t.get("type")})),c=Ft.fromObject(t.getBBox()),l=Ft.fromObject(o.getCanvasBBox()),u=!c.contains(l),h=t.attr("fill"),f=tc(h);u?o.attr(i.overflowLabels.style):f?a&&o.attr("fill",a):s&&o.attr("fill",s)}))}}function rc(t,e,n){var r=t.coordinate,i=Fi(e),o=Ft.fromObject(i.getCanvasBBox()),a=Ft.fromObject(n.getBBox());return r.isTransposed?a.height>=o.height:a.width>=o.width}function ic(t,e,n){var r;return!!t.getAdjust("stack")||e.every((function(e,r){var i=n[r];return rc(t,e,i)}))}function oc(t,e,n){var r=t.coordinate,i=Ft.fromObject(n.getBBox()),o=Fi(e);r.isTransposed?o.attr({x:i.minX+i.width/2,textAlign:"center"}):o.attr({y:i.minY+i.height/2,textBaseline:"middle"})}function ac(t,e,n){var r;if(0!==n.length){var i=null===(r=n[0])||void 0===r?void 0:r.get("element"),o=null==i?void 0:i.geometry,a;if(o&&"interval"===o.type)ic(o,e,n)&&n.forEach((function(t,n){var r=e[n];oc(o,r,t)}))}}function sc(t){var e=500,n=[],r=Math.max(Math.floor(t.length/500),1);return Object(c.j)(t,(function(t,e){e%r==0?n.push(t):t.set("visible",!1)})),n}function cc(t,e,n){var r;if(0!==n.length){var i=null===(r=n[0])||void 0===r?void 0:r.get("element"),o=null==i?void 0:i.geometry;if(o&&"interval"===o.type){var a=sc(e),l,u=Object(s.__read)(o.getXYFields(),1)[0],h=[],f=[],p=Object(c.w)(a,(function(t){return t.get("data")[u]})),d=Object(c.ub)(Object(c.W)(a,(function(t){return t.get("data")[u]}))),g;a.forEach((function(t){t.set("visible",!0)}));var y=function(t){t&&(t.length&&f.push(t.pop()),f.push.apply(f,Object(s.__spreadArray)([],Object(s.__read)(t),!1)))};for(Object(c.mb)(d)>0&&(g=d.shift(),y(p[g])),Object(c.mb)(d)>0&&(g=d.pop(),y(p[g])),Object(c.j)(d.reverse(),(function(t){y(p[t])}));f.length>0;){var v=f.shift();v.get("visible")&&(Di(v,h)?v.set("visible",!1):h.push(v))}}}}function lc(t,e){var n=t.getXYFields()[1],r=[],i=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return i.length>0&&r.push(i.shift()),i.length>0&&r.push(i.pop()),r.push.apply(r,Object(s.__spreadArray)([],Object(s.__read)(i),!1)),r}function uc(t,e,n){return t.some((function(t){return n(t,e)}))}function hc(t,e,n){var r,i;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))}function fc(t,e){return uc(t,e,(function(t,e){var n=Fi(t),r=Fi(e);return hc(n.getCanvasBBox(),r.getCanvasBBox(),2)>0}))}function pc(t,e,n,r,i){var o,a;if(0!==n.length){var l=null===(o=n[0])||void 0===o?void 0:o.get("element"),u=null==l?void 0:l.geometry;if(u&&"point"===u.type){var h=Object(s.__read)(u.getXYFields(),2),f=h[0],p=h[1],d=Object(c.w)(e,(function(t){return t.get("data")[f]})),g=[],y=i&&i.offset||(null===(a=t[0])||void 0===a?void 0:a.offset)||12;Object(c.W)(Object(c.T)(d).reverse(),(function(t){for(var e=lc(u,d[t]);e.length;){var n=e.shift(),r=Fi(n);if(uc(g,n,(function(t,e){return t.get("data")[f]===e.get("data")[f]&&t.get("data")[p]===e.get("data")[p]})))r.set("visible",!1);else{var i,o=!1;fc(g,n)&&(r.attr("y",r.attr("y")+2*y),o=fc(g,n)),o?r.set("visible",!1):g.push(n)}}}))}}}function dc(t,e){var n=t.getXYFields()[1],r=[],i=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return i.length>0&&r.push(i.shift()),i.length>0&&r.push(i.pop()),r.push.apply(r,Object(s.__spreadArray)([],Object(s.__read)(i),!1)),r}function gc(t,e,n){return t.some((function(t){return n(t,e)}))}function yc(t,e,n){var r,i;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))}function vc(t,e){return gc(t,e,(function(t,e){var n=Fi(t),r=Fi(e);return yc(n.getCanvasBBox(),r.getCanvasBBox(),2)>0}))}function mc(t,e,n,r,i){var o,a;if(0!==n.length){var l=null===(o=n[0])||void 0===o?void 0:o.get("element"),u=null==l?void 0:l.geometry;if(u&&!(["path","line","area"].indexOf(u.type)<0)){var h=Object(s.__read)(u.getXYFields(),2),f=h[0],p=h[1],d=Object(c.w)(e,(function(t){return t.get("data")[f]})),g=[],y=i&&i.offset||(null===(a=t[0])||void 0===a?void 0:a.offset)||12;Object(c.W)(Object(c.T)(d).reverse(),(function(t){for(var e=dc(u,d[t]);e.length;){var n=e.shift(),r=Fi(n);if(gc(g,n,(function(t,e){return t.get("data")[f]===e.get("data")[f]&&t.get("data")[p]===e.get("data")[p]})))r.set("visible",!1);else{var i,o=!1;vc(g,n)&&(r.attr("y",r.attr("y")+2*y),o=vc(g,n)),o?r.set("visible",!1):g.push(n)}}}))}}}function bc(){return ec||(ec=document.createElement("canvas").getContext("2d")),ec}var xc=Object(c.ab)((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,o=e.fontStyle,a=e.fontVariant,s=bc();return s.font=[o,a,i,"".concat(n,"px"),r].join(" "),s.measureText(Object(c.Q)(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),Object(s.__spreadArray)([t],Object(s.__read)(Object(c.xb)(e)),!1).join("")})),Oc=function(t,e,n){var r=16,i=xc("...",n),o;o=Object(c.Q)(t)?t:Object(c.tb)(t);var a=e,s=[],l,u;if(xc(t,n)<=e)return t;for(;l=o.substr(0,16),!((u=xc(l,n))+i>a&&u>a);)if(s.push(l),a-=u,!(o=o.substr(16)))return s.join("");for(;l=o.substr(0,1),!((u=xc(l,n))+i>a);)if(s.push(l),a-=u,!(o=o.substr(1)))return s.join("");return"".concat(s.join(""),"...")};function jc(t,e,n,r,i){if(!(e.length<=0)){var o=(null==i?void 0:i.direction)||["top","right","bottom","left"],a=(null==i?void 0:i.action)||"translate",s=(null==i?void 0:i.margin)||0,l=e[0].get("coordinate");if(l){var u=Ht(l,s),h=u.minX,f=u.minY,p=u.maxX,d=u.maxY;Object(c.j)(e,(function(t){var e=t.getCanvasBBox(),n=e.minX,r=e.minY,i=e.maxX,s=e.maxY,l=e.x,u=e.y,g=e.width,y=e.height,v=l,m=u;if(o.indexOf("left")>=0&&(n<h||i<h)&&(v=h),o.indexOf("top")>=0&&(r<f||s<f)&&(m=f),o.indexOf("right")>=0&&(n>p?v=p-g:i>p&&(v-=i-p)),o.indexOf("bottom")>=0&&(r>d?m=d-y:s>d&&(m-=s-d)),v!==l||m!==u){var b=v-l;if("translate"===a)ki(t,b,m-u);else if("ellipsis"===a){var x;t.findAll((function(t){return"text"===t.get("type")})).forEach((function(t){var e=Object(c.hb)(t.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),n=t.getCanvasBBox(),r=Oc(t.attr("text"),n.width-Math.abs(b),e);t.attr("text",r)}))}else t.hide()}}))}}}function wc(t,e,n){var r={fillOpacity:Object(c.K)(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),strokeOpacity:Object(c.K)(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity"),opacity:Object(c.K)(t.attr("opacity"))?1:t.attr("opacity")};t.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),t.animate(r,e)}function _c(t,e,n){var r={fillOpacity:0,strokeOpacity:0,opacity:0},i=e.easing,o=e.duration,a=e.delay;t.animate(r,o,i,(function(){t.remove(!0)}),a)}function Mc(t,e,n){var r,i=Object(s.__read)(e,2),o=i[0],a=i[1];return t.applyToMatrix([o,a,1]),"x"===n?(t.setMatrix(et.a.transform(t.getMatrix(),[["t",-o,-a],["s",.01,1],["t",o,a]])),r=et.a.transform(t.getMatrix(),[["t",-o,-a],["s",100,1],["t",o,a]])):"y"===n?(t.setMatrix(et.a.transform(t.getMatrix(),[["t",-o,-a],["s",1,.01],["t",o,a]])),r=et.a.transform(t.getMatrix(),[["t",-o,-a],["s",1,100],["t",o,a]])):"xy"===n&&(t.setMatrix(et.a.transform(t.getMatrix(),[["t",-o,-a],["s",.01,.01],["t",o,a]])),r=et.a.transform(t.getMatrix(),[["t",-o,-a],["s",100,100],["t",o,a]])),r}function Sc(t,e,n,r,i){var o=n.start,a=n.end,s=n.getWidth(),c=n.getHeight(),l,u;"y"===i?(l=o.x+s/2,u=r.y<o.y?r.y:o.y):"x"===i?(l=r.x>o.x?r.x:o.x,u=o.y+c/2):"xy"===i&&(n.isPolar?(l=n.getCenter().x,u=n.getCenter().y):(l=(o.x+a.x)/2,u=(o.y+a.y)/2));var h=Mc(t,[l,u],i);t.animate({matrix:h},e)}function Cc(t,e,n){var r,i;Sc(t,e,n.coordinate,n.minYPoint,"x")}function Ac(t,e,n){var r,i;Sc(t,e,n.coordinate,n.minYPoint,"y")}function kc(t,e,n){var r,i;Sc(t,e,n.coordinate,n.minYPoint,"xy")}function Tc(t,e,n){var r=t.getTotalLength();t.attr("lineDash",[r]),t.animate((function(t){return{lineDashOffset:(1-t)*r}}),e)}function Ec(t,e,n){var r=n.toAttrs,i=r.x,o=r.y;delete r.x,delete r.y,t.attr(r),t.animate({x:i,y:o},e)}function Pc(t,e,n){var r=t.getBBox(),i,o=t.get("origin").mappingData.points,a=o[0].y-o[1].y>0?r.maxX:r.minX,s=(r.minY+r.maxY)/2;t.applyToMatrix([a,s,1]);var c=et.a.transform(t.getMatrix(),[["t",-a,-s],["s",.01,1],["t",a,s]]);t.setMatrix(c),t.animate({matrix:et.a.transform(t.getMatrix(),[["t",-a,-s],["s",100,1],["t",a,s]])},e)}function Ic(t,e,n){var r=t.getBBox(),i=t.get("origin").mappingData,o=(r.minX+r.maxX)/2,a=i.points,s=a[0].y-a[1].y<=0?r.maxY:r.minY;t.applyToMatrix([o,s,1]);var c=et.a.transform(t.getMatrix(),[["t",-o,-s],["s",1,.01],["t",o,s]]);t.setMatrix(c),t.animate({matrix:et.a.transform(t.getMatrix(),[["t",-o,-s],["s",1,100],["t",o,s]])},e)}function Fc(t,e){var n,r=Object(zo.getArcParams)(t,e),i=r.startAngle,o=r.endAngle;return!Object(c.N)(i,.5*-Math.PI)&&i<.5*-Math.PI&&(i+=2*Math.PI),!Object(c.N)(o,.5*-Math.PI)&&o<.5*-Math.PI&&(o+=2*Math.PI),0===e[5]&&(i=(n=Object(s.__read)([o,i],2))[0],o=n[1]),Object(c.N)(i,1.5*Math.PI)&&(i=-.5*Math.PI),Object(c.N)(o,-.5*Math.PI)&&!Object(c.N)(i,o)&&(o=1.5*Math.PI),{startAngle:i,endAngle:o}}function Lc(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 Bc(t){var e,n,r,i=t.filter((function(t){return"A"===t[0]||"a"===t[0]}));if(0===i.length)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var o=i[0],a=i.length>1?i[1]:i[0],l=t.indexOf(o),u=t.indexOf(a),h=Lc(t[l-1]),f=Lc(t[u-1]),p=Fc(h,o),d=p.startAngle,g=p.endAngle,y=Fc(f,a),v=y.startAngle,m=y.endAngle;Object(c.N)(d,v)&&Object(c.N)(g,m)?(n=d,r=g):(n=Math.min(d,v),r=Math.max(g,m));var b=o[1],x=i[i.length-1][1];return b<x?(b=(e=Object(s.__read)([x,b],2))[0],x=e[1]):b===x&&(x=0),{startAngle:n,endAngle:r,radius:b,innerRadius:x}}function Dc(t,e,n){var r=n.toAttrs,i=n.coordinate,o=r.path||[],a=o.map((function(t){return t[0]}));if(!(o.length<1)){var l=Bc(o),u=l.startAngle,h=l.endAngle,f=l.radius,p=l.innerRadius,d=Bc(t.attr("path")),g=d.startAngle,y=d.endAngle,v=i.getCenter(),m=u-g,b=h-y;0!==m||0!==b?t.animate((function(t){var e=g+t*m,n=y+t*b;return Object(s.__assign)(Object(s.__assign)({},r),{path:Object(c.H)(a,["M","A","A","Z"])?St(v.x,v.y,f,e,n):Mt(v.x,v.y,f,e,n,p)})}),Object(s.__assign)(Object(s.__assign)({},e),{callback:function(){t.attr("path",o),Object(c.I)(e.callback)&&e.callback()}})):t.attr("path",o)}}function Rc(t,e,n){var r=Gt(n.coordinate,20),i=r.type,o=r.startState,a=r.endState,l=t.setClip({type:i,attrs:o});n.toAttrs&&t.attr(n.toAttrs),l.animate(a,Object(s.__assign)(Object(s.__assign)({},e),{callback:function(){t&&!t.get("destroyed")&&t.set("clipShape",null),l.remove(!0),Object(c.I)(e.callback)&&e.callback()}}))}function Nc(t,e,n){if(t.isGroup())Object(c.j)(t.getChildren(),(function(t){Nc(t,e,n)}));else{var r=t.getBBox(),i=(r.minX+r.maxX)/2,o=(r.minY+r.maxY)/2;if(t.applyToMatrix([i,o,1]),"zoomIn"===n){var a=et.a.transform(t.getMatrix(),[["t",-i,-o],["s",.01,.01],["t",i,o]]);t.setMatrix(a),t.animate({matrix:et.a.transform(t.getMatrix(),[["t",-i,-o],["s",100,100],["t",i,o]])},e)}else t.animate({matrix:et.a.transform(t.getMatrix(),[["t",-i,-o],["s",.01,.01],["t",i,o]])},Object(s.__assign)(Object(s.__assign)({},e),{callback:function(){t.remove(!0),Object(c.I)(e.callback)&&e.callback()}}))}}function zc(t,e,n){Nc(t,e,"zoomIn")}function Yc(t,e,n){Nc(t,e,"zoomOut")}function Gc(t){return[u.TOP,u.BOTTOM].includes(t)?{offsetX:0,offsetY:t===u.TOP?-8:8,style:{textAlign:"center",textBaseline:t===u.TOP?"bottom":"top"}}:[u.LEFT,u.RIGHT].includes(t)?{offsetX:t===u.LEFT?-8:8,offsetY:0,style:{textAlign:t===u.LEFT?"right":"left",textBaseline:"middle",rotate:Math.PI/2}}:{}}function Hc(t,e,n){return{x:t.x+e*Math.cos(n),y:t.y+e*Math.sin(n)}}var Vc,Wc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.getDefaultCfg=function(){return Object(c.h)({},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=.5,r={x:.5,y:.5},i=2*Math.PI/t,o=-1*Math.PI/2+i*e,a=n/(1+1/Math.sin(i/2)),s=Hc(r,n-a,o),c=5*Math.PI/4,l=1*Math.PI/4;return{start:Hc(s,a,c),end:Hc(s,a,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,r=n.fields,i=n.type,o,a=Object(s.__read)(r,1)[0];if(!a)throw new Error("No `fields` specified!");var l=this.getFieldValues(t,a),u=l.length,h=[];return l.forEach((function(n,r){var o=[{field:a,value:n,values:l}],s=Object(c.l)(t,e.getFacetDataFilter(o)),f={type:i,data:s,region:e.getRegion(u,r),columnValue:n,columnField:a,columnIndex:r,columnValuesLength:u,rowValue:null,rowField:null,rowIndex:0,rowValuesLength:1};h.push(f)})),h},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;Object(c.j)(this.facets,(function(e){var n=e.columnValue,r=e.view,i=Object(c.s)(t.cfg.title,"formatter"),o=Object(c.h)({position:["50%","0%"],content:i?i(n):n},Gc(u.TOP),t.cfg.title);r.annotation().text(o)}))},e}(ue),Xc,$c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.getDefaultCfg=function(){return Object(c.h)({},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,r=this.cfg.cols,i,o=Object(s.__read)(n,1)[0];if(!o)throw new Error("No `fields` specified!");var a=this.getFieldValues(t,o),l=a.length;r=r||l;var u=this.getPageCount(l,r),h=[];return a.forEach((function(n,i){var s=e.getRowCol(i,r),f=s.row,p=s.col,d=[{field:o,value:n,values:a}],g=Object(c.l)(t,e.getFacetDataFilter(d)),y={type:e.cfg.type,data:g,region:e.getRegion(u,r,p,f),columnValue:n,rowValue:n,columnField:o,rowField:null,columnIndex:p,rowIndex:f,columnValuesLength:r,rowValuesLength:u,total:l};h.push(y)})),h},e.prototype.getXAxisOption=function(t,e,n,r){return r.rowIndex!==r.rowValuesLength-1&&r.columnValuesLength*r.rowIndex+r.columnIndex+1+r.columnValuesLength<=r.total?Object(s.__assign)(Object(s.__assign)({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return 0!==r.columnIndex?Object(s.__assign)(Object(s.__assign)({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;Object(c.j)(this.facets,(function(e){var n=e.columnValue,r=e.view,i=Object(c.s)(t.cfg.title,"formatter"),o=Object(c.h)({position:["50%","0%"],content:i?i(n):n},Gc(u.TOP),t.cfg.title);r.annotation().text(o)}))},e.prototype.getPageCount=function(t,e){return Math.floor((t+e-1)/e)},e.prototype.getRowCol=function(t,e){var n,r;return{row:Math.floor(t/e),col:t%e}},e}(ue),qc,Uc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.getDefaultCfg=function(){return Object(c.h)({},t.prototype.getDefaultCfg.call(this),{type:"matrix",showTitle:!1,columnTitle:Object(s.__assign)({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:Object(s.__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,o=i,a=[],s=0;s<o;s++)for(var c=n[s],l=0;l<i;l++){var u=n[l],h={type:r,data:t,region:this.getRegion(i,o,s,l),columnValue:c,rowValue:u,columnField:c,rowField:u,columnIndex:s,rowIndex:l,columnValuesLength:o,rowValuesLength:i};a.push(h)}return a},e.prototype.getXAxisOption=function(t,e,n,r){return r.rowIndex!==r.rowValuesLength-1?Object(s.__assign)(Object(s.__assign)({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return 0!==r.columnIndex?Object(s.__assign)(Object(s.__assign)({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;Object(c.j)(this.facets,(function(e,n){var r=e.columnIndex,i=e.rowIndex,o=e.columnValuesLength,a=e.rowValuesLength,s=e.columnValue,l=e.rowValue,h=e.view;if(0===i){var f=Object(c.s)(t.cfg.columnTitle,"formatter"),p=Object(c.h)({position:["50%","0%"],content:f?f(s):s},Gc(u.TOP),t.cfg.columnTitle);h.annotation().text(p)}if(r===o-1){var f=Object(c.s)(t.cfg.rowTitle,"formatter"),p=Object(c.h)({position:["100%","50%"],content:f?f(l):l},Gc(u.RIGHT),t.cfg.rowTitle);h.annotation().text(p)}}))},e}(ue),Kc,Zc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.getDefaultCfg=function(){return Object(c.h)({},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=this,n,r=Object(s.__read)(this.cfg.fields,1)[0],i=[],o=1,a=1,l=[""],u=[""],h,f;return this.cfg.transpose?(h=r,l=this.getFieldValues(t,h).slice(0,2),o=l.length):(f=r,u=this.getFieldValues(t,f).slice(0,2),a=u.length),l.forEach((function(n,r){u.forEach((function(s,p){var d=[{field:h,value:n,values:l},{field:f,value:s,values:u}],g=Object(c.l)(t,e.getFacetDataFilter(d)),y={type:e.cfg.type,data:g,region:e.getRegion(a,o,r,p),columnValue:n,rowValue:s,columnField:h,rowField:f,columnIndex:r,rowIndex:p,columnValuesLength:o,rowValuesLength:a};i.push(y)}))})),i},e.prototype.getXAxisOption=function(t,e,n,r){return 1===r.columnIndex||1===r.rowIndex?Object(s.__assign)(Object(s.__assign)({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return n},e.prototype.renderTitle=function(){var t=this;Object(c.j)(this.facets,(function(e,n){var r=e.columnValue,i=e.rowValue,o=e.view,a=Object(c.s)(t.cfg.title,"formatter");if(t.cfg.transpose){var s=Object(c.h)({position:["50%","0%"],content:a?a(r):r},Gc(u.TOP),t.cfg.title);o.annotation().text(s)}else{var s=Object(c.h)({position:["100%","50%"],content:a?a(i):i},Gc(u.RIGHT),t.cfg.title);o.annotation().text(s)}}))},e}(ue),Qc,Jc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.getDefaultCfg=function(){return Object(c.h)({},t.prototype.getDefaultCfg.call(this),{type:"rect",columnTitle:Object(s.__assign)({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:Object(s.__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=Object(s.__read)(this.cfg.fields,2),r=n[0],i=n[1],o=[],a=1,l=1,u=[""],h=[""];return r&&(u=this.getFieldValues(t,r),a=u.length),i&&(h=this.getFieldValues(t,i),l=h.length),u.forEach((function(n,s){h.forEach((function(f,p){var d=[{field:r,value:n,values:u},{field:i,value:f,values:h}],g=Object(c.l)(t,e.getFacetDataFilter(d)),y={type:e.cfg.type,data:g,region:e.getRegion(l,a,s,p),columnValue:n,rowValue:f,columnField:r,rowField:i,columnIndex:s,rowIndex:p,columnValuesLength:a,rowValuesLength:l};o.push(y)}))})),o},e.prototype.renderTitle=function(){var t=this;Object(c.j)(this.facets,(function(e,n){var r=e.columnIndex,i=e.rowIndex,o=e.columnValuesLength,a=e.columnValue,s=e.rowValue,l=e.view;if(0===i){var h=Object(c.s)(t.cfg.columnTitle,"formatter"),f=Object(c.h)({position:["50%","0%"],content:h?h(a):a},Gc(u.TOP),t.cfg.columnTitle);l.annotation().text(f)}if(r===o-1){var h=Object(c.s)(t.cfg.rowTitle,"formatter"),f=Object(c.h)({position:["100%","50%"],content:h?h(s):s},Gc(u.RIGHT),t.cfg.rowTitle);l.annotation().text(f)}}))},e.prototype.getXAxisOption=function(t,e,n,r){return r.rowIndex!==r.rowValuesLength-1?Object(s.__assign)(Object(s.__assign)({},n),{title:null,label:null}):r.columnIndex!==Math.floor((r.columnValuesLength-1)/2)?Object(s.__assign)(Object(s.__assign)({},n),{title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return 0!==r.columnIndex?Object(s.__assign)(Object(s.__assign)({},n),{title:null,label:null}):r.rowIndex!==Math.floor((r.rowValuesLength-1)/2)?Object(s.__assign)(Object(s.__assign)({},n),{title:null}):n},e}(ue),tl,el=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 Object(s.__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(g.AFTER_RENDER,this.afterChartRender)},e.prototype.getDefaultCfg=function(){return Object(c.h)({},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){var e;if(!this.cfg.fields.length)throw new Error("Please specify for the fields for rootFacet!");var n=[],r={type:this.cfg.type,data:t,region:null,rowValuesLength:this.getRows(),columnValuesLength:1,rowIndex:0,columnIndex:0,rowField:"",columnField:"",rowValue:"",columnValue:""};return n.push(r),r.children=this.getChildFacets(t,1,n),this.setRegion(n),n},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,o=1/t,a={x:i*n,y:o*r},s;return{start:a,end:{x:a.x+i,y:a.y+2*o/3}}},e.prototype.forceColIndex=function(t){var e,n,r=this,i=[],o=0;t.forEach((function(t){r.isLeaf(t)&&(i.push(t),t.columnIndex=o,o++)})),i.forEach((function(t){t.columnValuesLength=i.length}));for(var a,c=this.cfg.fields.length-1;c>=0;c--){var l=this.getFacetsByLevel(t,c);try{for(var u=(e=void 0,Object(s.__values)(l)),h=u.next();!h.done;h=u.next()){var f=h.value;this.isLeaf(f)||(f.originColIndex=f.columnIndex,f.columnIndex=this.getRegionIndex(f.children),f.columnValuesLength=i.length)}}catch(t){e={error:t}}finally{try{h&&!h.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],n;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,o;if(!(i.length<e)){var a=[],s=i[e-1],c=this.getFieldValues(t,s);return c.forEach((function(i,o){var l=[{field:s,value:i,values:c}],u=t.filter(r.getFacetDataFilter(l));if(u.length){var h={type:r.cfg.type,data:u,region:null,columnValue:i,rowValue:"",columnField:s,rowField:"",columnIndex:o,rowValuesLength:r.getRows(),columnValuesLength:1,rowIndex:e,children:r.getChildFacets(u,e+1,n)};a.push(h),n.push(h)}})),a}},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.renderTitle=function(){var t=this;Object(c.j)(this.facets,(function(e){var n=e.columnValue,r=e.view,i=Object(c.s)(t.cfg.title,"formatter"),o=Object(c.h)({position:["50%","0%"],content:i?i(n):n},Gc(u.TOP),t.cfg.title);r.annotation().text(o)}))},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,i=t.view.coordinateBBox,o={x:i.x+i.width/2,y:i.y+i.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},i={x:o.x,y:o.y+(r.y-o.y)/2},a={x:r.x,y:i.y};n.drawLine([o,i,a,r])}))},e.prototype.getPath=function(t){var e=[],n;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:Object(c.b)({path:e},n)})},e.prototype.getXAxisOption=function(t,e,n,r){return r.rowIndex!==r.rowValuesLength-1?Object(s.__assign)(Object(s.__assign)({},n),{title:null,label:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return 0!==r.originColIndex&&0!==r.columnIndex?Object(s.__assign)(Object(s.__assign)({},n),{title:null,label:null}):n},e}(ue);function nl(t){var e=Object(s.__spreadArray)([],Object(s.__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}function rl(t){var e=Object(c.ib)(t,(function(t,e){return t+(isNaN(e)||!Object(c.M)(e)?0:e)}),0);return 0===t.length?0:e/t.length}function il(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?nl(e.values.map((function(t,e){return e}))):nl(e.values);break;case"mean":n=e.isCategory?(e.values.length-1)/2:rl(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)}var ol=["regionFilter","shape"],al,sl=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.foregroundContainer=n.view.getLayer(l.FORE).addGroup(),n.backgroundContainer=n.view.getLayer(l.BG).addGroup(),n.option=[],n}return Object(s.__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;Object(c.j)(t.option,(function(n){if(Object(c.A)(ol,n.type)){var r=t.updateOrCreate(n);r&&e.set(t.getCacheKey(n),r)}})),t.cache=t.syncCache(e)}));var e=new Map;Object(c.j)(this.option,(function(n){if(!Object(c.A)(ol,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){var e=!1;this.view.getOptions().animate&&this.view.geometries.forEach((function(n){n.animateOption&&(n.once(y.AFTER_DRAW_ANIMATE,(function(){t()})),e=!0)})),e||this.view.getRootView().once(g.AFTER_RENDER,(function(){t()}))},e.prototype.createAnnotation=function(t){var e=t.type,n=pt.Annotation[Object(c.wb)(e)];if(n){var r=this.getAnnotationTheme(e),i=this.getAnnotationCfg(e,t,r),o;return i?{component:new n(i),layer:this.isTop(i)?l.FORE:l.BG,direction:u.NONE,type:h.ANNOTATION,extra:t}:null}},e.prototype.annotation=function(t){this.option.push(t)},e.prototype.arc=function(t){return this.annotation(Object(s.__assign)({type:"arc"},t)),this},e.prototype.image=function(t){return this.annotation(Object(s.__assign)({type:"image"},t)),this},e.prototype.line=function(t){return this.annotation(Object(s.__assign)({type:"line"},t)),this},e.prototype.region=function(t){return this.annotation(Object(s.__assign)({type:"region"},t)),this},e.prototype.text=function(t){return this.annotation(Object(s.__assign)({type:"text"},t)),this},e.prototype.dataMarker=function(t){return this.annotation(Object(s.__assign)({type:"dataMarker"},t)),this},e.prototype.dataRegion=function(t){this.annotation(Object(s.__assign)({type:"dataRegion"},t))},e.prototype.regionFilter=function(t){this.annotation(Object(s.__assign)({type:"regionFilter"},t))},e.prototype.shape=function(t){this.annotation(Object(s.__assign)({type:"shape"},t))},e.prototype.html=function(t){this.annotation(Object(s.__assign)({type:"html"},t))},e.prototype.parsePosition=function(t){var e,n,r=this.view.getXScale(),i=this.view.getScalesByDim("y"),o=Object(c.I)(t)?t.call(null,r,i):t,a=0,l=0;if(Object(c.C)(o)){var u=Object(s.__read)(o,2),h=u[0],f=u[1];if(Object(c.Q)(h)&&-1!==h.indexOf("%")&&!isNaN(h.slice(0,-1)))return this.parsePercentPosition(o);a=il(h,r),l=il(f,Object.values(i)[0])}else if(!Object(c.K)(o))try{for(var p=Object(s.__values)(Object(c.T)(o)),d=p.next();!d.done;d=p.next()){var g=d.value,y=o[g];g===r.field&&(a=il(y,r)),i[g]&&(l=il(y,i[g]))}}catch(t){e={error:t}}finally{try{d&&!d.done&&(n=p.return)&&n.call(p)}finally{if(e)throw e.error}}return isNaN(a)||isNaN(l)?null:this.view.getCoordinate().convert({x:a,y:l})},e.prototype.getRegionPoints=function(t,e){var n=this,r=this.view.getXScale(),i=this.view.getScalesByDim("y"),o=Object.values(i)[0],a=r.field,s=this.view.getData(),l=Object(c.C)(t)?t[0]:t[a],u=Object(c.C)(e)?e[0]:e[a],h=[],f;return Object(c.j)(s,(function(t,e){if(t[a]===l&&(f=e),e>=f){var r=n.parsePosition([t[a],t[o.field]]);r&&h.push(r)}if(t[a]===u)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,o=r.end,a=Math.min(i.x,o.x),s=Math.min(i.y,o.y),c,l;return{x:r.getWidth()*e+a,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(),o={x:Math.min(e.x,n.x),y:Math.min(e.y,n.y)};return{x:o.x,y:o.y,minX:o.x,minY:o.y,maxX:o.x+r,maxY:o.y+i,width:r,height:i}},e.prototype.getAnnotationCfg=function(t,e,n){var r=this,i=this.view.getCoordinate(),o=this.view.getCanvas(),a={};if(Object(c.K)(e))return null;var l=e.start,u=e.end,h=e.position,f=this.parsePosition(l),p=this.parsePosition(u),d=this.parsePosition(h);if(!(!["arc","image","line","region","regionFilter"].includes(t)||f&&p))return null;if(["text","dataMarker","html"].includes(t)&&!d)return null;if("arc"===t){var g=e,y=g.start,v=g.end,m=Object(s.__rest)(g,["start","end"]),b=Yt(i,f),x=Yt(i,p);b>x&&(x=2*Math.PI+x),a=Object(s.__assign)(Object(s.__assign)({},m),{center:i.getCenter(),radius:Nt(i,f),startAngle:b,endAngle:x})}else if("image"===t){var O=e,j=O.start,w=O.end,m=Object(s.__rest)(O,["start","end"]);a=Object(s.__assign)(Object(s.__assign)({},m),{start:f,end:p,src:e.src})}else if("line"===t){var _=e,M=_.start,S=_.end,m=Object(s.__rest)(_,["start","end"]);a=Object(s.__assign)(Object(s.__assign)({},m),{start:f,end:p,text:Object(c.s)(e,"text",null)})}else if("region"===t){var C=e,A=C.start,k=C.end,m=Object(s.__rest)(C,["start","end"]);a=Object(s.__assign)(Object(s.__assign)({},m),{start:f,end:p})}else if("text"===t){var T=this.view.getData(),E=e,P=E.position,I=E.content,m=Object(s.__rest)(E,["position","content"]),F=I;Object(c.I)(I)&&(F=I(T)),a=Object(s.__assign)(Object(s.__assign)(Object(s.__assign)({},d),m),{content:F})}else if("dataMarker"===t){var L=e,B=L.position,D=L.point,R=L.line,N=L.text,z=L.autoAdjust,Y=L.direction,m=Object(s.__rest)(L,["position","point","line","text","autoAdjust","direction"]);a=Object(s.__assign)(Object(s.__assign)(Object(s.__assign)({},m),d),{coordinateBBox:this.getCoordinateBBox(),point:D,line:R,text:N,autoAdjust:z,direction:Y})}else if("dataRegion"===t){var G=e,H=G.start,V=G.end,W=G.region,N=G.text,X=G.lineLength,m=Object(s.__rest)(G,["start","end","region","text","lineLength"]);a=Object(s.__assign)(Object(s.__assign)({},m),{points:this.getRegionPoints(H,V),region:W,text:N,lineLength:X})}else if("regionFilter"===t){var $=e,q=$.start,U=$.end,K=$.apply,Z=$.color,m=Object(s.__rest)($,["start","end","apply","color"]),Q=this.view.geometries,J=[],tt=function(t){t&&(t.isGroup()?t.getChildren().forEach((function(t){return tt(t)})):J.push(t))};Object(c.j)(Q,(function(t){K?Object(c.f)(K,t.type)&&Object(c.j)(t.elements,(function(t){tt(t.shape)})):Object(c.j)(t.elements,(function(t){tt(t.shape)}))})),a=Object(s.__assign)(Object(s.__assign)({},m),{color:Z,shapes:J,start:f,end:p})}else if("shape"===t){var et=e,nt=et.render,rt=Object(s.__rest)(et,["render"]),it=function(t){if(Object(c.I)(e.render))return nt(t,r.view,{parsePosition:r.parsePosition.bind(r)})};a=Object(s.__assign)(Object(s.__assign)({},rt),{render:it})}else if("html"===t){var ot=e,at=ot.html,st=ot.position,rt=Object(s.__rest)(ot,["html","position"]),ct=function(t){return Object(c.I)(at)?at(t,r.view):at};a=Object(s.__assign)(Object(s.__assign)(Object(s.__assign)({},rt),d),{parent:o.get("el").parentNode,html:ct})}var lt=Object(c.h)({},n,Object(s.__assign)(Object(s.__assign)({},a),{top:e.top,style:e.style,offsetX:e.offsetX,offsetY:e.offsetY}));return"html"!==t&&(lt.container=this.getComponentContainer(lt)),lt.animate=this.view.getOptions().animate&&lt.animate&&Object(c.s)(e,"animate",lt.animate),lt.animateOption=Object(c.h)({},ti,lt.animateOption,e.animateOption),lt},e.prototype.isTop=function(t){return Object(c.s)(t,"top",!0)},e.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},e.prototype.getAnnotationTheme=function(t){return Object(c.s)(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,r=this.getAnnotationTheme(n),i=this.getAnnotationCfg(n,t,r);i&&Pt(i,["container"]),e.component.update(Object(s.__assign)(Object(s.__assign)({},i||{}),{visible:!!i})),Object(c.A)(ol,t.type)&&e.component.render()}else(e=this.createAnnotation(t))&&(e.component.init(),Object(c.A)(ol,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){Object(c.m)(e.option,(function(t){return r===e.getCacheKey(t)}))||(t.component.destroy(),n.delete(r))})),n},e.prototype.getCacheKey=function(t){return t},e}($r);function cl(t,e){var n=Object(c.h)({},Object(c.s)(t,["components","axis","common"]),Object(c.s)(t,["components","axis",e]));return Object(c.s)(n,["grid"],{})}function ll(t,e,n,r){var i=[],o=e.getTicks();return t.isPolar&&o.push({value:1,text:"",tickValue:""}),o.reduce((function(e,o,a){var s=o.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(a){var c,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 o}),o[0]),i}function ul(t,e,n,r,i){var o=e.values.length,a=[],s=n.getTicks();return s.reduce((function(e,n){var s=e?e.value:n.value,l=n.value,u=(s+l)/2;return"x"===i?a.push({points:[t.convert({x:r?l:u,y:0}),t.convert({x:r?l:u,y:1})]}):a.push({points:Object(c.W)(Array(o+1),(function(e,n){return t.convert({x:n/o,y:r?l:u})}))}),n}),s[0]),a}function hl(t,e){var n=Object(c.s)(e,"grid");if(null===n)return!1;var r=Object(c.s)(t,"grid");return!(void 0===n&&null===r)}var fl=["container"],pl=Object(s.__assign)(Object(s.__assign)({},ti),{appear:null}),dl,gl=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.gridContainer=n.view.getLayer(l.BG).addGroup(),n.gridForeContainer=n.view.getLayer(l.FORE).addGroup(),n.axisContainer=n.view.getLayer(l.BG).addGroup(),n.axisForeContainer=n.view.getLayer(l.FORE).addGroup(),n}return Object(s.__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();Object(c.j)(this.getComponents(),(function(n){var r=n.component,i=n.direction,o=n.type,a=n.extra,s=a.dim,c=a.scale,l=a.alignTick,u;if(o===h.AXIS)e.isPolar?"x"===s?u=e.isTransposed?te(e,i):ae(e):"y"===s&&(u=e.isTransposed?ae(e):te(e,i)):u=te(e,i);else if(o===h.GRID)if(e.isPolar){var f=void 0;u={items:f=e.isTransposed?"x"===s?ul(e,t.view.getYScales()[0],c,l,s):ll(e,c,s,l):"x"===s?ll(e,c,s,l):ul(e,t.view.getXScale(),c,l,s),center:t.view.getCoordinate().getCenter()}}else u={items:ll(e,c,s,l)};r.update(u)}))},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=se(this.option,e.field);if(!1!==n){var r=ce(n,u.BOTTOM),i=l.BG,o="x",a=this.view.getCoordinate(),s=this.getId("axis",e.field),h=this.getId("grid",e.field);if(a.isRect){var f,p,d,p;if(f=this.cache.get(s))Pt(p=this.getLineAxisCfg(e,n,r),fl),f.component.update(p),t.set(s,f);else f=this.createLineAxis(e,n,i,r,"x"),this.cache.set(s,f),t.set(s,f);if(d=this.cache.get(h))Pt(p=this.getLineGridCfg(e,n,r,"x"),fl),d.component.update(p),t.set(h,d);else(d=this.createLineGrid(e,n,i,r,"x"))&&(this.cache.set(h,d),t.set(h,d))}else if(a.isPolar){var f,d;if(f=this.cache.get(s)){var p;Pt(p=a.isTransposed?this.getLineAxisCfg(e,n,u.RADIUS):this.getCircleAxisCfg(e,n,r),fl),f.component.update(p),t.set(s,f)}else{if(a.isTransposed){if(Object(c.S)(n))return;f=this.createLineAxis(e,n,i,u.RADIUS,"x")}else f=this.createCircleAxis(e,n,i,r,"x");this.cache.set(s,f),t.set(s,f)}if(d=this.cache.get(h)){var p;Pt(p=a.isTransposed?this.getCircleGridCfg(e,n,u.RADIUS,"x"):this.getLineGridCfg(e,n,u.CIRCLE,"x"),fl),d.component.update(p),t.set(h,d)}else{if(a.isTransposed){if(Object(c.S)(n))return;d=this.createCircleGrid(e,n,i,u.RADIUS,"x")}else d=this.createLineGrid(e,n,i,u.CIRCLE,"x");d&&(this.cache.set(h,d),t.set(h,d))}}}}},e.prototype.updateYAxes=function(t){var e=this,n=this.view.getYScales();Object(c.j)(n,(function(n,r){if(n&&!n.isIdentity){var i=n.field,o=se(e.option,i);if(!1!==o){var a=l.BG,s="y",h=e.getId("axis",i),f=e.getId("grid",i),p=e.view.getCoordinate();if(p.isRect){var d=ce(o,0===r?u.LEFT:u.RIGHT),g,y,v,y;if(g=e.cache.get(h))Pt(y=e.getLineAxisCfg(n,o,d),fl),g.component.update(y),t.set(h,g);else g=e.createLineAxis(n,o,a,d,"y"),e.cache.set(h,g),t.set(h,g);if(v=e.cache.get(f))Pt(y=e.getLineGridCfg(n,o,d,"y"),fl),v.component.update(y),t.set(f,v);else(v=e.createLineGrid(n,o,a,d,"y"))&&(e.cache.set(f,v),t.set(f,v))}else if(p.isPolar){var g,v;if(g=e.cache.get(h)){var y;Pt(y=p.isTransposed?e.getCircleAxisCfg(n,o,u.CIRCLE):e.getLineAxisCfg(n,o,u.RADIUS),fl),g.component.update(y),t.set(h,g)}else{if(p.isTransposed){if(Object(c.S)(o))return;g=e.createCircleAxis(n,o,a,u.CIRCLE,"y")}else g=e.createLineAxis(n,o,a,u.RADIUS,"y");e.cache.set(h,g),t.set(h,g)}if(v=e.cache.get(f)){var y;Pt(y=p.isTransposed?e.getLineGridCfg(n,o,u.CIRCLE,"y"):e.getCircleGridCfg(n,o,u.RADIUS,"y"),fl),v.component.update(y),t.set(f,v)}else{if(p.isTransposed){if(Object(c.S)(o))return;v=e.createLineGrid(n,o,a,u.CIRCLE,"y")}else v=e.createCircleGrid(n,o,a,u.RADIUS,"y");v&&(e.cache.set(f,v),t.set(f,v))}}}}}))},e.prototype.createLineAxis=function(t,e,n,r,i){var o={component:new dt(this.getLineAxisCfg(t,e,r)),layer:n,direction:r===u.RADIUS?u.NONE:r,type:h.AXIS,extra:{dim:i,scale:t}};return o.component.set("field",t.field),o.component.init(),o},e.prototype.createLineGrid=function(t,e,n,r,i){var o=this.getLineGridCfg(t,e,r,i);if(o){var a={component:new yt(o),layer:n,direction:u.NONE,type:h.GRID,extra:{dim:i,scale:t,alignTick:Object(c.s)(o,"alignTick",!0)}};return a.component.init(),a}},e.prototype.createCircleAxis=function(t,e,n,r,i){var o={component:new gt(this.getCircleAxisCfg(t,e,r)),layer:n,direction:r,type:h.AXIS,extra:{dim:i,scale:t}};return o.component.set("field",t.field),o.component.init(),o},e.prototype.createCircleGrid=function(t,e,n,r,i){var o=this.getCircleGridCfg(t,e,r,i);if(o){var a={component:new vt(o),layer:n,direction:u.NONE,type:h.GRID,extra:{dim:i,scale:t,alignTick:Object(c.s)(o,"alignTick",!0)}};return a.component.init(),a}},e.prototype.getLineAxisCfg=function(t,e,n){var r=Object(c.s)(e,["top"])?this.axisForeContainer:this.axisContainer,i=this.view.getCoordinate(),o=te(i,n),a=le(t,e),l=ie(this.view.getTheme(),n),u=Object(c.s)(e,["title"])?Object(c.h)({title:{style:{text:a}}},{title:oe(this.view.getTheme(),n,e.title)},e):e,h=Object(c.h)(Object(s.__assign)(Object(s.__assign)({container:r},o),{ticks:t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}})),verticalFactor:i.isPolar?-1*re(o,i.getCenter()):re(o,i.getCenter()),theme:l}),l,u),f=this.getAnimateCfg(h),p=f.animate,d=f.animateOption;h.animateOption=d,h.animate=p;var g=ne(o),y=Object(c.s)(h,"verticalLimitLength",g?1/3:.5);if(y<=1){var v=this.view.getCanvas().get("width"),m=this.view.getCanvas().get("height");h.verticalLimitLength=y*(g?v:m)}return h},e.prototype.getLineGridCfg=function(t,e,n,r){if(hl(ie(this.view.getTheme(),n),e)){var i=cl(this.view.getTheme(),n),o=Object(c.h)({container:Object(c.s)(e,["top"])?this.gridForeContainer:this.gridContainer},i,Object(c.s)(e,"grid"),this.getAnimateCfg(e));return o.items=ll(this.view.getCoordinate(),t,r,Object(c.s)(o,"alignTick",!0)),o}},e.prototype.getCircleAxisCfg=function(t,e,n){var r=Object(c.s)(e,["top"])?this.axisForeContainer:this.axisContainer,i=this.view.getCoordinate(),o=t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}}));t.isCategory||Math.abs(i.endAngle-i.startAngle)!==2*Math.PI||o.length&&(o[o.length-1].name="");var a=le(t,e),l=ie(this.view.getTheme(),u.CIRCLE),h=Object(c.s)(e,["title"])?Object(c.h)({title:{style:{text:a}}},{title:oe(this.view.getTheme(),n,e.title)},e):e,f=Object(c.h)(Object(s.__assign)(Object(s.__assign)({container:r},ae(this.view.getCoordinate())),{ticks:o,verticalFactor:1,theme:l}),l,h),p=this.getAnimateCfg(f),d=p.animate,g=p.animateOption;return f.animate=d,f.animateOption=g,f},e.prototype.getCircleGridCfg=function(t,e,n,r){if(hl(ie(this.view.getTheme(),n),e)){var i=cl(this.view.getTheme(),u.RADIUS),o=Object(c.h)({container:Object(c.s)(e,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},i,Object(c.s)(e,"grid"),this.getAnimateCfg(e)),a=Object(c.s)(o,"alignTick",!0),s="x"===r?this.view.getYScales()[0]:this.view.getXScale();return o.items=ul(this.view.getCoordinate(),s,t,a,r),o}},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&&Object(c.s)(t,"animate"),animateOption:t&&t.animateOption?Object(c.h)({},pl,t.animateOption):pl}},e}($r);function yl(t,e,n){return n===u.TOP?[t.minX+t.width/2-e.width/2,t.minY]:n===u.BOTTOM?[t.minX+t.width/2-e.width/2,t.maxY-e.height]:n===u.LEFT?[t.minX,t.minY+t.height/2-e.height/2]:n===u.RIGHT?[t.maxX-e.width,t.minY+t.height/2-e.height/2]:n===u.TOP_LEFT||n===u.LEFT_TOP?[t.tl.x,t.tl.y]:n===u.TOP_RIGHT||n===u.RIGHT_TOP?[t.tr.x-e.width,t.tr.y]:n===u.BOTTOM_LEFT||n===u.LEFT_BOTTOM?[t.bl.x,t.bl.y-e.height]:n===u.BOTTOM_RIGHT||n===u.RIGHT_BOTTOM?[t.br.x-e.width,t.br.y-e.height]:[0,0]}function vl(t,e){if(e.isTransposed)switch(t){case u.BOTTOM:return u.LEFT;case u.LEFT:return u.BOTTOM;case u.RIGHT:return u.TOP;case u.TOP:return u.RIGHT}return t}function ml(t){return t===u.LEFT?u.RIGHT:t===u.RIGHT?u.LEFT:t}function bl(t){return t===u.TOP?u.BOTTOM:t===u.BOTTOM?u.TOP:t}function xl(t,e){var n=e.matrix[0],r=e.matrix[4],i=t;return n<0&&(i=ml(i)),r<0&&(i=bl(i)),i}function Ol(t,e){var n=t;return e.isReflect("x")&&(n=ml(n)),e.isReflect("y")&&(n=bl(n)),n}function jl(t,e){var n=t;return n=Ol(n=xl(n=vl(n,e),e),e)}function wl(t,e){return Object(c.D)(t)?!1!==t&&{}:Object(c.s)(t,[e],t)}function _l(t){return Object(c.s)(t,"position",u.BOTTOM)}var Ml,Sl=function(t){function e(e){var n=t.call(this,e)||this;return n.container=n.view.getLayer(l.FORE).addGroup(),n}return Object(s.__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,Object(c.j)(this.components,(function(e){var n=e.component,r=e.direction,i=Ki(r),o=n.get("maxWidthRatio"),a=n.get("maxHeightRatio"),c=t.getCategoryLegendSizeCfg(i,o,a),l=n.get("maxWidth"),u=n.get("maxHeight");n.update({maxWidth:Math.min(c.maxWidth,l||0),maxHeight:Math.min(c.maxHeight,u||0)});var h=n.get("padding"),f=n.getLayoutBBox(),p=new Ft(f.x,f.y,f.width,f.height).expand(h),d=Object(s.__read)(yl(t.view.viewBBox,p,r),2),g=d[0],y=d[1],v=Object(s.__read)(yl(t.layoutBBox,p,r),2),m=v[0],b=v[1],x=0,O=0;r.startsWith("top")||r.startsWith("bottom")?(x=g,O=b):(x=m,O=y),n.setLocation({x:x+h[3],y:O+h[0]}),t.layoutBBox=t.layoutBBox.cut(p,r)}))},e.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var e={},n=function(n,r,i){var o=t.getId(i.field),a=t.getComponentById(o);if(a){var s=void 0,l=wl(t.option,i.field);!1!==l&&(Object(c.s)(l,"custom")?s=t.getCategoryCfg(n,r,i,l,!0):i.isLinear?s=t.getContinuousCfg(n,r,i,l):i.isCategory&&(s=t.getCategoryCfg(n,r,i,l))),s&&(Pt(s,["container"]),a.direction=_l(l),a.component.update(s),e[o]=!0)}else{var u=t.createFieldLegend(n,r,i);u&&(u.component.init(),t.components.push(u),e[o]=!0)}};if(Object(c.s)(this.option,"custom")){var r="global-custom",i=this.getComponentById(r);if(i){var o=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);Pt(o,["container"]),i.component.update(o),e[r]=!0}else{var a=this.createCustomLegend(void 0,void 0,void 0,this.option);if(a){a.init();var s=l.FORE,u=_l(this.option);this.components.push({id:r,component:a,layer:s,direction:u,type:h.LEGEND,extra:void 0}),e[r]=!0}}}else this.loopLegends(n);var f=[];Object(c.j)(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 Object(c.j)(t.views,(function(t){n=n.concat(e.getGeometries(t))})),n},e.prototype.loopLegends=function(t){var e;if(this.view.getRootView()===this.view){var n=this.getGeometries(this.view),r={};Object(c.j)(n,(function(e){var n=e.getGroupAttributes();Object(c.j)(n,(function(n){var i=n.getScale(n.type);i&&"identity"!==i.type&&!r[i.field]&&(t(e,n,i),r[i.field]=!0)}))}))}},e.prototype.createFieldLegend=function(t,e,n){var r,i=wl(this.option,n.field),o=l.FORE,a=_l(i);if(!1!==i&&(Object(c.s)(i,"custom")?r=this.createCustomLegend(t,e,n,i):n.isLinear?r=this.createContinuousLegend(t,e,n,i):n.isCategory&&(r=this.createCategoryLegend(t,e,n,i))),r)return r.set("field",n.field),{id:this.getId(n.field),component:r,layer:o,direction:a,type:h.LEGEND,extra:{scale:n}}},e.prototype.createCustomLegend=function(t,e,n,r){var i=this.getCategoryCfg(t,e,n,r,!0);return new mt(i)},e.prototype.createContinuousLegend=function(t,e,n,r){var i=this.getContinuousCfg(t,e,n,Pt(r,["value"]));return new bt(i)},e.prototype.createCategoryLegend=function(t,e,n,r){var i=this.getCategoryCfg(t,e,n,r);return new mt(i)},e.prototype.getContinuousCfg=function(t,e,n,r){var i=n.getTicks(),o=Object(c.m)(i,(function(t){return 0===t.value})),a=Object(c.m)(i,(function(t){return 1===t.value})),s=i.map((function(t){var r=t.value,i=t.tickValue,o=e.mapping(n.invert(r)).join("");return{value:i,attrValue:o,color:o,scaleValue:r}}));o||s.push({value:n.min,attrValue:e.mapping(n.invert(0)).join(""),color:e.mapping(n.invert(0)).join(""),scaleValue:0}),a||s.push({value:n.max,attrValue:e.mapping(n.invert(1)).join(""),color:e.mapping(n.invert(1)).join(""),scaleValue:1}),s.sort((function(t,e){return t.value-e.value}));var l={min:Object(c.z)(s).value,max:Object(c.U)(s).value,colors:[],rail:{type:e.type},track:{}};"size"===e.type&&(l.track={style:{fill:"size"===e.type?this.view.getTheme().defaultColor:void 0}}),"color"===e.type&&(l.colors=s.map((function(t){return t.attrValue})));var u=this.container,h,f=Ki(_l(r)),p=Object(c.s)(r,"title");return p&&(p=Object(c.h)({text:Ut(n)},p)),l.container=u,l.layout=f,l.title=p,l.animateOption=ti,this.mergeLegendCfg(l,r,"continuous")},e.prototype.getCategoryCfg=function(t,e,n,r,i){var o=this.container,a=Object(c.s)(r,"position",u.BOTTOM),s=Ji(this.view.getTheme(),a),l=Object(c.s)(s,["marker"]),h=Object(c.s)(r,"marker"),f=Ki(a),p=Object(c.s)(s,["pageNavigator"]),d=Object(c.s)(r,"pageNavigator"),g=i?Qi(l,h,r.items):Zi(this.view,t,e,l,h),y=Object(c.s)(r,"title");y&&(y=Object(c.h)({text:n?Ut(n):""},y));var v=Object(c.s)(r,"maxWidthRatio"),m=Object(c.s)(r,"maxHeightRatio"),b=this.getCategoryLegendSizeCfg(f,v,m);b.container=o,b.layout=f,b.items=g,b.title=y,b.animateOption=ti,b.pageNavigator=Object(c.h)({},p,d);var x=this.mergeLegendCfg(b,r,a);x.reversed&&x.items.reverse();var O=Object(c.s)(x,"maxItemWidth");return O&&O<=1&&(x.maxItemWidth=this.view.viewBBox.width*O),x},e.prototype.mergeLegendCfg=function(t,e,n){var r=n.split("-")[0],i=Ji(this.view.getTheme(),r);return Object(c.h)({},i,t,e)},e.prototype.getId=function(t){return"".concat(this.name,"-").concat(t)},e.prototype.getComponentById=function(t){return Object(c.m)(this.components,(function(e){return e.id===t}))},e.prototype.getCategoryLegendSizeCfg=function(t,e,n){void 0===e&&(e=.25),void 0===n&&(n=.25);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}($r),Cl,Al=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=c.fb,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=Object(s.__read)(t,2),r=e[0],i=e[1];n.start=r,n.end=i,n.changeViewData(r,i)},n.container=n.view.getLayer(l.FORE).addGroup(),n.onChangeFn=Object(c.qb)(n.onValueChange,20,{leading:!0}),n.width=0,n.view.on(g.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(g.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return Object(s.__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(g.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(g.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;Object(c.K)(this.start)&&(this.start=e,this.end=n);var r=this.view.getOptions().data;this.option&&!Object(c.G)(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"),r=Object(s.__read)(n,4),i=r[0],o=r[1],a=r[2],c=r[3],l=this.slider.component.getLayoutBBox(),h=new Ft(l.x,l.y,Math.min(l.width,e),l.height).expand(n),f=this.getMinMaxText(this.start,this.end),p=f.minText,d=f.maxText,g=Object(s.__read)(yl(this.view.viewBBox,h,u.BOTTOM),2),y=g[0],v=g[1],m=Object(s.__read)(yl(this.view.coordinateBBox,h,u.BOTTOM),2),b=m[0],x=m[1];this.slider.component.update(Object(s.__assign)(Object(s.__assign)({},this.getSliderCfg()),{x:b+c,y:v+i,width:this.width,start:this.start,end:this.end,minText:p,maxText:d})),this.view.viewBBox=this.view.viewBBox.cut(h,u.BOTTOM)}},e.prototype.update=function(){this.render()},e.prototype.createSlider=function(){var t=this.getSliderCfg(),e=new pt.Slider(Object(s.__assign)({container:this.container},t));return e.init(),{component:e,layer:l.FORE,direction:u.BOTTOM,type:h.SLIDER}},e.prototype.updateSlider=function(){var t=this.getSliderCfg();if(this.width){var e=this.getMinMaxText(this.start,this.end),n=e.minText,r=e.maxText;t=Object(s.__assign)(Object(s.__assign)({},t),{width:this.width,start:this.start,end:this.end,minText:n,maxText:r})}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(Object(c.O)(this.option)){var e=Object(s.__assign)({data:this.getData()},Object(c.s)(this.option,"trendCfg",{}));t=Object(c.h)({},t,this.getThemeOptions(),this.option),t=Object(s.__assign)(Object(s.__assign)({},t),{trendCfg:e})}return t.start=Object(c.c)(Math.min(Object(c.K)(t.start)?0:t.start,Object(c.K)(t.end)?1:t.end),0,1),t.end=Object(c.c)(Math.max(Object(c.K)(t.start)?0:t.start,Object(c.K)(t.end)?1:t.end),0,1),t},e.prototype.getData=function(){var t=this.view.getOptions().data,e,n=Object(s.__read)(this.view.getYScales(),1)[0],r=this.view.getGroupScales();if(r.length){var i=r[0],o=i.field,a=i.ticks;return t.reduce((function(t,e){return e[o]===a[0]&&t.push(e[n.field]),t}),[])}return t.map((function(t){return t[n.field]||0}))},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return Object(c.s)(t,["components","slider","common"],{})},e.prototype.getMinMaxText=function(t,e){var n=this.view.getOptions().data,r=this.view.getXScale(),i=!0,o=Object(c.yb)(n,r.field);r.isLinear&&(o=o.sort());var a=o,s=Object(c.mb)(n);if(!r||!s)return{};var l=Object(c.mb)(a),u=Math.round(t*(l-1)),h=Math.round(e*(l-1)),f=Object(c.s)(a,[u]),p=Object(c.s)(a,[h]),d=this.getSliderCfg().formatter;return d&&(f=d(f,n[u],u),p=d(p,n[h],h)),{minText:f,maxText:p}},e.prototype.changeViewData=function(t,e){var n=this.view.getOptions().data,r=this.view.getXScale(),i=Object(c.mb)(n);if(r&&i){var o=!0,a=Object(c.yb)(n,r.field),s=this.view.getXScale().isLinear?a.sort((function(t,e){return Number(t)-Number(e)})):a,l=s,u=Object(c.mb)(l),h=Math.round(t*(u-1)),f=Math.round(e*(u-1));this.view.filter(r.field,(function(t,e){var n=l.indexOf(t);return!(n>-1)||Tt(n,h,f)})),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}($r),kl=0,Tl=8,El=32,Pl=20,Il,Fl=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=c.fb,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t.ratio,r=n.getValidScrollbarCfg().animate;n.ratio=Object(c.c)(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.FORE).addGroup(),n.onChangeFn=Object(c.qb)(n.onValueChange,20,{leading:!0}),n.trackLen=0,n.thumbLen=0,n.ratio=0,n.view.on(g.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(g.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return Object(s.__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(g.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(g.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"),r=this.scrollbar.component.getLayoutBBox(),i=new Ft(r.x,r.y,Math.min(r.width,e),r.height).expand(n),o=this.getScrollbarComponentCfg(),a=void 0,c=void 0;if(o.isHorizontal){var l=Object(s.__read)(yl(this.view.viewBBox,i,u.BOTTOM),2),h=l[0],f=l[1],p=Object(s.__read)(yl(this.view.coordinateBBox,i,u.BOTTOM),2),d=p[0],g=p[1];a=d,c=f}else{var y=Object(s.__read)(yl(this.view.viewBBox,i,u.RIGHT),2),h=y[0],f=y[1],v=Object(s.__read)(yl(this.view.viewBBox,i,u.RIGHT),2),d=v[0],g=v[1];a=d,c=f}a+=n[3],c+=n[0],this.trackLen?this.scrollbar.component.update(Object(s.__assign)(Object(s.__assign)({},o),{x:a,y:c,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update(Object(s.__assign)(Object(s.__assign)({},o),{x:a,y:c})),this.view.viewBBox=this.view.viewBBox.cut(i,o.isHorizontal?u.BOTTOM:u.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 Object(c.s)(t,["components","scrollbar","common"],{})},e.prototype.getScrollbarTheme=function(t){var e=Object(c.s)(this.view.getTheme(),["components","scrollbar"]),n=t||{},r=n.thumbHighlightColor,i=Object(s.__rest)(n,["thumbHighlightColor"]);return{default:Object(c.h)({},Object(c.s)(e,["default","style"],{}),i),hover:Object(c.h)({},Object(c.s)(e,["hover","style"],{}),{thumbColor:r})}},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)*Object(c.c)(this.ratio,0,1)),e;return[t,Math.min(t+this.step-1,this.cnt-1)]},e.prototype.changeViewData=function(t,e){var n=this,r=Object(s.__read)(t,2),i=r[0],o=r[1],a,l="vertical"!==this.getValidScrollbarCfg().type,u=Object(c.yb)(this.data,this.xScaleCfg.field),h=this.view.getXScale().isLinear?u.sort((function(t,e){return Number(t)-Number(e)})):u,f=l?h:h.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=f.indexOf(t);return!(e>-1)||Tt(e,i,o)})),this.view.render(!0)},e.prototype.createScrollbar=function(){var t,e="vertical"!==this.getValidScrollbarCfg().type,n=new pt.Scrollbar(Object(s.__assign)(Object(s.__assign)({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return n.init(),{component:n,layer:l.FORE,direction:e?u.BOTTOM:u.RIGHT,type:h.SCROLLBAR}},e.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),e=this.trackLen?Object(s.__assign)(Object(s.__assign)({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):Object(s.__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=Object(c.yb)(e,t.field);return Object(c.mb)(n)},e.prototype.getScrollbarComponentCfg=function(){var t=this.view,e=t.coordinateBBox,n=t.viewBBox,r=this.getValidScrollbarCfg(),i=r.type,o=r.padding,a=r.width,l=r.height,u=r.style,h="vertical"!==i,f=Object(s.__read)(o,4),p=f[0],d=f[1],g=f[2],y=f[3],v=h?{x:e.minX+y,y:n.maxY-l-g}:{x:n.maxX-a-d,y:e.minY+p},m=this.getStep(),b=this.getCnt(),x=h?e.width-y-d:e.height-p-g,O=Math.max(x*Object(c.c)(m/b,0,1),20);return Object(s.__assign)(Object(s.__assign)({},this.getThemeOptions()),{x:v.x,y:v.y,size:h?l:a,isHorizontal:h,trackLen:x,thumbLen:O,thumbOffset:0,theme:this.getScrollbarTheme(u)})},e.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:32,width:8,height:8,padding:[0,0,0,0],animate:!0,style:{}};return Object(c.O)(this.option)&&(t=Object(s.__assign)(Object(s.__assign)({},t),this.option)),Object(c.O)(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=Object(s.__spreadArray)([],Object(s.__read)(n),!1).reverse()),n},e}($r),Ll={fill:"#CCD6EC",opacity:.3};function Bl(t,e,n){var r,i,o,a,l,u,h=Mr(t,e,n);if(h.length){h=Object(c.q)(h);try{for(var f=Object(s.__values)(h),p=f.next();!p.done;p=f.next()){var d=p.value;try{for(var g=(o=void 0,Object(s.__values)(d)),y=g.next();!y.done;y=g.next()){var v=y.value,m=v.mappingData,b=m.x,x=m.y;v.x=Object(c.C)(b)?b[b.length-1]:b,v.y=Object(c.C)(x)?x[x.length-1]:x}}catch(t){o={error:t}}finally{try{y&&!y.done&&(a=g.return)&&a.call(g)}finally{if(o)throw o.error}}}}catch(t){r={error:t}}finally{try{p&&!p.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}var O;if(!1===n.shared&&h.length>1){var j=h[0],w=Math.abs(e.y-j[0].y);try{for(var _=Object(s.__values)(h),M=_.next();!M.done;M=_.next()){var S=M.value,C=Math.abs(e.y-S[0].y);C<=w&&(j=S,w=C)}}catch(t){l={error:t}}finally{try{M&&!M.done&&(u=_.return)&&u.call(_)}finally{if(l)throw l.error}}h=[j]}return Object(c.ub)(Object(c.q)(h))}return[]}var Dl,Rl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.show=function(t){var e=this.context.view,n=this.context.event,r=e.getController("tooltip").getTooltipCfg(),i=Bl(e,{x:n.x,y:n.y},r);if(!Object(c.H)(i,this.items)&&(this.items=i,i.length)){var o=e.getXScale().field,a=i[0].data[o],l=[],u=e.geometries;if(Object(c.j)(u,(function(t){if("interval"===t.type||"schema"===t.type){var e=t.getElementsBy((function(t){var e;return t.getData()[o]===a}));l=l.concat(e)}})),l.length){var h=e.getCoordinate(),f=l[0].shape.getCanvasBBox(),p=l[0].shape.getCanvasBBox(),d=f;Object(c.j)(l,(function(t){var e=t.shape.getCanvasBBox();h.isTransposed?(e.minY<f.minY&&(f=e),e.maxY>p.maxY&&(p=e)):(e.minX<f.minX&&(f=e),e.maxX>p.maxX&&(p=e)),d.x=Math.min(e.minX,d.minX),d.y=Math.min(e.minY,d.minY),d.width=Math.max(e.maxX,d.maxX)-d.x,d.height=Math.max(e.maxY,d.maxY)-d.y}));var g=e.backgroundGroup,y=e.coordinateBBox,v=void 0;if(h.isRect){var m=e.getXScale(),b=t||{},x=b.appendRatio,O=b.appendWidth;Object(c.K)(O)&&(x=Object(c.K)(x)?m.isLinear?0:.25:x,O=h.isTransposed?x*p.height:x*f.width);var j=void 0,w=void 0,_=void 0,M=void 0;h.isTransposed?(j=y.minX,w=Math.min(p.minY,f.minY)-O,_=y.width,M=d.height+2*O):(j=Math.min(f.minX,p.minX)-O,w=y.minY,_=d.width+2*O,M=y.height),v=[["M",j,w],["L",j+_,w],["L",j+_,w+M],["L",j,w+M],["Z"]]}else{var S=Object(c.z)(l),C=Object(c.U)(l),A=Ct(S.getModel(),h).startAngle,k=Ct(C.getModel(),h).endAngle,T=h.getCenter(),E=h.getRadius(),P=h.innerRadius*E;v=Mt(T.x,T.y,E,A,k,P)}if(this.regionPath)this.regionPath.attr("path",v),this.regionPath.show();else{var I=Object(c.s)(t,"style",Ll);this.regionPath=g.addShape({type:"path",name:"active-region",capture:!1,attrs:Object(s.__assign)(Object(s.__assign)({},I),{path:v})})}}}},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}(ge),Nl,zl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return Object(s.__extends)(e,t),e.prototype.show=function(){var t=this.context,e=t.event,n=t.view,r;if(!n.isTooltipLocked()){var i=this.timeStamp,o=+new Date,a;if(o-i>Object(c.s)(t.view.getOptions(),"tooltip.showDelay",16)){var s=this.location,l={x:e.x,y:e.y};s&&Object(c.H)(s,l)||this.showTooltip(n,l),this.timeStamp=o,this.location=l}}},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}(ge),Yl,Gl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.showTooltip=function(t,e){var n=dn(t);Object(c.j)(n,(function(n){var r=yn(t,n,e);n.showTooltip(r)}))},e.prototype.hideTooltip=function(t){var e=dn(t);Object(c.j)(e,(function(t){t.hideTooltip()}))},e}(zl),Hl,Vl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return Object(s.__extends)(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.show=function(){var t,e=this.context.event,n=this.timeStamp,r=+new Date;if(r-n>16){var i=this.location,o={x:e.x,y:e.y};i&&Object(c.H)(i,o)||this.showTooltip(o),this.timeStamp=r,this.location=o}},e.prototype.hide=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e,n,r=this.context.event.target;if(r&&r.get("tip")){this.tooltip||this.renderTooltip();var i=r.get("tip");this.tooltip.update(Object(s.__assign)({title:i},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,r={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},i=e.getTheme(),o=Object(c.s)(i,["components","tooltip","domStyles"],{}),a=new xt({parent:n.get("el").parentNode,region:r,visible:!1,crosshairs:null,domStyles:Object(s.__assign)({},Object(c.h)({},o,(t={},t[pt.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={"max-width":"50%"},t[pt.TOOLTIP_CSS_CONST.TITLE_CLASS]={"word-break":"break-all"},t)))});a.init(),a.setCapture(!1),this.tooltip=a},e}(ge),Wl,Xl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e}return Object(s.__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=rn(t,this.stateName);Object(c.j)(n,(function(t){e.setElementState(t,!1)}))},e}(ge);function $l(t){return Object(c.s)(t.get("delegateObject"),"item")}var ql,Ul=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreListItemStates=["unchecked"],e}return Object(s.__extends)(e,t),e.prototype.isItemIgnore=function(t,e){var n,r;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=en(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,i=mn(this.context.view,e),o=on(t,e);return!Object(c.K)(o)&&n.name===i.getText(o)},e.prototype.setElementsStateByItem=function(t,e,n,r){var i=this;Object(c.j)(t,(function(t){i.isMathItem(t,e,n)&&t.setState(i.stateName,r)}))},e.prototype.setStateEnable=function(t){var e=He(this.context);if(e)We(this.context)&&this.setStateByElement(e,t);else{var n=Ve(this.context);if(Xe(n)){var r=n.item,i=n.component;if(r&&i&&!this.isItemIgnore(r,i)){var o=this.context.event.gEvent;if(o&&o.fromShape&&o.toShape&&$l(o.fromShape)===$l(o.toShape))return;this.setStateByComponent(i,r,t)}}}},e.prototype.toggle=function(){var t=He(this.context);if(t){var e=t.hasState(this.stateName);this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(Xl),Kl,Zl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(s.__extends)(e,t),e.prototype.active=function(){this.setState()},e}(Ul),Ql,Jl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={},e}return Object(s.__extends)(e,t),e.prototype.getColorScale=function(t,e){var n=e.geometry.getAttribute("color"),r;return n?t.getScaleByField(n.getFields()[0]):null},e.prototype.getLinkPath=function(t,e){var n,r=this.context.view.getCoordinate().isTransposed,i=t.shape.getCanvasBBox(),o=e.shape.getCanvasBBox(),a;return r?[["M",i.minX,i.minY],["L",o.minX,o.maxY],["L",o.maxX,o.maxY],["L",i.maxX,i.minY],["Z"]]:[["M",i.maxX,i.minY],["L",o.minX,o.minY],["L",o.minX,o.maxY],["L",i.maxX,i.maxY],["Z"]]},e.prototype.addLinkShape=function(t,e,n,r){var i={opacity:.4,fill:e.shape.attr("fill")};t.addShape({type:"path",attrs:Object(s.__assign)(Object(s.__assign)({},Object(c.h)({},i,Object(c.I)(r)?r(i,e):r)),{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 o=on(t,i.field);if(!this.cache[o]){var a=nn(r,i.field,o),s,l=this.linkGroup.addGroup();this.cache[o]=l;var u=a.length;Object(c.j)(a,(function(t,r){if(r<u-1){var i=a[r+1];n.addLinkShape(l,t,i,e)}}))}}},e.prototype.removeLink=function(t){var e=this.getColorScale(this.context.view,t);if(e){var n=on(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=He(e);n&&this.linkByElement(n,null==t?void 0:t.style)},e.prototype.unlink=function(){var t=He(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}(ge),tu,eu=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 Object(s.__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(qe(this.context))t=Ke(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;t=sn(this.context.view,r)}return t},e.prototype.setStateEnable=function(t){if(this.effectSiblings&&!this.effectByRecord)this.setSiblingsState(t);else{var e=en(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,i=dn(r),o=t.map((function(t){return t.getModel().data})),a=r.getXScale().field,s=r.getYScales()[0].field;Object(c.j)(i,(function(t){var r=en(t),i=r.filter((function(t){var e=t.getModel().data;return vn(o,e,a,s)}));n.setElementsState(i,e,r)}))},e.prototype.setSiblingsState=function(t){var e=this,n,r=dn(this.context.view);qe(this.context)&&Object(c.j)(r,(function(n){var r=en(n),i=Qe(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;Object(c.j)(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=dn(e);Object(c.j)(n,(function(e){t.clearViewState(e)}))}else this.clearViewState(e)},e}(Xl),nu,ru=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(s.__extends)(e,t),e.prototype.active=function(){this.setState()},e}(eu),iu,ou=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.setStateEnable=function(t){var e=He(this.context);if(e){if(!We(this.context))return;t?(this.clear(),this.setElementState(e,!0)):this.hasState(e)&&this.setElementState(e,!1)}},e.prototype.toggle=function(){var t=He(this.context);if(t){var e=this.hasState(t);e||this.clear(),this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(Xl),au,su=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(s.__extends)(e,t),e.prototype.active=function(){this.setState()},e}(ou),cu="inactive",lu="active";function uu(t){var e=en(t);Object(c.j)(e,(function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("inactive")&&t.setState("inactive",!1)}))}function hu(t,e,n){Object(c.j)(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))}))}var fu=m.INACTIVE,pu=m.ACTIVE,du,gu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=pu,e}return Object(s.__extends)(e,t),e.prototype.setElementsStateByItem=function(t,e,n,r){var i=this,o=function(t){return i.isMathItem(t,e,n)};this.setHighlightBy(t,o,r)},e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(fu)&&t.setState(fu,!1),t.setState(pu,!0)):t.hasState(pu)||t.setState(fu,!0)},e.prototype.setHighlightBy=function(t,e,n){var r=this;if(n)Object(c.j)(t,(function(t){r.setElementHighlight(t,e)}));else{var i=rn(this.context.view,pu),o=!0;Object(c.j)(i,(function(t){if(!e(t))return o=!1,!1})),o?this.clear():Object(c.j)(t,(function(t){e(t)&&(t.hasState(pu)&&t.setState(pu,!1),t.setState(fu,!0))}))}},e.prototype.setElementState=function(t,e){var n,r=en(this.context.view);this.setHighlightBy(r,(function(e){return t===e}),e)},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t;uu(this.context.view)},e}(Ul),yu,vu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.setStateByElement=function(t,e){var n=this.context.view,r=t.geometry.getAttribute("color");if(r){var i=n.getScaleByField(r.getFields()[0]),o=on(t,i.field),a=en(n),s=a.filter((function(t){return on(t,i.field)===o}));this.setHighlightBy(a,(function(t){return s.includes(t)}),e)}},e}(gu),mu,bu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(fu)&&t.setState(fu,!1),t.setState(pu,!0)):(t.setState(fu,!0),t.hasState(pu)&&t.setState(pu,!1))},e.prototype.setStateByElement=function(t,e){var n=this.context.view,r=n.getXScale(),i=on(t,r.field),o=en(n),a=o.filter((function(t){return on(t,r.field)===i}));this.setHighlightBy(o,(function(t){return a.includes(t)}),e)},e.prototype.toggle=function(){var t=He(this.context);if(t){var e=t.hasState(this.stateName);this.setStateByElement(t,!e)}},e}(gu),xu;!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"}(xu||(xu={}));var Ou,ju=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(s.__extends)(e,t),e.prototype.clearViewState=function(t){uu(t)},e.prototype.highlight=function(){var t=this.context,e=t.view,n,r,i={view:e,event:t.event,highlightElements:this.getIntersectElements()};e.emit(xu.BEFORE_HIGHLIGHT,Br.fromData(e,xu.BEFORE_HIGHLIGHT,i)),this.setState(),e.emit(xu.AFTER_HIGHLIGHT,Br.fromData(e,xu.AFTER_HIGHLIGHT,i))},e.prototype.clear=function(){var e=this.context.view;e.emit(xu.BEFORE_CLEAR,Br.fromData(e,xu.BEFORE_CLEAR,{})),t.prototype.clear.call(this),e.emit(xu.AFTER_CLEAR,Br.fromData(e,xu.AFTER_CLEAR,{}))},e.prototype.setElementsState=function(t,e,n){hu(n,(function(e){return t.indexOf(e)>=0}),e)},e}(eu),wu,_u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(s.__extends)(e,t),e.prototype.highlight=function(){this.setState()},e.prototype.setElementState=function(t,e){var n,r;hu(en(this.context.view),(function(e){return t===e}),e)},e.prototype.clear=function(){var t;uu(this.context.view)},e}(ou),Mu,Su=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(s.__extends)(e,t),e.prototype.selected=function(){this.setState()},e}(eu),Cu,Au=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(s.__extends)(e,t),e.prototype.selected=function(){this.setState()},e}(Ul),ku,Tu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(s.__extends)(e,t),e.prototype.selected=function(){this.setState()},e}(ou),Eu,Pu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e.ignoreItemStates=[],e}return Object(s.__extends)(e,t),e.prototype.getTriggerListInfo=function(){var t=Ve(this.context),e=null;return Xe(t)&&(e={item:t.item,list:t.component}),e},e.prototype.getAllowComponents=function(){var t=this,e,n=un(this.context.view),r=[];return Object(c.j)(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();Object(c.j)(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,i=mn(this.context.view,e);return i&&i.isCategory},e.prototype.allowSetStateByItem=function(t,e){var n=this.ignoreItemStates,r;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,o=mn(this.context.view,r),a=on(e,r),s=o.getText(a);this.setItemsState(t,s,n)},e.prototype.setStateEnable=function(t){var e=this,n=He(this.context);if(n){var r=this.getAllowComponents();Object(c.j)(r,(function(r){e.setStateByElement(r,n,t)}))}else{var i=Ve(this.context);if(Xe(i)){var o=i.item,a=i.component;this.allowSetStateByElement(a)&&this.allowSetStateByItem(o,a)&&this.setItemState(a,o,t)}}},e.prototype.setItemsState=function(t,e,n){var r=this,i=t.getItems();Object(c.j)(i,(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}(ge),Iu,Fu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(s.__extends)(e,t),e.prototype.active=function(){this.setState()},e}(Pu),Lu="inactive",Bu="active";function Du(t){var e=t.getItems();Object(c.j)(e,(function(e){t.hasState(e,"active")&&t.setItemState(e,"active",!1),t.hasState(e,"inactive")&&t.setItemState(e,"inactive",!1)}))}var Ru="inactive",Nu="active",zu,Yu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e.ignoreItemStates=["unchecked"],e}return Object(s.__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){var r=t.getItems();this.setHighlightBy(t,(function(t){return t===e}),n)},e.prototype.setHighlightBy=function(t,e,n){var r=t.getItems();if(n)Object(c.j)(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 i=t.getItemsByState("active"),o=!0;Object(c.j)(i,(function(t){if(!e(t))return o=!1,!1})),o?this.clear():Object(c.j)(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)Du(t.list);else{var e=this.getAllowComponents();Object(c.j)(e,(function(t){t.clearItemsState("active"),t.clearItemsState("inactive")}))}},e}(Pu),Gu,Hu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(s.__extends)(e,t),e.prototype.selected=function(){this.setState()},e}(Pu),Vu,Wu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="unchecked",e}return Object(s.__extends)(e,t),e.prototype.unchecked=function(){this.setState()},e}(Pu),Xu="unchecked",$u="checked",qu,Uu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="checked",e}return Object(s.__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&&Object(c.j)(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,r;!Object(c.nb)(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();Object(c.j)(t,(function(t){t.clearItemsState("checked"),t.clearItemsState("unchecked")}))},e}(Pu),Ku="unchecked",Zu,Qu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.toggle=function(){var t,e,n,r,i,o,a,c,l=this.getTriggerListInfo();if(null==l?void 0:l.item){var u=l.list,h=l.item,f=u.getItems(),p=f.filter((function(t){return!u.hasState(t,"unchecked")})),d=f.filter((function(t){return u.hasState(t,"unchecked")})),g=p[0];if(f.length===p.length)try{for(var y=Object(s.__values)(f),v=y.next();!v.done;v=y.next()){var m=v.value;u.setItemState(m,"unchecked",m.id!==h.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(f.length-d.length==1)if(g.id===h.id)try{for(var b=Object(s.__values)(f),x=b.next();!x.done;x=b.next()){var m=x.value;u.setItemState(m,"unchecked",!1)}}catch(t){n={error:t}}finally{try{x&&!x.done&&(r=b.return)&&r.call(b)}finally{if(n)throw n.error}}else try{for(var O=Object(s.__values)(f),j=O.next();!j.done;j=O.next()){var m=j.value;u.setItemState(m,"unchecked",m.id!==h.id)}}catch(t){i={error:t}}finally{try{j&&!j.done&&(o=O.return)&&o.call(O)}finally{if(i)throw i.error}}else try{for(var w=Object(s.__values)(f),_=w.next();!_.done;_=w.next()){var m=_.value;u.setItemState(m,"unchecked",m.id!==h.id)}}catch(t){a={error:t}}finally{try{_&&!_.done&&(c=w.return)&&c.call(w)}finally{if(a)throw a.error}}}},e}(Pu),Ju="showRadio",th="legend-radio-tip",eh,nh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return Object(s.__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,e=this.context.event,n=this.timeStamp,r=+new Date,i=this.context.event.target;if(r-n>16&&"legend-item-radio"===i.get("name")){var o=this.location,a={x:e.x,y:e.y};this.timeStamp=r,this.location=a,o&&Object(c.H)(o,a)||this.showTooltip(a)}},e.prototype.hideTip=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context,n,r=e.event.target;if(r&&r.get("tip")){this.tooltip||this.renderTooltip();var i=e.view.getCanvas().get("el").getBoundingClientRect(),o=i.x,a=i.y;this.tooltip.update(Object(s.__assign)(Object(s.__assign)({title:r.get("tip")},t),{x:t.x+o,y:t.y+a})),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=((t={})[pt.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[pt.TOOLTIP_CSS_CONST.TITLE_CLASS]={"font-size":"12px","line-height":"14px","margin-bottom":0,"word-break":"break-all"},t);document.getElementById(th)&&document.body.removeChild(document.getElementById(th));var n=new xt({parent:document.body,region:null,visible:!1,crosshairs:null,domStyles:e,containerId:th});n.init(),n.setCapture(!1),this.tooltip=n},e}(Pu),rh,ih=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 Object(s.__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(),n;return t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:Object(s.__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,i=this.points;Object(c.j)(i,(function(t){t.x+=n,t.y+=r})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},e.prototype.updateMask=function(t){var e=Object(c.h)({},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}(ge);function oh(t){var e=Object(c.U)(t),n=0,r=0,i=0;if(t.length){var o=t[0];n=hn(o,e)/2,r=(e.x+o.x)/2,i=(e.y+o.y)/2}return{x:r,y:i,r:n}}var ah,sh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e}return Object(s.__extends)(e,t),e.prototype.getMaskAttrs=function(){return oh(this.points)},e}(ih);function ch(t){return{start:Object(c.z)(t),end:Object(c.U)(t)}}function lh(t,e){var n,r,i,o;return{x:Math.min(t.x,e.x),y:Math.min(t.y,e.y),width:Math.abs(e.x-t.x),height:Math.abs(e.y-t.y)}}var uh,hh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return Object(s.__extends)(e,t),e.prototype.getRegion=function(){return ch(this.points)},e.prototype.getMaskAttrs=function(){var t=this.getRegion(),e,n;return lh(t.start,t.end)},e}(ih);function fh(t){t.x=Object(c.c)(t.x,0,1),t.y=Object(c.c)(t.y,0,1)}function ph(t,e,n,r){var i=null,o=null,a=r.invert(Object(c.z)(t)),s=r.invert(Object(c.U)(t));return n&&(fh(a),fh(s)),"x"===e?(i=r.convert({x:a.x,y:0}),o=r.convert({x:s.x,y:1})):(i=r.convert({x:0,y:a.y}),o=r.convert({x:1,y:s.y})),{start:i,end:o}}var dh,gh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return Object(s.__extends)(e,t),e.prototype.getRegion=function(){var t=this.context.view.getCoordinate();return ph(this.points,this.dim,this.inPlot,t)},e}(hh);function yh(t){var e=[];return t.length&&(Object(c.j)(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}function vh(t){return{path:yh(t)}}var mh,bh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.getMaskPath=function(){return yh(this.points)},e.prototype.getMaskAttrs=function(){return vh(this.points)},e.prototype.addPoint=function(){this.resize()},e}(ih);function xh(t){return fn(t,!0)}function Oh(t){return{path:xh(t)}}var jh,wh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.getMaskPath=function(){return xh(this.points)},e.prototype.getMaskAttrs=function(){return Oh(this.points)},e}(bh),_h,Mh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.maskShapes=[],e.starting=!1,e.moving=!1,e.recordPoints=null,e.preMovePoint=null,e.shapeType="path",e.maskType="multi-mask",e}return Object(s.__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="".concat(this.maskType,":").concat(t),n=this.context.view,r=this.context.event,i={type:this.shapeType,name:this.maskType,get:function(t){return i.hasOwnProperty(t)?i[t]:void 0}};n.emit(e,{target:i,maskShapes:this.maskShapes,multiPoints:this.recordPoints,x:r.x,y:r.y})},e.prototype.createMask=function(t){var e=this.context.view,n=this.recordPoints[t],r=this.getMaskAttrs(n),i=e.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:Object(s.__assign)({fill:"#C5D4EB",opacity:.3},r)});this.maskShapes.push(i)},e.prototype.getMaskPath=function(t){return[]},e.prototype.show=function(){this.maskShapes.length>0&&(this.maskShapes.forEach((function(t){return t.show()})),this.emitEvent("show"))},e.prototype.start=function(t){this.recordPointStart(),this.starting=!0,this.moving=!1;var e=this.recordPoints.length-1;this.createMask(e),this.updateShapesCapture(!1),this.updateMask(null==t?void 0:t.maskStyle),this.emitEvent("start")},e.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint(),this.updateShapesCapture(!1)},e.prototype.move=function(){if(this.moving&&0!==this.maskShapes.length){var t=this.getCurrentPoint(),e=this.preMovePoint,n=t.x-e.x,r=t.y-e.y,i=this.getCurMaskShapeIndex();i>-1&&(this.recordPoints[i].forEach((function(t){t.x+=n,t.y+=r})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t)}},e.prototype.updateMask=function(t){var e=this;this.recordPoints.forEach((function(n,r){var i=Object(c.h)({},e.getMaskAttrs(n),t);e.maskShapes[r].attr(i)}))},e.prototype.resize=function(){this.starting&&this.maskShapes.length>0&&(this.recordPointContinue(),this.updateMask(),this.emitEvent("change"))},e.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null,this.updateShapesCapture(!0)},e.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.updateShapesCapture(!0)},e.prototype.hide=function(){this.maskShapes.length>0&&(this.maskShapes.forEach((function(t){return t.hide()})),this.emitEvent("hide"))},e.prototype.remove=function(){var t=this.getCurMaskShapeIndex();t>-1&&(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.updateShapesCapture(!0),this.emitEvent("change"))},e.prototype.clearAll=function(){this.recordPointClear(),this.maskShapes.forEach((function(t){return t.remove()})),this.maskShapes=[],this.preMovePoint=null},e.prototype.clear=function(){var t=this.getCurMaskShapeIndex();-1===t?(this.recordPointClear(),this.maskShapes.forEach((function(t){return t.remove()})),this.maskShapes=[],this.emitEvent("clearAll")):(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.emitEvent("clearSingle")),this.preMovePoint=null},e.prototype.destroy=function(){this.clear(),t.prototype.destroy.call(this)},e.prototype.getRecordPoints=function(){var t;return Object(s.__spreadArray)([],Object(s.__read)(null!==(t=this.recordPoints)&&void 0!==t?t:[]),!1)},e.prototype.recordPointStart=function(){var t=this.getRecordPoints(),e=this.getCurrentPoint();this.recordPoints=Object(s.__spreadArray)(Object(s.__spreadArray)([],Object(s.__read)(t),!1),[[e]],!1)},e.prototype.recordPointContinue=function(){var t=this.getRecordPoints(),e=this.getCurrentPoint(),n=t.splice(-1,1)[0]||[];n.push(e),this.recordPoints=Object(s.__spreadArray)(Object(s.__spreadArray)([],Object(s.__read)(t),!1),[n],!1)},e.prototype.recordPointClear=function(){this.recordPoints=[]},e.prototype.updateShapesCapture=function(t){this.maskShapes.forEach((function(e){return e.set("capture",t)}))},e.prototype.getCurMaskShapeIndex=function(){var t=this.getCurrentPoint();return this.maskShapes.findIndex((function(e){var n=e.attrs,r=n.width,i=n.height,o=n.r,a;return!(0===r||0===i||0===o)&&e.isHit(t.x,t.y)}))},e}(ge),Sh,Ch=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return Object(s.__extends)(e,t),e.prototype.getRegion=function(t){return ch(t)},e.prototype.getMaskAttrs=function(t){var e=this.getRegion(t),n,r;return lh(e.start,e.end)},e}(Mh),Ah,kh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return Object(s.__extends)(e,t),e.prototype.getRegion=function(t){var e=this.context.view.getCoordinate();return ph(t,this.dim,this.inPlot,e)},e}(Ch),Th,Eh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e.getMaskAttrs=oh,e}return Object(s.__extends)(e,t),e}(Mh),Ph,Ih=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getMaskPath=yh,e.getMaskAttrs=vh,e}return Object(s.__extends)(e,t),e.prototype.addPoint=function(){this.resize()},e}(Mh),Fh,Lh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getMaskPath=xh,e.getMaskAttrs=Oh,e}return Object(s.__extends)(e,t),e}(Ih),Bh,Dh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.setCursor=function(t){var e;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.prototype.zoomIn=function(){this.setCursor("zoom-in")},e.prototype.zoomOut=function(){this.setCursor("zoom-out")},e}(ge),Rh,Nh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__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&&Object(c.j)(t.views,(function(t){r.filterView(t,e,n)}))},e.prototype.filter=function(){var t=Ve(this.context);if(t){var e=this.context.view,n=t.component,r=n.get("field");if(Xe(t)){if(r){var i=n.getItemsByState("unchecked"),o=mn(e,r),a=i.map((function(t){return t.name}));a.length?this.filterView(e,r,(function(t){var e=o.getText(t);return!a.includes(e)})):this.filterView(e,r,null),e.render(!0)}}else if($e(t)){var c=n.getValue(),l=Object(s.__read)(c,2),u=l[0],h=l[1];this.filterView(e,r,(function(t){return t>=u&&t<=h})),e.render(!0)}}},e}(ge),zh;function Yh(t,e,n,r){var i=Math.min(n[e],r[e]),o=Math.max(n[e],r[e]),a=Object(s.__read)(t.range,2),c=a[0],l=a[1];if(i<c&&(i=c),o>l&&(o=l),i===l&&o===l)return null;var u=t.invert(i),h=t.invert(o);if(t.isCategory){var f=t.values.indexOf(u),p=t.values.indexOf(h),d=t.values.slice(f,p+1);return function(t){return d.includes(t)}}return function(t){return t>=u&&t<=h}}!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"}(zh||(zh={}));var Gh,Hh=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 Object(s.__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(qe(this.context)){var n,r=this.context.event.target.getCanvasBBox();t={x:r.x,y:r.y},e={x:r.maxX,y:r.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,a,s={view:o,event:i.event,dims:this.dims};o.emit(zh.BEFORE_FILTER,Br.fromData(o,zh.BEFORE_FILTER,s));var c=o.getCoordinate(),l=c.invert(e),u=c.invert(t);if(this.hasDim("x")){var h=o.getXScale(),f=Yh(h,"x",l,u);this.filterView(o,h.field,f)}if(this.hasDim("y")){var p=o.getYScales()[0],f=Yh(p,"y",l,u);this.filterView(o,p.field,f)}this.reRender(o,{source:zh.FILTER}),o.emit(zh.AFTER_FILTER,Br.fromData(o,zh.AFTER_FILTER,s))}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(t.emit(zh.BEFORE_RESET,Br.fromData(t,zh.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:zh.RESET}),t.emit(zh.AFTER_RESET,Br.fromData(t,zh.AFTER_RESET,{}))},e.prototype.filterView=function(t,e,n){t.filter(e,n)},e.prototype.reRender=function(t,e){t.render(!0,e)},e}(ge),Vh,Wh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.filterView=function(t,e,n){var r=dn(t);Object(c.j)(r,(function(t){t.filter(e,n)}))},e.prototype.reRender=function(t){var e=dn(t);Object(c.j)(e,(function(t){t.render(!0)}))},e}(Hh),Xh,$h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.filter=function(){var t=Ve(this.context),e=this.context.view,n=en(e);if(qe(this.context)){var r=Ke(this.context,10);r&&Object(c.j)(n,(function(t){r.includes(t)?t.show():t.hide()}))}else if(t){var i=t.component,o=i.get("field");if(Xe(t)){if(o){var a=i.getItemsByState("unchecked"),l=mn(e,o),u=a.map((function(t){return t.name}));Object(c.j)(n,(function(t){var e=on(t,o),n=l.getText(e);u.indexOf(n)>=0?t.hide():t.show()}))}}else if($e(t)){var h=i.getValue(),f=Object(s.__read)(h,2),p=f[0],d=f[1];Object(c.j)(n,(function(t){var e=on(t,o);e>=p&&e<=d?t.show():t.hide()}))}}},e.prototype.clear=function(){var t=en(this.context.view);Object(c.j)(t,(function(t){t.show()}))},e.prototype.reset=function(){this.clear()},e}(ge),qh,Uh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.byRecord=!1,e}return Object(s.__extends)(e,t),e.prototype.filter=function(){qe(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},e.prototype.filterByRecord=function(){var t=this.context.view,e=Ke(this.context,10);if(e){var n=t.getXScale().field,r=t.getYScales()[0].field,i=e.map((function(t){return t.getModel().data})),o=dn(t);Object(c.j)(o,(function(t){var e=en(t);Object(c.j)(e,(function(t){var e=t.getModel().data;vn(i,e,n,r)?t.show():t.hide()}))}))}},e.prototype.filterByBBox=function(){var t=this,e,n=dn(this.context.view);Object(c.j)(n,(function(e){var n=Qe(t.context,e,10),r=en(e);n&&Object(c.j)(r,(function(t){n.includes(t)?t.show():t.hide()}))}))},e.prototype.reset=function(){var t=dn(this.context.view);Object(c.j)(t,(function(t){var e=en(t);Object(c.j)(e,(function(t){t.show()}))}))},e}(ge),Kh=10,Zh=5,Qh,Jh=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 Object(s.__extends)(e,t),e.prototype.getButtonCfg=function(){return Object(c.h)(this.buttonCfg,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),n,r=e.addShape({type:"text",name:"button-text",attrs:Object(s.__assign)({text:t.text},t.textStyle)}).getBBox(),i=Cr(t.padding),o=e.addShape({type:"rect",name:"button-rect",attrs:Object(s.__assign)({x:r.x-i[3],y:r.y-i[0],width:r.width+i[1]+i[3],height:r.height+i[0]+i[2]},t.style)});o.toBack(),e.on("mouseenter",(function(){o.attr(t.activeStyle)})),e.on("mouseleave",(function(){o.attr(t.style)})),this.buttonGroup=e},e.prototype.resetPosition=function(){var t,e,n=this.context.view.getCoordinate().convert({x:1,y:1}),r=this.buttonGroup,i=r.getBBox(),o=et.a.transform(null,[["t",n.x-i.width-10,n.y+i.height+5]]);r.setMatrix(o)},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}(ge),tf=4,ef,nf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.dragStart=!1,e}return Object(s.__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}):hn(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}(ge),rf=5,of,af=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 Object(s.__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(),n;if(hn(t,e)>5&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var r=this.context.view,i=et.a.transform(this.startMatrix,[["t",e.x-t.x,e.y-t.y]]);r.backgroundGroup.setMatrix(i),r.foregroundGroup.setMatrix(i),r.middleGroup.setMatrix(i)}}},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}(ge),sf="x",cf="y",lf,uf=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 Object(s.__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(){var t;this.resetDim("x"),this.resetDim("y"),this.context.view.render(!0)},e}(ge),hf,ff=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.starting=!1,e.startCache={},e}return Object(s.__extends)(e,t),e.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var e=this.dims;Object(c.j)(e,(function(e){var n=t.getScale(e),r=n.min,i=n.max,o=n.values;t.startCache[e]={min:r,max:i,values:o}}))},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(),i=n.invert(e),o=n.invert(r),a=o.x-i.x,s=o.y-i.y,l=this.context.view,u=this.dims;Object(c.j)(u,(function(e){t.translateDim(e,{x:-1*a,y:-1*s})})),l.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],o=i.min,a=i.max,s=a-o,c=n[t]*s;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:o,max:a}),r.scale(e.field,{nice:!1,min:o+c,max:a+c})},e.prototype.reset=function(){t.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}(uf),pf,df=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.zoomRatio=.05,e}return Object(s.__extends)(e,t),e.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},e.prototype.zoom=function(t){var e=this,n=this.dims;Object(c.j)(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],o=i.max-i.min,a=e.min,s=e.max,c=n*o,l=a-c,u=s+c,h,f=(u-l)/o;u>l&&f<100&&f>.01&&r.scale(e.field,{nice:!1,min:a-c,max:s+c})},e}(uf);function gf(t){var e;return t.gEvent.originalEvent.deltaY>0}var yf=1,vf,mf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.scroll=function(t){var e=this.context,n=e.view,r=e.event;if(n.getOptions().scrollbar){var i=(null==t?void 0:t.wheelDelta)||1,o=n.getController("scrollbar"),a=n.getXScale(),s=n.getOptions().data,l=Object(c.mb)(Object(c.yb)(s,a.field)),u=Object(c.mb)(a.values),h=o.getValue(),f,p=Math.floor((l-u)*h)+(gf(r)?i:-i),d=i/(l-u)/1e4,g=Object(c.c)(p/(l-u)+d,0,1);o.setValue(g)}},e}(ge),bf="aixs-description-tooltip",xf,Of=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.show=function(){var t=this.context,e,n=Ve(t).axis.cfg.title,r=n.description,i=n.text,o=n.descriptionTooltipStyle,a=t.event,s=a.x,c=a.y;this.tooltip||this.renderTooltip(),this.tooltip.update({title:i||"",customContent:function(){return'\n <div class="'.concat(pt.TOOLTIP_CSS_CONST.CONTAINER_CLASS,'" style={').concat(o,'}>\n <div class="').concat(pt.TOOLTIP_CSS_CONST.TITLE_CLASS,'">\n \u5b57\u6bb5\u8bf4\u660e\uff1a').concat(r,"\n </div>\n </div>\n ")},x:s,y:c}),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,n=this.context.view.canvas,r={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},i=new xt({parent:n.get("el").parentNode,region:r,visible:!1,containerId:bf,domStyles:Object(s.__assign)({},Object(c.h)({},(t={},t[pt.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={"max-width":"50%",padding:"10px","line-height":"15px","font-size":"12px",color:"rgba(0, 0, 0, .65)"},t[pt.TOOLTIP_CSS_CONST.TITLE_CLASS]={"word-break":"break-all","margin-bottom":"3px"},t)))});i.init(),i.setCapture(!1),this.tooltip=i},e}(ge);function jf(t){return t.isInPlot()}function wf(t){return t.gEvent.preventDefault(),t.gEvent.originalEvent.deltaY>0}ur("dark",Rn(No)),S("canvas",zo),S("svg",Yo),Hr("Polygon",Ea),Hr("Interval",va),Hr("Schema",La),Hr("Path",Ho),Hr("Point",Sa),Hr("Line",ba),Hr("Area",Ko),Hr("Edge",ta),Hr("Heatmap",na),Hr("Violin",za),pi("base",Hi),pi("interval",ls),pi("pie",ds),pi("polar",fs),gi("overlap",Fs),gi("distribute",vs),gi("fixed-overlap",Is),gi("hide-overlap",Qs),gi("limit-in-shape",As),gi("limit-in-canvas",Cs),gi("limit-in-plot",jc),gi("pie-outer",Os),gi("adjust-color",nc),gi("interval-adjust-position",ac),gi("interval-hide-overlap",cc),gi("point-adjust-position",pc),gi("pie-spider",Ss),gi("path-adjust-position",mc),Jr("fade-in",wc),Jr("fade-out",_c),Jr("grow-in-x",Cc),Jr("grow-in-xy",kc),Jr("grow-in-y",Ac),Jr("scale-in-x",Pc),Jr("scale-in-y",Ic),Jr("wave-in",Rc),Jr("zoom-in",zc),Jr("zoom-out",Yc),Jr("position-update",Ec),Jr("sector-path-update",Dc),Jr("path-in",Tc),pe("rect",Jc),pe("mirror",Zc),pe("list",$c),pe("matrix",Uc),pe("circle",Wc),pe("tree",el),kr("axis",gl),kr("legend",Sl),kr("tooltip",Kr),kr("annotation",sl),kr("slider",Al),kr("scrollbar",Fl),Oe("tooltip",zl),Oe("sibling-tooltip",Gl),Oe("ellipsis-text",Vl),Oe("element-active",Zl),Oe("element-single-active",su),Oe("element-range-active",ru),Oe("element-highlight",gu),Oe("element-highlight-by-x",bu),Oe("element-highlight-by-color",vu),Oe("element-single-highlight",_u),Oe("element-range-highlight",ju),Oe("element-sibling-highlight",ju,{effectSiblings:!0,effectByRecord:!0}),Oe("element-selected",Au),Oe("element-single-selected",Tu),Oe("element-range-selected",Su),Oe("element-link-by-color",Jl),Oe("active-region",Rl),Oe("list-active",Fu),Oe("list-selected",Hu),Oe("list-highlight",Yu),Oe("list-unchecked",Wu),Oe("list-checked",Uu),Oe("list-focus",Qu),Oe("list-radio",nh),Oe("legend-item-highlight",Yu,{componentNames:["legend"]}),Oe("axis-label-highlight",Yu,{componentNames:["axis"]}),Oe("axis-description",Of),Oe("rect-mask",hh),Oe("x-rect-mask",gh,{dim:"x"}),Oe("y-rect-mask",gh,{dim:"y"}),Oe("circle-mask",sh),Oe("path-mask",bh),Oe("smooth-path-mask",wh),Oe("rect-multi-mask",Ch),Oe("x-rect-multi-mask",kh,{dim:"x"}),Oe("y-rect-multi-mask",kh,{dim:"y"}),Oe("circle-multi-mask",Eh),Oe("path-multi-mask",Ih),Oe("smooth-path-multi-mask",Lh),Oe("cursor",Dh),Oe("data-filter",Nh),Oe("brush",Hh),Oe("brush-x",Hh,{dims:["x"]}),Oe("brush-y",Hh,{dims:["y"]}),Oe("sibling-filter",Wh),Oe("sibling-x-filter",Wh,{dims:"x"}),Oe("sibling-y-filter",Wh,{dims:"y"}),Oe("element-filter",$h),Oe("element-sibling-filter",Uh),Oe("element-sibling-filter-record",Uh,{byRecord:!0}),Oe("view-drag",nf),Oe("view-move",af),Oe("scale-translate",ff),Oe("scale-zoom",df),Oe("reset-button",Jh,{name:"reset-button",text:"reset"}),Oe("mousewheel-scroll",mf),Fn("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"}]}),Fn("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:mouseout",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),Fn("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),Fn("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),Fn("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),Fn("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),Fn("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),Fn("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"]}]}),Fn("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"]}]}),Fn("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"]}]}),Fn("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"]}]}),Fn("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"]}]}),Fn("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:jf,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:jf,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:jf,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"]}]}),Fn("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"]}]}),Fn("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:jf,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:jf,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:jf,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),Fn("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:jf,action:"path-mask:start"},{trigger:"mousedown",isEnable:jf,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"}]}),Fn("brush-x-multi",{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:"mousedown",isEnable:jf,action:["x-rect-multi-mask:start","x-rect-multi-mask:show"]},{trigger:"mask:dragstart",action:["x-rect-multi-mask:moveStart"]}],processing:[{trigger:"mousemove",isEnable:function(t){return!Ue(t)},action:["x-rect-multi-mask:resize"]},{trigger:"multi-mask:change",action:"element-range-highlight:highlight"},{trigger:"mask:drag",action:["x-rect-multi-mask:move"]}],end:[{trigger:"mouseup",action:["x-rect-multi-mask:end"]},{trigger:"mask:dragend",action:["x-rect-multi-mask:moveEnd"]}],rollback:[{trigger:"dblclick",action:["x-rect-multi-mask:clear","cursor:crosshair"]},{trigger:"multi-mask:clearAll",action:["element-range-highlight:clear"]},{trigger:"multi-mask:clearSingle",action:["element-range-highlight:highlight"]}]}),Fn("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),Fn("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:["legend-item-highlight:reset","element-highlight:reset","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"]}]}),Fn("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),Fn("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),Fn("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","element-filter:filter"]}]}),Fn("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),Fn("axis-description",{start:[{trigger:"axis-description:mousemove",action:"axis-description:show"}],end:[{trigger:"axis-description:mouseleave",action:"axis-description:hide"}]}),Fn("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return wf(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!wf(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),Fn("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),Fn("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]});var _f=["type","alias","tickCount","tickInterval","min","max","nice","minLimit","maxLimit","range","tickMethod","base","exponent","mask","sync"],Mf;!function(t){t.ERROR="error",t.WARN="warn",t.INFO="log"}(Mf||(Mf={}));var Sf="AntV/G2Plot";function Cf(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=0;return"".concat(Sf,": ").concat(t.replace(/%s/g,(function(){return"".concat(e[r++])})))}function Af(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!t){var i=new Error(Cf.apply(void 0,Object(s.__spreadArray)([e],n,!1)));throw i.name=Sf,i}}function kf(t,e,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];e||console[t](Cf.apply(void 0,Object(s.__spreadArray)([n],r,!1)))}function Tf(t,e){var n={};return null!==t&&"object"==typeof t&&e.forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n}function Ef(t,e){if(!t)return{};var n=t.filter((function(t){var n=Object(c.s)(t,[e]);return Object(c.M)(n)&&!isNaN(n)})),r=n.every((function(t){return Object(c.s)(t,[e])>=0})),i=n.every((function(t){return Object(c.s)(t,[e])<=0}));return r?{min:0}:i?{max:0}:{}}function Pf(t,e,n,r,i){if(void 0===i&&(i=[]),!Array.isArray(t))return{nodes:[],links:[]};var o=[],a={},c=-1;return t.forEach((function(t){var l=t[e],u=t[n],h=t[r],f=Tf(t,i);a[l]||(a[l]=Object(s.__assign)({id:++c,name:l},f)),a[u]||(a[u]=Object(s.__assign)({id:++c,name:u},f)),o.push(Object(s.__assign)({source:a[l].id,target:a[u].id,value:h},f))})),{nodes:Object.values(a).sort((function(t,e){return t.id-e.id})),links:o}}function If(t,e){var n=Object(c.l)(t,(function(t){var n=t[e];return null===n||"number"==typeof n&&!isNaN(n)}));return kf(Mf.WARN,n.length===t.length,"illegal data existed in chart data."),n}var Ff=5,Lf={}.toString,Bf=function(t,e){return Lf.call(t)==="[object "+e+"]"},Df=function(t){return Bf(t,"Array")},Rf=function(t){return"object"==typeof t&&null!==t},Nf=function(t){if(!Rf(t)||!Bf(t,"Object"))return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},zf=function(t,e,n,r){for(var i in n=n||0,r=r||5,e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=e[i];o?Nf(o)?(Nf(t[i])||(t[i]={}),n<r?zf(t[i],o,n+1,r):t[i]=e[i]):Df(o)?(t[i]=[],t[i]=t[i].concat(o)):t[i]=o:t[i]=o}},Yf=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)zf(t,e[r]);return t},Gf;function Hf(t){if(!t)return{width:0,height:0};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)}}function Vf(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return t.reduce((function(t,e){return e(t)}),e)}}function Wf(t,e){return t.geometries.find((function(t){return t.type===e}))}function Xf(t){return Object(c.ib)(t.geometries,(function(t,e){return t.concat(e.elements)}),[])}function $f(t){return Object(c.s)(t,["views","length"],0)<=0?Xf(t):Object(c.ib)(t.views,(function(t,e){return t.concat($f(e))}),Xf(t))}function qf(t){return Object(c.s)(t,["views","length"],0)<=0?t.geometries:Object(c.ib)(t.views,(function(t,e){return t.concat(e.geometries)}),t.geometries)}function Uf(t){return t?t.match(/(([A-Z]{0,1}[a-z]*[^A-Z])|([A-Z]{1}))/g).map((function(t){return t.toLowerCase()})).join("-"):t;var e}function Kf(t){if(!Object(c.R)(t,"Object"))return t;var e=Object(s.__assign)({},t);return e.formatter&&!e.content&&(e.content=e.formatter),e}function Zf(){return Gf||(Gf=document.createElement("canvas").getContext("2d")),Gf}var Qf=Object(c.ab)((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=void 0===r?"sans-serif":r,o=e.fontWeight,a=e.fontStyle,s=e.fontVariant,l=Zf(),u;return l.font=[a,o,s,"".concat(n,"px"),i].join(" "),l.measureText(Object(c.Q)(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),Object(s.__spreadArray)([t],Object(c.xb)(e),!0).join("")}));function Jf(t){return"number"==typeof t&&!isNaN(t)}function tp(t,e,n){var r=Math.min(e,n),i=Math.max(e,n);return t>=r&&t<=i}function ep(t){if(Object(c.M)(t))return[t,t,t,t];if(Object(c.C)(t)){var e=t.length;if(1===e)return[t[0],t[0],t[0],t[0]];if(2===e)return[t[0],t[1],t[0],t[1]];if(3===e)return[t[0],t[1],t[2],t[1]];if(4===e)return t}return[0,0,0,0]}function np(t,e,n){void 0===e&&(e="bottom"),void 0===n&&(n=25);var r=ep(t),i=[e.startsWith("top")?n:0,e.startsWith("right")?n:0,e.startsWith("bottom")?n:0,e.startsWith("left")?n:0];return[r[0]+i[0],r[1]+i[1],r[2]+i[2],r[3]+i[3]]}function rp(t){var e=t.map((function(t){return ep(t)})),n=[0,0,0,0];return e.length>0&&(n=n.map((function(t,n){return e.forEach((function(r,i){t+=e[i][n]})),t}))),n}function ip(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 o=t[r];n.push(["L",o.x,o.y])}e&&n.push(["Z"])}return n}var op=function(t,e,n,r){var i=[],o,a,s=!!r,c,l;if(s){c=[1/0,1/0],l=[-1/0,-1/0];for(var u=0,h=t.length;u<h;u++){var f=t[u];c=et.c.min([0,0],c,f),l=et.c.max([0,0],l,f)}c=et.c.min([0,0],c,r[0]),l=et.c.max([0,0],l,r[1])}for(var u=0,p=t.length;u<p;u++){var f=t[u];if(n)o=t[u?u-1:p-1],a=t[(u+1)%p];else{if(0===u||u===p-1){i.push(f);continue}o=t[u-1],a=t[u+1]}var d=[0,0];d=et.c.sub(d,a,o),d=et.c.scale(d,d,e);var g=et.c.distance(f,o),y=et.c.distance(f,a),v=g+y;0!==v&&(g/=v,y/=v);var m=et.c.scale([0,0],d,-g),b=et.c.scale([0,0],d,y),x=et.c.add([0,0],f,m),O=et.c.add([0,0],f,b);s&&(x=et.c.max([0,0],x,c),x=et.c.min([0,0],x,l),O=et.c.max([0,0],O,c),O=et.c.min([0,0],O,l)),i.push(x),i.push(O)}return n&&i.push(i.shift()),i};function ap(t,e,n){for(var r=!!e,i=[],o=0,a=t.length;o<a;o+=2)i.push([t[o],t[o+1]]);for(var s=op(i,.4,r,n),c=i.length,l=[],u,h,f,o=0;o<c-1;o++)u=s[2*o],h=s[2*o+1],f=i[o+1],l.push(["C",u[0],u[1],h[0],h[1],f[0],f[1]]);return r&&(u=s[c],h=s[c+1],f=i[0],l.push(["C",u[0],u[1],h[0],h[1],f[0],f[1]])),l}function sp(t,e,n){var r=[],i=t[0],o=null;if(t.length<=2)return ip(t,e);for(var a=0,s=t.length;a<s;a++){var c=t[a];o&&o.x===c.x&&o.y===c.y||(r.push(c.x),r.push(c.y),o=c)}var l,u=ap(r,e,n||[[0,0],[1,1]]);return u.unshift(["M",i.x,i.y]),u}function cp(t){var e={overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis",display:"flex",justifyContent:"center",alignItems:"center"},n=["stroke","lineWidth","shadowColor","strokeOpacity","shadowBlur","shadowOffsetX","shadowOffsetY","fill"];Object(c.s)(t,"fill")&&(e.color=t.fill);var r=Tf(t,n),i=r.shadowColor,o=r.shadowBlur,a=void 0===o?0:o,s=r.shadowOffsetX,l=void 0===s?0:s,u=r.shadowOffsetY,h=void 0===u?0:u;e["text-shadow"]="".concat([i,"".concat(l,"px"),"".concat(h,"px"),"".concat(a,"px")].join(" "));var f=Tf(t,n),p=f.stroke,d=f.lineWidth,g=void 0===d?0:d;return e["-webkit-text-stroke"]="".concat(["".concat(g,"px"),p].join(" ")),Object(c.j)(t,(function(t,r){["fontSize"].includes(r)&&Object(c.M)(t)?e[Uf(r)]="".concat(t,"px"):r&&!n.includes(r)&&(e[Uf(r)]="".concat(t))})),e}function lp(t,e){t.style["pointer-events"]="none",Object(c.j)(e,(function(e,n){n&&e&&(t.style[n]=e)}))}var up=function(t,e,n){var r=e.statistic,i=e.plotType,o=r.title,a=r.content;[o,a].forEach((function(e,r){if(e){var l="";l=0===r?a?"translate(-50%, -100%)":"translate(-50%, -50%)":o?"translate(-50%, 0)":"translate(-50%, -50%)";var u=Object(c.I)(e.style)?e.style(n):e.style;t.annotation().html(Object(s.__assign)({position:["50%","50%"],html:function(t,r){var o=r.getCoordinate(),a=0;if("pie"===i||"ring-progress"===i)a=o.getRadius()*o.innerRadius*2;else if("liquid"===i){var h=Object(c.s)(r.geometries,[0,"elements",0,"shape"]),f,p;if(h)a=h.find((function(t){return"wrap"===t.get("name")})).getCanvasBBox().width}else a||(a=o.getWidth());lp(t,Object(s.__assign)({width:"".concat(a,"px"),transform:l},cp(u)));var d=r.getData();if(e.customHtml)return e.customHtml(t,r,n,d);var g=e.content;return e.formatter&&(g=e.formatter(n,d)),g?Object(c.Q)(g)?g:"".concat(g):"<div></div>"},key:"".concat(0===r?"top":"bottom","-statistic")},Tf(e,["offsetX","offsetY","rotate","style","formatter"])))}}))},hp=function(t,e,n){var r=e.statistic,i,o;[r.title,r.content].forEach((function(e){if(e){var r=Object(c.I)(e.style)?e.style(n):e.style;t.annotation().html(Object(s.__assign)({position:["50%","100%"],html:function(t,i){var o=i.getCoordinate(),a=i.views[0].getCoordinate(),l=a.getCenter(),u=a.getRadius(),h=Math.max(Math.sin(a.startAngle),Math.sin(a.endAngle))*u,f=l.y+h-o.y.start-parseFloat(Object(c.s)(r,"fontSize",0)),p=o.getRadius()*o.innerRadius*2;lp(t,Object(s.__assign)({width:"".concat(p,"px"),transform:"translate(-50%, ".concat(f,"px)")},cp(r)));var d=i.getData();if(e.customHtml)return e.customHtml(t,i,n,d);var g=e.content;return e.formatter&&(g=e.formatter(n,d)),g?Object(c.Q)(g)?g:"".concat(g):"<div></div>"}},Tf(e,["offsetX","offsetY","rotate","style","formatter"])))}}))};function fp(t,e){return e?Object(c.ib)(e,(function(t,e,n){return t.replace(new RegExp("{\\s*".concat(n,"\\s*}"),"g"),e)}),t):t}function pp(t,e){return t.views.find((function(t){return t.id===e}))}function dp(t){var e=t.parent;return e?e.views:[]}function gp(t){return dp(t).filter((function(e){return e!==t}))}function yp(t,e,n){void 0===n&&(n=t.geometries),"boolean"==typeof e?t.animate(e):t.animate(!0),Object(c.j)(n,(function(t){var n;n=Object(c.I)(e)?e(t.type||t.shapeType,t)||!0:e,t.animate(n)}))}function vp(){return"object"==typeof window?null===window||void 0===window?void 0:window.devicePixelRatio:2}function mp(t,e){void 0===e&&(e=t);var n=document.createElement("canvas"),r=vp(),i;return n.width=t*r,n.height=e*r,n.style.width="".concat(t,"px"),n.style.height="".concat(e,"px"),n.getContext("2d").scale(r,r),n}function bp(t,e,n,r){void 0===r&&(r=n);var i=e.backgroundColor,o=e.opacity;t.globalAlpha=o,t.fillStyle=i,t.beginPath(),t.fillRect(0,0,n,r),t.closePath()}function xp(t,e,n){var r=t+e;return n?2*r:r}function Op(t,e){var n;return e?[[t*(1/4),t*(1/4)],[t*(3/4),t*(3/4)]]:[[.5*t,.5*t]]}function jp(t,e){var n=e*Math.PI/180,r;return{a:Math.cos(n)*(1/t),b:Math.sin(n)*(1/t),c:-Math.sin(n)*(1/t),d:Math.cos(n)*(1/t),e:0,f:0}}var wp={size:6,padding:2,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0,isStagger:!0};function _p(t,e,n,r){var i=e.size,o=e.fill,a=e.lineWidth,s=e.stroke,c=e.fillOpacity;t.beginPath(),t.globalAlpha=c,t.fillStyle=o,t.strokeStyle=s,t.lineWidth=a,t.arc(n,r,i/2,0,2*Math.PI,!1),t.fill(),a&&t.stroke(),t.closePath()}function Mp(t){var e=Yf({},wp,t),n=e.size,r=e.padding,i=e.isStagger,o=e.rotation,a=xp(n,r,i),s=Op(a,i),c=mp(a,a),l=c.getContext("2d");bp(l,e,a);for(var u=0,h=s;u<h.length;u++){var f=h[u],p,d;_p(l,e,f[0],f[1])}var g=l.createPattern(c,"repeat");if(g){var y,v=jp(vp(),o);g.setTransform(v)}return g}var Sp={rotation:45,spacing:5,opacity:1,backgroundColor:"transparent",strokeOpacity:.5,stroke:"#fff",lineWidth:2};function Cp(t,e,n){var r=e.stroke,i=e.lineWidth,o=e.strokeOpacity,a=new Path2D(n);t.globalAlpha=o,t.lineCap="square",t.strokeStyle=i?r:"transparent",t.lineWidth=i,t.stroke(a)}function Ap(t){var e=Yf({},Sp,t),n=e.spacing,r=e.rotation,i=e.lineWidth,o=n+i||1,a=n+i||1,s="\n M 0 0 L ".concat(o," 0\n M 0 ").concat(a," L ").concat(o," ").concat(a,"\n "),c=mp(o,a),l=c.getContext("2d");bp(l,e,o,a),Cp(l,e,s);var u=l.createPattern(c,"repeat");if(u){var h,f=jp(vp(),r);u.setTransform(f)}return u}var kp={size:6,padding:1,isStagger:!0,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0};function Tp(t,e,n,r){var i=e.stroke,o=e.size,a=e.fill,s=e.lineWidth,c=e.fillOpacity;t.globalAlpha=c,t.strokeStyle=i,t.lineWidth=s,t.fillStyle=a,t.strokeRect(n-o/2,r-o/2,o,o),t.fillRect(n-o/2,r-o/2,o,o)}function Ep(t){var e=Yf({},kp,t),n=e.size,r=e.padding,i=e.isStagger,o=e.rotation,a=xp(n,r,i),s=Op(a,i),c=mp(a,a),l=c.getContext("2d");bp(l,e,a);for(var u=0,h=s;u<h.length;u++){var f=h[u],p,d;Tp(l,e,f[0],f[1])}var g=l.createPattern(c,"repeat");if(g){var y,v=jp(vp(),o);g.setTransform(v)}return g}function Pp(t){var e=t.type,n=t.cfg,r;switch(e){case"dot":r=Mp(n);break;case"line":r=Ap(n);break;case"square":r=Ep(n)}return r}function Ip(t){var e=this;return function(n){var r,i=n.options,o=n.chart,a=i.pattern;if(!a)return n;var l=function(n){for(var r,l,u,h=[],f=1;f<arguments.length;f++)h[f-1]=arguments[f];var p=o.getTheme().defaultColor,d=p,g=null===(l=null===(r=o.geometries)||void 0===r?void 0:r[0])||void 0===l?void 0:l.getAttribute("color");if(g){var y=g.getFields()[0],v=Object(c.s)(n,y);d=mo.getMappingValue(g,v,(null===(u=g.values)||void 0===u?void 0:u[0])||p)}var m=a;"function"==typeof a&&(m=a.call(e,n,d)),m instanceof CanvasPattern==!1&&(m=Pp(Yf({},{cfg:{backgroundColor:d}},m)));var b=i[t];return Object(s.__assign)(Object(s.__assign)({},"function"==typeof b?b.call.apply(b,Object(s.__spreadArray)([e,n],h,!1)):b||{}),{fill:m||d})};return Yf({},n,{options:(r={},r[t]=l,r)})}}function Fp(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField,o=n.seriesField;return!1===r?e.legend(!1):(i||o)&&e.legend(i||o,r),t}function Lp(t){var e=t.chart,n,r=t.options.tooltip;return void 0!==r&&e.tooltip(r),t}function Bp(t){var e=t.chart,n,r=t.options.interactions;return Object(c.j)(r,(function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg||{})})),t}function Dp(t){var e,n,r;return yp(t.chart,t.options.animation),t}function Rp(t){var e=t.chart,n,r=t.options.theme;return r&&e.theme(r),t}function Np(t){var e=t.chart,n,r=t.options.state;return r&&Object(c.j)(e.geometries,(function(t){t.state(r)})),t}function zp(t){var e=t.chart,n,r=t.options.slider;return e.option("slider",r),t}function Yp(t){var e=t.chart,n,r=t.options.scrollbar;return e.option("scrollbar",r),t}function Gp(t,e){return function(n){var r=n.chart,i=n.options,o={};return Object(c.j)(t,(function(t,e){o[e]=Tf(t,_f)})),o=Yf({},e,i.meta,o),r.scale(o),n}}function Hp(t){return function(e){var n=e.chart,r=e.options,i=n.getController("annotation");return Object(c.j)(Object(s.__spreadArray)(Object(s.__spreadArray)([],r.annotations||[],!0),t||[],!0),(function(t){i.annotation(t)})),e}}function Vp(t){var e=t.chart,n=t.options,r=n.yAxis,i=n.limitInPlot,o=i;return Object(c.O)(r)&&Object(c.K)(i)&&(o=!!Object.values(Tf(r,["min","max","minLimit","maxLimit"])).some((function(t){return!Object(c.K)(t)}))),e.limitInPlot=o,t}function Wp(t){return void 0===t&&(t="rect"),function(e){var n=e.chart,r,i=e.options.coordinate,o=Array.from(i||[]).map((function(t){return"reflectX"===t.type?["reflect","x"]:"reflectY"===t.type?["reflect","y"]:"transpose"===t.type?["transpose"]:null})).filter((function(t){return!!t}));return 0!==o.length&&n.coordinate({type:t,actions:o}),e}}var Xp={locale:"en-US"};function $p(t){Object(c.j)(t,(function(t,e){return Xp[e]=t}))}var qp={};function Up(t,e){qp[t]=e}function Kp(t){return{get:function(e,n){return fp(Object(c.s)(qp[t],e)||Object(c.s)(qp[Xp.locale],e)||Object(c.s)(qp["en-US"],e)||e,n)}}}var Zp={locale:"en-US",general:{increase:"Increase",decrease:"Decrease",root:"Root"},statistic:{total:"Total"},conversionTag:{label:"Rate"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"Total"}},Qp={locale:"zh-CN",general:{increase:"\u589e\u52a0",decrease:"\u51cf\u5c11",root:"\u521d\u59cb"},statistic:{total:"\u603b\u8ba1"},conversionTag:{label:"\u8f6c\u5316\u7387"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"\u603b\u8ba1"}};function Jp(t,e){if(!1===t)return{fields:!1};var n=Object(c.s)(t,"fields"),r=Object(c.s)(t,"formatter");return r&&!n&&(n=e),{fields:n,formatter:r}}function td(t,e){var n=t.type,r=t.xField,i=t.yField,o=t.colorField,a=t.shapeField,l=t.sizeField,u=t.styleField,h=t.rawFields,f=[];if(h=(Object(c.I)(h)?h(n,e):h)||[],"color"===e)f=Object(s.__spreadArray)([o||r],h,!0);else if("shape"===e)f=Object(s.__spreadArray)([a||r],h,!0);else if("size"===e)f=Object(s.__spreadArray)([l||r],h,!0);else{f=Object(s.__spreadArray)([r,i,o,a,l,u],h,!0);var p=["x","y","color","shape","size","style"].indexOf(e),d=f[p];f.splice(p,1),f.unshift(d)}var g=Object(c.ub)(f.filter((function(t){return!!t}))),y="line"===n&&[r,i].includes(g.join("*"))?"":g.join("*");return{mappingFields:g,tileMappingField:y}}function ed(t,e){if(e)return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i={};return t.forEach((function(t,e){i[t]=n[e]})),delete i[void 0],e(i)}}function nd(t){var e=t.chart,n=t.options,r=n.type,i=n.args,o=n.mapping,a=n.xField,l=n.yField,u=n.colorField,h=n.shapeField,f=n.sizeField,p=n.tooltipFields,d=n.label,g=n.state,y=n.customInfo;if(!o)return t;var v=o.color,m=o.shape,b=o.size,x=o.style,O=o.tooltip,j=e[r](i).position("".concat(a,"*").concat(l));if(Object(c.Q)(v))u?j.color(u,v):j.color(v);else if(Object(c.I)(v)){var w=td(n,"color"),_=w.mappingFields,M=w.tileMappingField;j.color(M,ed(_,v))}else u&&j.color(u,v);if(Object(c.Q)(m))h?j.shape(h,[m]):j.shape(m);else if(Object(c.I)(m)){var S=td(n,"shape"),_=S.mappingFields,M=S.tileMappingField;j.shape(M,ed(_,m))}else h&&j.shape(h,m);if(Object(c.M)(b))f?j.size(f,b):j.size(b);else if(Object(c.I)(b)){var C=td(n,"size"),_=C.mappingFields,M=C.tileMappingField;j.size(M,ed(_,b))}else f&&j.size(f,b);if(Object(c.I)(x)){var A=td(n,"style"),_=A.mappingFields,M=A.tileMappingField;j.style(M,ed(_,x))}else Object(c.O)(x)&&j.style(x);if(!1===p?j.tooltip(!1):Object(c.G)(p)||j.tooltip(p.join("*"),ed(p,O)),!1===d)j.label(!1);else if(d){var k=d.callback,T=d.fields,E=Object(s.__rest)(d,["callback","fields"]);j.label({fields:T||[l],callback:k,cfg:Kf(E)})}return g&&j.state(g),y&&j.customInfo(y),[a,l].filter((function(t){return t!==u})).forEach((function(t){e.legend(t,!1)})),Object(s.__assign)(Object(s.__assign)({},t),{ext:{geometry:j}})}function rd(t){var e=t.options,n=e.area,r=e.xField,i=e.yField,o=e.seriesField,a=e.smooth,s=e.tooltip,l=e.useDeferredLabel,u=Jp(s,[r,i,o]),h=u.fields,f=u.formatter;return n?nd(Yf({},t,{options:{type:"area",colorField:o,tooltipFields:h,mapping:Object(c.h)({shape:a?"smooth":"area",tooltip:f},n),args:{useDeferredLabel:l}}})):t}function id(t){var e=t.options,n=e.edge,r=e.xField,i=e.yField,o=e.seriesField,a=e.tooltip,c=e.useDeferredLabel,l=Jp(a,[r,i,o]),u=l.fields,h=l.formatter;return n?nd(Yf({},t,{options:{type:"edge",colorField:o,tooltipFields:u,mapping:Object(s.__assign)({tooltip:h},n),args:{useDeferredLabel:c}}})):t}function od(t){var e=t.chart,n=t.options,r=t.ext,i=n.seriesField,o=n.isGroup,a=n.isStack,s=n.marginRatio,l=n.widthRatio,u=n.groupField,h=n.theme,f=[],p;(i&&(o&&f.push({type:"dodge",dodgeBy:u||i,marginRatio:s}),a&&f.push({type:"stack",marginRatio:s})),f.length&&(null==r?void 0:r.geometry))&&(null==r?void 0:r.geometry).adjust(f);return Object(c.K)(l)||e.theme(Yf({},Object(c.O)(h)?h:lr(h),{columnWidthRatio:l})),t}function ad(t){var e=t.options,n=e.xField,r=e.yField,i=e.interval,o=e.seriesField,a=e.tooltip,c=e.minColumnWidth,l=e.maxColumnWidth,u=e.columnBackground,h=e.dodgePadding,f=e.intervalPadding,p=e.useDeferredLabel,d=Jp(a,[n,r,o]),g=d.fields,y=d.formatter,v=(i?nd(Yf({},t,{options:{type:"interval",colorField:o,tooltipFields:g,mapping:Object(s.__assign)({tooltip:y},i),args:{dodgePadding:h,intervalPadding:f,minColumnWidth:c,maxColumnWidth:l,background:u,useDeferredLabel:p}}})):t).ext;return od(Object(s.__assign)(Object(s.__assign)({},t),{ext:v}))}function sd(t){var e=t.options,n=e.line,r=e.stepType,i=e.xField,o=e.yField,a=e.seriesField,s=e.smooth,l=e.connectNulls,u=e.tooltip,h=e.useDeferredLabel,f=Jp(u,[i,o,a]),p=f.fields,d=f.formatter;return n?nd(Yf({},t,{options:{type:"line",colorField:a,tooltipFields:p,mapping:Object(c.h)({shape:r||(s?"smooth":"line"),tooltip:d},n),args:{connectNulls:l,useDeferredLabel:h}}})):t}function cd(t){var e=t.options,n=e.point,r=e.xField,i=e.yField,o=e.seriesField,a=e.sizeField,c=e.shapeField,l=e.tooltip,u=e.useDeferredLabel,h=Jp(l,[r,i,o,a,c]),f=h.fields,p=h.formatter;return n?nd(Yf({},t,{options:{type:"point",colorField:o,shapeField:c,tooltipFields:f,mapping:Object(s.__assign)({tooltip:p},n),args:{useDeferredLabel:u}}})):t}function ld(t){var e=t.options,n=e.polygon,r=e.xField,i=e.yField,o=e.seriesField,a=e.tooltip,c=e.useDeferredLabel,l=Jp(a,[r,i,o]),u=l.fields,h=l.formatter;return n?nd(Yf({},t,{options:{type:"polygon",colorField:o,tooltipFields:u,mapping:Object(s.__assign)({tooltip:h},n),args:{useDeferredLabel:c}}})):t}function ud(t){var e=t.options,n=e.schema,r=e.xField,i=e.yField,o=e.seriesField,a=e.tooltip,c=e.useDeferredLabel,l=Jp(a,[r,i,o]),u=l.fields,h=l.formatter;return n?nd(Yf({},t,{options:{type:"schema",colorField:o,tooltipFields:u,mapping:Object(s.__assign)({tooltip:h},n),args:{useDeferredLabel:c}}})):t}function hd(t){var e=t.options,n=e.violin,r=e.xField,i=e.yField,o=e.seriesField,a=e.sizeField,c,l=Jp(e.tooltip,[r,i,o,a]),u=l.fields,h=l.formatter;return n?nd(Yf({},t,{options:{type:"violin",colorField:o,tooltipFields:u,mapping:Object(s.__assign)({tooltip:h},n)}})):t}var fd=n(426),pd="data-chart-source-type",dd=["padding","appendPadding","renderer","pixelRatio","syncViewPadding","supportCSSTransform","limitInPlot"],gd=function(t){function e(e,n){var r=t.call(this)||this;return r.container="string"==typeof e?document.getElementById(e):e,r.options=Yf({},r.getDefaultOptions(),n),r.createG2(),r.bindEvents(),r}return Object(s.__extends)(e,t),e.getDefaultOptions=function(){return{renderer:"canvas",xAxis:{nice:!0,label:{autoRotate:!1,autoHide:{type:"equidistance",cfg:{minGap:6}}}},yAxis:{nice:!0,label:{autoHide:!0,autoRotate:!1}},animation:!0}},e.prototype.createG2=function(){var t=this.options,e=t.width,n=t.height,r=t.defaultInteractions;this.chart=new Xr(Object(s.__assign)(Object(s.__assign)(Object(s.__assign)(Object(s.__assign)({container:this.container,autoFit:!1},this.getChartSize(e,n)),{localRefresh:!1}),Tf(this.options,dd)),{defaultInteractions:r})),this.container.setAttribute(pd,"G2Plot")},e.prototype.getChartSize=function(t,e){var n=Hf(this.container);return{width:t||n.width||400,height:e||n.height||400}},e.prototype.bindEvents=function(){var t=this;this.chart&&this.chart.on("*",(function(e){(null==e?void 0:e.type)&&t.emit(e.type,e)}))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.render=function(){this.chart.clear(),this.chart.options={data:[],animate:!0},this.chart.views=[],this.execAdaptor(),this.chart.render(),this.bindSizeSensor()},e.prototype.update=function(t){this.updateOption(t),this.render()},e.prototype.updateOption=function(t){this.options=Yf({},this.options,t)},e.prototype.setState=function(t,e,n){void 0===n&&(n=!0);var r=$f(this.chart);Object(c.j)(r,(function(r){e(r.getData())&&r.setState(t,n)}))},e.prototype.getStates=function(){var t=$f(this.chart),e=[];return Object(c.j)(t,(function(t){var n=t.getData(),r=t.getStates();Object(c.j)(r,(function(r){e.push({data:n,state:r,geometry:t.geometry,element:t})}))})),e},e.prototype.changeData=function(t){this.update({data:t})},e.prototype.changeSize=function(t,e){this.chart.changeSize(t,e)},e.prototype.addAnnotations=function(t,e){e=e||this.chart;var n=Object(s.__spreadArray)([],t,!0),r=e.getController("annotation"),i=r.getComponents().map((function(t){return t.extra}));r.clear(!0);for(var o=function(t){var e=i[t],o=n.findIndex((function(t){return t.id&&t.id===e.id}));-1!==o&&(e=Yf({},e,n[o]),n.splice(o,1)),r.annotation(e)},a=0;a<i.length;a++)o(a);n.forEach((function(t){return r.annotation(t)})),e.render(!0)},e.prototype.removeAnnotations=function(t){var e=this.chart.getController("annotation"),n=e.getComponents().map((function(t){return t.extra}));e.clear(!0);for(var r=function(r){var i=n[r];t.find((function(t){return t.id&&t.id===i.id}))||e.annotation(i)},i=0;i<n.length;i++)r(i);this.chart.render(!0)},e.prototype.destroy=function(){this.unbindSizeSensor(),this.chart.destroy(),this.off(),this.container.removeAttribute(pd)},e.prototype.execAdaptor=function(){var t=this.getSchemaAdaptor(),e=this.options,n=e.padding,r=e.appendPadding;this.chart.padding=n,this.chart.appendPadding=r,t({chart:this.chart,options:this.options})},e.prototype.triggerResize=function(){this.chart.forceFit()},e.prototype.bindSizeSensor=function(){var t=this;if(!this.unbind){var e=this.options.autoFit,n;(void 0===e||e)&&(this.unbind=Object(fd.bind)(this.container,(function(){var e=Hf(t.container),n=e.width,r=e.height;n===t.chart.width&&r===t.chart.height||t.triggerResize()})))}},e.prototype.unbindSizeSensor=function(){this.unbind&&(this.unbind(),this.unbind=void 0)},e}(P.a);function yd(t,e,n,r){var i=Object(c.ib)(t,(function(t,r){var i=r[n],o=t.has(i)?t.get(i):0,a=r[e];return o=Jf(a)?o+a:o,t.set(i,o),t}),new Map);return Object(c.W)(t,(function(t){var o,a=t[e],c=t[n],l=Jf(a)&&0!==i.get(c)?a/i.get(c):0;return Object(s.__assign)(Object(s.__assign)({},t),((o={})[r]=l,o))}))}function vd(t,e,n,r){var i=Object(c.ib)(t,(function(t,r){var i=Object(c.ib)(n,(function(t,e){return"".concat(t).concat(r[e])}),""),o=t.has(i)?t.get(i):0,a=r[e];return o=Jf(a)?o+a:o,t.set(i,o),t}),new Map);return Object(c.W)(t,(function(t){var o,a=t[e],l=Object(c.ib)(n,(function(e,n){return"".concat(e).concat(t[n])}),""),u=Jf(a)&&0!==i.get(l)?a/i.get(l):0;return Object(s.__assign)(Object(s.__assign)({},t),((o={})[r]=u,o))}))}function md(t,e,n,r,i){return i?yd(t,e,n,r):t}function bd(t){var e=t.chart,n=t.options,r=n.data,i=n.color,o=n.lineStyle,a=n.lineShape,c=n.point,l=n.area,u=n.seriesField,h=null==c?void 0:c.state,f=null==l?void 0:l.state;e.data(r);var p=Yf({},t,{options:{shapeField:u,line:{color:i,style:o,shape:a},point:c&&Object(s.__assign)({color:i,shape:"circle"},c),area:l&&Object(s.__assign)({color:i},l),label:void 0}}),d=Yf({},p,{options:{tooltip:!1,state:h}}),g=Yf({},p,{options:{tooltip:!1,state:f}});return sd(p),cd(d),rd(g),t}function xd(t){var e,n,r=t.options,i=r.xAxis,o=r.yAxis,a=r.xField,s=r.yField,c=r.data;return Vf(Gp(((e={})[a]=i,e[s]=o,e),((n={})[a]={type:"cat"},n[s]=Ef(c,s),n)))(t)}function Od(t){var e=t.chart,n,r=t.options.reflect;if(r){var i=r;Object(c.C)(i)||(i=[i]);var o=i.map((function(t){return["reflect",t]}));e.coordinate({type:"rect",actions:o})}return t}function jd(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(a,!1):e.axis(a,i),t}function wd(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return r&&i?e.legend(i,r):!1===r&&e.legend(!1),t}function _d(t){var e=t.chart,n=t.options,r=n.label,i=n.yField,o=Wf(e,"line");if(r){var a=r.callback,c=Object(s.__rest)(r,["callback"]);o.label({fields:[i],callback:a,cfg:Object(s.__assign)({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Kf(c))})}else o.label(!1);return t}function Md(t){var e=t.chart,n,r;return t.options.isStack&&Object(c.j)(e.geometries,(function(t){t.adjust("stack")})),t}function Sd(t){return Vf(bd,xd,Md,Rp,Od,jd,wd,Lp,_d,zp,Yp,Bp,Dp,Hp(),Vp)(t)}function Cd(t){var e=t.chart,n=t.options,r=n.data,i=n.areaStyle,o=n.areaShape,a=n.color,l=n.point,u=n.line,h=n.isPercent,f=n.xField,p=n.yField,d=n.tooltip,g=n.seriesField,y=n.startOnZero,v=null==l?void 0:l.state,m=md(r,p,f,p,h);e.data(m);var b=h?Object(s.__assign)({formatter:function(t){return{name:t[g]||t[f],value:(100*Number(t[p])).toFixed(2)+"%"}}},d):d,x=Yf({},t,{options:{area:{color:a,style:i,shape:o},point:l&&Object(s.__assign)({color:a},l),tooltip:b,label:void 0,args:{startOnZero:y}}}),O={chart:e,options:Yf({line:{size:2}},Object(c.gb)(n,["state"]),{line:u&&Object(s.__assign)({color:a},u),sizeField:g,state:null==u?void 0:u.state,tooltip:!1,label:void 0,args:{startOnZero:y}})},j=Yf({},x,{options:{tooltip:!1,state:v}});return rd(x),sd(O),cd(j),t}function Ad(t){var e=t.chart,n=t.options,r=n.label,i=n.yField,o=Wf(e,"area");if(r){var a=r.callback,c=Object(s.__rest)(r,["callback"]);o.label({fields:[i],callback:a,cfg:Object(s.__assign)({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Kf(c))})}else o.label(!1);return t}function kd(t){var e=t.chart,n=t.options,r=n.isStack,i=n.isPercent,o=n.seriesField;return(i||r)&&o&&Object(c.j)(e.geometries,(function(t){t.adjust("stack")})),t}function Td(t){return Vf(Rp,Ip("areaStyle"),Wp("rect"),Cd,xd,kd,jd,wd,Lp,Ad,zp,Hp(),Bp,Dp,Vp)(t)}var Ed=Yf({},gd.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},isStack:!0,line:{},legend:{position:"top-left",radio:{}}}),Pd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e}return Object(s.__extends)(e,t),e.getDefaultOptions=function(){return Ed},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.isPercent,r=e.xField,i=e.yField,o=this,a,s;xd({chart:o.chart,options:o.options}),this.chart.changeData(md(t,i,r,i,n))},e.prototype.getSchemaAdaptor=function(){return Td},e}(gd),Id=10,Fd=5,Ld={padding:[8,10],text:"reset",textStyle:{default:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"}},buttonStyle:{default:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},active:{fill:"#e6e6e6"}}},Bd;function Dd(t){return t.isInPlot()}function Rd(t,e,n){var r=n||{},i=r.mask,o=r.isStartEnable,a=e||"rect";switch(t){case"brush":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:o||Dd,action:["brush:start","".concat(a,"-mask:start"),"".concat(a,"-mask:show")],arg:[null,{maskStyle:null==i?void 0:i.style}]}],processing:[{trigger:"mousemove",isEnable:Dd,action:["".concat(a,"-mask:resize")]}],end:[{trigger:"mouseup",isEnable:Dd,action:["brush:filter","brush:end","".concat(a,"-mask:end"),"".concat(a,"-mask:hide"),"brush-reset-button:show"]}],rollback:[{trigger:"brush-reset-button:click",action:["brush:reset","brush-reset-button:hide","cursor:crosshair"]}]};case"brush-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mousemove",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mousemove",action:"cursor:default",isEnable:function(t){return!!o&&!o(t)}},{trigger:"mask:mouseenter",action:"cursor:move",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:o||function(t){return!t.isInShape("mask")},action:["".concat(a,"-mask:start"),"".concat(a,"-mask:show")],arg:[{maskStyle:null==i?void 0:i.style}]},{trigger:"mask:dragstart",action:["".concat(a,"-mask:moveStart")]}],processing:[{trigger:"plot:mousemove",action:["".concat(a,"-mask:resize")]},{trigger:"mask:drag",action:["".concat(a,"-mask:move")]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["".concat(a,"-mask:end")]},{trigger:"mask:dragend",action:["".concat(a,"-mask:moveEnd")]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","".concat(a,"-mask:end"),"".concat(a,"-mask:hide")]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","".concat(a,"-mask:hide")]}]};case"brush-x":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:o||Dd,action:["brush-x:start","".concat(a,"-mask:start"),"".concat(a,"-mask:show")],arg:[null,{maskStyle:null==i?void 0:i.style}]}],processing:[{trigger:"mousemove",isEnable:Dd,action:["".concat(a,"-mask:resize")]}],end:[{trigger:"mouseup",isEnable:Dd,action:["brush-x:filter","brush-x:end","".concat(a,"-mask:end"),"".concat(a,"-mask:hide")]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]};case"brush-x-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"mask:mouseenter",action:"cursor:move",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:o||function(t){return!t.isInShape("mask")},action:["".concat(a,"-mask:start"),"".concat(a,"-mask:show")],arg:[{maskStyle:null==i?void 0:i.style}]},{trigger:"mask:dragstart",action:["".concat(a,"-mask:moveStart")]}],processing:[{trigger:"plot:mousemove",action:["".concat(a,"-mask:resize")]},{trigger:"mask:drag",action:["".concat(a,"-mask:move")]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["".concat(a,"-mask:end")]},{trigger:"mask:dragend",action:["".concat(a,"-mask:moveEnd")]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","".concat(a,"-mask:end"),"".concat(a,"-mask:hide")]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","".concat(a,"-mask:hide")]}]};case"brush-y":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:o||Dd,action:["brush-y:start","".concat(a,"-mask:start"),"".concat(a,"-mask:show")],arg:[null,{maskStyle:null==i?void 0:i.style}]}],processing:[{trigger:"mousemove",isEnable:Dd,action:["".concat(a,"-mask:resize")]}],end:[{trigger:"mouseup",isEnable:Dd,action:["brush-y:filter","brush-y:end","".concat(a,"-mask:end"),"".concat(a,"-mask:hide")]}],rollback:[{trigger:"dblclick",action:["brush-y:reset"]}]};case"brush-y-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"mask:mouseenter",action:"cursor:move",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:o||function(t){return!t.isInShape("mask")},action:["".concat(a,"-mask:start"),"".concat(a,"-mask:show")],arg:[{maskStyle:null==i?void 0:i.style}]},{trigger:"mask:dragstart",action:["".concat(a,"-mask:moveStart")]}],processing:[{trigger:"plot:mousemove",action:["".concat(a,"-mask:resize")]},{trigger:"mask:drag",action:["".concat(a,"-mask:move")]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["".concat(a,"-mask:end")]},{trigger:"mask:dragend",action:["".concat(a,"-mask:moveEnd")]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","".concat(a,"-mask:end"),"".concat(a,"-mask:hide")]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","".concat(a,"-mask:hide")]}]};default:return{}}}Oe("brush-reset-button",function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttonGroup=null,e.buttonCfg=Object(s.__assign)({name:"button"},Ld),e}return Object(s.__extends)(e,t),e.prototype.getButtonCfg=function(){var t=this.context.view,e=Object(c.s)(t,["interactions","filter-action","cfg","buttonConfig"]);return Yf(this.buttonCfg,e,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),n=this.drawText(e);this.drawBackground(e,n.getBBox()),this.buttonGroup=e},e.prototype.drawText=function(t){var e,n=this.getButtonCfg();return t.addShape({type:"text",name:"button-text",attrs:Object(s.__assign)({text:n.text},null===(e=n.textStyle)||void 0===e?void 0:e.default)})},e.prototype.drawBackground=function(t,e){var n,r=this.getButtonCfg(),i=ep(r.padding),o=t.addShape({type:"rect",name:"button-rect",attrs:Object(s.__assign)({x:e.x-i[3],y:e.y-i[0],width:e.width+i[1]+i[3],height:e.height+i[0]+i[2]},null===(n=r.buttonStyle)||void 0===n?void 0:n.default)});return o.toBack(),t.on("mouseenter",(function(){var t;o.attr(null===(t=r.buttonStyle)||void 0===t?void 0:t.active)})),t.on("mouseleave",(function(){var t;o.attr(null===(t=r.buttonStyle)||void 0===t?void 0:t.default)})),o},e.prototype.resetPosition=function(){var t,e,n=this.context.view.getCoordinate().convert({x:1,y:1}),r=this.buttonGroup,i=r.getBBox(),o=mo.transform(null,[["t",n.x-i.width-10,n.y+i.height+5]]);r.setMatrix(o)},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}(ge),{name:"brush-reset-button"}),Fn("filter-action",{}),Fn("brush",Rd("brush")),Fn("brush-highlight",Rd("brush-highlight")),Fn("brush-x",Rd("brush-x","x-rect")),Fn("brush-y",Rd("brush-y","y-rect")),Fn("brush-x-highlight",Rd("brush-x-highlight","x-rect")),Fn("brush-y-highlight",Rd("brush-y-highlight","y-rect"));var Nd=["brush","brush-x","brush-y","brush-highlight","brush-x-highlight","brush-y-highlight"];function zd(t){var e=t.options,n=e.brush,r=Object(c.l)(e.interactions||[],(function(t){return-1===Nd.indexOf(t.type)}));return(null==n?void 0:n.enabled)&&(Nd.forEach((function(t){var e=!1;switch(n.type){case"x-rect":e=t===("highlight"===n.action?"brush-x-highlight":"brush-x");break;case"y-rect":e=t===("highlight"===n.action?"brush-y-highlight":"brush-y");break;default:e=t===("highlight"===n.action?"brush-highlight":"brush")}var i={type:t,enable:e};n&&(i.cfg=Rd(t,n.type,n)),r.push(i)})),"highlight"!==(null==n?void 0:n.action)&&r.push({type:"filter-action",cfg:{buttonConfig:n.button}})),Yf({},t,{options:{interactions:r}})}var Yd={hover:"__interval-connected-area-hover__",click:"__interval-connected-area-click__"},Gd=function(t,e){return"hover"===t?[{trigger:"interval:mouseenter",action:["element-highlight-by-color:highlight","element-link-by-color:link"],arg:[null,{style:e}]}]:[{trigger:"interval:click",action:["element-highlight-by-color:clear","element-highlight-by-color:highlight","element-link-by-color:clear","element-link-by-color:unlink","element-link-by-color:link"],arg:[null,null,null,null,{style:e}]}]};function Hd(t){return void 0===t&&(t=!1),function(e){var n=e.chart,r,i=e.options.connectedArea,o=function(){n.removeInteraction(Yd.hover),n.removeInteraction(Yd.click)};if(!t&&i){var a=i.trigger||"hover";o(),n.interaction(Yd[a],{start:Gd(a,i.style)})}else o();return e}}function Vd(t,e){return Object(c.M)(t)&&Object(c.M)(e)?0===t&&0===e?"-":t===e?"100%":0===t?"\u221e":"".concat((100*e/t).toFixed(2),"%"):"-"}function Wd(t,e){return Yf({size:e?32:80,spacing:e?8:12,offset:e?32:0,arrow:!1!==t.arrow&&{headSize:12,style:{fill:"rgba(0, 0, 0, 0.05)"}},text:!1!==t.text&&{style:{fontSize:12,fill:"rgba(0, 0, 0, 0.85)",textAlign:"center",textBaseline:"middle"},formatter:Vd}},t)}function Xd(t,e){return Object(c.W)(e.getModel().points,(function(e){return t.convertPoint(e)}))}function $d(t,e,n){var r=t.view,i=t.geometry,o=t.group,a=t.options,c=t.horizontal,l=a.offset,u=a.size,h=a.arrow,f=r.getCoordinate(),p=Xd(f,e)[3],d=Xd(f,n)[0],g=d.y-p.y,y=d.x-p.x;if("boolean"!=typeof h){var v=h.headSize,m=a.spacing,b;c?(y-v)/2<m?(m=Math.max(1,(y-v)/2),b=[[p.x+m,p.y-l],[p.x+m,p.y-l-u],[d.x-m,d.y-l-u/2]]):b=[[p.x+m,p.y-l],[p.x+m,p.y-l-u],[d.x-m-v,d.y-l-u],[d.x-m,d.y-l-u/2],[d.x-m-v,d.y-l]]:(g-v)/2<m?(m=Math.max(1,(g-v)/2),b=[[p.x+l,p.y+m],[p.x+l+u,p.y+m],[d.x+l+u/2,d.y-m]]):b=[[p.x+l,p.y+m],[p.x+l+u,p.y+m],[d.x+l+u,d.y-m-v],[d.x+l+u/2,d.y-m],[d.x+l,d.y-m-v]],o.addShape("polygon",{id:"".concat(r.id,"-conversion-tag-arrow-").concat(i.getElementId(e.getModel().mappingData)),name:"conversion-tag-arrow",origin:{element:e,nextElement:n},attrs:Object(s.__assign)(Object(s.__assign)({},h.style||{}),{points:b})})}}function qd(t,e,n){var r,i,o,a=t.view,c=t.geometry,l=t.group,u=t.options,h=t.field,f=t.horizontal,p=u.offset,d=u.size;if("boolean"!=typeof u.text){var g=a.getCoordinate(),y=(null===(r=u.text)||void 0===r?void 0:r.formatter)&&(null===(i=u.text)||void 0===i?void 0:i.formatter(e.getData()[h],n.getData()[h])),v=Xd(g,e)[f?3:0],m=Xd(g,n)[f?0:3],b=l.addShape("text",{id:"".concat(a.id,"-conversion-tag-text-").concat(c.getElementId(e.getModel().mappingData)),name:"conversion-tag-text",origin:{element:e,nextElement:n},attrs:Object(s.__assign)(Object(s.__assign)({},(null===(o=u.text)||void 0===o?void 0:o.style)||{}),{text:y,x:f?(v.x+m.x)/2:v.x+p+d/2,y:f?v.y-p-d/2:(v.y+m.y)/2})});if(f){var x=m.x-v.x,O=b.getBBox().width;if(O>x){var j=O/y.length,w=Math.max(1,Math.ceil(x/j)-1),_="".concat(y.slice(0,w),"...");b.attr("text",_)}}}}function Ud(t,e,n){$d(t,e,n),qd(t,e,n)}function Kd(t,e,n){return void 0===e&&(e=!0),void 0===n&&(n=!1),function(r){var i=r.options,o=r.chart,a=i.conversionTag,s=i.theme;return a&&!n&&(o.theme(Yf({},Object(c.O)(s)?s:lr(s),{columnWidthRatio:1/3})),o.annotation().shape({render:function(n,r){var i=n.addGroup({id:"".concat(o.id,"-conversion-tag-group"),name:"conversion-tag-group"}),s=Object(c.m)(o.geometries,(function(t){return"interval"===t.type})),l={view:r,geometry:s,group:i,field:t,horizontal:e,options:Wd(a,e)},u=s.elements;Object(c.j)(u,(function(t,e){e>0&&Ud(l,u[e-1],t)}))}})),r}}function Zd(t){var e=t.options,n=e.legend,r=e.seriesField,i=e.isStack;return r?!1!==n&&(n=Object(s.__assign)({position:i?"right-top":"top-left"},n)):n=!1,t.options.legend=n,t}function Qd(t){var e=t.chart,n=t.options,r=n.data,i=n.columnStyle,o=n.color,a=n.columnWidthRatio,c=n.isPercent,l=n.isGroup,u=n.isStack,h=n.xField,f=n.yField,p=n.seriesField,d=n.groupField,g=n.tooltip,y=n.shape,v=c&&l&&u?vd(r,f,[h,d],f):md(r,f,h,f,c),m=[];u&&p&&!l?v.forEach((function(t){var e=m.find((function(e){return e[h]===t[h]&&e[p]===t[p]}));e?e[f]+=t[f]||0:m.push(Object(s.__assign)({},t))})):m=v,e.data(m);var b=c?Object(s.__assign)({formatter:function(t){var e;return{name:l&&u?"".concat(t[p]," - ").concat(t[d]):null!==(e=t[p])&&void 0!==e?e:t[h],value:(100*Number(t[f])).toFixed(2)+"%"}}},g):g,x=Yf({},t,{options:{data:m,widthRatio:a,tooltip:b,interval:{shape:y,style:i,color:o}}});return ad(x),x}function Jd(t){var e,n,r=t.options,i=r.xAxis,o=r.yAxis,a=r.xField,c=r.yField,l=r.data,u,h=r.isPercent?{max:1,min:0,minLimit:0,maxLimit:1}:{};return Vf(Gp(((e={})[a]=i,e[c]=o,e),((n={})[a]={type:"cat"},n[c]=Object(s.__assign)(Object(s.__assign)({},Ef(l,c)),h),n)))(t)}function tg(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(a,!1):e.axis(a,i),t}function eg(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return r&&i?e.legend(i,r):!1===r&&e.legend(!1),t}function ng(t){var e=t.chart,n=t.options,r=n.label,i=n.yField,o=n.isRange,a=Wf(e,"interval");if(r){var c=r.callback,l=Object(s.__rest)(r,["callback"]);a.label({fields:[i],callback:c,cfg:Object(s.__assign)({layout:(null==l?void 0:l.position)?void 0:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Kf(o?Object(s.__assign)({content:function(t){var e;return null===(e=t[i])||void 0===e?void 0:e.join("-")}},l):l))})}else a.label(!1);return t}function rg(t){var e=t.chart,n=t.options,r=n.tooltip,i=n.isGroup,o=n.isStack,a=n.groupField,l=n.data,u=n.xField,h=n.yField,f=n.seriesField;if(!1===r)e.tooltip(!1);else{var p=r;if(i&&o){var d=p.customItems,g=(null==p?void 0:p.formatter)||function(t){return{name:"".concat(t[f]," - ").concat(t[a]),value:t[h]}};p=Object(s.__assign)(Object(s.__assign)({},p),{customItems:function(t){var e=[];return Object(c.j)(t,(function(t){var n;Object(c.l)(l,(function(e){return Object(c.J)(e,Tf(t.data,[u,f]))})).forEach((function(n){e.push(Object(s.__assign)(Object(s.__assign)(Object(s.__assign)({},t),{value:n[h],data:n,mappingData:{_origin:n}}),g(n)))}))})),d?d(e):e}})}e.tooltip(p)}return t}function ig(t,e){void 0===e&&(e=!1);var n=t.options,r=n.seriesField;return Vf(Zd,Rp,Ip("columnStyle"),Np,Wp("rect"),Qd,Jd,tg,eg,rg,zp,Yp,ng,zd,Bp,Dp,Hp(),Kd(n.yField,!e,!!r),Hd(!n.isStack),Vp)(t)}function og(t){var e=t.options,n=e.xField,r=e.yField,i=e.xAxis,o=e.yAxis,a={left:"bottom",right:"top",top:"left",bottom:"right"},c=!1!==o&&Object(s.__assign)({position:a[(null==o?void 0:o.position)||"left"]},o),l=!1!==i&&Object(s.__assign)({position:a[(null==i?void 0:i.position)||"bottom"]},i);return Object(s.__assign)(Object(s.__assign)({},t),{options:Object(s.__assign)(Object(s.__assign)({},e),{xField:r,yField:n,xAxis:c,yAxis:l})})}function ag(t){var e,n=t.options.label;return n&&!n.position&&(n.position="left",n.layout||(n.layout=[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}])),Yf({},t,{options:{label:n}})}function sg(t){var e=t.options,n=e.seriesField,r=e.isStack,i=e.legend;return n?!1!==i&&(i=Object(s.__assign)({position:r?"top-left":"right-top"},i||{})):i=!1,Yf({},t,{options:{legend:i}})}function cg(t){var e=t.options,n=[{type:"transpose"},{type:"reflectY"}].concat(e.coordinate||[]);return Yf({},t,{options:{coordinate:n}})}function lg(t){var e=t.chart,n=t.options,r=n.barStyle,i=n.barWidthRatio,o=n.minBarWidth,a=n.maxBarWidth,c=n.barBackground;return ig({chart:e,options:Object(s.__assign)(Object(s.__assign)({},n),{columnStyle:r,columnWidthRatio:i,minColumnWidth:o,maxColumnWidth:a,columnBackground:c})},!0)}function ug(t){return Vf(og,ag,sg,Lp,cg,lg)(t)}Fn(Yd.hover,{start:Gd(Yd.hover),end:[{trigger:"interval:mouseleave",action:["element-highlight-by-color:reset","element-link-by-color:unlink"]}]}),Fn(Yd.click,{start:Gd(Yd.click),end:[{trigger:"document:mousedown",action:["element-highlight-by-color:clear","element-link-by-color:clear"]}]});var hg=Yf({},gd.getDefaultOptions(),{barWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),fg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bar",e}return Object(s.__extends)(e,t),e.getDefaultOptions=function(){return hg},e.prototype.changeData=function(t){var e,n;this.updateOption({data:t});var r=this,i=r.chart,o=r.options,a=o.isPercent,c=o.xField,l=o.yField,u=o.xAxis,h=o.yAxis,f;c=(e=[l,c])[0],l=e[1],u=(n=[h,u])[0],h=n[1],Jd({chart:i,options:Object(s.__assign)(Object(s.__assign)({},o),{xField:c,yField:l,yAxis:h,xAxis:u})}),i.changeData(md(t,c,l,c,a))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return ug},e}(gd),pg=Yf({},gd.getDefaultOptions(),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),dg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="column",e}return Object(s.__extends)(e,t),e.getDefaultOptions=function(){return pg},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.yField,r=e.xField,i=e.isPercent,o=this,a,s;Jd({chart:o.chart,options:o.options}),this.chart.changeData(md(t,n,r,n,i))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return ig},e}(gd),gg,yg="$$percentage$$",vg="$$mappingValue$$",mg="$$conversion$$",bg="$$totalPercentage$$",xg="$$x$$",Og="$$y$$",jg={appendPadding:[0,80],minSize:0,maxSize:1,meta:(gg={},gg.$$mappingValue$$={min:0,max:1,nice:!1},gg),label:{style:{fill:"#fff",fontSize:12}},tooltip:{showTitle:!1,showMarkers:!1,shared:!1},conversionTag:{offsetX:10,offsetY:0,style:{fontSize:12,fill:"rgba(0,0,0,0.45)"}}},wg="CONVERSION_TAG_NAME";function _g(t,e,n){var r=[],i=n.yField,o=n.maxSize,a=n.minSize,s=Object(c.s)(Object(c.Z)(e,i),[i]),l=Object(c.M)(o)?o:1,u=Object(c.M)(a)?a:0;return r=Object(c.W)(t,(function(e,n){var r=(e[i]||0)/s;return e[yg]=r,e.$$mappingValue$$=(l-u)*r+u,e[mg]=[Object(c.s)(t,[n-1,i]),e[i]],e}))}function Mg(t){return function(e){var n=e.chart,r=e.options,i=r.conversionTag,o,a=r.filteredData||n.getOptions().data;if(i){var l=i.formatter;a.forEach((function(e,r){if(!(r<=0||Number.isNaN(e.$$mappingValue$$))){var o=t(e,r,a,{top:!0,name:wg,text:{content:Object(c.I)(l)?l(e,a):l,offsetX:i.offsetX,offsetY:i.offsetY,position:"end",autoRotate:!1,style:Object(s.__assign)({textAlign:"start",textBaseline:"middle"},i.style)}});n.annotation().line(o)}}))}return e}}function Sg(t){var e=t.chart,n=t.options,r=n.data,i=void 0===r?[]:r,o,a,s,c=_g(i,i,{yField:n.yField,maxSize:n.maxSize,minSize:n.minSize});return e.data(c),t}function Cg(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,o=n.color,a=n.tooltip,s=n.label,l=n.shape,u=void 0===l?"funnel":l,h=n.funnelStyle,f=n.state,p=Jp(a,[r,i]),d=p.fields,g=p.formatter,y;return nd({chart:e,options:{type:"interval",xField:r,yField:"$$mappingValue$$",colorField:r,tooltipFields:Object(c.C)(d)&&d.concat([yg,mg]),mapping:{shape:u,tooltip:g,color:o,style:h},label:s,state:f}}),Wf(t.chart,"interval").adjust("symmetric"),t}function Ag(t){var e=t.chart,n,r=t.options.isTransposed;return e.coordinate({type:"rect",actions:r?[]:[["transpose"],["scale",1,-1]]}),t}function kg(t){var e=t.options,n=t.chart,r=e.maxSize,i=Object(c.s)(n,["geometries","0","dataArray"],[]),o=Object(c.s)(n,["options","data","length"]),a=Object(c.W)(i,(function(t){return Object(c.s)(t,["0","nextPoints","0","x"])*o-.5})),l;return Mg((function(t,e,n,i){var o=r-(r-t.$$mappingValue$$)/2;return Object(s.__assign)(Object(s.__assign)({},i),{start:[a[e-1]||e-.5,o],end:[a[e-1]||e-.5,o+.05]})}))(t),t}function Tg(t){return Vf(Sg,Cg,Ag,kg)(t)}function Eg(t){var e,n=t.chart,r=t.options,i=r.data,o=void 0===i?[]:i,a=r.yField;return n.data(o),n.scale(((e={})[a]={sync:!0},e)),t}function Pg(t){var e=t.chart,n=t.options,r=n.data,i=n.xField,o=n.yField,a=n.color,s=n.compareField,l=n.isTransposed,u=n.tooltip,h=n.maxSize,f=n.minSize,p=n.label,d=n.funnelStyle,g=n.state,y=n.showFacetTitle;return e.facet("mirror",{fields:[s],transpose:!l,padding:l?0:[32,0,0,0],showTitle:y,eachView:function(t,e){var n=l?e.rowIndex:e.columnIndex;l||t.coordinate({type:"rect",actions:[["transpose"],["scale",0===n?-1:1,-1]]});var y=_g(e.data,r,{yField:o,maxSize:h,minSize:f});t.data(y);var v=Jp(u,[i,o,s]),m=v.fields,b=v.formatter,x=l?{offset:0===n?10:-23,position:0===n?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:0===n?"end":"start"}};nd({chart:t,options:{type:"interval",xField:i,yField:"$$mappingValue$$",colorField:i,tooltipFields:Object(c.C)(m)&&m.concat([yg,mg]),mapping:{shape:"funnel",tooltip:b,color:a,style:d},label:!1!==p&&Yf({},x,p),state:g}})}}),t}function Ig(t){var e=t.chart,n=t.index,r=t.options,i=r.conversionTag,o=r.isTransposed;(Object(c.M)(n)?[e]:e.views).forEach((function(t,e){var a=Object(c.s)(t,["geometries","0","dataArray"],[]),s=Object(c.s)(t,["options","data","length"]),l=Object(c.W)(a,(function(t){return Object(c.s)(t,["0","nextPoints","0","x"])*s-.5})),u;Mg((function(t,r,a,s){var c=0===(n||e)?-1:1;return Yf({},s,{start:[l[r-1]||r-.5,t.$$mappingValue$$],end:[l[r-1]||r-.5,t.$$mappingValue$$+.05],text:o?{style:{textAlign:"start"}}:{offsetX:!1!==i?c*i.offsetX:0,style:{textAlign:0===(n||e)?"end":"start"}}})}))(Yf({},{chart:t,options:r}))}))}function Fg(t){var e;return t.chart.once("beforepaint",(function(){return Ig(t)})),t}function Lg(t){return Vf(Eg,Pg,Fg)(t)}function Bg(t){var e=t.chart,n=t.options,r=n.data,i=void 0===r?[]:r,o=n.yField,a=Object(c.ib)(i,(function(t,e){return t+(e[o]||0)}),0),s=Object(c.Z)(i,o)[o],l=Object(c.W)(i,(function(t,e){var n=[],r=[];if(t[bg]=(t[o]||0)/a,e){var l=i[e-1].$$x$$,u=i[e-1].$$y$$;n[0]=l[3],r[0]=u[3],n[1]=l[2],r[1]=u[2]}else n[0]=-.5,r[0]=1,n[1]=.5,r[1]=1;return r[2]=r[1]-t[bg],n[2]=(r[2]+1)/4,r[3]=r[2],n[3]=-n[2],t.$$x$$=n,t.$$y$$=r,t[yg]=(t[o]||0)/s,t[mg]=[Object(c.s)(i,[e-1,o]),t[o]],t}));return e.data(l),t}function Dg(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,o=n.color,a=n.tooltip,s=n.label,l=n.funnelStyle,u=n.state,h=Jp(a,[r,i]),f=h.fields,p=h.formatter;return nd({chart:e,options:{type:"polygon",xField:"$$x$$",yField:"$$y$$",colorField:r,tooltipFields:Object(c.C)(f)&&f.concat([yg,mg]),label:s,state:u,mapping:{tooltip:p,color:o,style:l}}}),t}function Rg(t){var e=t.chart,n,r=t.options.isTransposed;return e.coordinate({type:"rect",actions:r?[["transpose"],["reflect","x"]]:[]}),t}function Ng(t){var e;return Mg((function(t,e,n,r){return Object(s.__assign)(Object(s.__assign)({},r),{start:[t.$$x$$[1],t.$$y$$[1]],end:[t.$$x$$[1]+.05,t.$$y$$[1]]})}))(t),t}function zg(t){return Vf(Bg,Dg,Rg,Ng)(t)}function Yg(t){var e,n=t.chart,r=t.options,i=r.data,o=void 0===i?[]:i,a=r.yField;return n.data(o),n.scale(((e={})[a]={sync:!0},e)),t}function Gg(t){var e=t.chart,n=t.options,r=n.seriesField,i=n.isTransposed,o=n.showFacetTitle;return e.facet("rect",{fields:[r],padding:[i?0:32,10,0,10],showTitle:o,eachView:function(e,n){Tg(Yf({},t,{chart:e,options:{data:n.data}}))}}),t}function Hg(t){return Vf(Yg,Gg)(t)}var Vg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.rendering=!1,e}return Object(s.__extends)(e,t),e.prototype.change=function(t){var e=this;if(!this.rendering){var n=t.seriesField,r=t.compareField,i=r?Ig:kg,o=this.context.view,a=n||r?o.views:[o];Object(c.W)(a,(function(n,r){var o=n.getController("annotation"),a=Object(c.l)(Object(c.s)(o,["option"],[]),(function(t){var e;return t.name!==wg}));o.clear(!0),Object(c.j)(a,(function(t){"object"==typeof t&&n.annotation()[t.type](t)}));var l=Object(c.s)(n,["filteredData"],n.getOptions().data);i({chart:n,index:r,options:Object(s.__assign)(Object(s.__assign)({},t),{filteredData:_g(l,l,t)})}),n.filterData(l),e.rendering=!0,n.render(!0)}))}this.rendering=!1},e}(ge),Wg="funnel-conversion-tag",Xg="funnel-afterrender",$g={trigger:"afterrender",action:"".concat(Wg,":change")};function qg(t){var e=t.options,n=e.compareField,r=e.xField,i=e.yField,o=e.locale,a=e.funnelStyle,s=e.data,l=Kp(o),u,h;return(n||a)&&(h=function(t){return Yf({},n&&{lineWidth:1,stroke:"#fff"},Object(c.I)(a)?a(t):a)}),Yf({options:{label:n?{fields:[r,i,n,yg,mg],formatter:function(t){return"".concat(t[i])}}:{fields:[r,i,yg,mg],offset:0,position:"middle",formatter:function(t){return"".concat(t[r]," ").concat(t[i])}},tooltip:{title:r,formatter:function(t){return{name:t[r],value:t[i]}}},conversionTag:{formatter:function(t){return"".concat(l.get(["conversionTag","label"]),": ").concat(Vd.apply(void 0,t[mg]))}}}},t,{options:{funnelStyle:h,data:Object(c.e)(s)}})}function Ug(t){var e=t.options,n=e.compareField,r=e.dynamicHeight,i;return e.seriesField?Hg(t):n?Lg(t):r?zg(t):Tg(t)}function Kg(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return Vf(Gp(((e={})[o]=r,e[a]=i,e)))(t)}function Zg(t){var e;return t.chart.axis(!1),t}function Qg(t){var e=t.chart,n,r=t.options.legend;return!1===r?e.legend(!1):e.legend(r),t}function Jg(t){var e=t.chart,n=t.options,r=n.interactions,i=n.dynamicHeight;return Object(c.j)(r,(function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg||{})})),i?e.removeInteraction("funnel-afterrender"):e.interaction("funnel-afterrender",{start:[Object(s.__assign)(Object(s.__assign)({},$g),{arg:n})]}),t}function ty(t){return Vf(qg,Ug,Kg,Zg,Lp,Jg,Qg,Dp,Rp,Hp())(t)}Oe(Wg,Vg),Fn("funnel-afterrender",{start:[$g]});var ey=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="funnel",e}return Object(s.__extends)(e,t),e.getDefaultOptions=function(){return jg},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return ty},e.prototype.setState=function(t,e,n){void 0===n&&(n=!0);var r=$f(this.chart);Object(c.j)(r,(function(r){e(r.getData())&&r.setState(t,n)}))},e.prototype.getStates=function(){var t=$f(this.chart),e=[];return Object(c.j)(t,(function(t){var n=t.getData(),r=t.getStates();Object(c.j)(r,(function(r){e.push({data:n,state:r,geometry:t.geometry,element:t})}))})),e},e.CONVERSATION_FIELD=mg,e.PERCENT_FIELD=yg,e.TOTAL_PERCENT_FIELD=bg,e}(gd),ny,ry="range",iy="type",oy="percent",ay="#f0f0f0",sy="indicator-view",cy="range-view",ly={percent:0,range:{ticks:[]},innerRadius:.9,radius:.95,startAngle:-7/6*Math.PI,endAngle:1/6*Math.PI,syncViewPadding:!0,axis:{line:null,label:{offset:-24,style:{textAlign:"center",textBaseline:"middle"}},subTickLine:{length:-8},tickLine:{length:-12},grid:null},indicator:{pointer:{style:{lineWidth:5,lineCap:"round"}},pin:{style:{r:9.75,lineWidth:4.5,fill:"#fff"}}},statistic:{title:!1},meta:(ny={},ny.range={sync:"v"},ny[oy]={sync:"v",tickCount:5,tickInterval:.2},ny),animation:!1};function uy(t,e){return t.map((function(n,r){var i;return(i={}).range=n-(t[r-1]||0),i.type="".concat(r),i[oy]=e,i}))}function hy(t){var e;return[(e={},e[oy]=Object(c.c)(t,0,1),e)]}function fy(t,e){var n=Object(c.s)(e,["ticks"],[]),r=Object(c.mb)(n)?Object(c.ub)(n):[0,Object(c.c)(t,0,1),1];return r[0]||r.shift(),uy(r,t)}function py(t){var e=t.chart,n=t.options,r=n.percent,i=n.range,o=n.radius,a=n.innerRadius,s=n.startAngle,l=n.endAngle,u=n.axis,h=n.indicator,f=n.gaugeStyle,p=n.type,d=n.meter,g=i.color,y=i.width;if(h){var v=hy(r),m=e.createView({id:"indicator-view"});m.data(v),m.point().position("".concat(oy,"*1")).shape(h.shape||"gauge-indicator").customInfo({defaultColor:e.getTheme().defaultColor,indicator:h}),m.coordinate("polar",{startAngle:s,endAngle:l,radius:a*o}),m.axis(oy,u),m.scale(oy,Tf(u,_f))}var b=fy(r,n.range),x=e.createView({id:"range-view"});x.data(b);var O=Object(c.Q)(g)?[g,"#f0f0f0"]:g,j,w;return ad({chart:x,options:{xField:"1",yField:"range",seriesField:"type",rawFields:[oy],isStack:!0,interval:{color:O,style:f,shape:"meter"===p?"meter-gauge":null},args:{zIndexReversed:!0,sortZIndex:!0},minColumnWidth:y,maxColumnWidth:y}}).ext.geometry.customInfo({meter:d}),x.coordinate("polar",{innerRadius:a,radius:o,startAngle:s,endAngle:l}).transpose(),t}function dy(t){var e;return Vf(Gp(((e={range:{min:0,max:1,maxLimit:1,minLimit:0}})[oy]={},e)))(t)}function gy(t,e){var n=t.chart,r=t.options,i=r.statistic,o=r.percent;if(n.getController("annotation").clear(!0),i){var a=i.content,c=void 0;a&&(c=Yf({},{content:"".concat((100*o).toFixed(2),"%"),style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},a)),hp(n,{statistic:Object(s.__assign)(Object(s.__assign)({},i),{content:c})},{percent:o})}return e&&n.render(!0),t}function yy(t){var e=t.chart,n,r=t.options.tooltip;return r?e.tooltip(Yf({showTitle:!1,showMarkers:!1,containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',domStyles:{"g2-tooltip":{padding:"4px 8px",fontSize:"10px"}},customContent:function(t,e){var n=Object(c.s)(e,[0,"data",oy],0);return"".concat((100*n).toFixed(2),"%")}},r)):e.tooltip(!1),t}function vy(t){var e;return t.chart.legend(!1),t}function my(t){return Vf(Rp,Dp,py,dy,yy,gy,Bp,Hp(),vy)(t)}xi("point","gauge-indicator",{draw:function(t,e){var n=t.customInfo,r=n.indicator,i=n.defaultColor,o=r,a=o.pointer,c=o.pin,l=e.addGroup(),u=this.parsePoint({x:0,y:0});return a&&l.addShape("line",{name:"pointer",attrs:Object(s.__assign)({x1:u.x,y1:u.y,x2:t.x,y2:t.y,stroke:i},a.style)}),c&&l.addShape("circle",{name:"pin",attrs:Object(s.__assign)({x:u.x,y:u.y,stroke:i},c.style)}),l}}),xi("interval","meter-gauge",{draw:function(t,e){var n=t.customInfo.meter,r=void 0===n?{}:n,i=r.steps,o=void 0===i?50:i,a=r.stepRatio,s=void 0===a?.5:a;o=o<1?1:o,s=Object(c.c)(s,0,1);var l=this.coordinate,u=l.startAngle,h=l.endAngle,f=0,p;s>0&&s<1&&(f=(h-u)/o/(s/(1-s)+1-1/o));for(var d=f/(1-s)*s,g=e.addGroup(),y=this.coordinate.getCenter(),v=this.coordinate.getRadius(),m=mo.getAngle(t,this.coordinate),b=m.startAngle,x=m.endAngle,O=b;O<x;){var j=void 0,w=(O-u)%(d+f);j=w<d?O+(d-w):(O+=d+f-w)+d;var _=mo.getSectorPath(y.x,y.y,v,O,Math.min(j,x),v*this.coordinate.innerRadius);g.addShape("path",{name:"meter-gauge",attrs:{path:_,fill:t.color,stroke:t.color,lineWidth:.5}}),O=j+f}return g}});var by=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="gauge",e}return Object(s.__extends)(e,t),e.getDefaultOptions=function(){return ly},e.prototype.changeData=function(t){this.chart.emit(g.BEFORE_CHANGE_DATA,Br.fromData(this.chart,g.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t});var e=this.chart.views.find((function(t){return"indicator-view"===t.id}));e&&e.data(hy(t));var n=this.chart.views.find((function(t){return"range-view"===t.id}));n&&n.data(fy(t,this.options.range)),gy({chart:this.chart,options:this.options},!0),this.chart.emit(g.AFTER_CHANGE_DATA,Br.fromData(this.chart,g.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return my},e}(gd);function xy(t,e,n){if(1===n)return[0,e];var r=Math.floor(t/e);return[e*r,e*(r+1)]}function Oy(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function jy(t,e,n,r,i){var o=Object(c.e)(t);Object(c.ob)(o,e);var a=Object(c.yb)(o,e),s=Object(c.u)(a),l=s.max-s.min,u=n;if(!n&&r&&(u=r>1?l/(r-1):s.max),!n&&!r){var h=Oy(a);u=l/h}var f={},p=Object(c.w)(o,i);Object(c.G)(p)?Object(c.j)(o,(function(t){var n,i=xy(t[e],u,r),o="".concat(i[0],"-").concat(i[1]);Object(c.y)(f,o)||(f[o]={range:i,count:0}),f[o].count+=1})):Object.keys(p).forEach((function(t){Object(c.j)(p[t],(function(n){var o,a=xy(n[e],u,r),s="".concat(a[0],"-").concat(a[1]),l="".concat(s,"-").concat(t);Object(c.y)(f,l)||(f[l]={range:a,count:0},f[l][i]=t),f[l].count+=1}))}));var d=[];return Object(c.j)(f,(function(t){d.push(t)})),d}var wy="range",_y="count",My=Yf({},gd.getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});function Sy(t){var e=t.chart,n=t.options,r=n.data,i=n.binField,o=n.binNumber,a=n.binWidth,s=n.color,c=n.stackField,l=n.legend,u=n.columnStyle,h=jy(r,i,a,o,c),f;return e.data(h),ad(Yf({},t,{options:{xField:"range",yField:"count",seriesField:c,isStack:!0,interval:{color:s,style:u}}})),l&&c?e.legend(c,l):e.legend(!1),t}function Cy(t){var e,n=t.options,r=n.xAxis,i=n.yAxis;return Vf(Gp(((e={}).range=r,e.count=i,e)))(t)}function Ay(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis;return!1===r?e.axis("range",!1):e.axis("range",r),!1===i?e.axis("count",!1):e.axis("count",i),t}function ky(t){var e=t.chart,n,r=t.options.label,i=Wf(e,"interval");if(r){var o=r.callback,a=Object(s.__rest)(r,["callback"]);i.label({fields:["count"],callback:o,cfg:Kf(a)})}else i.label(!1);return t}function Ty(t){return Vf(Rp,Ip("columnStyle"),Sy,Cy,Ay,Np,ky,Lp,Bp,Dp)(t)}var Ey=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="histogram",e}return Object(s.__extends)(e,t),e.getDefaultOptions=function(){return My},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.binField,r=e.binNumber,i=e.binWidth,o=e.stackField;this.chart.changeData(jy(t,n,i,r,o))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Ty},e}(gd),Py=Yf({},gd.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},legend:{position:"top-left",radio:{}},isStack:!1}),Iy;Oe("marker-active",function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.active=function(){var t=this.getView(),e=this.context.event;if(e.data){var n=e.data.items,r=t.geometries.filter((function(t){return"point"===t.type}));Object(c.j)(r,(function(t){Object(c.j)(t.elements,(function(t){var e=-1!==Object(c.n)(n,(function(e){return e.data===t.data}));t.setState("active",e)}))}))}},e.prototype.reset=function(){var t,e=this.getView().geometries.filter((function(t){return"point"===t.type}));Object(c.j)(e,(function(t){Object(c.j)(t.elements,(function(t){t.setState("active",!1)}))}))},e.prototype.getView=function(){return this.context.view},e}(ge)),Fn("marker-active",{start:[{trigger:"tooltip:show",action:"marker-active:active"}],end:[{trigger:"tooltip:hide",action:"marker-active:reset"}]});var Fy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e}return Object(s.__extends)(e,t),e.getDefaultOptions=function(){return Py},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this,n,r;xd({chart:e.chart,options:e.options}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Sd},e}(gd),Ly=Yf({},gd.getDefaultOptions(),{legend:{position:"right",radio:{}},tooltip:{shared:!1,showTitle:!1,showMarkers:!1},label:{layout:{type:"limit-in-plot",cfg:{action:"ellipsis"}}},pieStyle:{stroke:"white",lineWidth:1},statistic:{title:{style:{fontWeight:300,color:"#4B535E",textAlign:"center",fontSize:"20px",lineHeight:1}},content:{style:{fontWeight:"bold",color:"rgba(44,53,66,0.85)",textAlign:"center",fontSize:"32px",lineHeight:1}}},theme:{components:{annotation:{text:{animate:!1}}}}}),By=[1,0,0,0,1,0,0,0,1];function Dy(t,e){var n=e?Object(s.__spreadArray)([],e,!0):Object(s.__spreadArray)([],By,!0);return mo.transform(n,t)}var Ry=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.getActiveElements=function(){var t=mo.getDelegationObject(this.context);if(t){var e=this.context.view,n=t.component,r=t.item,i=n.get("field"),o;if(i)return e.geometries[0].elements.filter((function(t){return t.getModel().data[i]===r.value}))}return[]},e.prototype.getActiveElementLabels=function(){var t=this.context.view,e=this.getActiveElements(),n;return t.geometries[0].labelsContainer.getChildren().filter((function(t){return e.find((function(e){return Object(c.H)(e.getData(),t.get("data"))}))}))},e.prototype.transfrom=function(t){void 0===t&&(t=7.5);var e=this.getActiveElements(),n=this.getActiveElementLabels();e.forEach((function(e,r){var i=n[r],o=e.geometry.coordinate;if(o.isPolar&&o.isTransposed){var a=mo.getAngle(e.getModel(),o),s,c,l=(a.startAngle+a.endAngle)/2,u=t,h=u*Math.cos(l),f=u*Math.sin(l);e.shape.setMatrix(Dy([["t",h,f]])),i.setMatrix(Dy([["t",h,f]]))}}))},e.prototype.active=function(){this.transfrom()},e.prototype.reset=function(){this.transfrom(0)},e}(ge);function Ny(t){var e,n,r=t.event.target;return r&&(n=r.get("element")),n}var zy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.getAnnotations=function(t){var e;return(t||this.context.view).getController("annotation").option},e.prototype.getInitialAnnotation=function(){return this.initialAnnotation},e.prototype.init=function(){var t=this,e=this.context.view;e.removeInteraction("tooltip"),e.on("afterchangesize",(function(){var n=t.getAnnotations(e);t.initialAnnotation=n}))},e.prototype.change=function(t){var e=this.context,n=e.view,r=e.event;this.initialAnnotation||(this.initialAnnotation=this.getAnnotations());var i=Object(c.s)(r,["data","data"]);if(r.type.match("legend-item")){var o=mo.getDelegationObject(this.context),a=n.getGroupedFields()[0];if(o&&a){var s=o.item;i=n.getData().find((function(t){return t[a]===s.value}))}}if(i){var l=Object(c.s)(t,"annotations",[]),u=Object(c.s)(t,"statistic",{});n.getController("annotation").clear(!0),Object(c.j)(l,(function(t){"object"==typeof t&&n.annotation()[t.type](t)})),up(n,{statistic:u,plotType:"pie"},i),n.render(!0)}var h=Ny(this.context);h&&h.shape.toFront()},e.prototype.reset=function(){var t=this.context.view,e;t.getController("annotation").clear(!0);var n=this.getInitialAnnotation();Object(c.j)(n,(function(e){t.annotation()[e.type](e)})),t.render(!0)},e}(ge),Yy="pie-statistic";function Gy(t,e){var n=null;return Object(c.j)(t,(function(t){"number"==typeof t[e]&&(n+=t[e])})),n}function Hy(t,e){var n;switch(t){case"inner":return n="-30%",Object(c.Q)(e)&&e.endsWith("%")?.01*parseFloat(e)>0?n:e:e<0?e:n;case"outer":return n=12,Object(c.Q)(e)&&e.endsWith("%")?.01*parseFloat(e)<0?n:e:e>0?e:n;default:return e}}function Vy(t,e){return Object(c.k)(If(t,e),(function(t){return 0===t[e]}))}function Wy(t){var e=t.chart,n=t.options,r=n.data,i=n.angleField,o=n.colorField,a=n.color,c=n.pieStyle,l=n.shape,u=If(r,i);if(Vy(u,i)){var h="$$percentage$$",f;u=u.map((function(t){var e;return Object(s.__assign)(Object(s.__assign)({},t),((e={}).$$percentage$$=1/u.length,e))})),e.data(u),ad(f=Yf({},t,{options:{xField:"1",yField:"$$percentage$$",seriesField:o,isStack:!0,interval:{color:a,shape:l,style:c},args:{zIndexReversed:!0,sortZIndex:!0}}}))}else{var f;e.data(u),ad(f=Yf({},t,{options:{xField:"1",yField:i,seriesField:o,isStack:!0,interval:{color:a,shape:l,style:c},args:{zIndexReversed:!0,sortZIndex:!0}}}))}return t}function Xy(t){var e,n=t.chart,r=t.options,i=r.meta,o=r.colorField,a=Yf({},i);return n.scale(a,((e={})[o]={type:"cat"},e)),t}function $y(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"theta",cfg:{radius:r,innerRadius:i,startAngle:o,endAngle:a}}),t}function qy(t){var e=t.chart,n=t.options,r=n.label,i=n.colorField,o=n.angleField,a=e.geometries[0];if(r){var l=r.callback,u,h=Kf(Object(s.__rest)(r,["callback"]));if(h.content){var f=h.content;h.content=function(t,n,r){var a=t[i],l=t[o],u=e.getScaleByField(o),h=null==u?void 0:u.scale(l);return Object(c.I)(f)?f(Object(s.__assign)(Object(s.__assign)({},t),{percent:h}),n,r):Object(c.Q)(f)?fp(f,{value:l,name:a,percentage:Object(c.M)(h)&&!Object(c.K)(l)?"".concat((100*h).toFixed(2),"%"):null}):f}}var p={inner:"",outer:"pie-outer",spider:"pie-spider"},d=h.type?p[h.type]:"pie-outer",g=h.layout?Object(c.C)(h.layout)?h.layout:[h.layout]:[];h.layout=(d?[{type:d}]:[]).concat(g),a.label({fields:i?[o,i]:[o],callback:l,cfg:Object(s.__assign)(Object(s.__assign)({},h),{offset:Hy(h.type,h.offset),type:"pie"})})}else a.label(!1);return t}function Uy(t){var e=t.innerRadius,n=t.statistic,r=t.angleField,i=t.colorField,o=t.meta,a,s=Kp(t.locale);if(e&&n){var l=Yf({},Ly.statistic,n),u=l.title,h=l.content;return!1!==u&&(u=Yf({},{formatter:function(t){var e=t?t[i]:Object(c.K)(u.content)?s.get(["statistic","total"]):u.content,n;return(Object(c.s)(o,[i,"formatter"])||function(t){return t})(e)}},u)),!1!==h&&(h=Yf({},{formatter:function(t,e){var n=t?t[r]:Gy(e,r),i=Object(c.s)(o,[r,"formatter"])||function(t){return t};return t||Object(c.K)(h.content)?i(n):h.content}},h)),Yf({},{statistic:{title:u,content:h}},t)}return t}function Ky(t){var e=t.chart,n,r=Uy(t.options),i=r.innerRadius,o=r.statistic;return e.getController("annotation").clear(!0),Vf(Hp())(t),i&&o&&up(e,{statistic:o,plotType:"pie"}),t}function Zy(t){var e=t.chart,n=t.options,r=n.tooltip,i=n.colorField,o=n.angleField,a=n.data;if(!1===r)e.tooltip(r);else if(e.tooltip(Yf({},r,{shared:!1})),Vy(a,o)){var s=Object(c.s)(r,"fields"),l=Object(c.s)(r,"formatter");Object(c.G)(Object(c.s)(r,"fields"))&&(s=[i,o],l=l||function(t){return{name:t[i],value:Object(c.tb)(t[o])}}),e.geometries[0].tooltip(s.join("*"),ed(s,l))}return t}function Qy(t){var e=t.chart,n,r=Uy(t.options),i=r.interactions,o=r.statistic,a=r.annotations;return Object(c.j)(i,(function(t){var n,r;if(!1===t.enable)e.removeInteraction(t.type);else if("pie-statistic-active"===t.type){var i=[];(null===(n=t.cfg)||void 0===n?void 0:n.start)||(i=[{trigger:"element:mouseenter",action:"".concat(Yy,":change"),arg:{statistic:o,annotations:a}}]),Object(c.j)(null===(r=t.cfg)||void 0===r?void 0:r.start,(function(t){i.push(Object(s.__assign)(Object(s.__assign)({},t),{arg:{statistic:o,annotations:a}}))})),e.interaction(t.type,Yf({},t.cfg,{start:i}))}else e.interaction(t.type,t.cfg||{})})),t}function Jy(t){return Vf(Ip("pieStyle"),Wy,Xy,Rp,$y,Fp,Zy,qy,Np,Ky,Qy,Dp)(t)}Oe(Yy,zy),Fn("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),Oe("pie-legend",Ry),Fn("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]});var tv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pie",e}return Object(s.__extends)(e,t),e.getDefaultOptions=function(){return Ly},e.prototype.changeData=function(t){this.chart.emit(g.BEFORE_CHANGE_DATA,Br.fromData(this.chart,g.BEFORE_CHANGE_DATA,null));var e=this.options,n=this.options.angleField,r=If(e.data,n),i=If(t,n);Vy(r,n)||Vy(i,n)?this.update({data:t}):(this.updateOption({data:t}),this.chart.data(i),Ky({chart:this.chart,options:this.options}),this.chart.render(!0)),this.chart.emit(g.AFTER_CHANGE_DATA,Br.fromData(this.chart,g.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Jy},e}(gd),ev=["#FAAD14","#E8EDF3"],nv={percent:.2,color:ev,animation:{}};function rv(t){var e=Object(c.c)(Jf(t)?t:0,0,1);return[{current:"".concat(e),type:"current",percent:e},{current:"".concat(e),type:"target",percent:1}]}function iv(t){var e=t.chart,n=t.options,r=n.percent,i=n.progressStyle,o=n.color,a=n.barWidthRatio,s;return e.data(rv(r)),ad(Yf({},t,{options:{xField:"current",yField:"percent",seriesField:"type",widthRatio:a,interval:{style:i,color:Object(c.Q)(o)?[o,ev[1]]:o},args:{zIndexReversed:!0,sortZIndex:!0}}})),e.tooltip(!1),e.axis(!1),e.legend(!1),t}function ov(t){var e;return t.chart.coordinate("rect").transpose(),t}function av(t){return Vf(iv,Gp({}),ov,Dp,Rp,Hp())(t)}var sv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="process",e}return Object(s.__extends)(e,t),e.getDefaultOptions=function(){return nv},e.prototype.changeData=function(t){this.updateOption({percent:t}),this.chart.changeData(rv(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return av},e}(gd);function cv(t){var e=t.chart,n=t.options,r=n.innerRadius,i=n.radius;return e.coordinate("theta",{innerRadius:r,radius:i}),t}function lv(t,e){var n=t.chart,r=t.options,i=r.innerRadius,o=r.statistic,a=r.percent,l=r.meta;if(n.getController("annotation").clear(!0),i&&o){var u=Object(c.s)(l,["percent","formatter"])||function(t){return"".concat((100*t).toFixed(2),"%")},h=o.content;h&&(h=Yf({},h,{content:Object(c.K)(h.content)?u(a):h.content})),up(n,{statistic:Object(s.__assign)(Object(s.__assign)({},o),{content:h}),plotType:"ring-progress"},{percent:a})}return e&&n.render(!0),t}function uv(t){return Vf(iv,Gp({}),cv,lv,Dp,Rp,Hp())(t)}var hv={percent:.2,innerRadius:.8,radius:.98,color:["#FAAD14","#E8EDF3"],statistic:{title:!1,content:{style:{fontSize:"14px",fontWeight:300,fill:"#4D4D4D",textAlign:"center",textBaseline:"middle"}}},animation:{}},fv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ring-process",e}return Object(s.__extends)(e,t),e.getDefaultOptions=function(){return hv},e.prototype.changeData=function(t){this.chart.emit(g.BEFORE_CHANGE_DATA,Br.fromData(this.chart,g.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(rv(t)),lv({chart:this.chart,options:this.options},!0),this.chart.emit(g.AFTER_CHANGE_DATA,Br.fromData(this.chart,g.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return uv},e}(gd),pv=n(63),dv={exp:pv.regressionExp,linear:pv.regressionLinear,loess:pv.regressionLoess,log:pv.regressionLog,poly:pv.regressionPoly,pow:pv.regressionPow,quad:pv.regressionQuad};function gv(t,e){var n=10,r;return{regionStyle:[{position:{start:[t,"max"],end:["max",e]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:["min","max"],end:[t,e]},style:{fill:"#a3dda1",opacity:.4}},{position:{start:["min",e],end:[t,"min"]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:[t,e],end:["max","min"]},style:{fill:"#a3dda1",opacity:.4}}],lineStyle:{stroke:"#9ba29a",lineWidth:1},labelStyle:[{position:["max",e],offsetX:-10,offsetY:-10,style:{textAlign:"right",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:10,offsetY:-10,style:{textAlign:"left",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:10,offsetY:10,style:{textAlign:"left",textBaseline:"top",fontSize:14,fill:"#ccc"}},{position:["max",e],offsetX:-10,offsetY:10,style:{textAlign:"right",textBaseline:"top",fontSize:14,fill:"#ccc"}}]}}var yv=function(t,e){var n=e.view,r=e.options,i=r.xField,o=r.yField,a=n.getScaleByField(i),s=n.getScaleByField(o),c;return sp(t.map((function(t){return n.getCoordinate().convert({x:a.scale(t[0]),y:s.scale(t[1])})})),!1)},vv=function(t){var e=t.options,n=e.xField,r=e.yField,i=e.data,o=e.regressionLine,a=o.type,s=void 0===a?"linear":a,l=o.algorithm,u=o.equation,h,f=null,p;l?(h=Object(c.C)(l)?l:l(i),f=u):f=bv(s,h=dv[s]().x((function(t){return t[n]})).y((function(t){return t[r]}))(i));return[yv(h,t),f]},mv=function(t){var e,n=t.meta,r=void 0===n?{}:n,i=t.xField,o=t.yField,a=t.data,l=a[0][i],u=a[0][o],h=l>0,f=u>0;function p(t,e){var n=Object(c.s)(r,[t]);function i(t){return Object(c.s)(n,t)}var o={};return"x"===e?(Object(c.M)(l)&&(Object(c.M)(i("min"))||(o.min=h?0:2*l),Object(c.M)(i("max"))||(o.max=h?2*l:0)),o):(Object(c.M)(u)&&(Object(c.M)(i("min"))||(o.min=f?0:2*u),Object(c.M)(i("max"))||(o.max=f?2*u:0)),o)}return Object(s.__assign)(Object(s.__assign)({},r),((e={})[i]=Object(s.__assign)(Object(s.__assign)({},r[i]),p(i,"x")),e[o]=Object(s.__assign)(Object(s.__assign)({},r[o]),p(o,"y")),e))};function bv(t,e){var n,r,i,o=function(t,e){return void 0===e&&(e=4),Math.round(t*Math.pow(10,e))/Math.pow(10,e)},a=function(t){return Number.isFinite(t)?o(t):"?"};switch(t){case"linear":return"y = ".concat(a(e.a),"x + ").concat(a(e.b),", R^2 = ").concat(a(e.rSquared));case"exp":return"y = ".concat(a(e.a),"e^(").concat(a(e.b),"x), R^2 = ").concat(a(e.rSquared));case"log":return"y = ".concat(a(e.a),"ln(x) + ").concat(a(e.b),", R^2 = ").concat(a(e.rSquared));case"quad":return"y = ".concat(a(e.a),"x^2 + ").concat(a(e.b),"x + ").concat(a(e.c),", R^2 = ").concat(a(e.rSquared));case"poly":for(var s="y = ".concat(a(null===(n=e.coefficients)||void 0===n?void 0:n[0])," + ").concat(a(null===(r=e.coefficients)||void 0===r?void 0:r[1]),"x + ").concat(a(null===(i=e.coefficients)||void 0===i?void 0:i[2]),"x^2"),c=3;c<e.coefficients.length;++c)s+=" + ".concat(a(e.coefficients[c]),"x^").concat(c);return"".concat(s,", R^2 = ").concat(a(e.rSquared));case"pow":return"y = ".concat(a(e.a),"x^").concat(a(e.b),", R^2 = ").concat(a(e.rSquared))}return null}function xv(t){var e=t.data,n=void 0===e?[]:e,r=t.xField,i=t.yField;if(n.length){for(var o=!0,a=!0,s=n[0],c=void 0,l=1;l<n.length&&(c=n[l],s[r]!==c[r]&&(o=!1),s[i]!==c[i]&&(a=!1),o||a);l++)s=c;var u=[];o&&u.push(r),a&&u.push(i);var h=Tf(mv(t),u);return Yf({},t,{meta:h})}return t}function Ov(t){var e=t.chart,n=t.options,r=n.data,i=n.type,o=n.color,a=n.shape,l=n.pointStyle,u=n.shapeField,h=n.colorField,f=n.xField,p=n.yField,d=n.sizeField,g=n.size,y=n.tooltip;d&&(g||(g=[2,8]),Object(c.M)(g)&&(g=[g,g])),y&&!y.fields&&(y=Object(s.__assign)(Object(s.__assign)({},y),{fields:[f,p,h,d,u]})),e.data(r),cd(Yf({},t,{options:{seriesField:h,point:{color:o,shape:a,size:g,style:l},tooltip:y}}));var v=Wf(e,"point");return i&&v.adjust(i),t}function jv(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField,s=xv(n);return Vf(Gp(((e={})[o]=r,e[a]=i,e)))(Yf({},t,{options:s}))}function wv(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return e.axis(o,r),e.axis(a,i),t}function _v(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField,o=n.shapeField,a=n.sizeField,s=n.shapeLegend,c=n.sizeLegend,l=!1!==r;return i&&e.legend(i,!!l&&r),o&&(s?e.legend(o,s):e.legend(o,!1!==s&&r)),a&&e.legend(a,c||!1),l||s||c||e.legend(!1),t}function Mv(t){var e=t.chart,n=t.options,r=n.label,i=n.yField,o=Wf(e,"point");if(r){var a=r.callback,c=Object(s.__rest)(r,["callback"]);o.label({fields:[i],callback:a,cfg:Kf(c)})}else o.label(!1);return t}function Sv(t){var e,n=t.options.quadrant,r=[];if(n){var i=n.xBaseline,o=void 0===i?0:i,a=n.yBaseline,c=void 0===a?0:a,l=n.labels,u=n.regionStyle,h=n.lineStyle,f=gv(o,c),p;new Array(4).join(",").split(",").forEach((function(t,e){r.push(Object(s.__assign)(Object(s.__assign)({type:"region",top:!1},f.regionStyle[e].position),{style:Yf({},f.regionStyle[e].style,null==u?void 0:u[e])}),Object(s.__assign)({type:"text",top:!0},Yf({},f.labelStyle[e],null==l?void 0:l[e])))})),r.push({type:"line",top:!1,start:["min",c],end:["max",c],style:Yf({},f.lineStyle,h)},{type:"line",top:!1,start:[o,"min"],end:[o,"max"],style:Yf({},f.lineStyle,h)})}return Vf(Hp(r))(t)}function Cv(t){var e=t.options,n=t.chart,r=e.regressionLine;if(r){var i=r.style,o=r.equationStyle,a=void 0===o?{}:o,c=r.top,l=void 0!==c&&c,u=r.showEquation,h=void 0!==u&&u,f={stroke:"#9ba29a",lineWidth:2,opacity:.5},p={x:20,y:20,textAlign:"left",textBaseline:"middle",fontSize:14,fillOpacity:.5};n.annotation().shape({top:l,render:function(t,r){var o=t.addGroup({id:"".concat(n.id,"-regression-line"),name:"regression-line-group"}),c=vv({view:r,options:e}),l=c[0],u=c[1];o.addShape("path",{name:"regression-line",attrs:Object(s.__assign)(Object(s.__assign)({path:l},f),i)}),h&&o.addShape("text",{name:"regression-equation",attrs:Object(s.__assign)(Object(s.__assign)(Object(s.__assign)({},p),a),{text:u})})}})}return t}function Av(t){var e=t.chart,n,r=t.options.tooltip;return r?e.tooltip(r):!1===r&&e.tooltip(!1),t}function kv(t){return Vf(Ov,jv,wv,_v,Av,Mv,zd,zp,Yp,Bp,Sv,Dp,Rp,Cv)(t)}var Tv=Yf({},gd.getDefaultOptions(),{size:4,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!0,crosshairs:{type:"xy"}}});Fn("drag-move",{start:[{trigger:"plot:mousedown",action:"scale-translate:start"}],processing:[{trigger:"plot:mousemove",action:"scale-translate:translate",throttle:{wait:100,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseup",action:"scale-translate:end"}]});var Ev=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.type="scatter",r.on(g.BEFORE_RENDER,(function(t){var e,n,i=r,o=i.options,a=i.chart;if((null===(e=t.data)||void 0===e?void 0:e.source)===zh.FILTER){var c=r.chart.filterData(r.chart.getData());jv({chart:a,options:Object(s.__assign)(Object(s.__assign)({},o),{data:c})})}(null===(n=t.data)||void 0===n?void 0:n.source)===zh.RESET&&jv({chart:a,options:o})})),r}return Object(s.__extends)(e,t),e.getDefaultOptions=function(){return Tv},e.prototype.changeData=function(t){this.updateOption(xv(Yf({},this.options,{data:t})));var e=this,n=e.options,r;jv({chart:e.chart,options:n}),this.chart.changeData(t)},e.prototype.getSchemaAdaptor=function(){return kv},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(gd),Pv="$$stock-range$$",Iv="trend",Fv="up",Lv="down",Bv={showMarkers:!1,showCrosshairs:!0,shared:!0,crosshairs:{type:"xy",follow:!0,text:function(t,e,n){var r;if("x"===t){var i=n[0];r=i?i.title:e}else r=e;return{position:"y"===t?"start":"end",content:r,style:{fill:"#dfdfdf"}}},textBackground:{padding:[2,4],style:{fill:"#666"}}}},Dv=Yf({},gd.getDefaultOptions(),{tooltip:Bv,interactions:[{type:"tooltip"}],legend:{position:"top-left"},risingFill:"#ef5350",fallingFill:"#26a69a"});function Rv(t,e){return Object(c.W)(t,(function(t){var n=t&&Object(s.__assign)({},t);if(Object(c.C)(e)&&n){var r=e[0],i=e[1],o=e[2],a=e[3];n.trend=n[r]<=n[i]?"up":"down",n[Pv]=[n[r],n[i],n[o],n[a]]}return n}))}function Nv(t){var e=t.chart,n=t.options,r=n.yField,i=n.data,o=n.risingFill,a=n.fallingFill,s=n.tooltip,c=n.stockStyle;e.data(Rv(i,r));var l=s;return!1!==l&&(l=Yf({},{fields:r},l)),ud(Yf({},t,{options:{schema:{shape:"candle",color:[o,a],style:c},yField:Pv,seriesField:"trend",rawFields:r,tooltip:l}})),t}function zv(t){var e,n,r=t.chart,i=t.options,o=i.meta,a=i.xAxis,s=i.yAxis,c=i.xField,l=((e={})[c]={type:"timeCat",tickCount:6},e.trend={values:["up","down"]},e),u=Yf(l,o,((n={})[c]=Tf(a,_f),n[Pv]=Tf(s,_f),n));return r.scale(u),t}function Yv(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(Pv,!1):e.axis(Pv,i),t}function Gv(t){var e=t.chart,n,r=t.options.tooltip;return!1!==r?e.tooltip(r):e.tooltip(!1),t}function Hv(t){var e=t.chart,n,r=t.options.legend;return r?e.legend("trend",r):!1===r&&e.legend(!1),t}function Vv(t){Vf(Rp,Nv,zv,Yv,Gv,Hv,Bp,Dp,Hp(),zp)(t)}var Wv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="stock",e}return Object(s.__extends)(e,t),e.getDefaultOptions=function(){return Dv},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Vv},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options.yField;this.chart.changeData(Rv(t,e))},e}(gd);function Xv(t){return Object(c.W)(t||[],(function(t,e){return{x:"".concat(e),y:t}}))}var $v="x",qv="y",Uv={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(t,e){return"".concat(Object(c.s)(e,[0,"data","y"],0))},containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',itemTpl:"<span>{value}</span>",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}},Kv={appendPadding:2,tooltip:Object(s.__assign)({},Uv),animation:{}};function Zv(t){var e=t.chart,n=t.options,r=n.data,i=n.color,o=n.areaStyle,a=n.point,s=n.line,c=null==a?void 0:a.state,l=Xv(r);e.data(l);var u=Yf({},t,{options:{xField:"x",yField:"y",area:{color:i,style:o},line:s,point:a}}),h=Yf({},u,{options:{tooltip:!1}}),f=Yf({},u,{options:{tooltip:!1,state:c}});return rd(u),sd(h),cd(f),e.axis(!1),e.legend(!1),t}function Qv(t){var e,n,r=t.options,i=r.xAxis,o=r.yAxis,a,s=Xv(r.data);return Vf(Gp(((e={}).x=i,e.y=o,e),((n={}).x={type:"cat"},n.y=Ef(s,"y"),n)))(t)}function Jv(t){return Vf(Ip("areaStyle"),Zv,Qv,Lp,Rp,Dp,Hp())(t)}var tm={appendPadding:2,tooltip:Object(s.__assign)({},Uv),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"},animation:{}},em=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-area",e}return Object(s.__extends)(e,t),e.getDefaultOptions=function(){return tm},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this,n=e.chart,r;Qv({chart:n,options:e.options}),n.changeData(Xv(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Jv},e}(gd);function nm(t){var e=t.chart,n=t.options,r=n.data,i=n.color,o=n.columnStyle,a=n.columnWidthRatio,s=Xv(r),c;return e.data(s),ad(Yf({},t,{options:{xField:"x",yField:"y",widthRatio:a,interval:{style:o,color:i}}})),e.axis(!1),e.legend(!1),e.interaction("element-active"),t}function rm(t){return Vf(Rp,Ip("columnStyle"),nm,Qv,Lp,Dp,Hp())(t)}var im={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(t,e){return"".concat(Object(c.s)(e,[0,"data","y"],0))},containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',itemTpl:"<span>{value}</span>",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}},om={appendPadding:2,tooltip:Object(s.__assign)({},im),animation:{}},am=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-column",e}return Object(s.__extends)(e,t),e.getDefaultOptions=function(){return om},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this,n=e.chart,r;Qv({chart:n,options:e.options}),n.changeData(Xv(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return rm},e}(gd);function sm(t){var e=t.chart,n=t.options,r=n.data,i=n.color,o=n.lineStyle,a=n.point,s=null==a?void 0:a.state,c=Xv(r);e.data(c);var l=Yf({},t,{options:{xField:"x",yField:"y",line:{color:i,style:o},point:a}}),u=Yf({},l,{options:{tooltip:!1,state:s}});return sd(l),cd(u),e.axis(!1),e.legend(!1),t}function cm(t){return Vf(sm,Qv,Rp,Lp,Dp,Hp())(t)}var lm=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-line",e}return Object(s.__extends)(e,t),e.getDefaultOptions=function(){return Kv},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this,n=e.chart,r;Qv({chart:n,options:e.options}),n.changeData(Xv(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return cm},e}(gd),um={line:Sd,pie:Jy,column:ig,bar:ug,area:Td,gauge:my,"tiny-line":cm,"tiny-column":rm,"tiny-area":Jv,"ring-progress":uv,progress:av,scatter:kv,histogram:Ty,funnel:ty,stock:Vv},hm={line:Fy,pie:tv,column:dg,bar:fg,area:Pd,gauge:by,"tiny-line":lm,"tiny-column":am,"tiny-area":em,"ring-progress":fv,progress:sv,scatter:Ev,histogram:Ey,funnel:ey,stock:Wv},fm={pie:{label:!1},column:{tooltip:{showMarkers:!1}},bar:{tooltip:{showMarkers:!1}}},pm;function dm(t,e,n){var r=hm[t],i;r?(0,um[t])({chart:e,options:Yf({},r.getDefaultOptions(),Object(c.s)(fm,t,{}),n)}):console.error("could not find ".concat(t," plot"))}function gm(t){var e=t.chart,n=t.options,r=n.views,i=n.legend;return Object(c.j)(r,(function(t){var n=t.region,r=t.data,i=t.meta,o=t.axes,a=t.coordinate,l=t.interactions,u=t.annotations,h=t.tooltip,f=t.geometries,p=e.createView({region:n});p.data(r);var d={};o&&Object(c.j)(o,(function(t,e){d[e]=Tf(t,_f)})),d=Yf({},i,d),p.scale(d),o?Object(c.j)(o,(function(t,e){p.axis(e,t)})):p.axis(!1),p.coordinate(a),Object(c.j)(f,(function(t){var e=nd({chart:p,options:t}).ext,n=t.adjust;n&&e.geometry.adjust(n)})),Object(c.j)(l,(function(t){!1===t.enable?p.removeInteraction(t.type):p.interaction(t.type,t.cfg)})),Object(c.j)(u,(function(t){p.annotation()[t.type](Object(s.__assign)({},t))})),"boolean"==typeof t.animation?p.animate(!1):(p.animate(!0),Object(c.j)(p.geometries,(function(e){e.animate(t.animation)}))),h&&(p.interaction("tooltip"),p.tooltip(h))})),i?Object(c.j)(i,(function(t,n){e.legend(n,t)})):e.legend(!1),e.tooltip(n.tooltip),t}function ym(t){var e=t.chart,n=t.options,r=n.plots,i=n.data,o=void 0===i?[]:i;return Object(c.j)(r,(function(t){var n=t.type,r=t.region,i=t.options,a=void 0===i?{}:i,c=t.top,l=a.tooltip;if(c)dm(n,e,Object(s.__assign)(Object(s.__assign)({},a),{data:o}));else{var u=e.createView(Object(s.__assign)({region:r},Tf(a,dd)));l&&u.interaction("tooltip"),dm(n,u,Object(s.__assign)({data:o},a))}})),t}function vm(t){var e=t.chart,n=t.options;return e.option("slider",n.slider),t}function mm(t){return Vf(Dp,gm,ym,Bp,Dp,Rp,Lp,vm,Hp())(t)}function bm(t,e){var n,r=t.getModel().data,i;return i=Object(c.C)(r)?r[0][e]:r[e]}function xm(t){var e=Xf(t);Object(c.j)(e,(function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("selected")&&t.setState("selected",!1),t.hasState("inactive")&&t.setState("inactive",!1)}))}Oe("association",function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.getAssociationItems=function(t,e){var n,r=this.context.event,i=e||{},o=i.linkField,a=i.dim,s=[];if(null===(n=r.data)||void 0===n?void 0:n.data){var l=r.data.data;Object(c.j)(t,(function(t){var e,n,r=o;if("x"===a?r=t.getXScale().field:"y"===a?r=null===(e=t.getYScales().find((function(t){return t.field===r})))||void 0===e?void 0:e.field:r||(r=null===(n=t.getGroupScales()[0])||void 0===n?void 0:n.field),r){var i=Object(c.W)(Xf(t),(function(e){var n=!1,i=!1,o=Object(c.C)(l)?Object(c.s)(l[0],r):Object(c.s)(l,r);return bm(e,r)===o?n=!0:i=!0,{element:e,view:t,active:n,inactive:i}}));s.push.apply(s,i)}}))}return s},e.prototype.showTooltip=function(t){var e=gp(this.context.view),n=this.getAssociationItems(e,t);Object(c.j)(n,(function(t){if(t.active){var e=t.element.shape.getCanvasBBox();t.view.showTooltip({x:e.minX+e.width/2,y:e.minY+e.height/2})}}))},e.prototype.hideTooltip=function(){var t=gp(this.context.view);Object(c.j)(t,(function(t){t.hideTooltip()}))},e.prototype.active=function(t){var e=dp(this.context.view),n=this.getAssociationItems(e,t);Object(c.j)(n,(function(t){var e=t.active,n=t.element;e&&n.setState("active",!0)}))},e.prototype.selected=function(t){var e=dp(this.context.view),n=this.getAssociationItems(e,t);Object(c.j)(n,(function(t){var e=t.active,n=t.element;e&&n.setState("selected",!0)}))},e.prototype.highlight=function(t){var e=dp(this.context.view),n=this.getAssociationItems(e,t);Object(c.j)(n,(function(t){var e=t.inactive,n=t.element;e&&n.setState("inactive",!0)}))},e.prototype.reset=function(){var t=dp(this.context.view);Object(c.j)(t,(function(t){xm(t)}))},e}(ge)),Fn("association-active",{start:[{trigger:"element:mouseenter",action:"association:active"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Fn("association-selected",{start:[{trigger:"element:mouseenter",action:"association:selected"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Fn("association-highlight",{start:[{trigger:"element:mouseenter",action:"association:highlight"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Fn("association-tooltip",{start:[{trigger:"element:mousemove",action:"association:showTooltip"}],end:[{trigger:"element:mouseleave",action:"association:hideTooltip"}]});var Om=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="mix",e}return Object(s.__extends)(e,t),e.prototype.getSchemaAdaptor=function(){return mm},e}(gd),jm;function wm(t,e){console.warn(t===jm.DEV?"Plot '".concat(e,"' is in DEV stage, just give us issues."):t===jm.BETA?"Plot '".concat(e,"' is in BETA stage, DO NOT use it in production env."):t===jm.STABLE?"Plot '".concat(e,"' is in STABLE stage, import it by \"import { ").concat(e," } from '@antv/g2plot'\"."):"invalid Stage type.")}!function(t){t.DEV="DEV",t.BETA="BETA",t.STABLE="STABLE"}(jm||(jm={}));var _m=function(){function t(){}return Object.defineProperty(t,"MultiView",{get:function(){return wm(jm.STABLE,"MultiView"),Om},enumerable:!1,configurable:!0}),t}(),Mm="first-axes-view",Sm="second-axes-view",Cm="series-field-key";function Am(t,e,n,r,i){var o=[];e.forEach((function(e){r.forEach((function(r){var i,a=((i={})[t]=r[t],i[n]=e,i[e]=r[e],i);o.push(a)}))}));var a=Object.values(Object(c.w)(o,n)),s=a[0],l=void 0===s?[]:s,u=a[1],h=void 0===u?[]:u;return i?[l.reverse(),h.reverse()]:[l,h]}function km(t){return"vertical"!==t}function Tm(t,e,n){var r=e[0],i=e[1],o=r.autoPadding,a=i.autoPadding,s=t.__axisPosition,c=s.layout,l=s.position;if(km(c)&&"top"===l&&(r.autoPadding=n.instance(o.top,0,o.bottom,o.left),i.autoPadding=n.instance(a.top,o.left,a.bottom,0)),km(c)&&"bottom"===l&&(r.autoPadding=n.instance(o.top,o.right/2+5,o.bottom,o.left),i.autoPadding=n.instance(a.top,a.right,a.bottom,o.right/2+5)),!km(c)&&"bottom"===l){var u=o.left>=a.left?o.left:a.left;r.autoPadding=n.instance(o.top,o.right,o.bottom/2+5,u),i.autoPadding=n.instance(o.bottom/2+5,a.right,a.bottom,u)}if(!km(c)&&"top"===l){var u=o.left>=a.left?o.left:a.left;r.autoPadding=n.instance(o.top,o.right,0,u),i.autoPadding=n.instance(0,a.right,o.top,u)}}function Em(t){var e=t.chart,n=t.options,r=n.data,i=n.xField,o=n.yField,a=n.color,s=n.barStyle,c=n.widthRatio,l=n.legend,u=n.layout,h=Am(i,o,Cm,r,km(u)),f,p;l?e.legend(Cm,l):!1===l&&e.legend(!1);var d=h[0],g=h[1],y,v;return km(u)?((f=e.createView({region:{start:{x:0,y:0},end:{x:.5,y:1}},id:Mm})).coordinate().transpose().reflect("x"),(p=e.createView({region:{start:{x:.5,y:0},end:{x:1,y:1}},id:Sm})).coordinate().transpose(),f.data(d),p.data(g)):(f=e.createView({region:{start:{x:0,y:0},end:{x:1,y:.5}},id:Mm}),(p=e.createView({region:{start:{x:0,y:.5},end:{x:1,y:1}},id:Sm})).coordinate().reflect("y"),f.data(d),p.data(g)),ad(Yf({},t,{chart:f,options:{widthRatio:c,xField:i,yField:o[0],seriesField:Cm,interval:{color:a,style:s}}})),ad(Yf({},t,{chart:p,options:{xField:i,yField:o[1],seriesField:Cm,widthRatio:c,interval:{color:a,style:s}}})),t}function Pm(t){var e,n,r,i=t.options,o=t.chart,a=i.xAxis,s=i.yAxis,l=i.xField,u=i.yField,h=pp(o,Mm),f=pp(o,Sm),p={};return Object(c.T)((null==i?void 0:i.meta)||{}).map((function(t){Object(c.s)(null==i?void 0:i.meta,[t,"alias"])&&(p[t]=i.meta[t].alias)})),o.scale(((e={})[Cm]={sync:!0,formatter:function(t){return Object(c.s)(p,t,t)}},e)),Gp(((n={})[l]=a,n[u[0]]=s[u[0]],n))(Yf({},t,{chart:h})),Gp(((r={})[l]=a,r[u[1]]=s[u[1]],r))(Yf({},t,{chart:f})),t}function Im(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField,c=n.layout,l=pp(e,Mm),u=pp(e,Sm);return"bottom"===(null==r?void 0:r.position)?u.axis(o,Object(s.__assign)(Object(s.__assign)({},r),{label:{formatter:function(){return""}}})):u.axis(o,!1),!1===r?l.axis(o,!1):l.axis(o,Object(s.__assign)({position:km(c)?"top":"bottom"},r)),!1===i?(l.axis(a[0],!1),u.axis(a[1],!1)):(l.axis(a[0],i[a[0]]),u.axis(a[1],i[a[1]])),e.__axisPosition={position:l.getOptions().axes[o].position,layout:c},t}function Fm(t){var e=t.chart;return Bp(Yf({},t,{chart:pp(e,Mm)})),Bp(Yf({},t,{chart:pp(e,Sm)})),t}function Lm(t){var e=t.chart,n=t.options,r=n.yField,i=n.yAxis;return Vp(Yf({},t,{chart:pp(e,Mm),options:{yAxis:i[r[0]]}})),Vp(Yf({},t,{chart:pp(e,Sm),options:{yAxis:i[r[1]]}})),t}function Bm(t){var e=t.chart;return Rp(Yf({},t,{chart:pp(e,Mm)})),Rp(Yf({},t,{chart:pp(e,Sm)})),Rp(t),t}function Dm(t){var e=t.chart;return Dp(Yf({},t,{chart:pp(e,Mm)})),Dp(Yf({},t,{chart:pp(e,Sm)})),t}function Rm(t){var e=this,n,r,i=t.chart,o=t.options,a=o.label,c=o.yField,l=o.layout,u=pp(i,Mm),h=pp(i,Sm),f=Wf(u,"interval"),p=Wf(h,"interval");if(a){var d=a.callback,g=Object(s.__rest)(a,["callback"]);g.position||(g.position="middle"),void 0===g.offset&&(g.offset=2);var y=Object(s.__assign)({},g);if(km(l)){var v=(null===(n=y.style)||void 0===n?void 0:n.textAlign)||("middle"===g.position?"center":"left");g.style=Yf({},g.style,{textAlign:v});var m={left:"right",right:"left",center:"center"};y.style=Yf({},y.style,{textAlign:m[v]})}else{var b={top:"bottom",bottom:"top",middle:"middle"};"string"==typeof g.position?g.position=b[g.position]:"function"==typeof g.position&&(g.position=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return b[g.position.apply(e,t)]});var x=(null===(r=y.style)||void 0===r?void 0:r.textBaseline)||"bottom";y.style=Yf({},y.style,{textBaseline:x});var O={top:"bottom",bottom:"top",middle:"middle"};g.style=Yf({},g.style,{textBaseline:O[x]})}f.label({fields:[c[0]],callback:d,cfg:Kf(y)}),p.label({fields:[c[1]],callback:d,cfg:Kf(g)})}else f.label(!1),p.label(!1);return t}function Nm(t){return Vf(Em,Pm,Im,Lm,Bm,Rm,Lp,Fm,Dm)(t)}var zm=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bidirectional-bar",e}return Object(s.__extends)(e,t),e.getDefaultOptions=function(){return Yf({},t.getDefaultOptions.call(this),{syncViewPadding:Tm})},e.prototype.changeData=function(t){void 0===t&&(t=[]),this.chart.emit(g.BEFORE_CHANGE_DATA,Br.fromData(this.chart,g.BEFORE_CHANGE_DATA,null)),this.updateOption({data:t});var e=this.options,n=e.xField,r=e.yField,i=e.layout,o=Am(n,r,Cm,t,km(i)),a=o[0],s=o[1],c=pp(this.chart,Mm),l=pp(this.chart,Sm);c.data(a),l.data(s),this.chart.render(!0),this.chart.emit(g.AFTER_CHANGE_DATA,Br.fromData(this.chart,g.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Nm},e.SERIES_FIELD_KEY=Cm,e}(gd),Ym,Gm="$$range$$",Hm="low-q1-median-q3-high",Vm="$$y_outliers$$",Wm="outliers_view",Xm=Yf({},gd.getDefaultOptions(),{meta:(Ym={},Ym[Gm]={min:0,alias:Hm},Ym),interactions:[{type:"active-region"}],tooltip:{showMarkers:!1,shared:!0},boxStyle:{lineWidth:1}}),$m=function(t,e){var n=t;if(Array.isArray(e)){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4];n=Object(c.W)(t,(function(t){return t[Gm]=[t[r],t[i],t[o],t[a],t[s]],t}))}return n};function qm(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,o=n.groupField,a=n.color,s=n.tooltip,l=n.boxStyle;e.data($m(n.data,i));var u=Object(c.C)(i)?Gm:i,h=i?Object(c.C)(i)?i:[i]:[],f=s;!1!==f&&(f=Yf({},{fields:Object(c.C)(i)?i:[]},f));var p=ud(Yf({},t,{options:{xField:r,yField:u,seriesField:o,tooltip:f,rawFields:h,label:!1,schema:{shape:"box",color:a,style:l}}})).ext;return o&&p.geometry.adjust("dodge"),t}function Um(t){var e=t.chart,n=t.options,r=n.xField,i=n.data,o=n.outliersField,a=n.outliersStyle,c=n.padding,l=n.label;if(!o)return t;var u=e.createView({padding:c,id:"outliers_view"}),h=i.reduce((function(t,e){var n;return e[o].forEach((function(n){var r;return t.push(Object(s.__assign)(Object(s.__assign)({},e),((r={})[o]=n,r)))})),t}),[]);return u.data(h),cd({chart:u,options:{xField:r,yField:o,point:{shape:"circle",style:a},label:l}}),u.axis(!1),t}function Km(t){var e,n,r=t.chart,i=t.options,o=i.meta,a=i.xAxis,s=i.yAxis,c=i.xField,l=i.yField,u=i.outliersField,h=Array.isArray(l)?Gm:l,f={};if(u){var p=Vm;(e={})[u]={sync:p,nice:!0},e[h]={sync:p,nice:!0},f=e}var d=Yf(f,o,((n={})[c]=Tf(a,_f),n[h]=Tf(s,_f),n));return r.scale(d),t}function Zm(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField,s=Array.isArray(a)?Gm:a;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(Gm,!1):e.axis(s,i),t}function Qm(t){var e=t.chart,n=t.options,r=n.legend,i=n.groupField;return i?r?e.legend(i,r):e.legend(i,{position:"bottom"}):e.legend(!1),t}function Jm(t){return Vf(qm,Um,Km,Zm,Qm,Lp,Hp(),Bp,Dp,Rp)(t)}var tb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="box",e}return Object(s.__extends)(e,t),e.getDefaultOptions=function(){return Xm},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options.yField,n=this.chart.views.find((function(t){return"outliers_view"===t.id}));n&&n.data(t),this.chart.changeData($m(t,e))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Jm},e}(gd);function eb(t,e,n){return t.length>1?"".concat(e,"_").concat(n):"".concat(e)}function nb(t){var e=t.data,n=t.xField,r=t.measureField,i=t.rangeField,o=t.targetField,a=t.layout,s=[],c=[];e.forEach((function(t,e){var a=[t[i]].flat();a.sort((function(t,e){return t-e})),a.forEach((function(r,o){var c,l=0===o?r:a[o]-a[o-1];s.push(((c={rKey:"".concat(i,"_").concat(o)})[n]=n?t[n]:String(e),c[i]=l,c))}));var l=[t[r]].flat();l.forEach((function(i,o){var a;s.push(((a={mKey:eb(l,r,o)})[n]=n?t[n]:String(e),a[r]=i,a))}));var u=[t[o]].flat();u.forEach((function(r,i){var a;s.push(((a={tKey:eb(u,o,i)})[n]=n?t[n]:String(e),a[o]=r,a))})),c.push(t[i],t[r],t[o])}));var l=Math.min.apply(Math,c.flat(1/0)),u=Math.max.apply(Math,c.flat(1/0));return l=l>0?0:l,"vertical"===a&&s.reverse(),{min:l,max:u,ds:s}}function rb(t){var e=t.chart,n=t.options,r=n.bulletStyle,i=n.targetField,o=n.rangeField,a=n.measureField,l=n.xField,u=n.color,h=n.layout,f=n.size,p=n.label,d=nb(n),g=d.min,y=d.max,v=d.ds,m,b,x;return e.data(v),ad(Yf({},t,{options:{xField:l,yField:o,seriesField:"rKey",isStack:!0,label:Object(c.s)(p,"range"),interval:{color:Object(c.s)(u,"range"),style:Object(c.s)(r,"range"),size:Object(c.s)(f,"range")}}})),e.geometries[0].tooltip(!1),ad(Yf({},t,{options:{xField:l,yField:a,seriesField:"mKey",isStack:!0,label:Object(c.s)(p,"measure"),interval:{color:Object(c.s)(u,"measure"),style:Object(c.s)(r,"measure"),size:Object(c.s)(f,"measure")}}})),cd(Yf({},t,{options:{xField:l,yField:i,seriesField:"tKey",label:Object(c.s)(p,"target"),point:{color:Object(c.s)(u,"target"),style:Object(c.s)(r,"target"),size:Object(c.I)(Object(c.s)(f,"target"))?function(t){return Object(c.s)(f,"target")(t)/2}:Object(c.s)(f,"target")/2,shape:"horizontal"===h?"line":"hyphen"}}})),"horizontal"===h&&e.coordinate().transpose(),Object(s.__assign)(Object(s.__assign)({},t),{ext:{data:{min:g,max:y}}})}function ib(t){var e,n,r=t.options,i=t.ext,o=r.xAxis,a=r.yAxis,s=r.targetField,c=r.rangeField,l=r.measureField,u=r.xField,h=i.data;return Vf(Gp(((e={})[u]=o,e[l]=a,e),((n={})[l]={min:null==h?void 0:h.min,max:null==h?void 0:h.max,sync:!0},n[s]={sync:"".concat(l)},n[c]={sync:"".concat(l)},n)))(t)}function ob(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.measureField,s=n.rangeField,c=n.targetField;return e.axis("".concat(s),!1),e.axis("".concat(c),!1),!1===r?e.axis("".concat(o),!1):e.axis("".concat(o),r),!1===i?e.axis("".concat(a),!1):e.axis("".concat(a),i),t}function ab(t){var e=t.chart,n,r=t.options.legend;return e.removeInteraction("legend-filter"),e.legend(r),e.legend("rKey",!1),e.legend("mKey",!1),e.legend("tKey",!1),t}function sb(t){var e=t.chart,n=t.options,r=n.label,i=n.measureField,o=n.targetField,a=n.rangeField,l=e.geometries,u=l[0],h=l[1],f=l[2];return Object(c.s)(r,"range")?u.label("".concat(a),Object(s.__assign)({layout:[{type:"limit-in-plot"}]},Kf(r.range))):u.label(!1),Object(c.s)(r,"measure")?h.label("".concat(i),Object(s.__assign)({layout:[{type:"limit-in-plot"}]},Kf(r.measure))):h.label(!1),Object(c.s)(r,"target")?f.label("".concat(o),Object(s.__assign)({layout:[{type:"limit-in-plot"}]},Kf(r.target))):f.label(!1),t}function cb(t){Vf(rb,ib,ob,ab,Rp,sb,Lp,Bp,Dp)(t)}var lb=Yf({},gd.getDefaultOptions(),{layout:"horizontal",size:{range:30,measure:20,target:20},xAxis:{tickLine:!1,line:null},bulletStyle:{range:{fillOpacity:.5}},label:{measure:{position:"right"}},tooltip:{showMarkers:!1}}),ub=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bullet",e}return Object(s.__extends)(e,t),e.getDefaultOptions=function(){return lb},e.prototype.changeData=function(t){this.updateOption({data:t});var e=nb(this.options),n=e.min,r=e.max,i=e.ds;ib({options:this.options,ext:{data:{min:n,max:r}},chart:this.chart}),this.chart.changeData(i)},e.prototype.getSchemaAdaptor=function(){return cb},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(gd),hb={y:0,nodeWidthRatio:.05,weight:!1,nodePaddingRatio:.1,id:function(t){return t.id},source:function(t){return t.source},target:function(t){return t.target},sourceWeight:function(t){return t.value||1},targetWeight:function(t){return t.value||1},sortBy:null};function fb(t,e,n){Object(c.r)(t,(function(t,r){t.inEdges=e.filter((function(t){return"".concat(n.target(t))==="".concat(r)})),t.outEdges=e.filter((function(t){return"".concat(n.source(t))==="".concat(r)})),t.edges=t.outEdges.concat(t.inEdges),t.frequency=t.edges.length,t.value=0,t.inEdges.forEach((function(e){t.value+=n.targetWeight(e)})),t.outEdges.forEach((function(e){t.value+=n.sourceWeight(e)}))}))}function pb(t,e){var n,r={weight:function(t,e){return e.value-t.value},frequency:function(t,e){return e.frequency-t.frequency},id:function(t,n){return"".concat(e.id(t)).localeCompare("".concat(e.id(n)))}}[e.sortBy];!r&&Object(c.I)(e.sortBy)&&(r=e.sortBy),r&&t.sort(r)}function db(t,e){var n=t.length;if(!n)throw new TypeError("Invalid nodes: it's empty!");if(e.weight){var r=e.nodePaddingRatio;if(r<0||r>=1)throw new TypeError("Invalid nodePaddingRatio: it must be in range [0, 1)!");var i=r/(2*n),o=e.nodeWidthRatio;if(o<=0||o>=1)throw new TypeError("Invalid nodeWidthRatio: it must be in range (0, 1)!");var a=0;t.forEach((function(t){a+=t.value})),t.forEach((function(t){t.weight=t.value/a,t.width=t.weight*(1-r),t.height=o})),t.forEach((function(n,r){for(var a=0,s=r-1;s>=0;s--)a+=t[s].width+2*i;var c=n.minX=i+a,l=n.maxX=n.minX+n.width,u=n.minY=e.y-o/2,h=n.maxY=u+o;n.x=[c,l,l,c],n.y=[u,u,h,h]}))}else{var s=1/n;t.forEach((function(t,n){t.x=(n+.5)*s,t.y=e.y}))}return t}function gb(t,e,n){if(n.weight){var r={};Object(c.r)(t,(function(t,e){r[e]=t.value})),e.forEach((function(e){var i=n.source(e),o=n.target(e),a=t[i],s=t[o];if(a&&s){var c=r[i],l=n.sourceWeight(e),u=a.minX+(a.value-c)/a.value*a.width,h=u+l/a.value*a.width;r[i]-=l;var f=r[o],p=n.targetWeight(e),d=s.minX+(s.value-f)/s.value*s.width,g=d+p/s.value*s.width;r[o]-=p;var y=n.y;e.x=[u,h,d,g],e.y=[y,y,y,y],e.source=a,e.target=s}}))}else e.forEach((function(e){var r=t[n.source(e)],i=t[n.target(e)];r&&i&&(e.x=[r.x,i.x],e.y=[r.y,i.y],e.source=r,e.target=i)}));return e}function yb(t){return Object(c.b)({},hb,t)}function vb(t,e){var n=yb(t),r={},i=e.nodes,o=e.links,a,s;return i.forEach((function(t){var e=n.id(t);r[e]=t})),fb(r,o,n),pb(i,n),{nodes:db(i,n),links:gb(r,o,n)}}var mb="x",bb="y",xb="name",Ob="source",jb={nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.5,lineWidth:2},label:{fields:["x","name"],callback:function(t,e){var n,r;return{offsetX:(t[0]+t[1])/2>.5?-4:4,content:e}},labelEmit:!0,style:{fill:"#8c8c8c"}},tooltip:{showTitle:!1,showMarkers:!1,fields:["source","target","value","isNode"],showContent:function(t){return!Object(c.s)(t,[0,"data","isNode"])},formatter:function(t){var e=t.source,n=t.target,r=t.value;return{name:"".concat(e," -> ").concat(n),value:r}}},interactions:[{type:"element-active"}],weight:!0,nodePaddingRatio:.1,nodeWidthRatio:.05};function wb(t){var e=t.options,n=e.data,r=e.sourceField,i=e.targetField,o=e.weightField,a=e.nodePaddingRatio,c=e.nodeWidthRatio,l=e.rawFields,u=void 0===l?[]:l,h,f=vb({weight:!0,nodePaddingRatio:a,nodeWidthRatio:c},Pf(n,r,i,o)),p=f.nodes,d=f.links,g=p.map((function(t){return Object(s.__assign)(Object(s.__assign)({},Tf(t,Object(s.__spreadArray)(["id","x","y","name"],u,!0))),{isNode:!0})})),y=d.map((function(t){return Object(s.__assign)(Object(s.__assign)({source:t.source.name,target:t.target.name,name:t.source.name||t.target.name},Tf(t,Object(s.__spreadArray)(["x","y","value"],u,!0))),{isNode:!1})}));return Object(s.__assign)(Object(s.__assign)({},t),{ext:Object(s.__assign)(Object(s.__assign)({},t.ext),{chordData:{nodesData:g,edgesData:y}})})}function _b(t){var e,n;return t.chart.scale(((e={x:{sync:!0,nice:!0},y:{sync:!0,nice:!0,max:1}}).name={sync:"color"},e.source={sync:"color"},e)),t}function Mb(t){var e;return t.chart.axis(!1),t}function Sb(t){var e;return t.chart.legend(!1),t}function Cb(t){var e=t.chart,n,r=t.options.tooltip;return e.tooltip(r),t}function Ab(t){var e;return t.chart.coordinate("polar").reflect("y"),t}function kb(t){var e=t.chart,n=t.options,r=t.ext.chordData.nodesData,i=n.nodeStyle,o=n.label,a=n.tooltip,s=e.createView();return s.data(r),ld({chart:s,options:{xField:"x",yField:"y",seriesField:"name",polygon:{style:i},label:o,tooltip:a}}),t}function Tb(t){var e=t.chart,n=t.options,r=t.ext.chordData.edgesData,i=n.edgeStyle,o=n.tooltip,a=e.createView(),s;return a.data(r),id({chart:a,options:{xField:"x",yField:"y",seriesField:"source",edge:{style:i,shape:"arc"},tooltip:o}}),t}function Eb(t){var e=t.chart,n,r;return yp(e,t.options.animation,qf(e)),t}function Pb(t){return Vf(Rp,wb,Ab,_b,Mb,Sb,Cb,Tb,kb,Bp,Np,Eb)(t)}var Ib=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="chord",e}return Object(s.__extends)(e,t),e.getDefaultOptions=function(){return jb},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Pb},e}(gd),Fb=["x","y","r","name","value","path","depth"],Lb={colorField:"name",autoFit:!0,pointStyle:{lineWidth:0,stroke:"#fff"},legend:!1,hierarchyConfig:{size:[1,1],padding:0},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1}},Bb=4,Db=0,Rb=5,Nb="drilldown-bread-crumb",zb={position:"top-left",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}},Yb="hierarchy-data-transform-params",Gb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="drill-down",e.historyCache=[],e.breadCrumbGroup=null,e.breadCrumbCfg=zb,e}return Object(s.__extends)(e,t),e.prototype.click=function(){var t=Object(c.s)(this.context,["event","data","data"]);if(!t)return!1;this.drill(t),this.drawBreadCrumb()},e.prototype.resetPosition=function(){if(this.breadCrumbGroup){var t=this.context.view.getCoordinate(),e=this.breadCrumbGroup,n=e.getBBox(),r=this.getButtonCfg().position,i={x:t.start.x,y:t.end.y-(n.height+10)};t.isPolar&&(i={x:0,y:0}),"bottom-left"===r&&(i={x:t.start.x,y:t.start.y});var o=mo.transform(null,[["t",i.x+0,i.y+n.height+5]]);e.setMatrix(o)}},e.prototype.back=function(){Object(c.mb)(this.historyCache)&&this.backTo(this.historyCache.slice(0,-1))},e.prototype.reset=function(){this.historyCache[0]&&this.backTo(this.historyCache.slice(0,1)),this.historyCache=[],this.hideCrumbGroup()},e.prototype.drill=function(t){var e=this.context.view,n=Object(c.s)(e,["interactions","drill-down","cfg","transformData"],(function(t){return t})),r=n(Object(s.__assign)({data:t.data},t[Yb]));e.changeData(r);for(var i=[],o=t;o;){var a=o.data;i.unshift({id:"".concat(a.name,"_").concat(o.height,"_").concat(o.depth),name:a.name,children:n(Object(s.__assign)({data:a},t[Yb]))}),o=o.parent}this.historyCache=(this.historyCache||[]).slice(0,-1).concat(i)},e.prototype.backTo=function(t){if(t&&!(t.length<=0)){var e=this.context.view,n=Object(c.U)(t).children;e.changeData(n),t.length>1?(this.historyCache=t,this.drawBreadCrumb()):(this.historyCache=[],this.hideCrumbGroup())}},e.prototype.getButtonCfg=function(){var t=this.context.view,e=Object(c.s)(t,["interactions","drill-down","cfg","drillDownConfig"]);return Yf(this.breadCrumbCfg,null==e?void 0:e.breadCrumb,this.cfg)},e.prototype.drawBreadCrumb=function(){this.drawBreadCrumbGroup(),this.resetPosition(),this.breadCrumbGroup.show()},e.prototype.drawBreadCrumbGroup=function(){var t=this,e=this.getButtonCfg(),n=this.historyCache;this.breadCrumbGroup?this.breadCrumbGroup.clear():this.breadCrumbGroup=this.context.view.foregroundGroup.addGroup({name:Nb});var r=0;n.forEach((function(i,o){var a=t.breadCrumbGroup.addShape({type:"text",id:i.id,name:"".concat(Nb,"_").concat(i.name,"_text"),attrs:Object(s.__assign)(Object(s.__assign)({text:0!==o||Object(c.K)(e.rootText)?i.name:e.rootText},e.textStyle),{x:r,y:0})}),l=a.getBBox();if(r+=l.width+4,a.on("click",(function(e){var r,i=e.target.get("id");if(i!==(null===(r=Object(c.U)(n))||void 0===r?void 0:r.id)){var o=n.slice(0,n.findIndex((function(t){return t.id===i}))+1);t.backTo(o)}})),a.on("mouseenter",(function(t){var r,i;t.target.get("id")!==(null===(r=Object(c.U)(n))||void 0===r?void 0:r.id)?a.attr(e.activeTextStyle):a.attr({cursor:"default"})})),a.on("mouseleave",(function(){a.attr(e.textStyle)})),o<n.length-1){var u,h=t.breadCrumbGroup.addShape({type:"text",name:"".concat(e.name,"_").concat(i.name,"_divider"),attrs:Object(s.__assign)(Object(s.__assign)({text:e.dividerText},e.textStyle),{x:r,y:0})}).getBBox();r+=h.width+4}}))},e.prototype.hideCrumbGroup=function(){this.breadCrumbGroup&&this.breadCrumbGroup.hide()},e.prototype.destroy=function(){this.breadCrumbGroup&&this.breadCrumbGroup.remove(),t.prototype.destroy.call(this)},e}(ge),Hb=function(t){return"object"==typeof t&&"length"in t?t:Array.from(t)};function Vb(t){for(var e=t.length,n,r;e;)r=Math.random()*e--|0,n=t[e],t[e]=t[r],t[r]=n;return t}var Wb=function(t){for(var e=0,n=(t=Vb(Array.from(t))).length,r=[],i,o;e<n;)i=t[e],o&&qb(o,i)?++e:(o=Kb(r=Xb(r,i)),e=0);return o};function Xb(t,e){var n,r;if(Ub(e,t))return[e];for(n=0;n<t.length;++n)if($b(e,t[n])&&Ub(Qb(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(r=n+1;r<t.length;++r)if($b(Qb(t[n],t[r]),e)&&$b(Qb(t[n],e),t[r])&&$b(Qb(t[r],e),t[n])&&Ub(Jb(t[n],t[r],e),t))return[t[n],t[r],e];throw new Error}function $b(t,e){var n=t.r-e.r,r=e.x-t.x,i=e.y-t.y;return n<0||n*n<r*r+i*i}function qb(t,e){var n=t.r-e.r+1e-9*Math.max(t.r,e.r,1),r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function Ub(t,e){for(var n=0;n<e.length;++n)if(!qb(t,e[n]))return!1;return!0}function Kb(t){switch(t.length){case 1:return Zb(t[0]);case 2:return Qb(t[0],t[1]);case 3:return Jb(t[0],t[1],t[2])}}function Zb(t){return{x:t.x,y:t.y,r:t.r}}function Qb(t,e){var n=t.x,r=t.y,i=t.r,o=e.x,a=e.y,s=e.r,c=o-n,l=a-r,u=s-i,h=Math.sqrt(c*c+l*l);return{x:(n+o+c/h*u)/2,y:(r+a+l/h*u)/2,r:(h+i+s)/2}}function Jb(t,e,n){var r=t.x,i=t.y,o=t.r,a=e.x,s=e.y,c=e.r,l=n.x,u=n.y,h=n.r,f=r-a,p=r-l,d=i-s,g=i-u,y=c-o,v=h-o,m=r*r+i*i-o*o,b=m-a*a-s*s+c*c,x=m-l*l-u*u+h*h,O=p*d-f*g,j=(d*x-g*b)/(2*O)-r,w=(g*y-d*v)/O,_=(p*b-f*x)/(2*O)-i,M=(f*v-p*y)/O,S=w*w+M*M-1,C=2*(o+j*w+_*M),A=j*j+_*_-o*o,k=-(S?(C+Math.sqrt(C*C-4*S*A))/(2*S):A/C);return{x:r+j+w*k,y:i+_+M*k,r:k}}function tx(t,e,n){var r=t.x-e.x,i,o,a=t.y-e.y,s,c,l=r*r+a*a;l?(o=e.r+n.r,o*=o,c=t.r+n.r,o>(c*=c)?(i=(l+c-o)/(2*l),s=Math.sqrt(Math.max(0,c/l-i*i)),n.x=t.x-i*r-s*a,n.y=t.y-i*a+s*r):(i=(l+o-c)/(2*l),s=Math.sqrt(Math.max(0,o/l-i*i)),n.x=e.x+i*r-s*a,n.y=e.y+i*a+s*r)):(n.x=e.x+n.r,n.y=e.y)}function ex(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function nx(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function rx(t){this._=t,this.next=null,this.previous=null}function ix(t){if(!(i=(t=Hb(t)).length))return 0;var e,n,r,i,o,a,s,c,l,u,h;if((e=t[0]).x=0,e.y=0,!(i>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(i>2))return e.r+n.r;tx(n,e,r=t[2]),e=new rx(e),n=new rx(n),r=new rx(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(s=3;s<i;++s){tx(e._,n._,r=t[s]),r=new rx(r),c=n.next,l=e.previous,u=n._.r,h=e._.r;do{if(u<=h){if(ex(c._,r._)){n=c,e.next=n,n.previous=e,--s;continue t}u+=c._.r,c=c.next}else{if(ex(l._,r._)){(e=l).next=n,n.previous=e,--s;continue t}h+=l._.r,l=l.previous}}while(c!==l.next);for(r.previous=e,r.next=n,e.next=n.previous=n=r,o=nx(e);(r=r.next)!==n;)(a=nx(r))<o&&(e=r,o=a);n=e.next}for(e=[n._],r=n;(r=r.next)!==n;)e.push(r._);for(r=Wb(e),s=0;s<i;++s)(e=t[s]).x-=r.x,e.y-=r.y;return r.r}var ox=function(t){return ix(t),t};function ax(t){return null==t?null:sx(t)}function sx(t){if("function"!=typeof t)throw new Error;return t}function cx(){return 0}var lx=function(t){return function(){return t}};function ux(t){return Math.sqrt(t.value)}var hx=function(){var t=null,e=1,n=1,r=cx;function i(i){return i.x=e/2,i.y=n/2,t?i.eachBefore(fx(t)).eachAfter(px(r,.5)).eachBefore(dx(1)):i.eachBefore(fx(ux)).eachAfter(px(cx,1)).eachAfter(px(r,i.r/Math.min(e,n))).eachBefore(dx(Math.min(e,n)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=ax(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],n=+t[1],i):[e,n]},i.padding=function(t){return arguments.length?(r="function"==typeof t?t:lx(+t),i):r},i};function fx(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function px(t,e){return function(n){if(r=n.children){var r,i,o=r.length,a=t(n)*e||0,s;if(a)for(i=0;i<o;++i)r[i].r+=a;if(s=ix(r),a)for(i=0;i<o;++i)r[i].r-=a;n.r=s+a}}}function dx(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}function gx(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}var yx=function(){return this.eachAfter(gx)},vx=function(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this},mx=function(t,e){for(var n=this,r=[n],i,o,a=-1;n=r.pop();)if(t.call(e,n,++a,this),i=n.children)for(o=i.length-1;o>=0;--o)r.push(i[o]);return this},bx=function(t,e){for(var n=this,r=[n],i=[],o,a,s,c=-1;n=r.pop();)if(i.push(n),o=n.children)for(a=0,s=o.length;a<s;++a)r.push(o[a]);for(;n=i.pop();)t.call(e,n,++c,this);return this},xx=function(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r},Ox=function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},jx=function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},wx=function(t){for(var e=this,n=_x(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r};function _x(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}var Mx=function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},Sx=function(){return Array.from(this)},Cx=function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},Ax=function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},kx=function*(){var t=this,e,n=[t],r,i,o;do{for(e=n.reverse(),n=[];t=e.pop();)if(yield t,r=t.children)for(i=0,o=r.length;i<o;++i)n.push(r[i])}while(n.length)};function Tx(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=Ix)):void 0===e&&(e=Px);for(var n=new Bx(t),r,i=[n],o,a,s,c;r=i.pop();)if((a=e(r.data))&&(c=(a=Array.from(a)).length))for(r.children=a,s=c-1;s>=0;--s)i.push(o=a[s]=new Bx(a[s])),o.parent=r,o.depth=r.depth+1;return n.eachBefore(Lx)}function Ex(){return Tx(this).eachBefore(Fx)}function Px(t){return t.children}function Ix(t){return Array.isArray(t)?t[1]:null}function Fx(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Lx(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function Bx(t){this.data=t,this.depth=this.height=0,this.parent=null}Bx.prototype=Tx.prototype={constructor:Bx,count:yx,each:vx,eachAfter:bx,eachBefore:mx,find:xx,sum:Ox,sort:jx,path:wx,ancestors:Mx,descendants:Sx,leaves:Cx,links:Ax,copy:Ex,[Symbol.iterator]:kx};var Dx="nodeIndex",Rx="childNodeCount",Nx="nodeAncestor",zx="Invalid field: it must be a string!";function Yx(t,e){var n=t.field,r=t.fields;if(Object(c.Q)(n))return n;if(Object(c.C)(n))return console.warn(zx),n[0];if(console.warn("".concat(zx," will try to get fields instead.")),Object(c.Q)(r))return r;if(Object(c.C)(r)&&r.length)return r[0];if(e)return e;throw new TypeError(zx)}function Gx(t){var e=[],n,r;t&&t.each?t.each((function(t){var i,o;t.parent!==n?(n=t.parent,r=0):r+=1;var a=Object(c.l)(((null===(i=t.ancestors)||void 0===i?void 0:i.call(t))||[]).map((function(t){return e.find((function(e){return e.name===t.name}))||t})),(function(e){var n=e.depth;return n>0&&n<t.depth}));t.nodeAncestor=a,t.childNodeCount=(null===(o=t.children)||void 0===o?void 0:o.length)||0,t.nodeIndex=r,e.push(t)})):t&&t.eachNode&&t.eachNode((function(t){e.push(t)}));return e}var Hx={field:"value",as:["x","y","r"],sort:function(t,e){return e.value-t.value}};function Vx(t,e){var n=(e=Object(c.b)({},Hx,e)).as,r;if(!Object(c.C)(n)||3!==n.length)throw new TypeError('Invalid as: it must be an array with 3 strings (e.g. [ "x", "y", "r" ])!');try{r=Yx(e)}catch(t){console.warn(t)}var i,o=function(t){return hx().size(e.size).padding(e.padding)(Tx(t).sum((function(t){return t[r]})).sort(e.sort))}(t),a=n[0],s=n[1],l=n[2];return o.each((function(t){t[a]=t.x,t[s]=t.y,t[l]=t.r})),Gx(o)}function Wx(t){var e=t.data,n=t.hierarchyConfig,r=t.rawFields,i=void 0===r?[]:r,o=t.enableDrillDown,a=Vx(e,Object(s.__assign)(Object(s.__assign)({},n),{field:"value",as:["x","y","r"]})),c=[];return a.forEach((function(t){for(var e,r=t.data.name,a=Object(s.__assign)({},t);a.depth>1;)r="".concat(null===(e=a.parent.data)||void 0===e?void 0:e.name," / ").concat(r),a=a.parent;if(o&&t.depth>2)return null;var l=Yf({},t.data,Object(s.__assign)(Object(s.__assign)(Object(s.__assign)({},Tf(t.data,i)),{path:r}),t));l.ext=n,l[Yb]={hierarchyConfig:n,rawFields:i,enableDrillDown:o},c.push(l)})),c}function Xx(t,e,n){var r=rp([t,e]),i=r[0],o=r[1],a=r[2],s=r[3],c,l,u=n.width-(s+o),h=n.height-(i+a),f=Math.min(u,h),p=(u-f)/2,d=(h-f)/2,g,y,v,m,b,x;return{finalPadding:[i+d,o+p,a+d,s+p],finalSize:f<0?0:f}}function $x(t){var e=t.chart,n=Math.min(e.viewBBox.width,e.viewBBox.height);return Yf({options:{size:function(t){var e;return t.r*n}}},t)}function qx(t){var e=t.options,n=t.chart,r=n.viewBBox,i=e.padding,o=e.appendPadding,a=e.drilldown,s=o,l;(null==a?void 0:a.enabled)&&(s=rp([np(n.appendPadding,Object(c.s)(a,["breadCrumb","position"])),o]));var u=Xx(i,s,r).finalPadding;return n.padding=u,n.appendPadding=0,t}function Ux(t){var e=t.chart,n=t.options,r=e.padding,i=e.appendPadding,o=n.color,a=n.colorField,c=n.pointStyle,l=n.hierarchyConfig,u=n.sizeField,h=n.rawFields,f=void 0===h?[]:h,p=n.drilldown,d=Wx({data:n.data,hierarchyConfig:l,enableDrillDown:null==p?void 0:p.enabled,rawFields:f});e.data(d);var g,y=Xx(r,i,e.viewBBox).finalSize,v=function(t){var e;return t.r*y};return u&&(v=function(t){return t[u]*y}),cd(Yf({},t,{options:{xField:"x",yField:"y",seriesField:a,sizeField:u,rawFields:Object(s.__spreadArray)(Object(s.__spreadArray)([],Fb,!0),f,!0),point:{color:o,style:c,shape:"circle",size:v}}})),t}function Kx(t){return Vf(Gp({},{x:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0},y:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0}}))(t)}function Zx(t){var e=t.chart,n,r=t.options.tooltip;if(!1===r)e.tooltip(!1);else{var i=r;Object(c.s)(r,"fields")||(i=Yf({},{customItems:function(t){return t.map((function(t){var n=Object(c.s)(e.getOptions(),"scales"),r=Object(c.s)(n,["name","formatter"],(function(t){return t})),i=Object(c.s)(n,["value","formatter"],(function(t){return t}));return Object(s.__assign)(Object(s.__assign)({},t),{name:r(t.data.name),value:i(t.data.value)})}))}},i)),e.tooltip(i)}return t}function Qx(t){var e;return t.chart.axis(!1),t}function Jx(t){var e=t.drilldown,n=t.interactions,r=void 0===n?[]:n;return(null==e?void 0:e.enabled)?Yf({},t,{interactions:Object(s.__spreadArray)(Object(s.__spreadArray)([],r,!0),[{type:"drill-down",cfg:{drillDownConfig:e,transformData:Wx,enableDrillDown:!0}}],!1)}):t}function tO(t){var e,n;return Bp({chart:t.chart,options:Jx(t.options)}),t}function eO(t){return Vf(Ip("pointStyle"),$x,qx,Rp,Kx,Ux,Qx,Fp,Zx,tO,Dp,Hp())(t)}function nO(t){var e=Object(c.s)(t,["event","data","data"],{});return Object(c.C)(e.children)&&e.children.length>0}function rO(t){var e=t.view.getCoordinate(),n=e.innerRadius;if(n){var r=t.event,i=r.x,o=r.y,a=e.center,s=a.x,c=a.y,l=e.getRadius()*n,u;return Math.sqrt(Math.pow(s-i,2)+Math.pow(c-o,2))<l}return!1}Oe("drill-down-action",Gb),Fn("drill-down",{showEnable:[{trigger:"element:mouseenter",action:"cursor:pointer",isEnable:nO},{trigger:"element:mouseleave",action:"cursor:default"},{trigger:"element:mouseleave",action:"cursor:pointer",isEnable:rO}],start:[{trigger:"element:click",isEnable:nO,action:["drill-down-action:click"]},{trigger:"afterchangesize",action:["drill-down-action:resetPosition"]},{trigger:"click",isEnable:rO,action:["drill-down-action:back"]}]});var iO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle-packing",e}return Object(s.__extends)(e,t),e.getDefaultOptions=function(){return Lb},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return eO},e.prototype.triggerResize=function(){this.chart.destroyed||(this.chart.forceFit(),this.chart.clear(),this.execAdaptor(),this.chart.render(!0))},e}(gd),oO="left-axes-view",aO="right-axes-view",sO={nice:!0,label:{autoHide:!0,autoRotate:!1}},cO=Object(s.__assign)(Object(s.__assign)({},sO),{position:"left"}),lO=Object(s.__assign)(Object(s.__assign)({},sO),{position:"right",grid:null}),uO,hO;function fO(t){return Object(c.s)(t,"geometry")===hO.Line}function pO(t){return Object(c.s)(t,"geometry")===hO.Column}function dO(t,e,n){return pO(n)?Yf({},{geometry:hO.Column,label:n.label&&n.isRange?{content:function(t){var n;return null===(n=t[e])||void 0===n?void 0:n.join("-")}}:void 0},n):Object(s.__assign)({geometry:hO.Line},n)}function gO(t,e){var n=t[0],r=t[1],i,o,a,s;return Object(c.C)(e)?[e[0],e[1]]:[Object(c.s)(e,n),Object(c.s)(e,r)]}function yO(t,e){return e===uO.Left?!1!==t&&Yf({},cO,t):e===uO.Right?!1!==t&&Yf({},lO,t):t}function vO(t){var e=t.options,n=t.chart,r=e.geometryOption,i=r.isStack,o=r.color,a=r.seriesField,l=r.groupField,u=r.isGroup,h=["xField","yField"];if(fO(r)){sd(Yf({},t,{options:Object(s.__assign)(Object(s.__assign)(Object(s.__assign)({},Tf(e,h)),r),{line:{color:r.color,style:r.lineStyle}})})),cd(Yf({},t,{options:Object(s.__assign)(Object(s.__assign)(Object(s.__assign)({},Tf(e,h)),r),{point:r.point&&Object(s.__assign)({color:o,shape:"circle"},r.point)})}));var f=[];u&&f.push({type:"dodge",dodgeBy:l||a,customOffset:0}),i&&f.push({type:"stack"}),f.length&&Object(c.j)(n.geometries,(function(t){t.adjust(f)}))}return pO(r)&&ig(Yf({},t,{options:Object(s.__assign)(Object(s.__assign)(Object(s.__assign)({},Tf(e,h)),r),{widthRatio:r.columnWidthRatio,interval:Object(s.__assign)(Object(s.__assign)({},Tf(r,["color"])),{style:r.columnStyle})})})),t}function mO(t){var e=t.view,n=t.geometryOption,r=t.yField,i=t.legend,o=Object(c.s)(i,"marker"),a=Wf(e,fO(n)?"line":"interval");if(!n.seriesField){var s=Object(c.s)(e,"options.scales.".concat(r,".alias"))||r,l=a.getAttribute("color"),u=e.getTheme().defaultColor,h;return l&&(u=mo.getMappingValue(l,s,Object(c.s)(l,["values",0],u))),[{value:r,name:s,marker:(Object(c.I)(o)?o:!Object(c.G)(o)&&Yf({},{style:{stroke:u,fill:u}},o))||(fO(n)?{symbol:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},style:{lineWidth:2,r:6,stroke:u}}:{symbol:"square",style:{fill:u}}),isGeometry:!0,viewId:e.id}]}var f=a.getGroupAttributes();return Object(c.ib)(f,(function(t,n){var r=mo.getLegendItems(e,a,n,e.getTheme(),o);return t.concat(r)}),[])}!function(t){t.Left="Left",t.Right="Right"}(uO||(uO={})),function(t){t.Line="line",t.Column="column"}(hO||(hO={}));var bO=function(t,e){var n=e[0],r=e[1],i=t.getOptions().data,o=t.getXScale(),a=Object(c.mb)(i);if(o&&a){var s=!0,l=Object(c.yb)(i,o.field),u=l,h=Object(c.mb)(u),f=Math.floor(n*(h-1)),p=Math.floor(r*(h-1));t.filter(o.field,(function(t){var e=u.indexOf(t);return!(e>-1)||tp(e,f,p)})),t.getRootView().render(!0)}};function xO(t){var e,n=t.options,r=n.geometryOptions,i=void 0===r?[]:r,o=n.xField,a=n.yField,s=Object(c.k)(i,(function(t){var e=t.geometry;return e===hO.Line||void 0===e}));return Yf({},{options:{geometryOptions:[],meta:(e={},e[o]={type:"cat",sync:!0,range:s?[0,1]:void 0},e),tooltip:{showMarkers:s,showCrosshairs:s,shared:!0,crosshairs:{type:"x"}},interactions:s?[{type:"legend-visible-filter"}]:[{type:"legend-visible-filter"},{type:"active-region"}],legend:{position:"top-left"}}},t,{options:{yAxis:gO(a,n.yAxis),geometryOptions:[dO(o,a[0],i[0]),dO(o,a[1],i[1])],annotations:gO(a,n.annotations)}})}function OO(t){var e,n,r=t.chart,i,o=t.options.geometryOptions,a={line:0,column:1},s;return[{type:null===(e=o[0])||void 0===e?void 0:e.geometry,id:oO},{type:null===(n=o[1])||void 0===n?void 0:n.geometry,id:aO}].sort((function(t,e){return-a[t.type]+a[e.type]})).forEach((function(t){return r.createView({id:t.id})})),t}function jO(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,o=n.geometryOptions,a=n.data,c=n.tooltip,l;return[Object(s.__assign)(Object(s.__assign)({},o[0]),{id:oO,data:a[0],yField:i[0]}),Object(s.__assign)(Object(s.__assign)({},o[1]),{id:aO,data:a[1],yField:i[1]})].forEach((function(t){var n=t.id,i=t.data,o=t.yField,a=pO(t)&&t.isPercent,l=a?yd(i,o,r,o):i,u=pp(e,n).data(l),h=a?Object(s.__assign)({formatter:function(e){return{name:e[t.seriesField]||o,value:(100*Number(e[o])).toFixed(2)+"%"}}},c):c;vO({chart:u,options:{xField:r,yField:o,tooltip:h,geometryOption:t}})})),t}function wO(t){var e,n=t.chart,r,i=t.options.geometryOptions,o=(null===(e=n.getTheme())||void 0===e?void 0:e.colors10)||[],a=0;return n.once("beforepaint",(function(){Object(c.j)(i,(function(t,e){var r=pp(n,0===e?oO:aO);if(!t.color){var i=r.getGroupScales(),s=Object(c.s)(i,[0,"values","length"],1),l=o.slice(a,a+s).concat(0===e?[]:o);r.geometries.forEach((function(e){t.seriesField?e.color(t.seriesField,l):e.color(l[0])})),a+=s}})),n.render(!0)})),t}function _O(t){var e,n,r=t.chart,i=t.options,o=i.xAxis,a=i.yAxis,s=i.xField,c=i.yField;return Gp(((e={})[s]=o,e[c[0]]=a[0],e))(Yf({},t,{chart:pp(r,oO)})),Gp(((n={})[s]=o,n[c[1]]=a[1],n))(Yf({},t,{chart:pp(r,aO)})),t}function MO(t){var e=t.chart,n=t.options,r=pp(e,oO),i=pp(e,aO),o=n.xField,a=n.yField,s=n.xAxis,c=n.yAxis;return e.axis(o,!1),e.axis(a[0],!1),e.axis(a[1],!1),r.axis(o,s),r.axis(a[0],yO(c[0],uO.Left)),i.axis(o,!1),i.axis(a[1],yO(c[1],uO.Right)),t}function SO(t){var e=t.chart,n,r=t.options.tooltip,i=pp(e,oO),o=pp(e,aO);return e.tooltip(r),i.tooltip({shared:!0}),o.tooltip({shared:!0}),t}function CO(t){var e=t.chart;return Bp(Yf({},t,{chart:pp(e,oO)})),Bp(Yf({},t,{chart:pp(e,aO)})),t}function AO(t){var e=t.chart,n,r=t.options.annotations,i=Object(c.s)(r,[0]),o=Object(c.s)(r,[1]);return Hp(i)(Yf({},t,{chart:pp(e,oO),options:{annotations:i}})),Hp(o)(Yf({},t,{chart:pp(e,aO),options:{annotations:o}})),t}function kO(t){var e=t.chart;return Rp(Yf({},t,{chart:pp(e,oO)})),Rp(Yf({},t,{chart:pp(e,aO)})),Rp(t),t}function TO(t){var e=t.chart;return Dp(Yf({},t,{chart:pp(e,oO)})),Dp(Yf({},t,{chart:pp(e,aO)})),t}function EO(t){var e=t.chart,n,r=t.options.yAxis;return Vp(Yf({},t,{chart:pp(e,oO),options:{yAxis:r[0]}})),Vp(Yf({},t,{chart:pp(e,aO),options:{yAxis:r[1]}})),t}function PO(t){var e=t.chart,n=t.options,r=n.legend,i=n.geometryOptions,o=n.yField,a=n.data,s=pp(e,oO),l=pp(e,aO);if(!1===r)e.legend(!1);else if(Object(c.O)(r)&&!0===r.custom)e.legend(r);else{var u=Object(c.s)(i,[0,"legend"],r),h=Object(c.s)(i,[1,"legend"],r);e.once("beforepaint",(function(){var t=a[0].length?mO({view:s,geometryOption:i[0],yField:o[0],legend:u}):[],n=a[1].length?mO({view:l,geometryOption:i[1],yField:o[1],legend:h}):[];e.legend(Yf({},r,{custom:!0,items:t.concat(n)}))})),i[0].seriesField&&s.legend(i[0].seriesField,u),i[1].seriesField&&l.legend(i[1].seriesField,h),e.on("legend-item:click",(function(t){var n=Object(c.s)(t,"gEvent.delegateObject",{});if(n&&n.item){var r=n.item,i=r.value,a=r.isGeometry,s=r.viewId;if(a){var l;if(Object(c.n)(o,(function(t){return t===i}))>-1){var u=Object(c.s)(pp(e,s),"geometries");Object(c.j)(u,(function(t){t.changeVisible(!n.item.unchecked)}))}}else{var h=Object(c.s)(e.getController("legend"),"option.items",[]);Object(c.j)(e.views,(function(t){var n=t.getGroupScales();Object(c.j)(n,(function(e){e.values&&e.values.indexOf(i)>-1&&t.filter(e.field,(function(t){var e;return!Object(c.m)(h,(function(e){return e.value===t})).unchecked}))})),e.render(!0)}))}}}))}return t}function IO(t){var e=t.chart,n,r=t.options.slider,i=pp(e,oO),o=pp(e,aO);return r&&(i.option("slider",r),i.on("slider:valuechanged",(function(t){var e=t.event,n=e.value,r=e.originValue;Object(c.H)(n,r)||bO(o,n)})),e.once("afterpaint",(function(){if(!Object(c.D)(r)){var t=r.start,e=r.end;(t||e)&&bO(o,[t,e])}}))),t}function FO(t){return Vf(xO,OO,kO,jO,_O,MO,EO,SO,CO,AO,TO,wO,PO,IO)(t)}var LO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dual-axes",e}return Object(s.__extends)(e,t),e.prototype.getDefaultOptions=function(){return Yf({},t.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},e.prototype.getSchemaAdaptor=function(){return FO},e}(gd);function BO(t,e){var n=e.data,r=e.coordinate,i=e.interactions,o=e.annotations,a=e.animation,l=e.tooltip,u=e.axes,h=e.meta,f=e.geometries;n&&t.data(n);var p={};u&&Object(c.j)(u,(function(t,e){p[e]=Tf(t,_f)})),p=Yf({},h,p),t.scale(p),r&&t.coordinate(r),!1===u?t.axis(!1):Object(c.j)(u,(function(e,n){t.axis(n,e)})),Object(c.j)(f,(function(e){var n=nd({chart:t,options:e}).ext,r=e.adjust;r&&n.geometry.adjust(r)})),Object(c.j)(i,(function(e){!1===e.enable?t.removeInteraction(e.type):t.interaction(e.type,e.cfg)})),Object(c.j)(o,(function(e){t.annotation()[e.type](Object(s.__assign)({},e))})),yp(t,a),l?(t.interaction("tooltip"),t.tooltip(l)):!1===l&&t.removeInteraction("tooltip")}function DO(t){var e=t.chart,n=t.options,r=n.type,i=n.data,o=n.fields,a=n.eachView,l=Object(c.gb)(n,["type","data","fields","eachView","axes","meta","tooltip","coordinate","theme","legend","interactions","annotations"]);return e.data(i),e.facet(r,Object(s.__assign)(Object(s.__assign)({},l),{fields:o,eachView:function(t,e){var n=a(t,e);if(n.geometries)BO(t,n);else{var r=n,i=r.options;i.tooltip&&t.interaction("tooltip"),dm(r.type,t,i)}}})),t}function RO(t){var e=t.chart,n=t.options,r=n.axes,i=n.meta,o=n.tooltip,a=n.coordinate,l=n.theme,u=n.legend,h=n.interactions,f=n.annotations,p={};return r&&Object(c.j)(r,(function(t,e){p[e]=Tf(t,_f)})),p=Yf({},i,p),e.scale(p),e.coordinate(a),r?Object(c.j)(r,(function(t,n){e.axis(n,t)})):e.axis(!1),o?(e.interaction("tooltip"),e.tooltip(o)):!1===o&&e.removeInteraction("tooltip"),e.legend(u),l&&e.theme(l),Object(c.j)(h,(function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg)})),Object(c.j)(f,(function(t){e.annotation()[t.type](Object(s.__assign)({},t))})),t}function NO(t){return Vf(Rp,DO,RO)(t)}var zO={title:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},rowTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},columnTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}}},YO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e}return Object(s.__extends)(e,t),e.getDefaultOptions=function(){return zO},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return NO},e}(gd);function GO(t){var e=t.chart,n=t.options,r=n.data,i=n.type,o=n.xField,a=n.yField,s=n.colorField,l=n.sizeField,u=n.sizeRatio,h=n.shape,f=n.color,p=n.tooltip,d=n.heatmapStyle,g=n.meta;e.data(r);var y="polygon";"density"===i&&(y="heatmap");var v=Jp(p,[o,a,s]),m=v.fields,b=v.formatter,x=1;return(u||0===u)&&(h||l?u<0||u>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):x=u:console.warn("sizeRatio is not in effect: Must define shape or sizeField first")),nd(Yf({},t,{options:{type:y,colorField:s,tooltipFields:m,shapeField:l||"",label:void 0,mapping:{tooltip:b,shape:h&&(l?function(t){var e=r.map((function(t){return t[l]})),n=(null==g?void 0:g[l])||{},i=n.min,o=n.max;return i=Object(c.M)(i)?i:Math.min.apply(Math,e),o=Object(c.M)(o)?o:Math.max.apply(Math,e),[h,(Object(c.s)(t,l)-i)/(o-i),x]}:function(){return[h,1,x]}),color:f||s&&e.getTheme().sequenceColors.join("-"),style:d}}})),t}function HO(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return Vf(Gp(((e={})[o]=r,e[a]=i,e)))(t)}function VO(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(a,!1):e.axis(a,i),t}function WO(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField,o=n.sizeField,a=n.sizeLegend,s=!1!==r;return i&&e.legend(i,!!s&&r),o&&e.legend(o,void 0===a?r:a),s||a||e.legend(!1),t}function XO(t){var e=t.chart,n=t.options,r=n.label,i=n.colorField,o,a=Wf(e,"density"===n.type?"heatmap":"polygon");if(r){if(i){var c=r.callback,l=Object(s.__rest)(r,["callback"]);a.label({fields:[i],callback:c,cfg:Kf(l)})}}else a.label(!1);return t}function $O(t){var e,n,r=t.chart,i=t.options,o=i.coordinate,a=i.reflect,s=Yf({actions:[]},null!=o?o:{type:"rect"});return a&&(null===(n=null===(e=s.actions)||void 0===e?void 0:e.push)||void 0===n||n.call(e,["reflect",a])),r.coordinate(s),t}function qO(t){return Vf(Rp,Ip("heatmapStyle"),HO,$O,GO,VO,WO,Lp,XO,Hp(),Bp,Dp,Np)(t)}var UO=Yf({},gd.getDefaultOptions(),{type:"polygon",legend:!1,coordinate:{type:"rect"},xAxis:{tickLine:null,line:null,grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}},yAxis:{grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}}});xi("polygon","circle",{draw:function(t,e){var n,r,i=t.x,o=t.y,a=this.parsePoints(t.points),c=Math.abs(a[2].x-a[1].x),l=Math.abs(a[1].y-a[0].y),u=Math.min(c,l)/2,h=Number(t.shape[1]),f=Number(t.shape[2]),p,d=u*Math.sqrt(f)*Math.sqrt(h),g=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(r=t.defaultStyle)||void 0===r?void 0:r.fill),y;return e.addShape("circle",{attrs:Object(s.__assign)(Object(s.__assign)(Object(s.__assign)({x:i,y:o,r:d},t.defaultStyle),t.style),{fill:g})})}}),xi("polygon","square",{draw:function(t,e){var n,r,i=t.x,o=t.y,a=this.parsePoints(t.points),c=Math.abs(a[2].x-a[1].x),l=Math.abs(a[1].y-a[0].y),u=Math.min(c,l),h=Number(t.shape[1]),f=Number(t.shape[2]),p,d=u*Math.sqrt(f)*Math.sqrt(h),g=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(r=t.defaultStyle)||void 0===r?void 0:r.fill),y;return e.addShape("rect",{attrs:Object(s.__assign)(Object(s.__assign)(Object(s.__assign)({x:i-d/2,y:o-d/2,width:d,height:d},t.defaultStyle),t.style),{fill:g})})}});var KO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e}return Object(s.__extends)(e,t),e.getDefaultOptions=function(){return UO},e.prototype.getSchemaAdaptor=function(){return qO},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(gd),ZO="liquid";function QO(t){return[{percent:t,type:"liquid"}]}function JO(t){var e=t.chart,n=t.options,r=n.percent,i=n.liquidStyle,o=n.radius,a=n.outline,s=n.wave,c=n.shape,l=n.shapeStyle,u=n.animation;e.scale({percent:{min:0,max:1}}),e.data(QO(r));var h=n.color||e.getTheme().defaultColor,f,p,d=ad(Yf({},t,{options:{xField:"type",yField:"percent",widthRatio:o,interval:{color:h,style:i,shape:"liquid-fill-gauge"}}})).ext.geometry,g,y={percent:r,radius:o,outline:a,wave:s,shape:c,shapeStyle:l,background:e.getTheme().background,animation:u};return d.customInfo(y),e.legend(!1),e.axis(!1),e.tooltip(!1),t}function tj(t,e){var n=t.chart,r=t.options,i=r.statistic,o=r.percent,a=r.meta;n.getController("annotation").clear(!0);var l=Object(c.s)(a,["percent","formatter"])||function(t){return"".concat((100*t).toFixed(2),"%")},u=i.content;return u&&(u=Yf({},u,{content:Object(c.K)(u.content)?l(o):u.content})),up(n,{statistic:Object(s.__assign)(Object(s.__assign)({},i),{content:u}),plotType:"liquid"},{percent:o}),e&&n.render(!0),t}function ej(t){return Vf(Rp,Ip("liquidStyle"),JO,tj,Gp({}),Dp,Bp)(t)}var nj={radius:.9,statistic:{title:!1,content:{style:{opacity:.75,fontSize:"30px",lineHeight:"30px",textAlign:"center"}}},outline:{border:2,distance:0},wave:{count:3,length:192},shape:"circle"},rj=5e3;function ij(t,e,n){return t+(e-t)*n}function oj(t){var e=Object(s.__assign)({opacity:1},t.style);return t.color&&!e.fill&&(e.fill=t.color),e}function aj(t){var e={fill:"#fff",fillOpacity:0,lineWidth:4},n=Object(c.db)({},e,t.style);return t.color&&!n.stroke&&(n.stroke=t.color),Object(c.M)(t.opacity)&&(n.opacity=n.strokeOpacity=t.opacity),n}function sj(t,e,n,r){return 0===e?[[t+.5*n/Math.PI/2,r/2],[t+.5*n/Math.PI,r],[t+n/4,r]]:1===e?[[t+.5*n/Math.PI/2*(Math.PI-2),r],[t+.5*n/Math.PI/2*(Math.PI-1),r/2],[t+n/4,0]]:2===e?[[t+.5*n/Math.PI/2,-r/2],[t+.5*n/Math.PI,-r],[t+n/4,-r]]:[[t+.5*n/Math.PI/2*(Math.PI-2),-r],[t+.5*n/Math.PI/2*(Math.PI-1),-r/2],[t+n/4,0]]}function cj(t,e,n,r,i,o,a){for(var s=4*Math.ceil(2*t/n*4),c=[],l=r;l<2*-Math.PI;)l+=2*Math.PI;for(;l>0;)l-=2*Math.PI;var u=o-t+(l=l/Math.PI/2*n)-2*t;c.push(["M",u,e]);for(var h=0,f=0;f<s;++f){var p,d=sj(f*n/4,f%4,n,i);c.push(["C",d[0][0]+u,-d[0][1]+e,d[1][0]+u,-d[1][1]+e,d[2][0]+u,-d[2][1]+e]),f===s-1&&(h=d[2][0])}return c.push(["L",h+u,a+t]),c.push(["L",u,a+t]),c.push(["Z"]),c}function lj(t,e,n,r,i,o,a,s,c,l){for(var u=i.fill,h=i.opacity,f=a.getBBox(),p=f.maxX-f.minX,d=f.maxY-f.minY,g=0;g<r;g++){var y=r<=1?1:g/(r-1),v=o.addShape("path",{name:"waterwave-path",attrs:{path:cj(s,f.minY+d*n,c,0,p/32,t,e),fill:u,opacity:ij(.2,.9,y)*h}});try{if(!1===l)return;var m=Dy([["t",c,0]]);v.stopAnimate(),v.animate({matrix:m},{duration:ij(2500,5e3,y),repeat:!0})}catch(t){console.warn("off-screen group animate error!")}}}function uj(t,e,n,r){var i=2*n/3,o=Math.max(i,r),a=i/2,s=t,c=a+e-o/2,l=Math.asin(a/(.85*(o-a))),u=Math.sin(l)*a,h=Math.cos(l)*a,f=s-h,p=c+u,d=t,g=c+a/Math.sin(l);return"\n M ".concat(f," ").concat(p,"\n A ").concat(a," ").concat(a," 0 1 1 ").concat(f+2*h," ").concat(p,"\n Q ").concat(d," ").concat(g," ").concat(t," ").concat(e+o/2,"\n Q ").concat(d," ").concat(g," ").concat(f," ").concat(p,"\n Z \n ")}function hj(t,e,n,r){var i=n/2,o=r/2;return"\n M ".concat(t," ").concat(e-o," \n a ").concat(i," ").concat(o," 0 1 0 0 ").concat(2*o,"\n a ").concat(i," ").concat(o," 0 1 0 0 ").concat(2*-o,"\n Z\n ")}function fj(t,e,n,r){var i=r/2,o=n/2;return"\n M ".concat(t," ").concat(e-i,"\n L ").concat(t+o," ").concat(e,"\n L ").concat(t," ").concat(e+i,"\n L ").concat(t-o," ").concat(e,"\n Z\n ")}function pj(t,e,n,r){var i=r/2,o=n/2;return"\n M ".concat(t," ").concat(e-i,"\n L ").concat(t+o," ").concat(e+i,"\n L ").concat(t-o," ").concat(e+i,"\n Z\n ")}function dj(t,e,n,r){var i=.618,o=r/2,a=n/2*.618;return"\n M ".concat(t-a," ").concat(e-o,"\n L ").concat(t+a," ").concat(e-o,"\n L ").concat(t+a," ").concat(e+o,"\n L ").concat(t-a," ").concat(e+o,"\n Z\n ")}var gj={pin:uj,circle:hj,diamond:fj,triangle:pj,rect:dj};xi("interval","liquid-fill-gauge",{draw:function(t,e){var n=.5,r=.5,i=t.customInfo,o=i,a=o.percent,l=o.radius,u=o.shape,h=o.shapeStyle,f=o.background,p=o.animation,d=i.outline,g=i.wave,y=d.border,v=d.distance,m=g.count,b=g.length,x=Object(c.ib)(t.points,(function(t,e){return Math.min(t,e.x)}),1/0),O=this.parsePoint({x:n,y:r}),j=this.parsePoint({x:x,y:r}),w=O.x-j.x,_=Math.min(w,j.y*l),M=oj(t),S=aj(Object(c.db)({},t,d)),C=_-y/2,A,k=("function"==typeof u?u:gj[u]||gj.circle)(O.x,O.y,2*C,2*C);if(h&&e.addShape("path",{name:"shape",attrs:Object(s.__assign)({path:k},h)}),a>0){var T=e.addGroup({name:"waves"}),E=T.setClip({type:"path",attrs:{path:k}});lj(O.x,O.y,1-t.points[1].y,m,M,T,E,2*_,b,p)}return e.addShape("path",{name:"distance",attrs:{path:k,fill:"transparent",lineWidth:y+2*v,stroke:"transparent"===f?"#fff":f}}),e.addShape("path",{name:"wrap",attrs:Object(c.db)(S,{path:k,fill:"transparent",lineWidth:y})}),e}});var yj=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="liquid",e}return Object(s.__extends)(e,t),e.getDefaultOptions=function(){return nj},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.changeData=function(t){this.chart.emit(g.BEFORE_CHANGE_DATA,Br.fromData(this.chart,g.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(QO(t)),tj({chart:this.chart,options:this.options},!0),this.chart.emit(g.AFTER_CHANGE_DATA,Br.fromData(this.chart,g.AFTER_CHANGE_DATA,null))},e.prototype.getSchemaAdaptor=function(){return ej},e}(gd),vj,mj;function bj(t){var e=t.chart,n=t.options,r=n.data,i=n.lineStyle,o=n.color,a=n.point,c=n.area;e.data(r);var l=Yf({},t,{options:{line:{style:i,color:o},point:a?Object(s.__assign)({color:o},a):a,area:c?Object(s.__assign)({color:o},c):c,label:void 0}}),u=Yf({},l,{options:{tooltip:!1}}),h=(null==a?void 0:a.state)||n.state,f=Yf({},l,{options:{tooltip:!1,state:h}});return sd(l),cd(f),rd(u),t}function xj(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return Vf(Gp(((e={})[o]=r,e[a]=i,e)))(t)}function Oj(t){var e=t.chart,n=t.options,r=n.radius,i=n.startAngle,o=n.endAngle;return e.coordinate("polar",{radius:r,startAngle:i,endAngle:o}),t}function jj(t){var e=t.chart,n=t.options,r=n.xField,i=n.xAxis,o=n.yField,a=n.yAxis;return e.axis(r,i),e.axis(o,a),t}function wj(t){var e=t.chart,n=t.options,r=n.label,i=n.yField,o=Wf(e,"line");if(r){var a=r.callback,c=Object(s.__rest)(r,["callback"]);o.label({fields:[i],callback:a,cfg:Kf(c)})}else o.label(!1);return t}function _j(t){return Vf(bj,xj,Rp,Oj,jj,Fp,Lp,wj,Bp,Dp,Hp())(t)}kr("radar-tooltip",function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"radar-tooltip"},enumerable:!1,configurable:!0}),e.prototype.getTooltipItems=function(e){var n=this.getTooltipCfg(),r=n.shared,i=n.title,o=t.prototype.getTooltipItems.call(this,e);if(o.length>0){var a=this.view.geometries[0],l=a.dataArray,u=o[0].name,h=[];return l.forEach((function(t){t.forEach((function(t){var e,n=mo.getTooltipItems(t,a)[0];if(!r&&n&&n.name===u){var o=Object(c.K)(i)?u:i;h.push(Object(s.__assign)(Object(s.__assign)({},n),{name:n.title,title:o}))}else if(r&&n){var o=Object(c.K)(i)?n.name||u:i;h.push(Object(s.__assign)(Object(s.__assign)({},n),{name:n.title,title:o}))}}))})),h}return[]},e}(Kr)),Oe("radar-tooltip",function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.init=function(){var t;this.context.view.removeInteraction("tooltip")},e.prototype.show=function(){var t=this.context.event,e;this.getTooltipController().showTooltip({x:t.x,y:t.y})},e.prototype.hide=function(){var t;this.getTooltipController().hideTooltip()},e.prototype.getTooltipController=function(){var t;return this.context.view.getController("radar-tooltip")},e}(ge)),Fn("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]});var Mj=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radar",e}return Object(s.__extends)(e,t),e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return Yf({},t.prototype.getDefaultOptions.call(this),{xAxis:{label:{offset:15},grid:{line:{type:"line"}}},yAxis:{grid:{line:{type:"circle"}}},legend:{position:"top"},tooltip:{shared:!0,showCrosshairs:!0,showMarkers:!0,crosshairs:{type:"xy",line:{style:{stroke:"#565656",lineDash:[4]}},follow:!0}}})},e.prototype.getSchemaAdaptor=function(){return _j},e}(gd);function Sj(t,e,n){var r=n.map((function(t){return t[e]})).filter((function(t){return void 0!==t})),i=r.length>0?Math.max.apply(Math,r):0,o=Math.abs(t)%360;return o?360*i/o:i}function Cj(t,e,n){var r=[];return t.forEach((function(t){var i=r.find((function(n){return n[e]===t[e]}));i?i[n]+=t[n]||null:r.push(Object(s.__assign)({},t))})),r}function Aj(t){var e=t.chart,n=t.options,r=n.barStyle,i=n.color,o=n.tooltip,a=n.colorField,s=n.type,c=n.xField,l=n.yField,u=n.data,h=n.shape,f=If(u,l),p;return e.data(f),ad(Yf({},t,{options:{tooltip:o,seriesField:a,interval:{style:r,color:i,shape:h||("line"===s?"line":"intervel")},minColumnWidth:n.minBarWidth,maxColumnWidth:n.maxBarWidth,columnBackground:n.barBackground}})),"line"===s&&cd({chart:e,options:{xField:c,yField:l,seriesField:a,point:{shape:"circle",color:i}}}),t}function kj(t){var e,n=t.options,r=n.yField,i=n.xField,o=n.data,a=n.isStack,s=n.isGroup,c=n.colorField,l=n.maxAngle,u,h=If(a&&!s&&c?Cj(o,i,r):o,r);return Vf(Gp(((e={})[r]={min:0,max:Sj(l,r,h)},e)))(t)}function Tj(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:r,innerRadius:i,startAngle:o,endAngle:a}}).transpose(),t}function Ej(t){var e=t.chart,n=t.options,r=n.xField,i=n.xAxis;return e.axis(r,i),t}function Pj(t){var e=t.chart,n=t.options,r=n.label,i=n.yField,o=Wf(e,"interval");if(r){var a=r.callback,c=Object(s.__rest)(r,["callback"]);o.label({fields:[i],callback:a,cfg:Object(s.__assign)(Object(s.__assign)({},Kf(c)),{type:"polar"})})}else o.label(!1);return t}function Ij(t){return Vf(Ip("barStyle"),Aj,kj,Ej,Tj,Bp,Dp,Rp,Lp,Fp,Hp(),Pj)(t)}var Fj=Yf({},gd.getDefaultOptions(),{interactions:[{type:"element-active"}],legend:!1,tooltip:{showMarkers:!1},xAxis:{grid:null,tickLine:null,line:null},maxAngle:240}),Lj=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radial-bar",e}return Object(s.__extends)(e,t),e.getDefaultOptions=function(){return Fj},e.prototype.changeData=function(t){this.updateOption({data:t}),kj({chart:this.chart,options:this.options}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Ij},e}(gd);function Bj(t){var e=t.chart,n=t.options,r=n.data,i=n.sectorStyle,o=n.shape,a=n.color;return e.data(r),Vf(ad)(Yf({},t,{options:{marginRatio:1,interval:{style:i,color:a,shape:o}}})),t}function Dj(t){var e=t.chart,n=t.options,r=n.label,i=n.xField,o=Wf(e,"interval");if(!1===r)o.label(!1);else if(Object(c.O)(r)){var a=r.callback,l=r.fields,u=Object(s.__rest)(r,["callback","fields"]),h=u.offset,f=u.layout;(void 0===h||h>=0)&&(f=f?Object(c.C)(f)?f:[f]:[],u.layout=Object(c.l)(f,(function(t){return"limit-in-shape"!==t.type})),u.layout.length||delete u.layout),o.label({fields:l||[i],callback:a,cfg:Kf(u)})}else kf(Mf.WARN,null===r,"the label option must be an Object."),o.label({fields:[i]});return t}function Rj(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return!1===r?e.legend(!1):i&&e.legend(i,r),t}function Nj(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:r,innerRadius:i,startAngle:o,endAngle:a}}),t}function zj(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return Vf(Gp(((e={})[o]=r,e[a]=i,e)))(t)}function Yj(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return r?e.axis(o,r):e.axis(o,!1),i?e.axis(a,i):e.axis(a,!1),t}function Gj(t){Vf(Ip("sectorStyle"),Bj,zj,Dj,Nj,Yj,Rj,Lp,Bp,Dp,Rp,Hp(),Np)(t)}var Hj=Yf({},gd.getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right",radio:{}},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]}),Vj=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rose",e}return Object(s.__extends)(e,t),e.getDefaultOptions=function(){return Hj},e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Gj},e}(gd),Wj="x",Xj="y",$j="name",qj="nodes",Uj="edges";function Kj(t,e,n){var r=[];return t.forEach((function(t){var i=t[e],o=t[n];r.includes(i)||r.push(i),r.includes(o)||r.push(o)})),r}function Zj(t,e,n,r){var i={};return e.forEach((function(t){i[t]={},e.forEach((function(e){i[t][e]=0}))})),t.forEach((function(t){i[t[n]][t[r]]=1})),i}function Qj(t,e,n){if(!Object(c.C)(t))return[];var r=[],i=Kj(t,e,n),o=Zj(t,i,e,n),a={};function s(t){a[t]=1,i.forEach((function(e){if(0!=o[t][e])if(1==a[e])r.push("".concat(t,"_").concat(e));else{if(-1==a[e])return;s(e)}})),a[t]=-1}return i.forEach((function(t){a[t]=0})),i.forEach((function(t){-1!=a[t]&&s(t)})),0!==r.length&&console.warn("sankey data contains circle, ".concat(r.length," records removed."),r),t.filter((function(t){return r.findIndex((function(r){return r==="".concat(t[e],"_").concat(t[n])}))<0}))}function Jj(t){return t.target.depth}function tw(t){return t.depth}function ew(t,e){return e-1-t.height}function nw(t,e){return t.sourceLinks.length?t.depth:e-1}function rw(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?Object(c.cb)(t.sourceLinks,Jj)-1:0}function iw(t){return function(){return t}}function ow(t,e){for(var n=0,r=0;r<t.length;r++)n+=e(t[r]);return n}function aw(t,e){for(var n=-1/0,r=0;r<t.length;r++)n=Math.max(e(t[r]),n);return n}function sw(t,e){for(var n=1/0,r=0;r<t.length;r++)n=Math.min(e(t[r]),n);return n}function cw(t,e){return uw(t.source,e.source)||t.index-e.index}function lw(t,e){return uw(t.target,e.target)||t.index-e.index}function uw(t,e){return t.y0-e.y0}function hw(t){return t.value}function fw(t){return t.index}function pw(t){return t.nodes}function dw(t){return t.links}function gw(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function yw(t){for(var e,n=0,r=t.nodes;n<r.length;n++){for(var i=r[n],o=i.y0,a=o,s=0,c=i.sourceLinks;s<c.length;s++){var l;(l=c[s]).y0=o+l.width/2,o+=l.width}for(var u=0,h=i.targetLinks;u<h.length;u++){var l;(l=h[u]).y1=a+l.width/2,a+=l.width}}}function vw(){var t=0,e=0,n=1,r=1,i=24,o=8,a,s=fw,c=nw,l,u,h,f=pw,p=dw,d=6;function g(t){var e={nodes:f(t),links:p(t)};return y(e),v(e),m(e),b(e),j(e),yw(e),e}function y(t){var e=t.nodes,n=t.links;e.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var r=new Map(e.map((function(t){return[s(t),t]})));if(n.forEach((function(t,e){t.index=e;var n=t.source,i=t.target;"object"!=typeof n&&(n=t.source=gw(r,n)),"object"!=typeof i&&(i=t.target=gw(r,i)),n.sourceLinks.push(t),i.targetLinks.push(t)})),null!=h)for(var i=0,o=e;i<o.length;i++){var a=o[i],c=a.sourceLinks,l=a.targetLinks;c.sort(h),l.sort(h)}}function v(t){for(var e,n=0,r=t.nodes;n<r.length;n++){var i=r[n];i.value=void 0===i.fixedValue?Math.max(ow(i.sourceLinks,hw),ow(i.targetLinks,hw)):i.fixedValue}}function m(t){for(var e=t.nodes,n=e.length,r=new Set(e),i=new Set,o=0;r.size;){if(r.forEach((function(t){t.depth=o;for(var e=0,n=t.sourceLinks;e<n.length;e++){var r=n[e].target;i.add(r)}})),++o>n)throw new Error("circular link");r=i,i=new Set}if(l)for(var a=Math.max(aw(e,(function(t){return t.depth}))+1,0),s=void 0,c=0;c<e.length;c++)(s=e[c]).depth=l.call(null,s,a)}function b(t){for(var e=t.nodes,n=e.length,r=new Set(e),i=new Set,o=0;r.size;){if(r.forEach((function(t){t.height=o;for(var e=0,n=t.targetLinks;e<n.length;e++){var r=n[e].source;i.add(r)}})),++o>n)throw new Error("circular link");r=i,i=new Set}}function x(e){for(var r=e.nodes,o=Math.max(aw(r,(function(t){return t.depth}))+1,0),a=(n-t-i)/(o-1),s=new Array(o).fill(0).map((function(){return[]})),l=0,h=r;l<h.length;l++){var f=h[l],p=Math.max(0,Math.min(o-1,Math.floor(c.call(null,f,o))));f.layer=p,f.x0=t+p*a,f.x1=f.x0+i,s[p]?s[p].push(f):s[p]=[f]}if(u)for(var d=0,g=s;d<g.length;d++){var y;g[d].sort(u)}return s}function O(t){for(var n=sw(t,(function(t){return(r-e-(t.length-1)*a)/ow(t,hw)})),i=0,o=t;i<o.length;i++){for(var s=o[i],c=e,l=0,u=s;l<u.length;l++){var h;(h=u[l]).y0=c,h.y1=c+h.value*n,c=h.y1+a;for(var f=0,p=h.sourceLinks;f<p.length;f++){var d=p[f];d.width=d.value*n}}c=(r-c+a)/(s.length+1);for(var g=0;g<s.length;++g){var h;(h=s[g]).y0+=c*(g+1),h.y1+=c*(g+1)}k(s)}}function j(t){var n=x(t);a=Math.min(o,(r-e)/(aw(n,(function(t){return t.length}))-1)),O(n);for(var i=0;i<d;++i){var s=Math.pow(.99,i),c=Math.max(1-s,(i+1)/d);_(n,s,c),w(n,s,c)}}function w(t,e,n){for(var r=1,i=t.length;r<i;++r){for(var o=t[r],a=0,s=o;a<s.length;a++){for(var c=s[a],l=0,h=0,f=0,p=c.targetLinks;f<p.length;f++){var d=p[f],g=d.source,y,v=d.value*(c.layer-g.layer);l+=T(g,c)*v,h+=v}if(h>0){var m=(l/h-c.y0)*e;c.y0+=m,c.y1+=m,A(c)}}void 0===u&&o.sort(uw),o.length&&M(o,n)}}function _(t,e,n){for(var r,i=t.length-2;i>=0;--i){for(var o=t[i],a=0,s=o;a<s.length;a++){for(var c=s[a],l=0,h=0,f=0,p=c.sourceLinks;f<p.length;f++){var d=p[f],g=d.target,y,v=d.value*(g.layer-c.layer);l+=E(c,g)*v,h+=v}if(h>0){var m=(l/h-c.y0)*e;c.y0+=m,c.y1+=m,A(c)}}void 0===u&&o.sort(uw),o.length&&M(o,n)}}function M(t,n){var i=t.length>>1,o=t[i];C(t,o.y0-a,i-1,n),S(t,o.y1+a,i+1,n),C(t,r,t.length-1,n),S(t,e,0,n)}function S(t,e,n,r){for(;n<t.length;++n){var i=t[n],o=(e-i.y0)*r;o>1e-6&&(i.y0+=o,i.y1+=o),e=i.y1+a}}function C(t,e,n,r){for(;n>=0;--n){var i=t[n],o=(i.y1-e)*r;o>1e-6&&(i.y0-=o,i.y1-=o),e=i.y0-a}}function A(t){var e=t.sourceLinks,n=t.targetLinks;if(void 0===h){for(var r=0,i=n;r<i.length;r++){var o;i[r].source.sourceLinks.sort(lw)}for(var a=0,s=e;a<s.length;a++){var c;s[a].target.targetLinks.sort(cw)}}}function k(t){if(void 0===h)for(var e=0,n=t;e<n.length;e++){var r=n[e],i=r.sourceLinks,o=r.targetLinks;i.sort(lw),o.sort(cw)}}function T(t,e){for(var n=t.y0-(t.sourceLinks.length-1)*a/2,r=0,i=t.sourceLinks;r<i.length;r++){var o=i[r],s=o.target,c=o.width;if(s===e)break;n+=c+a}for(var l=0,u=e.targetLinks;l<u.length;l++){var h=u[l],s=h.source,c=h.width;if(s===t)break;n-=c}return n}function E(t,e){for(var n=e.y0-(e.targetLinks.length-1)*a/2,r=0,i=e.targetLinks;r<i.length;r++){var o=i[r],s=o.source,c=o.width;if(s===t)break;n+=c+a}for(var l=0,u=t.sourceLinks;l<u.length;l++){var h=u[l],s=h.target,c=h.width;if(s===e)break;n-=c}return n}return g.update=function(t){return yw(t),t},g.nodeId=function(t){return arguments.length?(s="function"==typeof t?t:iw(t),g):s},g.nodeAlign=function(t){return arguments.length?(c="function"==typeof t?t:iw(t),g):c},g.nodeDepth=function(t){return arguments.length?(l=t,g):l},g.nodeSort=function(t){return arguments.length?(u=t,g):u},g.nodeWidth=function(t){return arguments.length?(i=+t,g):i},g.nodePadding=function(t){return arguments.length?(o=a=+t,g):o},g.nodes=function(t){return arguments.length?(f="function"==typeof t?t:iw(t),g):f},g.links=function(t){return arguments.length?(p="function"==typeof t?t:iw(t),g):p},g.linkSort=function(t){return arguments.length?(h=t,g):h},g.size=function(i){return arguments.length?(t=e=0,n=+i[0],r=+i[1],g):[n-t,r-e]},g.extent=function(i){return arguments.length?(t=+i[0][0],n=+i[1][0],e=+i[0][1],r=+i[1][1],g):[[t,e],[n,r]]},g.iterations=function(t){return arguments.length?(d=+t,g):d},g}var mw={left:tw,right:ew,center:rw,justify:nw},bw={nodeId:function(t){return t.index},nodeAlign:"justify",nodeWidth:.008,nodePadding:.03,nodeSort:void 0},xw;function Ow(t){var e;return(Object(c.Q)(t)?mw[t]:Object(c.I)(t)?t:null)||nw}function jw(t){return Object(c.b)({},bw,t)}function ww(t,e){var n=jw(t),r=n.nodeId,i=n.nodeSort,o=n.nodeAlign,a=n.nodeWidth,s=n.nodePadding,c=n.nodeDepth,l,u=vw().nodeSort(i).nodeWidth(a).nodePadding(s).nodeDepth(c).nodeAlign(Ow(o)).extent([[0,0],[1,1]]).nodeId(r)(e),h,f;return{nodes:u.nodes.map((function(t){var e=t.x0,n=t.x1,r=t.y0,i=t.y1;return t.x=[e,n,n,e],t.y=[r,r,i,i],t})).filter((function(t){return null!==t.name})),links:u.links.map((function(t){var e=t.source,n=t.target,r=e.x1,i=n.x0;t.x=[r,r,i,i];var o=t.width/2;return t.y=[t.y0+o,t.y0-o,t.y1+o,t.y1-o],t})).filter((function(t){var e=t.source,n=t.target;return null!==e.name&&null!==n.name}))}}function _w(t){return"node-link"===t}function Mw(t,e,n){return Jf(t)?t/n:e}function Sw(t,e,n){return Jf(t)?t/n:e}function Cw(t,e,n){var r=t.dataType,i=t.data,o=t.sourceField,a=t.targetField,c=t.weightField,l=t.nodeAlign,u=t.nodeSort,h=t.nodePadding,f=t.nodePaddingRatio,p=t.nodeWidth,d=t.nodeWidthRatio,g=t.nodeDepth,y=t.rawFields,v=void 0===y?[]:y,m;m=_w(r)?i:Pf(Qj(i,o,a),o,a,c,v);var b=ww({nodeAlign:l,nodePadding:Sw(h,f,n),nodeWidth:Mw(p,d,e),nodeSort:u,nodeDepth:g},m),x=b.nodes,O=b.links;return{nodes:x.map((function(t){return Object(s.__assign)(Object(s.__assign)({},Tf(t,Object(s.__spreadArray)(["x","y","name"],v,!0))),{isNode:!0})})),edges:O.map((function(t){return Object(s.__assign)(Object(s.__assign)({source:t.source.name,target:t.target.name,name:t.source.name||t.target.name},Tf(t,Object(s.__spreadArray)(["x","y","value"],v,!0))),{isNode:!1})}))}}function Aw(t){var e,n=t.options.rawFields,r=void 0===n?[]:n;return Yf({},{options:{tooltip:{fields:Object(c.ub)(Object(s.__spreadArray)(["name","source","target","value","isNode"],r,!0))},label:{fields:Object(c.ub)(Object(s.__spreadArray)(["x","name"],r,!0))}}},t)}function kw(t){var e=t.chart,n=t.options,r=n.color,i=n.nodeStyle,o=n.edgeStyle,a=n.label,c=n.tooltip,l=n.nodeState,u=n.edgeState,h=n.rawFields,f=void 0===h?[]:h;e.legend(!1),e.tooltip(c),e.axis(!1),e.coordinate().reflect("y");var p=Cw(n,e.width,e.height),d=p.nodes,g=p.edges,y=e.createView({id:"edges"});y.data(g),id({chart:y,options:{xField:"x",yField:"y",seriesField:"name",rawFields:Object(s.__spreadArray)(["source","target"],f,!0),edge:{color:r,style:o,shape:"arc"},tooltip:c,state:u}});var v=e.createView({id:"nodes"});return v.data(d),ld({chart:v,options:{xField:"x",yField:"y",seriesField:"name",polygon:{color:r,style:i},label:a,tooltip:c,state:l}}),e.interaction("element-active"),e.scale({x:{sync:!0,nice:!0,min:0,max:1,minLimit:0,maxLimit:1},y:{sync:!0,nice:!0,min:0,max:1,minLimit:0,maxLimit:1},name:{sync:"color",type:"cat"}}),t}function Tw(t){var e=t.chart,n,r,i;return yp(e,t.options.animation,Object(s.__spreadArray)(Object(s.__spreadArray)([],e.views[0].geometries,!0),e.views[1].geometries,!0)),t}function Ew(t){var e=t.chart,n,r,i="sankey-node-draggable";return t.options.nodeDraggable?e.interaction(i):e.removeInteraction(i),t}function Pw(t){var e=t.chart,n=t.options,r=n.interactions,i=void 0===r?[]:r,o=[].concat(i,n.nodeInteractions||[]),a=[].concat(i,n.edgeInteractions||[]),s=pp(e,"nodes"),c=pp(e,"edges");return o.forEach((function(t){!1===(null==t?void 0:t.enable)?s.removeInteraction(t.type):s.interaction(t.type,t.cfg||{})})),a.forEach((function(t){!1===(null==t?void 0:t.enable)?c.removeInteraction(t.type):c.interaction(t.type,t.cfg||{})})),t}function Iw(t){return Vf(Aw,kw,Pw,Ew,Tw,Rp)(t)}Oe("sankey-node-drag",function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isDragging=!1,e}return Object(s.__extends)(e,t),e.prototype.isNodeElement=function(){var t=Object(c.s)(this.context,"event.target");if(t){var e=t.get("element");return e&&e.getModel().data.isNode}return!1},e.prototype.getNodeView=function(){return pp(this.context.view,"nodes")},e.prototype.getEdgeView=function(){return pp(this.context.view,"edges")},e.prototype.getCurrentDatumIdx=function(t){return this.getNodeView().geometries[0].elements.indexOf(t)},e.prototype.start=function(){if(this.isNodeElement()){this.prevPoint={x:Object(c.s)(this.context,"event.x"),y:Object(c.s)(this.context,"event.y")};var t=this.context.event.target.get("element"),e=this.getCurrentDatumIdx(t);if(-1===e)return;this.currentElementIdx=e,this.context.isDragging=!0,this.isDragging=!0,this.prevNodeAnimateCfg=this.getNodeView().getOptions().animate,this.prevEdgeAnimateCfg=this.getEdgeView().getOptions().animate,this.getNodeView().animate(!1),this.getEdgeView().animate(!1)}},e.prototype.translate=function(){if(this.isDragging){var t=this.context.view,e={x:Object(c.s)(this.context,"event.x"),y:Object(c.s)(this.context,"event.y")},n=e.x-this.prevPoint.x,r=e.y-this.prevPoint.y,i=this.getNodeView(),o=i.geometries[0].elements[this.currentElementIdx];if(o&&o.getModel()){var a=o.getModel().data,l=i.getOptions().data,u=i.getCoordinate(),h={x:n/u.getWidth(),y:r/u.getHeight()},f=Object(s.__assign)(Object(s.__assign)({},a),{x:a.x.map((function(t){return t+h.x})),y:a.y.map((function(t){return t+h.y}))}),p=Object(s.__spreadArray)([],l,!0);p[this.currentElementIdx]=f,i.data(p);var d=a.name,g=this.getEdgeView(),y=g.getOptions().data;y.forEach((function(t){t.source===d&&(t.x[0]+=h.x,t.x[1]+=h.x,t.y[0]+=h.y,t.y[1]+=h.y),t.target===d&&(t.x[2]+=h.x,t.x[3]+=h.x,t.y[2]+=h.y,t.y[3]+=h.y)})),g.data(y),this.prevPoint=e,t.render(!0)}}},e.prototype.end=function(){this.isDragging=!1,this.context.isDragging=!1,this.prevPoint=null,this.currentElementIdx=null,this.getNodeView().animate(this.prevNodeAnimateCfg),this.getEdgeView().animate(this.prevEdgeAnimateCfg)},e}(ge)),Fn("sankey-node-draggable",{showEnable:[{trigger:"polygon:mouseenter",action:"cursor:pointer"},{trigger:"polygon:mouseleave",action:"cursor:default"}],start:[{trigger:"polygon:mousedown",action:"sankey-node-drag:start"}],processing:[{trigger:"plot:mousemove",action:"sankey-node-drag:translate"},{isEnable:function(t){return t.isDragging},trigger:"plot:mousemove",action:"cursor:move"}],end:[{trigger:"plot:mouseup",action:"sankey-node-drag:end"}]});var Fw=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="sankey",e}return Object(s.__extends)(e,t),e.getDefaultOptions=function(){return{appendPadding:8,syncViewPadding:!0,nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.3,lineWidth:0},edgeState:{active:{style:{opacity:.8,lineWidth:0}}},label:{formatter:function(t){var e;return t.name},callback:function(t){var e=1===t[1];return{style:{fill:"#545454",textAlign:e?"end":"start"},offsetX:e?-8:8}},layout:[{type:"hide-overlap"}]},tooltip:{showTitle:!1,showMarkers:!1,shared:!1,showContent:function(t){return!Object(c.s)(t,[0,"data","isNode"])},formatter:function(t){var e,n,r;return{name:t.source+" -> "+t.target,value:t.value}}},nodeWidthRatio:.008,nodePaddingRatio:.01,animation:{appear:{animation:"wave-in"},enter:{animation:"wave-in"}}}},e.prototype.changeData=function(t){this.updateOption({data:t});var e=Cw(this.options,this.chart.width,this.chart.height),n=e.nodes,r=e.edges,i=pp(this.chart,"nodes"),o=pp(this.chart,"edges");i.changeData(n),o.changeData(r)},e.prototype.getSchemaAdaptor=function(){return Iw},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(gd),Lw="ancestor-node",Bw="value",Dw="path",Rw=["path","nodeIndex","nodeAncestor","childNodeCount","name","depth","height"],Nw=Yf({},gd.getDefaultOptions(),{innerRadius:0,radius:.85,hierarchyConfig:{field:"value"},tooltip:{shared:!0,showMarkers:!1,offset:20,showTitle:!1},legend:!1,sunburstStyle:{lineWidth:.5,stroke:"#FFF"},drilldown:{enabled:!0}}),zw=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)},Yw=function(t,e,n,r,i){for(var o=t.children,a,s=-1,c=o.length,l=t.value&&(r-e)/t.value;++s<c;)(a=o[s]).y0=n,a.y1=i,a.x0=e,a.x1=e+=a.value*l},Gw=function(){var t=1,e=1,n=0,r=!1;function i(i){var a=i.height+1;return i.x0=i.y0=n,i.x1=t,i.y1=e/a,i.eachBefore(o(e,a)),r&&i.eachBefore(zw),i}function o(t,e){return function(r){r.children&&Yw(r,r.x0,t*(r.depth+1)/e,r.x1,t*(r.depth+2)/e);var i=r.x0,o=r.y0,a=r.x1-n,s=r.y1-n;a<i&&(i=a=(i+a)/2),s<o&&(o=s=(o+s)/2),r.x0=i,r.y0=o,r.x1=a,r.y1=s}}return i.round=function(t){return arguments.length?(r=!!t,i):r},i.size=function(n){return arguments.length?(t=+n[0],e=+n[1],i):[t,e]},i.padding=function(t){return arguments.length?(n=+t,i):n},i},Hw={field:"value",size:[1,1],round:!1,padding:0,sort:function(t,e){return e.value-t.value},as:["x","y"],ignoreParentValue:!0};function Vw(t,e){var n=(e=Object(c.b)({},Hw,e)).as,r;if(!Object(c.C)(n)||2!==n.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{r=Yx(e)}catch(t){console.warn(t)}var i,o=function(t){return Gw().size(e.size).round(e.round).padding(e.padding)(Tx(t).sum((function(t){return Object(c.mb)(t.children)?e.ignoreParentValue?0:t[r]-Object(c.ib)(t.children,(function(t,e){return t+e[r]}),0):t[r]})).sort(e.sort))}(t),a=n[0],s=n[1];return o.each((function(t){var e,r;t[a]=[t.x0,t.x1,t.x1,t.x0],t[s]=[t.y1,t.y1,t.y0,t.y0],t.name=t.name||(null===(e=t.data)||void 0===e?void 0:e.name)||(null===(r=t.data)||void 0===r?void 0:r.label),t.data.name=t.name,["x0","x1","y0","y1"].forEach((function(e){-1===n.indexOf(e)&&delete t[e]}))})),Gx(o)}function Ww(t,e){return t.parent===e.parent?1:2}function Xw(t){return t.reduce($w,0)/t.length}function $w(t,e){return t+e.x}function qw(t){return 1+t.reduce(Uw,0)}function Uw(t,e){return Math.max(t,e.y)}function Kw(t){for(var e;e=t.children;)t=e[0];return t}function Zw(t){for(var e;e=t.children;)t=e[e.length-1];return t}var Qw=function(){var t=Ww,e=1,n=1,r=!1;function i(i){var o,a=0;i.eachAfter((function(e){var n=e.children;n?(e.x=Xw(n),e.y=qw(n)):(e.x=o?a+=t(e,o):0,e.y=0,o=e)}));var s=Kw(i),c=Zw(i),l=s.x-t(s,c)/2,u=c.x+t(c,s)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*e,t.y=(i.y-t.y)*n}:function(t){t.x=(t.x-l)/(u-l)*e,t.y=(1-(i.y?t.y/i.y:1))*n})}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i},Jw={depth:-1},t_={};function e_(t){return t.id}function n_(t){return t.parentId}var r_=function(){var t=e_,e=n_;function n(n){var r=Array.from(n),i=r.length,o,a,s,c,l,u,h,f=new Map;for(a=0;a<i;++a)o=r[a],l=r[a]=new Bx(o),null!=(u=t(o,a,n))&&(u+="")&&(h=l.id=u,f.set(h,f.has(h)?t_:l)),null!=(u=e(o,a,n))&&(u+="")&&(l.parent=u);for(a=0;a<i;++a)if(u=(l=r[a]).parent){if(!(c=f.get(u)))throw new Error("missing: "+u);if(c===t_)throw new Error("ambiguous: "+u);c.children?c.children.push(l):c.children=[l],l.parent=c}else{if(s)throw new Error("multiple roots");s=l}if(!s)throw new Error("no root");if(s.parent=Jw,s.eachBefore((function(t){t.depth=t.parent.depth+1,--i})).eachBefore(Lx),s.parent=null,i>0)throw new Error("cycle");return s}return n.id=function(e){return arguments.length?(t=sx(e),n):t},n.parentId=function(t){return arguments.length?(e=sx(t),n):e},n};function i_(t,e){return t.parent===e.parent?1:2}function o_(t){var e=t.children;return e?e[0]:t.t}function a_(t){var e=t.children;return e?e[e.length-1]:t.t}function s_(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function c_(t){for(var e=0,n=0,r=t.children,i=r.length,o;--i>=0;)(o=r[i]).z+=e,o.m+=e,e+=o.s+(n+=o.c)}function l_(t,e,n){return t.a.parent===e.parent?t.a:n}function u_(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function h_(t){for(var e=new u_(t,0),n,r=[e],i,o,a,s;n=r.pop();)if(o=n._.children)for(n.children=new Array(s=o.length),a=s-1;a>=0;--a)r.push(i=n.children[a]=new u_(o[a],a)),i.parent=n;return(e.parent=new u_(null,0)).children=[e],e}u_.prototype=Object.create(Bx.prototype);var f_=function(){var t=i_,e=1,n=1,r=null;function i(i){var s=h_(i);if(s.eachAfter(o),s.parent.m=-s.z,s.eachBefore(a),r)i.eachBefore(c);else{var l=i,u=i,h=i;i.eachBefore((function(t){t.x<l.x&&(l=t),t.x>u.x&&(u=t),t.depth>h.depth&&(h=t)}));var f=l===u?1:t(l,u)/2,p=f-l.x,d=e/(u.x+f+p),g=n/(h.depth||1);i.eachBefore((function(t){t.x=(t.x+p)*d,t.y=t.depth*g}))}return i}function o(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){c_(e);var o=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-o):e.z=o}else i&&(e.z=i.z+t(e._,i._));e.parent.A=s(e,i,e.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(e,n,r){if(n){for(var i=e,o=e,a=n,s=i.parent.children[0],c=i.m,l=o.m,u=a.m,h=s.m,f;a=a_(a),i=o_(i),a&&i;)s=o_(s),(o=a_(o)).a=e,(f=a.z+u-i.z-c+t(a._,i._))>0&&(s_(l_(a,e,r),e,f),c+=f,l+=f),u+=a.m,c+=i.m,h+=s.m,l+=o.m;a&&!a_(o)&&(o.t=a,o.m+=u-l),i&&!o_(s)&&(s.t=i,s.m+=c-h,r=e)}return r}function c(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i},p_=function(t,e,n,r,i){for(var o=t.children,a,s=-1,c=o.length,l=t.value&&(i-n)/t.value;++s<c;)(a=o[s]).x0=e,a.x1=r,a.y0=n,a.y1=n+=a.value*l},d_=(1+Math.sqrt(5))/2;function g_(t,e,n,r,i,o){for(var a=[],s=e.children,c,l,u=0,h=0,f=s.length,p,d,g=e.value,y,v,m,b,x,O,j;u<f;){p=i-n,d=o-r;do{y=s[h++].value}while(!y&&h<f);for(v=m=y,j=y*y*(O=Math.max(d/p,p/d)/(g*t)),x=Math.max(m/j,j/v);h<f;++h){if(y+=l=s[h].value,l<v&&(v=l),l>m&&(m=l),j=y*y*O,(b=Math.max(m/j,j/v))>x){y-=l;break}x=b}a.push(c={value:y,dice:p<d,children:s.slice(u,h)}),c.dice?Yw(c,n,r,i,g?r+=d*y/g:o):p_(c,n,r,g?n+=p*y/g:i,o),g-=y,u=h}return a}var y_=function t(e){function n(t,n,r,i,o){g_(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(d_),v_=function(){var t=y_,e=!1,n=1,r=1,i=[0],o=cx,a=cx,s=cx,c=cx,l=cx;function u(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(h),i=[0],e&&t.eachBefore(zw),t}function h(e){var n=i[e.depth],r=e.x0+n,u=e.y0+n,h=e.x1-n,f=e.y1-n;h<r&&(r=h=(r+h)/2),f<u&&(u=f=(u+f)/2),e.x0=r,e.y0=u,e.x1=h,e.y1=f,e.children&&(n=i[e.depth+1]=o(e)/2,r+=l(e)-n,u+=a(e)-n,(h-=s(e)-n)<r&&(r=h=(r+h)/2),(f-=c(e)-n)<u&&(u=f=(u+f)/2),t(e,r,u,h,f))}return u.round=function(t){return arguments.length?(e=!!t,u):e},u.size=function(t){return arguments.length?(n=+t[0],r=+t[1],u):[n,r]},u.tile=function(e){return arguments.length?(t=sx(e),u):t},u.padding=function(t){return arguments.length?u.paddingInner(t).paddingOuter(t):u.paddingInner()},u.paddingInner=function(t){return arguments.length?(o="function"==typeof t?t:lx(+t),u):o},u.paddingOuter=function(t){return arguments.length?u.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):u.paddingTop()},u.paddingTop=function(t){return arguments.length?(a="function"==typeof t?t:lx(+t),u):a},u.paddingRight=function(t){return arguments.length?(s="function"==typeof t?t:lx(+t),u):s},u.paddingBottom=function(t){return arguments.length?(c="function"==typeof t?t:lx(+t),u):c},u.paddingLeft=function(t){return arguments.length?(l="function"==typeof t?t:lx(+t),u):l},u},m_=function(t,e,n,r,i){var o=t.children,a,s=o.length,c,l=new Array(s+1);for(l[0]=c=a=0;a<s;++a)l[a+1]=c+=o[a].value;function u(t,e,n,r,i,a,s){if(t>=e-1){var c=o[t];return c.x0=r,c.y0=i,c.x1=a,void(c.y1=s)}for(var h=l[t],f=n/2+h,p=t+1,d=e-1;p<d;){var g=p+d>>>1;l[g]<f?p=g+1:d=g}f-l[p-1]<l[p]-f&&t+1<p&&--p;var y=l[p]-h,v=n-y;if(a-r>s-i){var m=n?(r*v+a*y)/n:a;u(t,p,y,r,i,m,s),u(p,e,v,m,i,a,s)}else{var b=n?(i*v+s*y)/n:s;u(t,p,y,r,i,a,b),u(p,e,v,r,b,a,s)}}u(0,s,t.value,e,n,r,i)},b_=function(t,e,n,r,i){(1&t.depth?p_:Yw)(t,e,n,r,i)},x_=function t(e){function n(t,n,r,i,o){if((a=t._squarify)&&a.ratio===e)for(var a,s,c,l,u=-1,h,f=a.length,p=t.value;++u<f;){for(c=(s=a[u]).children,l=s.value=0,h=c.length;l<h;++l)s.value+=c[l].value;s.dice?Yw(s,n,r,i,p?r+=(o-r)*s.value/p:o):p_(s,n,r,p?n+=(i-n)*s.value/p:i,o),p-=s.value}else t._squarify=a=g_(e,t,n,r,i,o),a.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(d_),O_={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"],sort:function(t,e){return e.value-t.value},ratio:.5*(1+Math.sqrt(5))};function j_(t,e){return"treemapSquarify"===t?i[t].ratio(e):i[t]}function w_(t,e){var n=(e=Object(c.b)({},O_,e)).as,r;if(!Object(c.C)(n)||2!==n.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{r=Yx(e)}catch(t){console.warn(t)}var i=j_(e.tile,e.ratio),o,a=function(t){return v_().tile(i).size(e.size).round(e.round).padding(e.padding).paddingInner(e.paddingInner).paddingOuter(e.paddingOuter).paddingTop(e.paddingTop).paddingRight(e.paddingRight).paddingBottom(e.paddingBottom).paddingLeft(e.paddingLeft)(Tx(t).sum((function(t){return e.ignoreParentValue&&t.children?0:t[r]})).sort(e.sort))}(t),s=n[0],l=n[1];return a.each((function(t){t[s]=[t.x0,t.x1,t.x1,t.x0],t[l]=[t.y1,t.y1,t.y0,t.y0],["x0","x1","y0","y1"].forEach((function(e){-1===n.indexOf(e)&&delete t[e]}))})),Gx(a)}function __(t){var e=t.data,n=t.colorField,r=t.rawFields,i=t.hierarchyConfig,o=void 0===i?{}:i,a=o.activeDepth,l={partition:Vw,treemap:w_},u=t.seriesField,h=t.type||"partition",f=l[h](e,Object(s.__assign)(Object(s.__assign)({field:u||"value"},Object(c.gb)(o,["activeDepth"])),{type:"hierarchy.".concat(h),as:["x","y"]})),p=[];return f.forEach((function(t){var e,i,c,l,h,f;if(0===t.depth)return null;if(a>0&&t.depth>a)return null;for(var d=t.data.name,g=Object(s.__assign)({},t);g.depth>1;)d="".concat(null===(i=g.parent.data)||void 0===i?void 0:i.name," / ").concat(d),g=g.parent;var y=Object(s.__assign)(Object(s.__assign)(Object(s.__assign)({},Tf(t.data,Object(s.__spreadArray)(Object(s.__spreadArray)([],r||[],!0),[o.field],!1))),((e={}).path=d,e["ancestor-node"]=g.data.name,e)),t);u&&(y[u]=t.data[u]||(null===(l=null===(c=t.parent)||void 0===c?void 0:c.data)||void 0===l?void 0:l[u])),n&&(y[n]=t.data[n]||(null===(f=null===(h=t.parent)||void 0===h?void 0:h.data)||void 0===f?void 0:f[n])),y.ext=o,y[Yb]={hierarchyConfig:o,colorField:n,rawFields:r},p.push(y)})),p}function M_(t){var e=t.chart,n=t.options,r=n.color,i=n.colorField,o=void 0===i?"ancestor-node":i,a=n.sunburstStyle,l=n.rawFields,u=void 0===l?[]:l,h=n.shape,f=__(n),p;return e.data(f),a&&(p=function(t){return Yf({},{fillOpacity:Math.pow(.85,t.depth)},Object(c.I)(a)?a(t):a)}),ld(Yf({},t,{options:{xField:"x",yField:"y",seriesField:o,rawFields:Object(c.ub)(Object(s.__spreadArray)(Object(s.__spreadArray)([],Rw,!0),u,!0)),polygon:{color:r,style:p,shape:h}}})),t}function S_(t){var e;return t.chart.axis(!1),t}function C_(t){var e=t.chart,n,r=t.options.label,i=Wf(e,"polygon");if(r){var o=r.fields,a=void 0===o?["name"]:o,c=r.callback,l=Object(s.__rest)(r,["fields","callback"]);i.label({fields:a,callback:c,cfg:Kf(l)})}else i.label(!1);return t}function A_(t){var e=t.chart,n=t.options,r=n.innerRadius,i=n.radius,o=n.reflect,a=e.coordinate({type:"polar",cfg:{innerRadius:r,radius:i}});return o&&a.reflect(o),t}function k_(t){var e,n=t.options,r=n.hierarchyConfig,i=n.meta;return Vf(Gp({},((e={}).value=Object(c.s)(i,Object(c.s)(r,["field"],"value")),e)))(t)}function T_(t){var e=t.chart,n,r=t.options.tooltip;if(!1===r)e.tooltip(!1);else{var i=r;Object(c.s)(r,"fields")||(i=Yf({},{customItems:function(t){return t.map((function(t){var n=Object(c.s)(e.getOptions(),"scales"),r=Object(c.s)(n,["path","formatter"],(function(t){return t})),i=Object(c.s)(n,["value","formatter"],(function(t){return t}));return Object(s.__assign)(Object(s.__assign)({},t),{name:r(t.data.path),value:i(t.data.value)})}))}},i)),e.tooltip(i)}return t}function E_(t){var e=t.drilldown,n=t.interactions,r=void 0===n?[]:n;return(null==e?void 0:e.enabled)?Yf({},t,{interactions:Object(s.__spreadArray)(Object(s.__spreadArray)([],r,!0),[{type:"drill-down",cfg:{drillDownConfig:e,transformData:__}}],!1)}):t}function P_(t){var e=t.chart,n=t.options,r=n.drilldown;return Bp({chart:e,options:E_(n)}),(null==r?void 0:r.enabled)&&(e.appendPadding=np(e.appendPadding,Object(c.s)(r,["breadCrumb","position"]))),t}function I_(t){return Vf(Rp,Ip("sunburstStyle"),M_,S_,k_,Fp,A_,T_,C_,P_,Dp,Hp())(t)}var F_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="sunburst",e}return Object(s.__extends)(e,t),e.getDefaultOptions=function(){return Nw},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return I_},e.SUNBURST_ANCESTOR_FIELD="ancestor-node",e.SUNBURST_PATH_FIELD="path",e.NODE_ANCESTORS_FIELD="nodeAncestor",e}(gd);function L_(t,e){if(Object(c.C)(t))return t.find((function(t){return t.type===e}))}function B_(t,e){var n=L_(t,e);return n&&!1!==n.enable}function D_(t){var e=t.interactions,n=t.drilldown;return Object(c.s)(n,"enabled")||B_(e,"treemap-drill-down")}function R_(t){var e=t.interactions["drill-down"],n;e&&e.context.actions.find((function(t){return"drill-down-action"===t.name})).reset()}function N_(t){var e=t.data,n=t.colorField,r=t.enableDrillDown,i=t.hierarchyConfig,o=w_(e,Object(s.__assign)(Object(s.__assign)({},i),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),a=[];return o.forEach((function(t){if(0===t.depth)return null;if(r&&1!==t.depth)return null;if(!r&&t.children)return null;var o=t.ancestors().map((function(t){return{data:t.data,height:t.height,value:t.value}})),l=r&&Object(c.C)(e.path)?o.concat(e.path.slice(1)):o,u=Object.assign({},t.data,Object(s.__assign)({x:t.x,y:t.y,depth:t.depth,value:t.value,path:l},t));if(!t.data[n]&&t.parent){var h=t.ancestors().find((function(t){return t.data[n]}));u[n]=null==h?void 0:h.data[n]}else u[n]=t.data[n];u[Yb]={hierarchyConfig:i,colorField:n,enableDrillDown:r},a.push(u)})),a}function z_(t){var e,n=t.options.colorField;return Yf({options:{rawFields:["value"],tooltip:{fields:["name","value",n,"path"],formatter:function(t){return{name:t.name,value:t.value}}}}},t)}function Y_(t){var e=t.chart,n=t.options,r=n.color,i=n.colorField,o=n.rectStyle,a=n.hierarchyConfig,s=n.rawFields,c=N_({data:n.data,colorField:n.colorField,enableDrillDown:D_(n),hierarchyConfig:a});return e.data(c),ld(Yf({},t,{options:{xField:"x",yField:"y",seriesField:i,rawFields:s,polygon:{color:r,style:o}}})),e.coordinate().reflect("y"),t}function G_(t){var e;return t.chart.axis(!1),t}function H_(t){var e=t.drilldown,n=t.interactions,r=void 0===n?[]:n,i;return D_(t)?Yf({},t,{interactions:Object(s.__spreadArray)(Object(s.__spreadArray)([],r,!0),[{type:"drill-down",cfg:{drillDownConfig:e,transformData:N_}}],!1)}):t}function V_(t){var e=t.chart,n=t.options,r=n.interactions,i=n.drilldown;Bp({chart:e,options:H_(n)});var o=L_(r,"view-zoom"),a;return o&&(!1!==o.enable?e.getCanvas().on("mousewheel",(function(t){t.preventDefault()})):e.getCanvas().off("mousewheel")),D_(n)&&(e.appendPadding=np(e.appendPadding,Object(c.s)(i,["breadCrumb","position"]))),t}function W_(t){return Vf(z_,Rp,Ip("rectStyle"),Y_,G_,Fp,Lp,V_,Dp,Hp())(t)}var X_={colorField:"name",rectStyle:{lineWidth:1,stroke:"#fff"},hierarchyConfig:{tile:"treemapSquarify"},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1,breadCrumb:{position:"bottom-left",rootText:"\u521d\u59cb",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}}}},$_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="treemap",e}return Object(s.__extends)(e,t),e.getDefaultOptions=function(){return X_},e.prototype.changeData=function(t){var e=this.options,n=e.colorField,r=e.interactions,i=e.hierarchyConfig;this.updateOption({data:t});var o=N_({data:t,colorField:n,enableDrillDown:B_(r,"treemap-drill-down"),hierarchyConfig:i});this.chart.changeData(o),R_(this.chart)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return W_},e}(gd),q_="id",U_="path",K_={appendPadding:[10,0,20,0],blendMode:"multiply",tooltip:{showTitle:!1,showMarkers:!1,fields:["id","size"],formatter:function(t){return{name:t.id,value:t.size}}},legend:{position:"top-left"},label:{style:{textAlign:"center",fill:"#fff"}},interactions:[{type:"legend-filter",enable:!1}],state:{active:{style:{stroke:"#000"}},selected:{style:{stroke:"#000",lineWidth:2}},inactive:{style:{fillOpacity:.3,strokeOpacity:.3}}},defaultInteractions:["tooltip","venn-legend-active"]};function Z_(t){var e;t&&t.geometries[0].elements.forEach((function(t){t.shape.toFront()}))}var Q_,J_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.syncElementsPos=function(){Z_(this.context.view)},e.prototype.active=function(){t.prototype.active.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(xe("element-active")),tM,eM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.syncElementsPos=function(){Z_(this.context.view)},e.prototype.highlight=function(){t.prototype.highlight.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.clear=function(){t.prototype.clear.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(xe("element-highlight")),nM=xe("element-selected"),rM=xe("element-single-selected"),iM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.syncElementsPos=function(){Z_(this.context.view)},e.prototype.selected=function(){t.prototype.selected.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(nM),oM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.syncElementsPos=function(){Z_(this.context.view)},e.prototype.selected=function(){t.prototype.selected.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(rM),aM;Oe("venn-element-active",J_),Oe("venn-element-highlight",eM),Oe("venn-element-selected",iM),Oe("venn-element-single-selected",oM),Fn("venn-element-active",{start:[{trigger:"element:mouseenter",action:"venn-element-active:active"}],end:[{trigger:"element:mouseleave",action:"venn-element-active:reset"}]}),Fn("venn-element-highlight",{start:[{trigger:"element:mouseenter",action:"venn-element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"venn-element-highlight:reset"}]}),Fn("venn-element-selected",{start:[{trigger:"element:click",action:"venn-element-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-selected:reset"]}]}),Fn("venn-element-single-selected",{start:[{trigger:"element:click",action:"venn-element-single-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-single-selected:reset"]}]}),Fn("venn-legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","venn-element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","venn-element-active:reset"]}]}),Fn("venn-legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","venn-element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","venn-element-highlight:reset"]}]}),pi("venn",function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.getLabelPoint=function(t,e,n){var r=t.data,i=r.x,o=r.y,a=t.customLabelInfo,s=a.offsetX,c=a.offsetY;return{content:t.content[n],x:i+s,y:o+c}},e}(Hi));var sM,cM=Array.isArray,lM=n(28),uM,hM=lM.a.Symbol,fM=Object.prototype,pM=fM.hasOwnProperty,dM=fM.toString,gM=hM?hM.toStringTag:void 0;function yM(t){var e=pM.call(t,gM),n=t[gM];try{t[gM]=void 0;var r=!0}catch(t){}var i=dM.call(t);return r&&(e?t[gM]=n:delete t[gM]),i}var vM=yM,mM,bM=Object.prototype.toString;function xM(t){return bM.call(t)}var OM=xM,jM="[object Null]",wM="[object Undefined]",_M=hM?hM.toStringTag:void 0;function MM(t){return null==t?void 0===t?wM:jM:_M&&_M in Object(t)?vM(t):OM(t)}var SM=MM;function CM(t){return null!=t&&"object"==typeof t}var AM=CM,kM="[object String]";function TM(t){return"string"==typeof t||!cM(t)&&AM(t)&&SM(t)==kM}var EM=TM;function PM(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}var IM=PM;function FM(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var c=a[t?s:++i];if(!1===n(o[c],c,o))break}return e}}var LM,BM,DM=FM();function RM(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var NM=RM,zM="[object Arguments]";function YM(t){return AM(t)&&SM(t)==zM}var GM=YM,HM=Object.prototype,VM=HM.hasOwnProperty,WM=HM.propertyIsEnumerable,XM,$M=GM(function(){return arguments}())?GM:function(t){return AM(t)&&VM.call(t,"callee")&&!WM.call(t,"callee")},qM=n(118),UM=9007199254740991,KM=/^(?:0|[1-9]\d*)$/;function ZM(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&KM.test(t))&&t>-1&&t%1==0&&t<e}var QM=ZM,JM=9007199254740991;function tS(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}var eS=tS,nS="[object Arguments]",rS="[object Array]",iS="[object Boolean]",oS="[object Date]",aS="[object Error]",sS="[object Function]",cS="[object Map]",lS="[object Number]",uS="[object Object]",hS="[object RegExp]",fS="[object Set]",pS="[object String]",dS="[object WeakMap]",gS="[object ArrayBuffer]",yS="[object DataView]",vS,mS="[object Float64Array]",bS="[object Int8Array]",xS="[object Int16Array]",OS="[object Int32Array]",jS="[object Uint8Array]",wS="[object Uint8ClampedArray]",_S="[object Uint16Array]",MS="[object Uint32Array]",SS={};function CS(t){return AM(t)&&eS(t.length)&&!!SS[SM(t)]}SS["[object Float32Array]"]=SS[mS]=SS[bS]=SS[xS]=SS[OS]=SS[jS]=SS[wS]=SS[_S]=SS[MS]=!0,SS["[object Arguments]"]=SS[rS]=SS[gS]=SS[iS]=SS[yS]=SS[oS]=SS[aS]=SS[sS]=SS[cS]=SS[lS]=SS[uS]=SS[hS]=SS[fS]=SS["[object String]"]=SS[dS]=!1;var AS=CS;function kS(t){return function(e){return t(e)}}var TS=kS,ES=n(231),PS=ES.a&&ES.a.isTypedArray,IS,FS=PS?TS(PS):AS,LS,BS=Object.prototype.hasOwnProperty;function DS(t,e){var n=cM(t),r=!n&&$M(t),i=!n&&!r&&Object(qM.a)(t),o=!n&&!r&&!i&&FS(t),a=n||r||i||o,s=a?NM(t.length,String):[],c=s.length;for(var l in t)!e&&!BS.call(t,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||QM(l,c))||s.push(l);return s}var RS=DS,NS=Object.prototype;function zS(t){var e=t&&t.constructor,n;return t===("function"==typeof e&&e.prototype||NS)}var YS=zS;function GS(t,e){return function(n){return t(e(n))}}var HS,VS,WS=GS(Object.keys,Object),XS,$S=Object.prototype.hasOwnProperty;function qS(t){if(!YS(t))return WS(t);var e=[];for(var n in Object(t))$S.call(t,n)&&"constructor"!=n&&e.push(n);return e}var US=qS;function KS(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var ZS=KS,QS="[object AsyncFunction]",JS="[object Function]",tC="[object GeneratorFunction]",eC="[object Proxy]";function nC(t){if(!ZS(t))return!1;var e=SM(t);return e==JS||e==tC||e==QS||e==eC}var rC=nC;function iC(t){return null!=t&&eS(t.length)&&!rC(t)}var oC=iC;function aC(t){return oC(t)?RS(t):US(t)}var sC=aC,cC;function lC(t,e){return t&&DM(t,e,sC)}function uC(t,e){return function(n,r){if(null==n)return n;if(!oC(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=Object(n);(e?o--:++o<i)&&!1!==r(a[o],o,a););return n}}var hC,fC,pC=uC(lC);function dC(t){return t}var gC=dC;function yC(t){return"function"==typeof t?t:gC}var vC=yC;function mC(t,e){var n;return(cM(t)?IM:pC)(t,vC(e))}var bC=mC,xC=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,OC=/[^\s\,]+/gi;function jC(t){var e=t||[];return cM(e)?e:EM(e)?(e=e.match(xC),bC(e,(function(t,n){if((t=t.match(OC))[0].length>1){var r=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=r}bC(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}var wC=jC,_C=n(9);function MC(t,e,n,r){var i=[],o=!!r,a,s,c,l,u,h,f;if(o){c=r[0],l=r[1];for(var p=0,d=t.length;p<d;p+=1){var g=t[p];c=_C.b.min([0,0],c,g),l=_C.b.max([0,0],l,g)}}for(var p=0,y=t.length;p<y;p+=1){var g=t[p];if(0!==p||n)if(p!==y-1||n){var v;a=t[[p?p-1:y-1,p-1][n?0:1]],s=t[n?(p+1)%y:p+1];var m=[0,0];m=_C.b.sub(m,s,a),m=_C.b.scale(m,m,e);var b=_C.b.distance(g,a),x=_C.b.distance(g,s),O=b+x;0!==O&&(b/=O,x/=O);var j=_C.b.scale([0,0],m,-b),w=_C.b.scale([0,0],m,x);h=_C.b.add([0,0],g,j),u=_C.b.add([0,0],g,w),u=_C.b.min([0,0],u,_C.b.max([0,0],s,g)),u=_C.b.max([0,0],u,_C.b.min([0,0],s,g)),j=_C.b.sub([0,0],u,g),j=_C.b.scale([0,0],j,-b/x),h=_C.b.add([0,0],g,j),h=_C.b.min([0,0],h,_C.b.max([0,0],a,g)),h=_C.b.max([0,0],h,_C.b.min([0,0],a,g)),w=_C.b.sub([0,0],g,h),w=_C.b.scale([0,0],w,x/b),u=_C.b.add([0,0],g,w),o&&(h=_C.b.max([0,0],h,c),h=_C.b.min([0,0],h,l),u=_C.b.max([0,0],u,c),u=_C.b.min([0,0],u,l)),i.push(f),i.push(h),f=u}else h=g,i.push(f),i.push(h);else f=g}return n&&i.push(i.shift()),i}function SC(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=[[0,0],[1,1]]);for(var r=!!e,i=[],o=0,a=t.length;o<a;o+=2)i.push([t[o],t[o+1]]);for(var s=MC(i,.4,r,n),c=i.length,l=[],u,h,f,o=0;o<c-1;o+=1)u=s[2*o],h=s[2*o+1],f=i[o+1],l.push(["C",u[0],u[1],h[0],h[1],f[0],f[1]]);return r&&(u=s[c],h=s[c+1],f=i[0],l.push(["C",u[0],u[1],h[0],h[1],f[0],f[1]])),l}var CC=SC;function AC(t,e){var n=[],r=[];function i(t,e){if(1===t.length)n.push(t[0]),r.push(t[0]);else{for(var o=[],a=0;a<t.length-1;a++)0===a&&n.push(t[0]),a===t.length-2&&r.push(t[a+1]),o[a]=[(1-e)*t[a][0]+e*t[a+1][0],(1-e)*t[a][1]+e*t[a+1][1]];i(o,e)}}return t.length&&i(t,e),{left:n,right:r.reverse()}}function kC(t,e,n){var r=[[t[1],t[2]]];n=n||2;var i=[],o;"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,s=1/n,c=0;c<n-1;c++){var l,u=AC(a,s/(1-s*c));i.push(u.left),a=u.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])}))}function TC(t,e,n){if(1===n)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(kC(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var o=0;o<=n-1;o++)r.push(i)}return r}function EC(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a<r-n;a++)t.push(t[0]);return t}for(var a=0;a<r;a++){var s=Math.floor(i*a);o[s]=(o[s]||0)+1}var c=o.reduce((function(e,r,i){return i===n?e.concat(t[n]):e.concat(TC(t[i],t[i+1],r))}),[]);return c.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||c.push("Z"),c}function PC(){this.__data__=[],this.size=0}var IC=PC;function FC(t,e){return t===e||t!=t&&e!=e}var LC=FC;function BC(t,e){for(var n=t.length;n--;)if(LC(t[n][0],e))return n;return-1}var DC=BC,RC,NC=Array.prototype.splice;function zC(t){var e=this.__data__,n=DC(e,t),r;return!(n<0)&&(n==e.length-1?e.pop():NC.call(e,n,1),--this.size,!0)}var YC=zC;function GC(t){var e=this.__data__,n=DC(e,t);return n<0?void 0:e[n][1]}var HC=GC;function VC(t){return DC(this.__data__,t)>-1}var WC=VC;function XC(t,e){var n=this.__data__,r=DC(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var $C=XC;function qC(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}qC.prototype.clear=IC,qC.prototype.delete=YC,qC.prototype.get=HC,qC.prototype.has=WC,qC.prototype.set=$C;var UC=qC;function KC(){this.__data__=new UC,this.size=0}var ZC=KC;function QC(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}var JC=QC;function tA(t){return this.__data__.get(t)}var eA=tA;function nA(t){return this.__data__.has(t)}var rA=nA,iA,oA=lM.a["__core-js_shared__"],aA=(sA=/[^.]+$/.exec(oA&&oA.keys&&oA.keys.IE_PROTO||""))?"Symbol(src)_1."+sA:"",sA;function cA(t){return!!aA&&aA in t}var lA=cA,uA,hA=Function.prototype.toString;function fA(t){if(null!=t){try{return hA.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var pA=fA,dA=/[\\^$.*+?()[\]{}|]/g,gA=/^\[object .+?Constructor\]$/,yA=Function.prototype,vA=Object.prototype,mA=yA.toString,bA=vA.hasOwnProperty,xA=RegExp("^"+mA.call(bA).replace(dA,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function OA(t){return!(!ZS(t)||lA(t))&&(rC(t)?xA:gA).test(pA(t));var e}var jA=OA;function wA(t,e){return null==t?void 0:t[e]}var _A=wA;function MA(t,e){var n=_A(t,e);return jA(n)?n:void 0}var SA=MA,CA,AA=SA(lM.a,"Map"),kA,TA=SA(Object,"create");function EA(){this.__data__=TA?TA(null):{},this.size=0}var PA=EA;function IA(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var FA=IA,LA="__lodash_hash_undefined__",BA,DA=Object.prototype.hasOwnProperty;function RA(t){var e=this.__data__;if(TA){var n=e[t];return n===LA?void 0:n}return DA.call(e,t)?e[t]:void 0}var NA=RA,zA,YA=Object.prototype.hasOwnProperty;function GA(t){var e=this.__data__;return TA?void 0!==e[t]:YA.call(e,t)}var HA=GA,VA="__lodash_hash_undefined__";function WA(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=TA&&void 0===e?VA:e,this}var XA=WA;function $A(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}$A.prototype.clear=PA,$A.prototype.delete=FA,$A.prototype.get=NA,$A.prototype.has=HA,$A.prototype.set=XA;var qA=$A;function UA(){this.size=0,this.__data__={hash:new qA,map:new(AA||UC),string:new qA}}var KA=UA;function ZA(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}var QA=ZA;function JA(t,e){var n=t.__data__;return QA(e)?n["string"==typeof e?"string":"hash"]:n.map}var tk=JA;function ek(t){var e=tk(this,t).delete(t);return this.size-=e?1:0,e}var nk=ek;function rk(t){return tk(this,t).get(t)}var ik=rk;function ok(t){return tk(this,t).has(t)}var ak=ok;function sk(t,e){var n=tk(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var ck=sk;function lk(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}lk.prototype.clear=KA,lk.prototype.delete=nk,lk.prototype.get=ik,lk.prototype.has=ak,lk.prototype.set=ck;var uk=lk,hk=200;function fk(t,e){var n=this.__data__;if(n instanceof UC){var r=n.__data__;if(!AA||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new uk(r)}return n.set(t,e),this.size=n.size,this}var pk=fk;function dk(t){var e=this.__data__=new UC(t);this.size=e.size}dk.prototype.clear=ZC,dk.prototype.delete=JC,dk.prototype.get=eA,dk.prototype.has=rA,dk.prototype.set=pk;var gk=dk,yk="__lodash_hash_undefined__";function vk(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}var mk=vk;function bk(t){return this.__data__.has(t)}var xk=bk;function Ok(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new uk;++e<n;)this.add(t[e])}Ok.prototype.add=Ok.prototype.push=mk,Ok.prototype.has=xk;var jk=Ok;function wk(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var _k=wk;function Mk(t,e){return t.has(e)}var Sk=Mk,Ck=1,Ak=2;function kk(t,e,n,r,i,o){var a=1&n,s=t.length,c=e.length;if(s!=c&&!(a&&c>s))return!1;var l=o.get(t),u=o.get(e);if(l&&u)return l==e&&u==t;var h=-1,f=!0,p=2&n?new jk:void 0;for(o.set(t,e),o.set(e,t);++h<s;){var d=t[h],g=e[h];if(r)var y=a?r(g,d,h,e,t,o):r(d,g,h,t,e,o);if(void 0!==y){if(y)continue;f=!1;break}if(p){if(!_k(e,(function(t,e){if(!Sk(p,e)&&(d===t||i(d,t,n,r,o)))return p.push(e)}))){f=!1;break}}else if(d!==g&&!i(d,g,n,r,o)){f=!1;break}}return o.delete(t),o.delete(e),f}var Tk=kk,Ek,Pk=lM.a.Uint8Array;function Ik(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}var Fk=Ik;function Lk(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var Bk=Lk,Dk=1,Rk=2,Nk="[object Boolean]",zk="[object Date]",Yk="[object Error]",Gk="[object Map]",Hk="[object Number]",Vk="[object RegExp]",Wk="[object Set]",Xk="[object String]",$k="[object Symbol]",qk="[object ArrayBuffer]",Uk="[object DataView]",Kk=hM?hM.prototype:void 0,Zk=Kk?Kk.valueOf:void 0;function Qk(t,e,n,r,i,o,a){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new Pk(t),new Pk(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return LC(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var s=Fk;case"[object Set]":var c=1&r;if(s||(s=Bk),t.size!=e.size&&!c)return!1;var l=a.get(t);if(l)return l==e;r|=2,a.set(t,e);var u=Tk(s(t),s(e),r,i,o,a);return a.delete(t),u;case $k:if(Zk)return Zk.call(t)==Zk.call(e)}return!1}var Jk=Qk;function tT(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var eT=tT;function nT(t,e,n){var r=e(t);return cM(t)?r:eT(r,n(t))}var rT=nT;function iT(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}var oT=iT;function aT(){return[]}var sT=aT,cT,lT=Object.prototype.propertyIsEnumerable,uT=Object.getOwnPropertySymbols,hT,fT=uT?function(t){return null==t?[]:(t=Object(t),oT(uT(t),(function(e){return lT.call(t,e)})))}:sT;function pT(t){return rT(t,sC,fT)}var dT=pT,gT=1,yT,vT=Object.prototype.hasOwnProperty;function mT(t,e,n,r,i,o){var a=1&n,s=dT(t),c=s.length,l,u;if(c!=dT(e).length&&!a)return!1;for(var h=c;h--;){var f=s[h];if(!(a?f in e:vT.call(e,f)))return!1}var p=o.get(t),d=o.get(e);if(p&&d)return p==e&&d==t;var g=!0;o.set(t,e),o.set(e,t);for(var y=a;++h<c;){var v=t[f=s[h]],m=e[f];if(r)var b=a?r(m,v,f,e,t,o):r(v,m,f,t,e,o);if(!(void 0===b?v===m||i(v,m,n,r,o):b)){g=!1;break}y||(y="constructor"==f)}if(g&&!y){var x=t.constructor,O=e.constructor;x==O||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof O&&O instanceof O||(g=!1)}return o.delete(t),o.delete(e),g}var bT=mT,xT,OT=SA(lM.a,"DataView"),jT,wT=SA(lM.a,"Promise"),_T,MT=SA(lM.a,"Set"),ST,CT=SA(lM.a,"WeakMap"),AT="[object Map]",kT="[object Object]",TT="[object Promise]",ET="[object Set]",PT="[object WeakMap]",IT="[object DataView]",FT=pA(OT),LT=pA(AA),BT=pA(wT),DT=pA(MT),RT=pA(CT),NT=SM;(OT&&"[object DataView]"!=NT(new OT(new ArrayBuffer(1)))||AA&&"[object Map]"!=NT(new AA)||wT&&NT(wT.resolve())!=TT||MT&&"[object Set]"!=NT(new MT)||CT&&"[object WeakMap]"!=NT(new CT))&&(NT=function(t){var e=SM(t),n="[object Object]"==e?t.constructor:void 0,r=n?pA(n):"";if(r)switch(r){case FT:return"[object DataView]";case LT:return"[object Map]";case BT:return TT;case DT:return"[object Set]";case RT:return"[object WeakMap]"}return e});var zT=NT,YT=1,GT="[object Arguments]",HT="[object Array]",VT="[object Object]",WT,XT=Object.prototype.hasOwnProperty;function $T(t,e,n,r,i,o){var a=cM(t),s=cM(e),c=a?"[object Array]":zT(t),l=s?"[object Array]":zT(e),u="[object Object]"==(c="[object Arguments]"==c?"[object Object]":c),h="[object Object]"==(l="[object Arguments]"==l?"[object Object]":l),f=c==l;if(f&&Object(qM.a)(t)){if(!Object(qM.a)(e))return!1;a=!0,u=!1}if(f&&!u)return o||(o=new gk),a||FS(t)?Tk(t,e,n,r,i,o):Jk(t,e,c,n,r,i,o);if(!(1&n)){var p=u&&XT.call(t,"__wrapped__"),d=h&&XT.call(e,"__wrapped__");if(p||d){var g=p?t.value():t,y=d?e.value():e;return o||(o=new gk),i(g,y,n,r,o)}}return!!f&&(o||(o=new gk),bT(t,e,n,r,i,o))}var qT=$T;function UT(t,e,n,r,i){return t===e||(null==t||null==e||!AM(t)&&!AM(e)?t!=t&&e!=e:qT(t,e,n,r,UT,i))}var KT=UT;function ZT(t,e){return KT(t,e)}var QT=ZT;function JT(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}}var tE=function(t,e){var n=t.length,r=e.length,i,o,a=0;if(0===n||0===r)return null;for(var s=[],c=0;c<=n;c++)s[c]=[],s[c][0]={min:c};for(var l=0;l<=r;l++)s[0][l]={min:l};for(var c=1;c<=n;c++){i=t[c-1];for(var l=1;l<=r;l++){o=e[l-1],a=QT(i,o)?0:1;var u=s[c-1][l].min+1,h=s[c][l-1].min+1,f=s[c-1][l-1].min+a;s[c][l]=JT(u,h,f)}}return s};function eE(t,e){var n=tE(t,e),r=t.length,i=e.length,o=[],a=1,s=1;if(n[r][i]!==r){for(var c=1;c<=r;c++){var l=n[c][c].min;s=c;for(var u=a;u<=i;u++)n[c][u].min<l&&(l=n[c][u].min,s=u);a=s,n[c][a].type&&o.push({index:c-1,type:n[c][a].type})}for(var c=o.length-1;c>=0;c--)a=o[c].index,"add"===o[c].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}if((r=t.length)<i)for(var c=0;c<i-r;c++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]);return t}function nE(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 rE(t,e,n){for(var r=[].concat(t),i,o=1/(n+1),a=nE(e)[0],s=1;s<=n;s++)o*=s,0===(i=Math.floor(t.length*o))?r.unshift([a[0]*o+t[i][0]*(1-o),a[1]*o+t[i][1]*(1-o)]):r.splice(i,0,[a[0]*o+t[i][0]*(1-o),a[1]*o+t[i][1]*(1-o)]);return r}function iE(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=nE(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=rE(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=rE(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=rE(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 oE(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"]]}var aE="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029",sE=new RegExp("([a-z])["+aE+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+aE+"]*,?["+aE+"]*)+)","ig"),cE=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+aE+"]*,?["+aE+"]*","ig");function lE(t){if(!t)return null;if(cM(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(sE,(function(t,r,i){var o=[],a=r.toLowerCase();if(i.replace(cE,(function(t,e){e&&o.push(+e)})),"m"===a&&o.length>2&&(n.push([r].concat(o.splice(0,2))),a="l",r="m"===r?"l":"L"),"o"===a&&1===o.length&&n.push([r,o[0]]),"r"===a)n.push([r].concat(o));else for(;o.length>=e[a]&&(n.push([r].concat(o.splice(0,e[a]))),e[a]););return""})),n}var uE=/[a-z]/;function hE(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function fE(t){var e=lE(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,r=0;r<e.length;r++){var i=e[r][0];if(uE.test(i)||["V","H","T","S"].indexOf(i)>=0){n=!0;break}}if(!n)return e;var o=[],a=0,s=0,c=0,l=0,u=0,h,f,p=e[0];"M"!==p[0]&&"m"!==p[0]||(c=a=+p[1],l=s=+p[2],u++,o[0]=["M",a,s]);for(var r=u,d=e.length;r<d;r++){var g=e[r],y=o[r-1],v=[],i,m=(i=g[0]).toUpperCase();if(i!==m)switch(v[0]=m,m){case"A":v[1]=g[1],v[2]=g[2],v[3]=g[3],v[4]=g[4],v[5]=g[5],v[6]=+g[6]+a,v[7]=+g[7]+s;break;case"V":v[1]=+g[1]+s;break;case"H":v[1]=+g[1]+a;break;case"M":c=+g[1]+a,l=+g[2]+s,v[1]=c,v[2]=l;break;default:for(var b=1,x=g.length;b<x;b++)v[b]=+g[b]+(b%2?a:s)}else v=e[r];switch(m){case"Z":a=+c,s=+l;break;case"H":v=["L",a=v[1],s];break;case"V":v=["L",a,s=v[1]];break;case"T":a=v[1],s=v[2];var O=hE([y[1],y[2]],[y[3],y[4]]);v=["Q",O[0],O[1],a,s];break;case"S":a=v[v.length-2],s=v[v.length-1];var j=y.length,w=hE([y[j-4],y[j-3]],[y[j-2],y[j-1]]);v=["C",w[0],w[1],v[1],v[2],a,s];break;case"M":c=v[v.length-2],l=v[v.length-1];break;default:a=v[v.length-2],s=v[v.length-1]}o.push(v)}return o}var pE=2*Math.PI,dE=function(t,e,n,r,i,o,a){var s=t.x,c=t.y,l,u;return{x:r*(s*=e)-i*(c*=n)+o,y:i*s+r*c+a}},gE=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),o=Math.cos(t+e),a=Math.sin(t+e);return[{x:r-i*n,y:i+r*n},{x:o+a*n,y:a-o*n},{x:o,y:a}]},yE=function(t,e,n,r){var i,o=t*n+e*r;return o>1&&(o=1),o<-1&&(o=-1),(t*r-e*n<0?-1:1)*Math.acos(o)},vE=function(t,e,n,r,i,o,a,s,c,l,u,h){var f=Math.pow(i,2),p=Math.pow(o,2),d=Math.pow(u,2),g=Math.pow(h,2),y=f*p-f*g-p*d;y<0&&(y=0),y/=f*g+p*d;var v=(y=Math.sqrt(y)*(a===s?-1:1))*i/o*h,m=y*-o/i*u,b=l*v-c*m+(t+n)/2,x=c*v+l*m+(e+r)/2,O=(u-v)/i,j=(h-m)/o,w=(-u-v)/i,_=(-h-m)/o,M=yE(1,0,O,j),S=yE(O,j,w,_);return 0===s&&S>0&&(S-=pE),1===s&&S<0&&(S+=pE),[b,x,M,S]},mE=function(t){var e=t.px,n=t.py,r=t.cx,i=t.cy,o=t.rx,a=t.ry,s=t.xAxisRotation,c=void 0===s?0:s,l=t.largeArcFlag,u=void 0===l?0:l,h=t.sweepFlag,f=void 0===h?0:h,p=[];if(0===o||0===a)return[{x1:0,y1:0,x2:0,y2:0,x:r,y:i}];var d=Math.sin(c*pE/360),g=Math.cos(c*pE/360),y=g*(e-r)/2+d*(n-i)/2,v=-d*(e-r)/2+g*(n-i)/2;if(0===y&&0===v)return[{x1:0,y1:0,x2:0,y2:0,x:r,y:i}];o=Math.abs(o),a=Math.abs(a);var m=Math.pow(y,2)/Math.pow(o,2)+Math.pow(v,2)/Math.pow(a,2);m>1&&(o*=Math.sqrt(m),a*=Math.sqrt(m));var b=vE(e,n,r,i,o,a,u,f,d,g,y,v),x=b[0],O=b[1],j=b[2],w=b[3],_=Math.abs(w)/(pE/4);Math.abs(1-_)<1e-7&&(_=1);var M=Math.max(Math.ceil(_),1);w/=M;for(var S=0;S<M;S++)p.push(gE(j,w)),j+=w;return p.map((function(t){var e=dE(t[0],o,a,g,d,x,O),n=e.x,r=e.y,i=dE(t[1],o,a,g,d,x,O),s=i.x,c=i.y,l=dE(t[2],o,a,g,d,x,O),u,h;return{x1:n,y1:r,x2:s,y2:c,x:l.x,y:l.y}}))};function bE(t,e,n,r,i,o,a,s,c){var l;return mE({px:t,py:e,cx:s,cy:c,rx:n,ry:r,xAxisRotation:i,largeArcFlag:o,sweepFlag:a}).reduce((function(t,e){var n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.x,s=e.y;return t.push(n,r,i,o,a,s),t}),[])}function xE(t,e,n,r,i,o){var a=1/3,s=2/3;return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*o+2/3*r,i,o]}function OE(t,e,n,r){return[t,e,n,r,n,r]}function jE(t,e){"TQ".indexOf(t[0])<0&&(e.qx=null,e.qy=null);var n=t.slice(1),r=n[0],i=n[1];switch(t[0]){case"M":return e.x=r,e.y=i,t;case"A":return["C"].concat(bE.apply(0,[e.x1,e.y1].concat(t.slice(1))));case"Q":return e.qx=r,e.qy=i,["C"].concat(xE.apply(0,[e.x1,e.y1].concat(t.slice(1))));case"L":return["C"].concat(OE(e.x1,e.y1,t[1],t[2]));case"H":return["C"].concat(OE(e.x1,e.y1,t[1],e.y1));case"V":return["C"].concat(OE(e.x1,e.y1,e.x1,t[1]));case"Z":return["C"].concat(OE(e.x1,e.y1,e.x,e.y))}return t}function wE(t,e){void 0===e&&(e=!1);for(var n=fE(t),r={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},i=[],o="",a=n.length,s,c,l=[],u=0;u<a;u+=1)n[u]&&(o=n[u][0]),i[u]=o,n[u]=jE(n[u],r),_E(n,i,u),a=n.length,"Z"===o&&l.push(u),c=(s=n[u]).length,r.x1=+s[c-2],r.y1=+s[c-1],r.x2=+s[c-4]||r.x1,r.y2=+s[c-3]||r.y1;return e?[n,l]:n}function _E(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)}}var ME=function(t,e,n,r,i){var o,a;return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},SE=function(t,e,n,r,i,o,a,s,c){null===c&&(c=1);for(var l=(c=c>1?1:c<0?0:c)/2,u=12,h=[-.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],p=0,d=0;d<u;d++){var g=l*h[d]+l,y=ME(g,t,n,i,a),v=ME(g,e,r,o,s),m=y*y+v*v;p+=f[d]*Math.sqrt(m)}return l*p},CE=function(t,e,n,r,i,o,a,s){for(var c=[],l=[[],[]],u,h,f,p,d=0;d<2;++d)if(0===d?(h=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*a,f=3*n-3*t):(h=6*e-12*r+6*o,u=-3*e+9*r-9*o+3*s,f=3*r-3*e),Math.abs(u)<1e-12){if(Math.abs(h)<1e-12)continue;(p=-f/h)>0&&p<1&&c.push(p)}else{var g=h*h-4*f*u,y=Math.sqrt(g);if(!(g<0)){var v=(-h+y)/(2*u);v>0&&v<1&&c.push(v);var m=(-h-y)/(2*u);m>0&&m<1&&c.push(m)}}for(var b=c.length,x=b,O;b--;)O=1-(p=c[b]),l[0][b]=O*O*O*t+3*O*O*p*n+3*O*p*p*i+p*p*p*a,l[1][b]=O*O*O*e+3*O*O*p*r+3*O*p*p*o+p*p*p*s;return l[0][x]=t,l[1][x]=e,l[0][x+1]=a,l[1][x+1]=s,l[0].length=l[1].length=x+2,{min:{x:Math.min.apply(0,l[0]),y:Math.min.apply(0,l[1])},max:{x:Math.max.apply(0,l[0]),y:Math.max.apply(0,l[1])}}},AE=function(t,e,n,r,i,o,a,s){if(!(Math.max(t,n)<Math.min(i,a)||Math.min(t,n)>Math.max(i,a)||Math.max(e,r)<Math.min(o,s)||Math.min(e,r)>Math.max(o,s))){var c,l,u=(t-n)*(o-s)-(e-r)*(i-a);if(u){var h=((t*r-e*n)*(i-a)-(t-n)*(i*s-o*a))/u,f=((t*r-e*n)*(o-s)-(e-r)*(i*s-o*a))/u,p=+h.toFixed(2),d=+f.toFixed(2);if(!(p<+Math.min(t,n).toFixed(2)||p>+Math.max(t,n).toFixed(2)||p<+Math.min(i,a).toFixed(2)||p>+Math.max(i,a).toFixed(2)||d<+Math.min(e,r).toFixed(2)||d>+Math.max(e,r).toFixed(2)||d<+Math.min(o,s).toFixed(2)||d>+Math.max(o,s).toFixed(2)))return{x:h,y:f}}}},kE=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},TE=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:oE(t,e,n,r),vb:[t,e,n,r].join(" ")}},EE=function(t,e){return t=TE(t),e=TE(e),kE(e,t.x,t.y)||kE(e,t.x2,t.y)||kE(e,t.x,t.y2)||kE(e,t.x2,t.y2)||kE(t,e.x,e.y)||kE(t,e.x2,e.y)||kE(t,e.x,e.y2)||kE(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)},PE=function(t,e,n,r,i,o,a,s){cM(t)||(t=[t,e,n,r,i,o,a,s]);var c=CE.apply(null,t);return TE(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},IE=function(t,e,n,r,i,o,a,s,c){var l=1-c,u=Math.pow(l,3),h=Math.pow(l,2),f=c*c,p=f*c,d,g,y=t+2*c*(n-t)+f*(i-2*n+t),v=e+2*c*(r-e)+f*(o-2*r+e),m=n+2*c*(i-n)+f*(a-2*i+n),b=r+2*c*(o-r)+f*(s-2*o+r),x,O,j,w,_;return{x:u*t+3*h*c*n+3*l*c*c*i+p*a,y:u*e+3*h*c*r+3*l*c*c*o+p*s,m:{x:y,y:v},n:{x:m,y:b},start:{x:l*t+c*n,y:l*e+c*r},end:{x:l*i+c*a,y:l*o+c*s},alpha:90-180*Math.atan2(y-m,v-b)/Math.PI}},FE=function(t,e,n){var r=PE(t),i=PE(e);if(!EE(r,i))return n?0:[];for(var o,a,s=~~(SE.apply(0,t)/8),c=~~(SE.apply(0,e)/8),l=[],u=[],h={},f=n?0:[],p=0;p<s+1;p++){var d=IE.apply(0,t.concat(p/s));l.push({x:d.x,y:d.y,t:p/s})}for(var p=0;p<c+1;p++){var d=IE.apply(0,e.concat(p/c));u.push({x:d.x,y:d.y,t:p/c})}for(var p=0;p<s;p++)for(var g=0;g<c;g++){var y=l[p],v=l[p+1],m=u[g],b=u[g+1],x=Math.abs(v.x-y.x)<.001?"y":"x",O=Math.abs(b.x-m.x)<.001?"y":"x",j=AE(y.x,y.y,v.x,v.y,m.x,m.y,b.x,b.y);if(j){if(h[j.x.toFixed(4)]===j.y.toFixed(4))continue;h[j.x.toFixed(4)]=j.y.toFixed(4);var w=y.t+Math.abs((j[x]-y[x])/(v[x]-y[x]))*(v.t-y.t),_=m.t+Math.abs((j[O]-m[O])/(b[O]-m[O]))*(b.t-m.t);w>=0&&w<=1&&_>=0&&_<=1&&(n?f++:f.push({x:j.x,y:j.y,t1:w,t2:_}))}}return f},LE=function(t,e,n){var r,i,o,a,s,c,l,u,h,f;t=wE(t),e=wE(e);for(var p=n?0:[],d=0,g=t.length;d<g;d++){var y=t[d];if("M"===y[0])r=s=y[1],i=c=y[2];else{"C"===y[0]?(h=[r,i].concat(y.slice(1)),r=h[6],i=h[7]):(h=[r,i,r,i,s,c,s,c],r=s,i=c);for(var v=0,m=e.length;v<m;v++){var b=e[v];if("M"===b[0])o=l=b[1],a=u=b[2];else{"C"===b[0]?(f=[o,a].concat(b.slice(1)),o=f[6],a=f[7]):(f=[o,a,o,a,l,u,l,u],o=l,a=u);var x=FE(h,f,n);if(n)p+=x;else{for(var O=0,j=x.length;O<j;O++)x[O].segment1=d,x[O].segment2=v,x[O].bez1=h,x[O].bez2=f;p=p.concat(x)}}}}}return p};function BE(t,e){return LE(t,e)}var DE=/,?([a-z]),?/gi;function RE(t){return t.join(",").replace(DE,"$1")}var NE=function(t,e){return(t%e+e)%e};function zE(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function YE(t,e){return zE(t)*zE(e)?(t[0]*e[0]+t[1]*e[1])/(zE(t)*zE(e)):1}function GE(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(YE(t,e))}function HE(t,e){return t[0]===e[0]&&t[1]===e[1]}function VE(t,e){var n=e[1],r=e[2],i=NE(e[3]*Math.PI/180,2*Math.PI),o=e[4],a=e[5],s=t[0],c=t[1],l=e[6],u=e[7],h=Math.cos(i)*(s-l)/2+Math.sin(i)*(c-u)/2,f=-1*Math.sin(i)*(s-l)/2+Math.cos(i)*(c-u)/2,p=h*h/(n*n)+f*f/(r*r);p>1&&(n*=Math.sqrt(p),r*=Math.sqrt(p));var d=n*n*(f*f)+r*r*(h*h),g=d?Math.sqrt((n*n*(r*r)-d)/d):1;o===a&&(g*=-1),isNaN(g)&&(g=0);var y=r?g*n*f/r:0,v=n?g*-r*h/n:0,m=(s+l)/2+Math.cos(i)*y-Math.sin(i)*v,b=(c+u)/2+Math.sin(i)*y+Math.cos(i)*v,x=[(h-y)/n,(f-v)/r],O=[(-1*h-y)/n,(-1*f-v)/r],j=GE([1,0],x),w=GE(x,O);return YE(x,O)<=-1&&(w=Math.PI),YE(x,O)>=1&&(w=0),0===a&&w>0&&(w-=2*Math.PI),1===a&&w<0&&(w+=2*Math.PI),{cx:m,cy:b,rx:HE(t,[l,u])?0:n,ry:HE(t,[l,u])?0:r,startAngle:j,endAngle:j+w,xRotation:i,arcFlag:o,sweepFlag:a}}function WE(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function XE(t){for(var e=[],n=null,r=null,i=null,o=0,a=(t=wC(t)).length,s=0;s<a;s++){var c=t[s];r=t[s+1];var l=c[0],u={command:l,prePoint:n,params:c,startTangent:null,endTangent:null};switch(l){case"M":i=[c[1],c[2]],o=s;break;case"A":var h=VE(n,c);u.arcParams=h}if("Z"===l)n=i,r=t[o+1];else{var f=c.length;n=[c[f-2],c[f-1]]}r&&"Z"===r[0]&&(r=t[o],e[o]&&(e[o].prePoint=n)),u.currentPoint=n,e[o]&&HE(n,e[o].currentPoint)&&(e[o].prePoint=u.prePoint);var p=r?[r[r.length-2],r[r.length-1]]:null;u.nextPoint=p;var d=u.prePoint;if(["L","H","V"].includes(l))u.startTangent=[d[0]-n[0],d[1]-n[1]],u.endTangent=[n[0]-d[0],n[1]-d[1]];else if("Q"===l){var g=[c[1],c[2]];u.startTangent=[d[0]-g[0],d[1]-g[1]],u.endTangent=[n[0]-g[0],n[1]-g[1]]}else if("T"===l){var y,g=WE((y=e[s-1]).currentPoint,d);"Q"===y.command?(u.command="Q",u.startTangent=[d[0]-g[0],d[1]-g[1]],u.endTangent=[n[0]-g[0],n[1]-g[1]]):(u.command="TL",u.startTangent=[d[0]-n[0],d[1]-n[1]],u.endTangent=[n[0]-d[0],n[1]-d[1]])}else if("C"===l){var v=[c[1],c[2]],m=[c[3],c[4]];u.startTangent=[d[0]-v[0],d[1]-v[1]],u.endTangent=[n[0]-m[0],n[1]-m[1]],0===u.startTangent[0]&&0===u.startTangent[1]&&(u.startTangent=[v[0]-m[0],v[1]-m[1]]),0===u.endTangent[0]&&0===u.endTangent[1]&&(u.endTangent=[m[0]-v[0],m[1]-v[1]])}else if("S"===l){var y,v=WE((y=e[s-1]).currentPoint,d),m=[c[1],c[2]];"C"===y.command?(u.command="C",u.startTangent=[d[0]-v[0],d[1]-v[1]],u.endTangent=[n[0]-m[0],n[1]-m[1]]):(u.command="SQ",u.startTangent=[d[0]-m[0],d[1]-m[1]],u.endTangent=[n[0]-m[0],n[1]-m[1]])}else if("A"===l){var b=.001,x=u.arcParams||{},O=x.cx,j=void 0===O?0:O,w=x.cy,_=void 0===w?0:w,M=x.rx,S=void 0===M?0:M,C=x.ry,A=void 0===C?0:C,k=x.sweepFlag,T=void 0===k?0:k,E=x.startAngle,P=void 0===E?0:E,I=x.endAngle,F=void 0===I?0:I;0===T&&(b*=-1);var L=S*Math.cos(P-b)+j,B=A*Math.sin(P-b)+_;u.startTangent=[L-i[0],B-i[1]];var D=S*Math.cos(P+F+b)+j,R=A*Math.sin(P+F-b)+_;u.endTangent=[d[0]-D,d[1]-R]}e.push(u)}return e}var $E=function(t,e,n){return t>=e&&t<=n};function qE(t,e,n,r){var i=.001,o=n.x-t.x,a=n.y-t.y,s=e.x-t.x,c=e.y-t.y,l=r.x-n.x,u=r.y-n.y,h=s*u-c*l,f,p,d,g=null;if(h*h>.001*(s*s+c*c)*(l*l+u*u)){var y=(o*u-a*l)/h,v=(o*c-a*s)/h;$E(y,0,1)&&$E(v,0,1)&&(g={x:t.x+y*s,y:t.y+y*c})}return g}var UE=1e-6;function KE(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function ZE(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])}function QE(t,e,n){var r=!1,i=t.length;if(i<=2)return!1;for(var o=0;o<i;o++){var a=t[o],s=t[(o+1)%i];if(ZE(a,s,[e,n]))return!0;KE(a[1]-n)>0!=KE(s[1]-n)>0&&KE(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(r=!r)}return r}function JE(t){for(var e=[],n=t.length,r=0;r<n-1;r++){var i=t[r],o=t[r+1];e.push({from:{x:i[0],y:i[1]},to:{x:o[0],y:o[1]}})}if(e.length>1){var a=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:a[0],y:a[1]}})}return e}function tP(t,e){var n=!1;return bC(t,(function(t){if(qE(t.from,t.to,e.from,e.to))return n=!0,!1})),n}function eP(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)}}function nP(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function rP(t,e){if(t.length<2||e.length<2)return!1;var n,r;if(!nP(eP(t),eP(e)))return!1;var i=!1;if(bC(e,(function(e){if(QE(t,e[0],e[1]))return i=!0,!1})),i)return!0;if(bC(t,(function(t){if(QE(e,t[0],t[1]))return i=!0,!1})),i)return!0;var o=JE(t),a=JE(e),s=!1;return bC(a,(function(t){if(tP(o,t))return s=!0,!1})),s}function iP(t){return Yf({},t.defaultStyle,{fill:t.color},t.style)}xi("schema","venn",{draw:function(t,e){var n,r=lE(t.data.path),i=iP(t),o=e.addGroup({name:"venn-shape"});o.addShape("path",{attrs:Object(s.__assign)(Object(s.__assign)({},i),{path:r}),name:"venn-path"});var a=t.customInfo,c=a.offsetX,l=a.offsetY,u=mo.transform(null,[["t",c,l]]);return o.setMatrix(u),o},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{lineWidth:0,stroke:e,fill:e,r:4}}}});var oP=function(t){return function(e,n){var r=[];return r[0]=t(e[0],n[0]),r[1]=t(e[1],n[1]),r[2]=t(e[2],n[2]),r}},aP={normal:function(t){return t},multiply:function(t,e){return t*e/255},screen:function(t,e){return 255*(1-(1-t/255)*(1-e/255))},overlay:function(t,e){return e<128?2*t*e/255:255*(1-2*(1-t/255)*(1-e/255))},darken:function(t,e){return t>e?e:t},lighten:function(t,e){return t>e?t:e},dodge:function(t,e){return 255===t||(t=e/255*255/(1-t/255))>255?255:t},burn:function(t,e){return 255===e?255:0===t?0:255*(1-Math.min(1,(1-e/255)/(t/255)))}},sP=function(t){if(!aP[t])throw new Error("unknown blend mode "+t);return aP[t]};function cP(t,e,n){void 0===n&&(n="normal");var r=oP(sP(n))(lP(t),lP(e)),i=lP(t),o=i[0],a=i[1],s=i[2],c=i[3],l=lP(e),u=l[0],h=l[1],f=l[2],p=l[3],d=Number((c+p*(1-c)).toFixed(2)),g=Math.round((c*(1-p)*(o/255)+c*p*(r[0]/255)+(1-c)*p*(u/255))/d*255),y=Math.round((c*(1-p)*(a/255)+c*p*(r[1]/255)+(1-c)*p*(h/255))/d*255),v=Math.round((c*(1-p)*(s/255)+c*p*(r[2]/255)+(1-c)*p*(f/255))/d*255);return"rgba(".concat(g,", ").concat(y,", ").concat(v,", ").concat(d,")")}function lP(t){var e=t.replace("/s+/g",""),n;return"string"!=typeof e||e.startsWith("rgba")||e.startsWith("#")?(e.startsWith("rgba")&&(n=e.replace("rgba(","").replace(")","").split(",")),e.startsWith("#")&&(n=z.a.rgb2arr(e).concat([1])),n.map((function(t,e){return 3===e?Number(t):0|t}))):z.a.rgb2arr(z.a.toRGB(e)).concat([1])}var uP=n(43),hP=1e-10;function fP(t,e){var n=dP(t),r=n.filter((function(e){return pP(e,t)})),i=0,o=0,a,s=[];if(r.length>1){var c=bP(r);for(a=0;a<r.length;++a){var l=r[a];l.angle=Math.atan2(l.x-c.x,l.y-c.y)}r.sort((function(t,e){return e.angle-t.angle}));var u=r[r.length-1];for(a=0;a<r.length;++a){var h=r[a];o+=(u.x+h.x)*(h.y-u.y);for(var f={x:(h.x+u.x)/2,y:(h.y+u.y)/2},p=null,d=0;d<h.parentIndex.length;++d)if(u.parentIndex.indexOf(h.parentIndex[d])>-1){var g=t[h.parentIndex[d]],y=Math.atan2(h.x-g.x,h.y-g.y),v=Math.atan2(u.x-g.x,u.y-g.y),m=v-y;m<0&&(m+=2*Math.PI);var b=v-m/2,x=yP(f,{x:g.x+g.radius*Math.sin(b),y:g.y+g.radius*Math.cos(b)});x>2*g.radius&&(x=2*g.radius),(null===p||p.width>x)&&(p={circle:g,width:x,p1:h,p2:u})}null!==p&&(s.push(p),i+=gP(p.circle.radius,p.width),u=h)}}else{var O=t[0];for(a=1;a<t.length;++a)t[a].radius<O.radius&&(O=t[a]);var j=!1;for(a=0;a<t.length;++a)if(yP(t[a],O)>Math.abs(O.radius-t[a].radius)){j=!0;break}j?i=o=0:(i=O.radius*O.radius*Math.PI,s.push({circle:O,p1:{x:O.x,y:O.y+O.radius},p2:{x:O.x-1e-10,y:O.y+O.radius},width:2*O.radius}))}return o/=2,e&&(e.area=i+o,e.arcArea=i,e.polygonArea=o,e.arcs=s,e.innerPoints=r,e.intersectionPoints=n),i+o}function pP(t,e){for(var n=0;n<e.length;++n)if(yP(t,e[n])>e[n].radius+1e-10)return!1;return!0}function dP(t){for(var e=[],n=0;n<t.length;++n)for(var r=n+1;r<t.length;++r)for(var i=mP(t[n],t[r]),o=0;o<i.length;++o){var a=i[o];a.parentIndex=[n,r],e.push(a)}return e}function gP(t,e){return t*t*Math.acos(1-e/t)-(t-e)*Math.sqrt(e*(2*t-e))}function yP(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))}function vP(t,e,n){if(n>=t+e)return 0;if(n<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);var r,i=e-(n*n-t*t+e*e)/(2*n);return gP(t,t-(n*n-e*e+t*t)/(2*n))+gP(e,i)}function mP(t,e){var n=yP(t,e),r=t.radius,i=e.radius;if(n>=r+i||n<=Math.abs(r-i))return[];var o=(r*r-i*i+n*n)/(2*n),a=Math.sqrt(r*r-o*o),s=t.x+o*(e.x-t.x)/n,c=t.y+o*(e.y-t.y)/n,l=-(e.y-t.y)*(a/n),u=-(e.x-t.x)*(a/n);return[{x:s+l,y:c-u},{x:s-l,y:c+u}]}function bP(t){for(var e={x:0,y:0},n=0;n<t.length;++n)e.x+=t[n].x,e.y+=t[n].y;return e.x/=t.length,e.y/=t.length,e}function xP(t,e,n){var r=e[0].radius-yP(e[0],t),i,o;for(i=1;i<e.length;++i)(o=e[i].radius-yP(e[i],t))<=r&&(r=o);for(i=0;i<n.length;++i)(o=yP(n[i],t)-n[i].radius)<=r&&(r=o);return r}function OP(t,e){var n=[],r;for(r=0;r<t.length;++r){var i=t[r];n.push({x:i.x,y:i.y}),n.push({x:i.x+i.radius/2,y:i.y}),n.push({x:i.x-i.radius/2,y:i.y}),n.push({x:i.x,y:i.y+i.radius/2}),n.push({x:i.x,y:i.y-i.radius/2})}var o=n[0],a=xP(n[0],t,e);for(r=1;r<n.length;++r){var s=xP(n[r],t,e);s>=a&&(o=n[r],a=s)}var c=Object(uP.nelderMead)((function(n){return-1*xP({x:n[0],y:n[1]},t,e)}),[o.x,o.y],{maxIterations:500,minErrorDelta:1e-10}).x,l={x:c[0],y:c[1]},u=!0;for(r=0;r<t.length;++r)if(yP(l,t[r])>t[r].radius){u=!1;break}for(r=0;r<e.length;++r)if(yP(l,e[r])<e[r].radius){u=!1;break}if(!u)if(1==t.length)l={x:t[0].x,y:t[0].y};else{var h={};fP(t,h),l=0===h.arcs.length?{x:0,y:-1e3,disjoint:!0}:1==h.arcs.length?{x:h.arcs[0].circle.x,y:h.arcs[0].circle.y}:e.length?OP(t,[]):bP(h.arcs.map((function(t){return t.p1})))}return l}function jP(t){var e={},n=[];for(var r in t)n.push(r),e[r]=[];for(var i=0;i<n.length;i++)for(var o=t[n[i]],a=i+1;a<n.length;++a){var s=t[n[a]],c=yP(o,s);c+s.radius<=o.radius+1e-10?e[n[a]].push(n[i]):c+o.radius<=s.radius+1e-10&&e[n[i]].push(n[a])}return e}function wP(t,e){for(var n={},r=jP(t),i=0;i<e.length;++i){for(var o=e[i].sets,a={},s={},c=0;c<o.length;++c){a[o[c]]=!0;for(var l=r[o[c]],u=0;u<l.length;++u)s[l[u]]=!0}var h=[],f=[];for(var p in t)p in a?h.push(t[p]):p in s||f.push(t[p]);var d=OP(h,f);n[o]=d,d.disjoint&&e[i].size>0&&console.log("WARNING: area "+o+" not represented on screen")}return n}function _P(t,e,n){var r=[],i=t-n,o=e;return r.push("M",i,o),r.push("A",n,n,0,1,0,i+2*n,o),r.push("A",n,n,0,1,0,i,o),r.join(" ")}function MP(t){var e=t.split(" ");return{x:parseFloat(e[1]),y:parseFloat(e[2]),radius:-parseFloat(e[4])}}function SP(t){var e={};fP(t,e);var n=e.arcs;if(0===n.length)return"M 0 0";if(1==n.length){var r=n[0].circle;return _P(r.x,r.y,r.radius)}for(var i=["\nM",n[0].p2.x,n[0].p2.y],o=0;o<n.length;++o){var a=n[o],s=a.circle.radius,c=a.width>s;i.push("\nA",s,s,0,c?1:0,1,a.p1.x,a.p1.y)}return i.join(" ")}function CP(t,e){(e=e||{}).maxIterations=e.maxIterations||500;var n=e.initialLayout||IP,r=e.lossFunction||BP,i=n(t=TP(t),e),o=[],a=[],s;for(s in i)i.hasOwnProperty(s)&&(o.push(i[s].x),o.push(i[s].y),a.push(s));for(var c,l=Object(uP.nelderMead)((function(e){for(var n={},o=0;o<a.length;++o){var s=a[o];n[s]={x:e[2*o],y:e[2*o+1],radius:i[s].radius}}return r(n,t)}),o,e).x,u=0;u<a.length;++u)s=a[u],i[s].x=l[2*u],i[s].y=l[2*u+1];return i}var AP=1e-10;function kP(t,e,n){return Math.min(t,e)*Math.min(t,e)*Math.PI<=n+1e-10?Math.abs(t-e):Object(uP.bisect)((function(r){return vP(t,e,r)-n}),0,t+e)}function TP(t){t=t.slice();var e=[],n={},r,i,o,a;for(r=0;r<t.length;++r){var s=t[r];1==s.sets.length?e.push(s.sets[0]):2==s.sets.length&&(n[[o=s.sets[0],a=s.sets[1]]]=!0,n[[a,o]]=!0)}for(e.sort((function(t,e){return t>e?1:-1})),r=0;r<e.length;++r)for(o=e[r],i=r+1;i<e.length;++i)[o,a=e[i]]in n||t.push({sets:[o,a],size:0});return t}function EP(t,e,n){var r=Object(uP.zerosM)(e.length,e.length),i=Object(uP.zerosM)(e.length,e.length);return t.filter((function(t){return 2==t.sets.length})).map((function(t){var o=n[t.sets[0]],a=n[t.sets[1]],s,c,l=kP(Math.sqrt(e[o].size/Math.PI),Math.sqrt(e[a].size/Math.PI),t.size);r[o][a]=r[a][o]=l;var u=0;t.size+1e-10>=Math.min(e[o].size,e[a].size)?u=1:t.size<=1e-10&&(u=-1),i[o][a]=i[a][o]=u})),{distances:r,constraints:i}}function PP(t,e,n,r){var i=0,o;for(o=0;o<e.length;++o)e[o]=0;for(o=0;o<n.length;++o)for(var a=t[2*o],s=t[2*o+1],c=o+1;c<n.length;++c){var l=t[2*c],u=t[2*c+1],h=n[o][c],f=r[o][c],p=(l-a)*(l-a)+(u-s)*(u-s),d=Math.sqrt(p),g=p-h*h;f>0&&d<=h||f<0&&d>=h||(i+=2*g*g,e[2*o]+=4*g*(a-l),e[2*o+1]+=4*g*(s-u),e[2*c]+=4*g*(l-a),e[2*c+1]+=4*g*(u-s))}return i}function IP(t,e){var n=LP(t,e),r=e.lossFunction||BP;if(t.length>=8){var i=FP(t,e),o,a;r(i,t)+1e-8<r(n,t)&&(n=i)}return n}function FP(t,e){var n=(e=e||{}).restarts||10,r=[],i={},o;for(o=0;o<t.length;++o){var a=t[o];1==a.sets.length&&(i[a.sets[0]]=r.length,r.push(a))}var s=EP(t,r,i),c=s.distances,l=s.constraints,u=Object(uP.norm2)(c.map(uP.norm2))/c.length;c=c.map((function(t){return t.map((function(t){return t/u}))}));var h=function(t,e){return PP(t,e,c,l)},f,p;for(o=0;o<n;++o){var d=Object(uP.zeros)(2*c.length).map(Math.random);p=Object(uP.conjugateGradient)(h,d,e),(!f||p.fx<f.fx)&&(f=p)}var g=f.x,y={};for(o=0;o<r.length;++o){var v=r[o];y[v.sets[0]]={x:g[2*o]*u,y:g[2*o+1]*u,radius:Math.sqrt(v.size/Math.PI)}}if(e.history)for(o=0;o<e.history.length;++o)Object(uP.scale)(e.history[o].x,u);return y}function LP(t,e){for(var n=e&&e.lossFunction?e.lossFunction:BP,r={},i={},o,a=0;a<t.length;++a){var s=t[a];1==s.sets.length&&(o=s.sets[0],r[o]={x:1e10,y:1e10,rowid:Object.keys(r).length,size:s.size,radius:Math.sqrt(s.size/Math.PI)},i[o]=[])}t=t.filter((function(t){return 2==t.sets.length}));for(var a=0;a<t.length;++a){var c=t[a],l=c.hasOwnProperty("weight")?c.weight:1,u=c.sets[0],h=c.sets[1];c.size+1e-10>=Math.min(r[u].size,r[h].size)&&(l=0),i[u].push({set:h,size:c.size,weight:l}),i[h].push({set:u,size:c.size,weight:l})}var f=[];for(o in i)if(i.hasOwnProperty(o)){for(var p=0,a=0;a<i[o].length;++a)p+=i[o][a].size*i[o][a].weight;f.push({set:o,size:p})}function d(t,e){return e.size-t.size}f.sort(d);var g={};function y(t){return t.set in g}function v(t,e){r[e].x=t.x,r[e].y=t.y,g[e]=!0}v({x:0,y:0},f[0].set);for(var a=1;a<f.length;++a){var m=f[a].set,b=i[m].filter(y);if(o=r[m],b.sort(d),0===b.length)throw"ERROR: missing pairwise overlap information";for(var x=[],O=0;O<b.length;++O){var j=r[b[O].set],w=kP(o.radius,j.radius,b[O].size);x.push({x:j.x+w,y:j.y}),x.push({x:j.x-w,y:j.y}),x.push({y:j.y+w,x:j.x}),x.push({y:j.y-w,x:j.x});for(var _=O+1;_<b.length;++_)for(var M=r[b[_].set],S=kP(o.radius,M.radius,b[_].size),C=mP({x:j.x,y:j.y,radius:w},{x:M.x,y:M.y,radius:S}),A=0;A<C.length;++A)x.push(C[A])}for(var k=1e50,T=x[0],O=0;O<x.length;++O){r[m].x=x[O].x,r[m].y=x[O].y;var E=n(r,t);E<k&&(k=E,T=x[O])}v(T,m)}return r}function BP(t,e){var n=0;function r(e){return e.map((function(e){return t[e]}))}for(var i=0;i<e.length;++i){var o=e[i],a=void 0;if(1!=o.sets.length){if(2==o.sets.length){var s=t[o.sets[0]],c=t[o.sets[1]];a=vP(s.radius,c.radius,yP(s,c))}else a=fP(r(o.sets));var l;n+=(o.hasOwnProperty("weight")?o.weight:1)*(a-o.size)*(a-o.size)}}return n}function DP(t,e,n){var r,i;if(null===n?t.sort((function(t,e){return e.radius-t.radius})):t.sort(n),t.length>0){var o=t[0].x,a=t[0].y;for(r=0;r<t.length;++r)t[r].x-=o,t[r].y-=a}2==t.length&&(yP(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y));if(t.length>1){var s=Math.atan2(t[1].x,t[1].y)-e,c=void 0,l=void 0,u=Math.cos(s),h=Math.sin(s);for(r=0;r<t.length;++r)c=t[r].x,l=t[r].y,t[r].x=u*c-h*l,t[r].y=h*c+u*l}if(t.length>2){for(var f=Math.atan2(t[2].x,t[2].y)-e;f<0;)f+=2*Math.PI;for(;f>2*Math.PI;)f-=2*Math.PI;if(f>Math.PI){var p=t[1].y/(1e-10+t[1].x);for(r=0;r<t.length;++r){var d=(t[r].x+p*t[r].y)/(1+p*p);t[r].x=2*d-t[r].x,t[r].y=2*d*p-t[r].y}}}}function RP(t){function e(t){return t.parent!==t&&(t.parent=e(t.parent)),t.parent}function n(t,n){var r=e(t),i=e(n);r.parent=i}t.map((function(t){t.parent=t}));for(var r=0;r<t.length;++r)for(var i=r+1;i<t.length;++i){var o=t[r].radius+t[i].radius;yP(t[r],t[i])+1e-10<o&&n(t[i],t[r])}for(var a={},s,r=0;r<t.length;++r)(s=e(t[r]).parent.setid)in a||(a[s]=[]),a[s].push(t[r]);t.map((function(t){delete t.parent}));var c=[];for(s in a)a.hasOwnProperty(s)&&c.push(a[s]);return c}function NP(t){var e=function(e){var n,r;return{max:Math.max.apply(null,t.map((function(t){return t[e]+t.radius}))),min:Math.min.apply(null,t.map((function(t){return t[e]-t.radius})))}};return{xRange:e("x"),yRange:e("y")}}function zP(t,e,n){null===e&&(e=Math.PI/2);var r=[],i,o;for(o in t)if(t.hasOwnProperty(o)){var a=t[o];r.push({x:a.x,y:a.y,radius:a.radius,setid:o})}var s=RP(r);for(i=0;i<s.length;++i){DP(s[i],e,n);var c=NP(s[i]);s[i].size=(c.xRange.max-c.xRange.min)*(c.yRange.max-c.yRange.min),s[i].bounds=c}s.sort((function(t,e){return e.size-t.size}));var l=(r=s[0]).bounds,u=(l.xRange.max-l.xRange.min)/50;function h(t,e,n){if(t){var i=t.bounds,o,a,s;e?o=l.xRange.max-i.xRange.min+u:(o=l.xRange.max-i.xRange.max,(s=(i.xRange.max-i.xRange.min)/2-(l.xRange.max-l.xRange.min)/2)<0&&(o+=s)),n?a=l.yRange.max-i.yRange.min+u:(a=l.yRange.max-i.yRange.max,(s=(i.yRange.max-i.yRange.min)/2-(l.yRange.max-l.yRange.min)/2)<0&&(a+=s));for(var c=0;c<t.length;++c)t[c].x+=o,t[c].y+=a,r.push(t[c])}}for(var f=1;f<s.length;)h(s[f],!0,!1),h(s[f+1],!1,!0),h(s[f+2],!0,!0),f+=3,l=NP(r);var p={};for(i=0;i<r.length;++i)p[r[i].setid]=r[i];return p}function YP(t,e,n,r){var i=[],o=[];for(var a in t)t.hasOwnProperty(a)&&(o.push(a),i.push(t[a]));e-=2*r,n-=2*r;var s=NP(i),c=s.xRange,l=s.yRange;if(c.max==c.min||l.max==l.min)return console.log("not scaling solution: zero size detected"),t;for(var u=e/(c.max-c.min),h=n/(l.max-l.min),f=Math.min(h,u),p=(e-(c.max-c.min)*f)/2,d=(n-(l.max-l.min)*f)/2,g={},y=0;y<i.length;++y){var v=i[y];g[o[y]]={radius:f*v.radius,x:r+p+(v.x-c.min)*f,y:r+d+(v.y-l.min)*f}}return g}var GP=Object(c.ab)((function(t,e,n,r){var i=new Map,o=t.length;return e.forEach((function(e,a){if(1===e[r].length)i.set(e.id,t[(a+o)%o]);else{var s=e[r].map((function(t){return i.get(t)}));i.set(e.id,s.slice(1).reduce((function(t,e){return cP(t,e,n)}),s[0]))}})),i}),(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return JSON.stringify(t)}));function HP(t,e,n,r){void 0===r&&(r=0);var i=t.data,o=t.setsField,a=t.sizeField;if(0===i.length)return kf(Mf.WARN,!1,"warn: %s","\u6570\u636e\u4e0d\u80fd\u4e3a\u7a7a"),[];var l=i.map((function(t){var e;return Object(s.__assign)(Object(s.__assign)({},t),((e={sets:t[o]||[],size:t[a]}).path="",e.id="",e))}));l.sort((function(t,e){return t.sets.length-e.sets.length}));var u,h=YP(CP(l),e,n,r),f=wP(h,l);return l.forEach((function(t){var e=t.sets,n=e.join(",");t.id=n;var r,i=SP(e.map((function(t){return h[t]})));/[zZ]$/.test(i)||(i+=" Z"),t.path=i;var o=f[n]||{x:0,y:0};Object(c.b)(t,o)})),l}function VP(t,e){for(var n=0;n<e.length;n++)if(!t.includes(e[n]))return!1;return!0}var WP=40;function XP(t,e,n){var r=t.chart,i=t.options,o=i.blendMode,a=i.setsField,s=r.getTheme(),l=s.colors10,u=s.colors20,h=n;Object(c.C)(h)||(h=e.filter((function(t){return 1===t[a].length})).length<=10?l:u);var f=GP(h,e,o,a);return function(t){return f.get(t)||h[0]}}function $P(t,e){var n,r=t.options.color;if("function"!=typeof r){var i,o=XP(t,e,"string"==typeof r?[r]:r);return function(t){return o(t.id)}}return r}function qP(t){var e=t.chart,n=t.options,r=n.legend,i=n.appendPadding,o=n.padding,a=ep(i);return!1!==r&&(a=np(i,Object(c.s)(r,"position"),40)),e.appendPadding=rp([a,o]),t}function UP(t){var e,n=t.options.data;n||(kf(Mf.WARN,!1,"warn: %s","\u6570\u636e\u4e0d\u80fd\u4e3a\u7a7a"),n=[]);var r=n.filter((function(t){return 1===t.sets.length})).map((function(t){return t.sets[0]})),i=n.filter((function(t){var e=t.sets;return VP(r,e)}));return Object(c.H)(i,n)||kf(Mf.WARN,!1,"warn: %s","\u4ea4\u96c6\u4e2d\u4e0d\u80fd\u51fa\u73b0\u4e0d\u5b58\u5728\u7684\u96c6\u5408, \u8bf7\u8f93\u5165\u5408\u6cd5\u6570\u636e"),Object(c.h)({},t,{options:{data:i}})}function KP(t){var e=t.chart,n=t.options,r=n.pointStyle,i=n.setsField,o=n.sizeField,a=ep(e.appendPadding),s=a[0],c=a[1],l=a[2],u=a[3],h={offsetX:u,offsetY:s},f=e.viewBBox,p=f.width,d=f.height,g=HP(n,Math.max(p-(c+u),0),Math.max(d-(s+l),0),0);e.data(g);var y,v=ud(Yf({},t,{options:{xField:"x",yField:"y",sizeField:o,seriesField:"id",rawFields:[i,o],schema:{shape:"venn",style:r}}})).ext.geometry;v.customInfo(h);var m=$P(t,g);return"function"==typeof m&&v.color("id",(function(e){var n=g.find((function(t){return t.id===e})),r=XP(t,g)(e);return m(n,r)})),t}function ZP(t){var e=t.chart,n,r=t.options.label,i=ep(e.appendPadding),o=i[0],a,l={offsetX:i[3],offsetY:o},u=Wf(e,"schema");if(r){var h=r.callback,f=Object(s.__rest)(r,["callback"]);u.label({fields:["id"],callback:h,cfg:Object(c.h)({},Kf(f),{type:"venn",customLabelInfo:l})})}else u.label(!1);return t}function QP(t){var e=t.chart,n=t.options,r=n.legend,i=n.sizeField;return e.legend("id",r),e.legend(i,!1),t}function JP(t){var e;return t.chart.axis(!1),t}function tI(t){var e=t.options,n=t.chart,r=e.interactions;if(r){var i={"legend-active":"venn-legend-active","legend-highlight":"venn-legend-highlight"};Bp(Yf({},t,{options:{interactions:r.map((function(t){return Object(s.__assign)(Object(s.__assign)({},t),{type:i[t.type]||t.type})}))}}))}return n.removeInteraction("legend-active"),n.removeInteraction("legend-highlight"),t}function eI(t){return Vf(qP,Rp,UP,KP,ZP,Gp({}),QP,JP,Lp,tI,Dp)(t)}var nI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="venn",e}return Object(s.__extends)(e,t),e.getDefaultOptions=function(){return K_},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return eI},e.prototype.triggerResize=function(){this.chart.destroyed||(this.chart.forceFit(),this.chart.clear(),this.execAdaptor(),this.chart.render(!0))},e}(gd),rI="x",iI="violinY",oI="violinSize",aI="minMax",sI="quantile",cI="median",lI="violin_view",uI="min_max_view",hI="quantile_view",fI="median_view",pI=Yf({},gd.getDefaultOptions(),{syncViewPadding:!0,kde:{type:"triangular",sampleSize:32,width:3},violinStyle:{lineWidth:1,fillOpacity:.3,strokeOpacity:.75},xAxis:{grid:{line:null},tickLine:{alignTick:!1}},yAxis:{grid:{line:{style:{lineWidth:.5,lineDash:[4,4]}}}},legend:{position:"top-left"},tooltip:{showMarkers:!1}}),dI=n(428),gI=n.n(dI);function yI(t,e){var n=t.length*e;if(0===t.length)throw new Error("quantile requires at least one data point.");if(e<0||e>1)throw new Error("quantiles must be between 0 and 1");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]}function vI(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function mI(t,e,n,r){for(n=n||0,r=r||t.length-1;r>n;){if(r-n>600){var i=r-n+1,o=e-n+1,a=Math.log(i),s=.5*Math.exp(2*a/3),c=.5*Math.sqrt(a*s*(i-s)/i),l,u;o-i/2<0&&(c*=-1),mI(t,e,Math.max(n,Math.floor(e-o*s/i+c)),Math.min(r,Math.floor(e+(i-o)*s/i+c)))}var h=t[e],f=n,p=r;for(vI(t,n,e),t[r]>h&&vI(t,n,r);f<p;){for(vI(t,f,p),f++,p--;t[f]<h;)f++;for(;t[p]>h;)p--}t[n]===h?vI(t,n,p):vI(t,++p,r),p<=e&&(n=p+1),e<=p&&(r=p-1)}}function bI(t,e){var n=t.slice(),r;if(Array.isArray(e)){OI(n,e);for(var i=[],o=0;o<e.length;o++)i[o]=yI(n,e[o]);return i}return xI(n,wI(n.length,e),0,n.length-1),yI(n,e)}function xI(t,e,n,r){e%1==0?mI(t,e,n,r):(mI(t,e=Math.floor(e),n,r),mI(t,e+1,e+1,r))}function OI(t,e){for(var n=[0],r=0;r<e.length;r++)n.push(wI(t.length,e[r]));n.push(t.length-1),n.sort(jI);for(var i=[0,n.length-1];i.length;){var o=Math.ceil(i.pop()),a=Math.floor(i.pop());if(!(o-a<=1)){var s=Math.floor((a+o)/2);xI(t,n[s],Math.floor(n[a]),Math.ceil(n[o])),i.push(a,s,s,o)}}}function jI(t,e){return t-e}function wI(t,e){var n=t*e;return 1===e?t-1:0===e?0:n%1!=0?Math.ceil(n)-1:t%2==0?n-.5:n}var _I=function(t){return{low:Object(c.bb)(t),high:Object(c.Y)(t),q1:bI(t,.25),q3:bI(t,.75),median:bI(t,[.5]),minMax:[Object(c.bb)(t),Object(c.Y)(t)],quantile:[bI(t,.25),bI(t,.75)]}},MI=function(t,e){var n=gI.a.create(t,e);return{violinSize:n.map((function(t){return t.y})),violinY:n.map((function(t){return t.x}))}},SI=function(t){var e=t.xField,n=t.yField,r=t.seriesField,i=t.data,o=t.kde,a={min:o.min,max:o.max,size:o.sampleSize,width:o.width};if(!r){var l=Object(c.w)(i,e);return Object.keys(l).map((function(t){var e,r=l[t].map((function(t){return t[n]}));return Object(s.__assign)(Object(s.__assign)({x:t},MI(r,a)),_I(r))}))}var u=[],h=Object(c.w)(i,r);return Object.keys(h).forEach((function(t){var i=Object(c.w)(h[t],e);return Object.keys(i).forEach((function(e){var o,c,l=i[e].map((function(t){return t[n]}));u.push(Object(s.__assign)(Object(s.__assign)(((o={x:e})[r]=t,o),MI(l,a)),_I(l)))}))})),u},CI=["low","high","q1","q3","median"],AI=[{type:"dodge",marginRatio:1/32}];function kI(t){var e=t.chart,n=t.options;return e.data(SI(n)),t}function TI(t){var e=t.chart,n=t.options,r=n.seriesField,i=n.color,o=n.shape,a=void 0===o?"violin":o,c=n.violinStyle,l=n.tooltip,u=n.state,h=e.createView({id:"violin_view"});return hd({chart:h,options:{xField:"x",yField:"violinY",seriesField:r||"x",sizeField:"violinSize",tooltip:Object(s.__assign)({fields:CI},l),violin:{style:c,color:i,shape:a},state:u}}),h.geometries[0].adjust(AI),t}function EI(t){var e=t.chart,n=t.options,r=n.seriesField,i=n.color,o=n.tooltip,a=n.box;if(!1===a)return t;var c=e.createView({id:"min_max_view"});ad({chart:c,options:{xField:"x",yField:"minMax",seriesField:r||"x",tooltip:Object(s.__assign)({fields:CI},o),state:"object"==typeof a?a.state:{},interval:{color:i,size:1,style:{lineWidth:0}}}}),c.geometries[0].adjust(AI);var l=e.createView({id:"quantile_view"});ad({chart:l,options:{xField:"x",yField:"quantile",seriesField:r||"x",tooltip:Object(s.__assign)({fields:CI},o),state:"object"==typeof a?a.state:{},interval:{color:i,size:8,style:{fillOpacity:1}}}}),l.geometries[0].adjust(AI);var u=e.createView({id:"median_view"});return cd({chart:u,options:{xField:"x",yField:"median",seriesField:r||"x",tooltip:Object(s.__assign)({fields:CI},o),state:"object"==typeof a?a.state:{},point:{color:i,size:1,style:{fill:"white",lineWidth:0}}}}),u.geometries[0].adjust(AI),l.axis(!1),c.axis(!1),u.axis(!1),u.legend(!1),c.legend(!1),l.legend(!1),t}function PI(t){var e,n=t.chart,r=t.options,i=r.meta,o=r.xAxis,a=r.yAxis,c,l=Yf({},i,((e={}).x=Object(s.__assign)(Object(s.__assign)({sync:!0},Tf(o,_f)),{type:"cat"}),e.violinY=Object(s.__assign)({sync:!0},Tf(a,_f)),e.minMax=Object(s.__assign)({sync:"violinY"},Tf(a,_f)),e.quantile=Object(s.__assign)({sync:"violinY"},Tf(a,_f)),e.median=Object(s.__assign)({sync:"violinY"},Tf(a,_f)),e));return n.scale(l),t}function II(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=pp(e,"violin_view");return!1===r?o.axis("x",!1):o.axis("x",r),!1===i?o.axis("violinY",!1):o.axis("violinY",i),e.axis(!1),t}function FI(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField,o=n.shape;if(!1===r)e.legend(!1);else{var a=i||"x",s=Object(c.gb)(r,["selected"]);o&&o.startsWith("hollow")||Object(c.s)(s,["marker","style","lineWidth"])||Object(c.lb)(s,["marker","style","lineWidth"],0),e.legend(a,s),Object(c.s)(r,"selected")&&Object(c.j)(e.views,(function(t){return t.legend(a,r)}))}return t}function LI(t){var e,n=pp(t.chart,"violin_view");return Hp()(Object(s.__assign)(Object(s.__assign)({},t),{chart:n})),t}function BI(t){var e=t.chart,n,r=t.options.animation;return Object(c.j)(e.views,(function(t){yp(t,r)})),t}function DI(t){return Vf(Rp,kI,TI,EI,PI,Lp,II,FI,Bp,LI,BI)(t)}var RI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="violin",e}return Object(s.__extends)(e,t),e.getDefaultOptions=function(){return pI},e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(SI(this.options))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return DI},e}(gd),NI="$$yField$$",zI="$$diffField$$",YI="$$absoluteField$$",GI="$$isTotal$$",HI={label:{},leaderLine:{style:{lineWidth:1,stroke:"#8c8c8c",lineDash:[4,2]}},total:{style:{fill:"rgba(0, 0, 0, 0.25)"}},interactions:[{type:"element-active"}],risingFill:"#f4664a",fallingFill:"#30bf78",waterfallStyle:{fill:"rgba(0, 0, 0, 0.25)"},yAxis:{grid:{line:{style:{lineDash:[4,2]}}}}};function VI(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 o=t[0];return e.push(["L",o.x,o.y]),e.push(["z"]),e}function WI(t){return Yf({},t.defaultStyle,t.style,{fill:t.color})}function XI(t,e,n,r,i){var o,a=[];if(Object(c.ib)(t,(function(t,e){var i;kf(Mf.WARN,Object(c.M)(e[n]),"".concat(e[n]," is not a valid number"));var o=Object(c.S)(e[n])?null:e[n];return a.push(Object(s.__assign)(Object(s.__assign)({},e),((i={})[r]=[t,t+o],i))),t+o}),0),a.length&&i){var l=Object(c.s)(a,[[t.length-1],r,[1]]);a.push(((o={})[e]=i.label,o[n]=l,o[r]=[0,l],o))}return a}function $I(t,e,n,r){var i;return XI(t,e,n,"$$yField$$",r).map((function(e,n){var r;return Object(c.O)(e)?Object(s.__assign)(Object(s.__assign)({},e),((r={})[YI]=e.$$yField$$[1],r[zI]=e.$$yField$$[1]-e.$$yField$$[0],r[GI]=n===t.length,r)):e}))}function qI(t){var e=t.options,n=e.locale,r=e.total,i=Kp(n).get(["waterfall","total"]);return r&&"string"!=typeof r.label&&i&&(t.options.total.label=i),t}function UI(t){var e=t.chart,n=t.options,r=n.data,i=n.xField,o=n.yField,a=n.total,l=n.leaderLine,u=n.columnWidthRatio,h=n.waterfallStyle,f=n.risingFill,p=n.fallingFill,d=n.color,g=n.shape,y=n.customInfo,v,m,b,x;return e.data($I(r,i,o,a)),ad(Yf({},t,{options:{xField:i,yField:"$$yField$$",seriesField:i,rawFields:[o,zI,GI,"$$yField$$"],widthRatio:u,interval:{style:h,shape:g||"waterfall",color:d||function(t){return Object(c.s)(t,[GI])?Object(c.s)(a,["style","fill"],""):Object(c.s)(t,["$$yField$$",1])-Object(c.s)(t,["$$yField$$",0])>0?f:p}}}})).ext.geometry.customInfo(Object(s.__assign)(Object(s.__assign)({},y),{leaderLine:l})),t}function KI(t){var e,n,r=t.options,i=r.xAxis,o=r.yAxis,a=r.xField,s=r.yField,l=r.meta,u=Yf({},{alias:s},Object(c.s)(l,s));return Vf(Gp(((e={})[a]=i,e[s]=o,e.$$yField$$=o,e),Yf({},l,((n={}).$$yField$$=u,n[zI]=u,n[YI]=u,n))))(t)}function ZI(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?(e.axis(a,!1),e.axis("$$yField$$",!1)):(e.axis(a,i),e.axis("$$yField$$",i)),t}function QI(t){var e=t.chart,n=t.options,r=n.legend,i=n.total,o=n.risingFill,a=n.fallingFill,s,l=Kp(n.locale);if(!1===r)e.legend(!1);else{var u=[{name:l.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:o}}},{name:l.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:a}}}];i&&u.push({name:i.label||"",value:"total",marker:{symbol:"square",style:Yf({},{r:5},Object(c.s)(i,"style"))}}),e.legend(Yf({},{custom:!0,position:"top",items:u},r)),e.removeInteraction("legend-filter")}return t}function JI(t){var e=t.chart,n=t.options,r=n.label,i=n.labelMode,o=n.xField,a=Wf(e,"interval");if(r){var c=r.callback,l=Object(s.__rest)(r,["callback"]);a.label({fields:"absolute"===i?[YI,o]:[zI,o],callback:c,cfg:Kf(l)})}else a.label(!1);return t}function tF(t){var e=t.chart,n=t.options,r=n.tooltip,i=n.xField,o=n.yField;if(!1!==r){e.tooltip(Object(s.__assign)({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[o]},r));var a=e.geometries[0];(null==r?void 0:r.formatter)?a.tooltip("".concat(i,"*").concat(o),r.formatter):a.tooltip(o)}else e.tooltip(!1);return t}function eF(t){return Vf(qI,Rp,UI,KI,ZI,QI,tF,JI,Np,Bp,Dp,Hp())(t)}xi("interval","waterfall",{draw:function(t,e){var n=t.customInfo,r=t.points,i=t.nextPoints,o=e.addGroup(),a=this.parsePath(VI(r)),l=WI(t);o.addShape("path",{attrs:Object(s.__assign)(Object(s.__assign)({},l),{path:a})});var u=Object(c.s)(n,"leaderLine");if(u&&i){var h=[["M",r[2].x,r[2].y],["L",i[0].x,i[0].y]];r[2].y===i[1].y&&(h[1]=["L",i[1].x,i[1].y]),h=this.parsePath(h),o.addShape("path",{attrs:Object(s.__assign)({path:h},u.style||{})})}return o}});var nF=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="waterfall",e}return Object(s.__extends)(e,t),e.getDefaultOptions=function(){return HI},e.prototype.changeData=function(t){var e=this.options,n=e.xField,r=e.yField,i=e.total;this.updateOption({data:t}),this.chart.changeData($I(t,n,r,i))},e.prototype.getSchemaAdaptor=function(){return eF},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(gd),rF="color",iF=Yf({},gd.getDefaultOptions(),{timeInterval:2e3,legend:!1,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!1,fields:["text","value","color"],formatter:function(t){return{name:t.text,value:t.value}}},wordStyle:{fontFamily:"Verdana",fontWeight:"normal",padding:1,fontSize:[12,60],rotation:[0,90],rotationSteps:2,rotateRatio:.5}}),oF={font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:3e3};function aF(t,e){return sF(t,e=Object(c.b)({},oF,e))}function sF(t,e){var n=CF();["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach((function(t){Object(c.K)(e[t])||n[t](e[t])})),n.words(t),e.imageMask&&n.createMask(e.imageMask);var r,i=n.start()._tags;i.forEach((function(t){t.x+=e.size[0]/2,t.y+=e.size[1]/2}));var o=e.size,a=o[0],s=o[1];return i.push({text:"",value:0,x:0,y:0,opacity:0}),i.push({text:"",value:0,x:a,y:s,opacity:0}),i}var cF=Math.PI/180,lF=64,uF=2048;function hF(t){return t.text}function fF(){return"serif"}function pF(){return"normal"}function dF(t){return t.value}function gF(){return 90*~~(2*Math.random())}function yF(){return 1}function vF(t,e,n,r){if(!e.sprite){var i=t.context,o=t.ratio;i.clearRect(0,0,2048/o,uF/o);var a=0,s=0,c=0,l=n.length;for(--r;++r<l;){e=n[r],i.save(),i.font=e.style+" "+e.weight+" "+~~((e.size+1)/o)+"px "+e.font;var u=i.measureText(e.text+"m").width*o,h=e.size<<1;if(e.rotate){var f=Math.sin(e.rotate*cF),p=Math.cos(e.rotate*cF),d=u*p,g=u*f,y=h*p,v=h*f;u=Math.max(Math.abs(d+v),Math.abs(d-v))+31>>5<<5,h=~~Math.max(Math.abs(g+y),Math.abs(g-y))}else u=u+31>>5<<5;if(h>c&&(c=h),a+u>=2048&&(a=0,s+=c,c=0),s+h>=uF)break;i.translate((a+(u>>1))/o,(s+(h>>1))/o),e.rotate&&i.rotate(e.rotate*cF),i.fillText(e.text,0,0),e.padding&&(i.lineWidth=2*e.padding,i.strokeText(e.text,0,0)),i.restore(),e.width=u,e.height=h,e.xoff=a,e.yoff=s,e.x1=u>>1,e.y1=h>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,a+=u}for(var m=i.getImageData(0,0,2048/o,uF/o).data,b=[];--r>=0;)if((e=n[r]).hasText){for(var u,x=(u=e.width)>>5,h=e.y1-e.y0,O=0;O<h*x;O++)b[O]=0;if(null==(a=e.xoff))return;s=e.yoff;for(var j=0,w=-1,_=0;_<h;_++){for(var O=0;O<u;O++){var M=x*_+(O>>5),S=m[2048*(s+_)+(a+O)<<2]?1<<31-O%32:0;b[M]|=S,j|=S}j?w=_:(e.y0++,h--,_--,s++)}e.y1=e.y0+w,e.sprite=b.slice(0,(e.y1-e.y0)*x)}}}function mF(t,e,n){n>>=5;for(var r=t.sprite,i=t.width>>5,o=t.x-(i<<4),a=127&o,s=32-a,c=t.y1-t.y0,l=(t.y+t.y0)*n+(o>>5),u,h=0;h<c;h++){u=0;for(var f=0;f<=i;f++)if((u<<s|(f<i?(u=r[h*i+f])>>>a:0))&e[l+f])return!0;l+=n}return!1}function bF(t,e){var n=t[0],r=t[1];e.x+e.x0<n.x&&(n.x=e.x+e.x0),e.y+e.y0<n.y&&(n.y=e.y+e.y0),e.x+e.x1>r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function xF(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0<e[1].x&&t.y+t.y1>e[0].y&&t.y+t.y0<e[1].y}function OF(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function jF(t){var e=4,n=4*t[0]/t[1],r=0,i=0;return function(t){var e=t<0?-1:1;switch(Math.sqrt(1+4*e*t)-e&3){case 0:r+=n;break;case 1:i+=4;break;case 2:r-=n;break;default:i-=4}return[r,i]}}function wF(t){for(var e=[],n=-1;++n<t;)e[n]=0;return e}function _F(){return document.createElement("canvas")}function MF(t){return Object(c.I)(t)?t:function(){return t}}var SF={archimedean:OF,rectangular:jF};function CF(){var t=[256,256],e=fF,n=dF,r=pF,i=gF,o=yF,a=OF,s=Math.random,c=[],l=1/0,u=hF,h=pF,f=_F,p={};function d(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,1,1).data.length>>2);t.width=2048/e,t.height=uF/e;var n=t.getContext("2d",{willReadFrequently:!0});return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}function g(e,n,r){for(var i=n.x,o=n.y,c=Math.sqrt(t[0]*t[0]+t[1]*t[1]),l=a(t),u=s()<.5?1:-1,h,f=-u,p,d;(h=l(f+=u))&&(p=~~h[0],d=~~h[1],!(Math.min(Math.abs(p),Math.abs(d))>=c));)if(n.x=i+p,n.y=o+d,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1])&&(!r||!mF(n,e,t[0]))&&(!r||xF(n,r))){for(var g=n.sprite,y=n.width>>5,v=t[0]>>5,m=n.x-(y<<4),b=127&m,x=32-b,O=n.y1-n.y0,j=void 0,w=(n.y+n.y0)*v+(m>>5),_=0;_<O;_++){j=0;for(var M=0;M<=y;M++)e[w+M]|=j<<x|(M<y?(j=g[_*y+M])>>>b:0);w+=v}return delete n.sprite,!0}return!1}return p.start=function(){var a=t[0],y=t[1],v=d(f()),m=p.board?p.board:wF((t[0]>>5)*t[1]),b=c.length,x=[],O=c.map((function(t,a,s){return t.text=u.call(this,t,a,s),t.font=e.call(this,t,a,s),t.style=h.call(this,t,a,s),t.weight=r.call(this,t,a,s),t.rotate=i.call(this,t,a,s),t.size=~~n.call(this,t,a,s),t.padding=o.call(this,t,a,s),t})).sort((function(t,e){return e.size-t.size})),j=-1,w=p.board?[{x:0,y:0},{x:a,y:y}]:null;function _(){for(var e=Date.now();Date.now()-e<l&&++j<b;){var n=O[j];n.x=a*(s()+.5)>>1,n.y=y*(s()+.5)>>1,vF(v,n,O,j),n.hasText&&g(m,n,w)&&(x.push(n),w?p.hasImage||bF(w,n):w=[{x:n.x+n.x0,y:n.y+n.y0},{x:n.x+n.x1,y:n.y+n.y1}],n.x-=t[0]>>1,n.y-=t[1]>>1)}p._tags=x,p._bounds=w}return _(),p},p.createMask=function(e){var n=document.createElement("canvas"),r=t[0],i=t[1];if(r&&i){var o=r>>5,a=wF((r>>5)*i);n.width=r,n.height=i;var s=n.getContext("2d");s.drawImage(e,0,0,e.width,e.height,0,0,r,i);for(var c=s.getImageData(0,0,r,i).data,l=0;l<i;l++)for(var u=0;u<r;u++){var h=o*l+(u>>5),f=l*r+u<<2,d,g=c[f]>=250&&c[f+1]>=250&&c[f+2]>=250?1<<31-u%32:0;a[h]|=g}p.board=a,p.hasImage=!0}},p.timeInterval=function(t){l=null==t?1/0:t},p.words=function(t){c=t},p.size=function(e){t=[+e[0],+e[1]]},p.font=function(t){e=MF(t)},p.fontWeight=function(t){r=MF(t)},p.rotate=function(t){i=MF(t)},p.spiral=function(t){a=SF[t]||t},p.fontSize=function(t){n=MF(t)},p.padding=function(t){o=MF(t)},p.random=function(t){s=MF(t)},p}function AF(t){var e=t.options,n=t.chart,r=n,i=r.width,o=r.height,a=r.padding,l=r.appendPadding,u=r.ele,h=e.data,f=e.imageMask,p=e.wordField,d=e.weightField,g=e.colorField,y=e.wordStyle,v=e.timeInterval,m=e.random,b=e.spiral,x=e.autoFit,O=void 0===x||x,j=e.placementStrategy;if(!h||!h.length)return[];var w=y.fontFamily,_=y.fontWeight,M=y.padding,S=y.fontSize,C=IF(h,d),A=[BF(C),DF(C)],k=h.map((function(t){return{text:t[p],value:t[d],color:t[g],datum:t}})),T={imageMask:f,font:w,fontSize:PF(S,A),fontWeight:_,size:kF({width:i,height:o,padding:a,appendPadding:l,autoFit:O,container:u}),padding:M,timeInterval:v,random:m,spiral:b,rotate:FF(e)};if(Object(c.I)(j)){var E=k.map((function(t,e,r){return Object(s.__assign)(Object(s.__assign)(Object(s.__assign)({},t),{hasText:!!t.text,font:MF(T.font)(t,e,r),weight:MF(T.fontWeight)(t,e,r),rotate:MF(T.rotate)(t,e,r),size:MF(T.fontSize)(t,e,r),style:"normal"}),j.call(n,t,e,r))}));return E.push({text:"",value:0,x:0,y:0,opacity:0}),E.push({text:"",value:0,x:T.size[0],y:T.size[1],opacity:0}),E}return aF(k,T)}function kF(t){var e=t.width,n=t.height,r=t.container,i=t.autoFit,o=t.padding,a=t.appendPadding;if(i){var s=Hf(r);e=s.width,n=s.height}e=e||400,n=n||400;var c=TF({padding:o,appendPadding:a}),l=c[0],u=c[1],h=c[2],f,p;return[e-(c[3]+u),n-(l+h)]}function TF(t){var e=ep(t.padding),n=ep(t.appendPadding),r,i,o,a;return[e[0]+n[0],e[1]+n[1],e[2]+n[2],e[3]+n[3]]}function EF(t){return new Promise((function(e,n){if(t instanceof HTMLImageElement)e(t);else{if(Object(c.Q)(t)){var r=new Image;return r.crossOrigin="anonymous",r.src=t,r.onload=function(){e(r)},void(r.onerror=function(){kf(Mf.ERROR,!1,"image %s load failed !!!",t),n()})}kf(Mf.WARN,void 0===t,"The type of imageMask option must be String or HTMLImageElement."),n()}}))}function PF(t,e){if(Object(c.I)(t))return t;if(Object(c.C)(t)){var n=t[0],r=t[1];if(!e)return function(){return(r+n)/2};var i=e[0],o=e[1];return o===i?function(){return(r+n)/2}:function t(e){var a=e.value;return(r-n)/(o-i)*(a-i)+n}}return function(){return t}}function IF(t,e){return t.map((function(t){return t[e]})).filter((function(t){return"number"==typeof t&&!isNaN(t)}))}function FF(t){var e=LF(t),n=e.rotation,r=e.rotationSteps;if(!Object(c.C)(n))return n;var i=n[0],o=n[1],a=1===r?0:(o-i)/(r-1);return function t(){return o===i?o:Math.floor(Math.random()*r)*a}}function LF(t){var e=t.wordStyle.rotationSteps;return e<1&&(kf(Mf.WARN,!1,"The rotationSteps option must be greater than or equal to 1."),e=1),{rotation:t.wordStyle.rotation,rotationSteps:e}}function BF(t){return Math.min.apply(Math,t)}function DF(t){return Math.max.apply(Math,t)}function RF(t){var e=t.chart,n=t.options,r=n.colorField,i=n.color,o=AF(t),a,l;return e.data(o),cd(Yf({},t,{options:{xField:"x",yField:"y",seriesField:r&&"color",rawFields:Object(c.I)(i)&&Object(s.__spreadArray)(Object(s.__spreadArray)([],Object(c.s)(n,"rawFields",[]),!0),["datum"],!1),point:{color:i,shape:"word-cloud"}}})).ext.geometry.label(!1),e.coordinate().reflect("y"),e.axis(!1),t}function NF(t){return Vf(Gp({x:{nice:!1},y:{nice:!1}}))(t)}function zF(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField;return!1===r?e.legend(!1):i&&e.legend("color",r),t}function YF(t){Vf(RF,NF,Lp,zF,Bp,Dp,Rp,Np)(t)}function GF(t){return{fontSize:t.data.size,text:t.data.text,textAlign:"center",fontFamily:t.data.font,fontWeight:t.data.weight,fill:t.color||t.defaultStyle.stroke,textBaseline:"alphabetic"}}xi("point","word-cloud",{draw:function(t,e){var n=t.x,r=t.y,i=e.addShape("text",{attrs:Object(s.__assign)(Object(s.__assign)({},GF(t)),{x:n,y:r})}),o=t.data.rotate;return"number"==typeof o&&mo.rotate(i,o*Math.PI/180),i}});var HF=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="word-cloud",e}return Object(s.__extends)(e,t),e.getDefaultOptions=function(){return iF},e.prototype.changeData=function(t){this.updateOption({data:t}),this.options.imageMask?this.render():this.chart.changeData(AF({chart:this.chart,options:this.options}))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.render=function(){var e=this;return new Promise((function(n){var r=e.options.imageMask;if(!r)return t.prototype.render.call(e),void n();var i=function(r){e.options=Object(s.__assign)(Object(s.__assign)({},e.options),{imageMask:r||null}),t.prototype.render.call(e),n()};EF(r).then(i).catch(i)}))},e.prototype.getSchemaAdaptor=function(){return YF},e.prototype.triggerResize=function(){var e=this;this.chart.destroyed||(this.execAdaptor(),window.setTimeout((function(){t.prototype.triggerResize.call(e)})))},e}(gd),VF=function(t){function e(e,n,r,i){var o=t.call(this,e,Yf({},i,n))||this;return o.type="g2-plot",o.defaultOptions=i,o.adaptor=r,o}return Object(s.__extends)(e,t),e.prototype.getDefaultOptions=function(){return this.defaultOptions},e.prototype.getSchemaAdaptor=function(){return this.adaptor},e}(gd),WF="2.4.31";Up("en-US",Zp),Up("zh-CN",Qp);var XF={scale:Gp,legend:Fp,tooltip:Lp,annotation:Hp,interaction:Bp,theme:Rp,animation:Dp},$F=n(61),qF=function(){return(qF=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}).apply(this,arguments)},UF=function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){t.done?n(t.value):i(t.value).then(a,s)}c((r=r.apply(t,e||[])).next())}))},KF=function(t,e){var n={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return c([t,e])}}function c(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(o=2&s[0]?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(!(o=n.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){n=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(6===s[0]&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=e.call(t,n)}catch(t){s=[6,t],i=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},ZF=qF({},$F),QF=ZF.version,JF=ZF.render,tL=ZF.unmountComponentAtNode,eL;try{var nL;Number((QF||"").split(".")[0])>=18&&(eL=ZF.createRoot)}catch(t){}function rL(t){var e=ZF.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;e&&"object"==typeof e&&(e.usingClientEntryPoint=t)}var iL="__rc_react_root__";function oL(t,e){rL(!0);var n=e[iL]||eL(e);rL(!1),n.render(t),e[iL]=n}function aL(t,e){JF(t,e)}function sL(t,e){0}function cL(t,e){eL?oL(t,e):aL(t,e)}function lL(t){return UF(this,void 0,void 0,(function(){return KF(this,(function(e){return[2,Promise.resolve().then((function(){var e;null===(e=t[iL])||void 0===e||e.unmount(),delete t[iL]}))]}))}))}function uL(t){tL(t)}function hL(t){0}function fL(t){return UF(this,void 0,void 0,(function(){return KF(this,(function(e){return void 0!==eL?[2,lL(t)]:(uL(t),[2])}))}))}var pL=new Map,dL,gL=function(t,e,n){var r=document.createElement("div");return"tooltip"===e&&(r.setAttribute("data-uuid",n),pL.has(n)?r=pL.get(n):pL.set(n,r),r.className="g2-tooltip"),cL(t,r),r},yL=function(t,e){var n;return{}.toString.call(t)==="[object ".concat(e,"]")},vL=function(t){if(!t)return t;var e={};for(var n in t)e[n]=t[n];return e},mL=function(t){return Object.prototype.toString.call(t).slice(8,-1)},bL=function(t){return t&&"object"==typeof t?(Array.isArray(t)?e=t.map((function(t){return bL(t)})):(e={},Object.keys(t).forEach((function(n){return e[n]=bL(t[n])}))),e):t;var e},xL=function(t,e){for(var n=t,r=0;r<e.length;r+=1){if(!(null==n?void 0:n[e[r]])){n=void 0;break}n=n[e[r]]}return n},OL=function(t,e,n){if(!t)return t;var r=t;return e.forEach((function(t,i){i<e.length-1?r=r[t]:r[t]=n})),t},jL=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0,n;return("x"==t?e:3&e|8).toString(16)}))},wL=function(){return(wL=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}).apply(this,arguments)},_L=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)for(var i=0,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};function ML(t,e){var n=Object(o.useRef)(),r=Object(o.useRef)(),i=Object(o.useRef)(null),a=e.onReady,s=e.onEvent,l=function(t,e){var r;return void 0===t&&(t="image/png"),null===(r=n.current)||void 0===r?void 0:r.chart.canvas.cfg.el.toDataURL(t,e)},u=function(t,e,r){var i;void 0===t&&(t="download"),void 0===e&&(e="image/png");var o=t;-1===t.indexOf(".")&&(o="".concat(t,".").concat(e.split("/")[1]));var a=null===(i=n.current)||void 0===i?void 0:i.chart.canvas.cfg.el.toDataURL(e,r),s=document.createElement("a");return s.href=a,s.download=o,document.body.appendChild(s),s.click(),document.body.removeChild(s),s=null,o},h=function(t,e,n,r){var i=xL(t,e);OL(t,e,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var o=yL(i,"Function")?i.apply(void 0,t):i;return yL(o,"String")||yL(o,"Number")||yL(o,"HTMLDivElement")?o:gL(o,n,r)}))},f=function(){var t=jL();xL(e,["statistic","content","customHtml"])&&h(e,["statistic","content","customHtml"]),xL(e,["statistic","title","customHtml"])&&h(e,["statistic","title","customHtml"]),"object"==typeof e.tooltip&&(xL(e,["tooltip","container"])&&h(e,["tooltip","container"],"tooltip",t),xL(e,["tooltip","customContent"])&&h(e,["tooltip","customContent"],"tooltip",t))};return Object(o.useEffect)((function(){if(n.current&&!Object(c.H)(r.current,e)){var t=!1;if(r.current){var i=r.current,o=i.data,a=i.value,s=i.percent,l=_L(i,["data","value","percent"]),u=e.data,h=e.value,p=e.percent,d=_L(e,["data","value","percent"]);t=Object(c.H)(l,d)}if(r.current=bL(e),t&&"Mix"!==Object(c.s)(e,"chartType")){var g="data",y=["percent"],v=Object.keys(e);y.forEach((function(t){v.includes(t)&&(g=t)})),n.current.changeData((null==e?void 0:e[g])||[]),n.current.render()}else f(),n.current.update(e)}}),[e]),Object(o.useEffect)((function(){if(!i.current)return function(){return null};r.current||(r.current=bL(e)),f();var o=new t(i.current,wL({},e));o.toDataURL=function(t,e){return l(t,e)},o.downloadImage=function(t,e,n){return u(t,e,n)},o.render(),n.current=vL(o),a&&a(o);var c=function(t){s&&s(o,t)};return o.on("*",c),function(){n.current&&(n.current.destroy(),n.current.off("*",c),n.current=void 0)}}),[]),{chart:n,container:i}}var SL=function(t,e){t&&(Object(c.I)(t)?t(e):t.current=e)},CL=(AL=function(t,e){return(AL=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)},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}AL(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),AL,kL,TL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={hasError:!1},e.renderError=function(t){var n=e.props.errorTemplate;return"function"==typeof n?n(t):n||a.a.createElement("h5",null,"\u7ec4\u4ef6\u51fa\u9519\u4e86\uff0c\u8bf7\u6838\u67e5\u540e\u91cd\u8bd5\uff1a ",t.message)},e}return CL(e,t),e.getDerivedStateFromError=function(t){return{hasError:!0,error:t}},e.getDerivedStateFromProps=function(t,e){return e.children!==t.children?{children:t.children,hasError:!1,error:void 0}:null},e.prototype.render=function(){return this.state.hasError?this.renderError(this.state.error):a.a.createElement(o.Fragment,null,this.props.children)},e}(a.a.Component),EL=function(){return(EL=Object.assign||function t(e){for(var n,r=1,i=arguments.length;r<i;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e}).apply(this,arguments)};function PL(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)for(var i=0,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}var IL=function(){return Math.random().toString(36).substring(6)},FL=function(t){var e=t.animate,n=t.backgroundColor,r=t.backgroundOpacity,i=t.baseUrl,a=t.children,s=t.foregroundColor,c=t.foregroundOpacity,l=t.gradientRatio,u=t.uniqueKey,h=t.interval,f=t.rtl,p=t.speed,d=t.style,g=t.title,y=PL(t,["animate","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","uniqueKey","interval","rtl","speed","style","title"]),v=u||IL(),m=v+"-diff",b=v+"-animated-diff",x=v+"-aria",O=f?{transform:"scaleX(-1)"}:null,j="0; "+h+"; 1",w=p+"s";return Object(o.createElement)("svg",EL({"aria-labelledby":x,role:"img",style:EL(EL({},d),O)},y),g?Object(o.createElement)("title",{id:x},g):null,Object(o.createElement)("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url("+i+"#"+m+")",style:{fill:"url("+i+"#"+b+")"}}),Object(o.createElement)("defs",{role:"presentation"},Object(o.createElement)("clipPath",{id:m},a),Object(o.createElement)("linearGradient",{id:b},Object(o.createElement)("stop",{offset:"0%",stopColor:n,stopOpacity:r},e&&Object(o.createElement)("animate",{attributeName:"offset",values:-l+"; "+-l+"; 1",keyTimes:j,dur:w,repeatCount:"indefinite"})),Object(o.createElement)("stop",{offset:"50%",stopColor:s,stopOpacity:c},e&&Object(o.createElement)("animate",{attributeName:"offset",values:-l/2+"; "+-l/2+"; "+(1+l/2),keyTimes:j,dur:w,repeatCount:"indefinite"})),Object(o.createElement)("stop",{offset:"100%",stopColor:n,stopOpacity:r},e&&Object(o.createElement)("animate",{attributeName:"offset",values:"0; 0; "+(1+l),keyTimes:j,dur:w,repeatCount:"indefinite"})))))};FL.defaultProps={animate:!0,backgroundColor:"#f5f6f7",backgroundOpacity:1,baseUrl:"",foregroundColor:"#eee",foregroundOpacity:1,gradientRatio:2,id:null,interval:.25,rtl:!1,speed:1.2,style:{},title:"Loading..."};var LL=function(t){return t.children?Object(o.createElement)(FL,EL({},t)):Object(o.createElement)(BL,EL({},t))},BL=function(t){return Object(o.createElement)(LL,EL({viewBox:"0 0 476 124"},t),Object(o.createElement)("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),Object(o.createElement)("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),Object(o.createElement)("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),Object(o.createElement)("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),Object(o.createElement)("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),Object(o.createElement)("circle",{cx:"20",cy:"20",r:"20"}))},DL=function(t){return Object(o.createElement)(LL,EL({viewBox:"0 0 400 460"},t),Object(o.createElement)("circle",{cx:"31",cy:"31",r:"15"}),Object(o.createElement)("rect",{x:"58",y:"18",rx:"2",ry:"2",width:"140",height:"10"}),Object(o.createElement)("rect",{x:"58",y:"34",rx:"2",ry:"2",width:"140",height:"10"}),Object(o.createElement)("rect",{x:"0",y:"60",rx:"2",ry:"2",width:"400",height:"400"}))},RL=function(t){return Object(o.createElement)(LL,EL({viewBox:"0 0 340 84"},t),Object(o.createElement)("rect",{x:"0",y:"0",width:"67",height:"11",rx:"3"}),Object(o.createElement)("rect",{x:"76",y:"0",width:"140",height:"11",rx:"3"}),Object(o.createElement)("rect",{x:"127",y:"48",width:"53",height:"11",rx:"3"}),Object(o.createElement)("rect",{x:"187",y:"48",width:"72",height:"11",rx:"3"}),Object(o.createElement)("rect",{x:"18",y:"48",width:"100",height:"11",rx:"3"}),Object(o.createElement)("rect",{x:"0",y:"71",width:"37",height:"11",rx:"3"}),Object(o.createElement)("rect",{x:"18",y:"23",width:"140",height:"11",rx:"3"}),Object(o.createElement)("rect",{x:"166",y:"23",width:"173",height:"11",rx:"3"}))},NL=function(t){return Object(o.createElement)(LL,EL({viewBox:"0 0 400 110"},t),Object(o.createElement)("rect",{x:"0",y:"0",rx:"3",ry:"3",width:"250",height:"10"}),Object(o.createElement)("rect",{x:"20",y:"20",rx:"3",ry:"3",width:"220",height:"10"}),Object(o.createElement)("rect",{x:"20",y:"40",rx:"3",ry:"3",width:"170",height:"10"}),Object(o.createElement)("rect",{x:"0",y:"60",rx:"3",ry:"3",width:"250",height:"10"}),Object(o.createElement)("rect",{x:"20",y:"80",rx:"3",ry:"3",width:"200",height:"10"}),Object(o.createElement)("rect",{x:"20",y:"100",rx:"3",ry:"3",width:"80",height:"10"}))},zL=function(t){return Object(o.createElement)(LL,EL({viewBox:"0 0 245 125"},t),Object(o.createElement)("circle",{cx:"10",cy:"20",r:"8"}),Object(o.createElement)("rect",{x:"25",y:"15",rx:"5",ry:"5",width:"220",height:"10"}),Object(o.createElement)("circle",{cx:"10",cy:"50",r:"8"}),Object(o.createElement)("rect",{x:"25",y:"45",rx:"5",ry:"5",width:"220",height:"10"}),Object(o.createElement)("circle",{cx:"10",cy:"80",r:"8"}),Object(o.createElement)("rect",{x:"25",y:"75",rx:"5",ry:"5",width:"220",height:"10"}),Object(o.createElement)("circle",{cx:"10",cy:"110",r:"8"}),Object(o.createElement)("rect",{x:"25",y:"105",rx:"5",ry:"5",width:"220",height:"10"}))},YL=LL,GL,HL=function(t){var e=t.loadingTemplate,n=t.theme,r=void 0===n?"light":n,i=function(){return e||a.a.createElement(YL,{viewBox:"0 0 400 180",width:200,height:90,speed:1,backgroundColor:"dark"===r?"#262626":"#D9D9D9"},a.a.createElement("rect",{x:"20",y:"5",rx:"0",ry:"0",width:"1",height:"170"}),a.a.createElement("rect",{x:"20",y:"175",rx:"0",ry:"0",width:"360",height:"1"}),a.a.createElement("rect",{x:"40",y:"75",rx:"0",ry:"0",width:"35",height:"100"}),a.a.createElement("rect",{x:"80",y:"125",rx:"0",ry:"0",width:"35",height:"50"}),a.a.createElement("rect",{x:"120",y:"105",rx:"0",ry:"0",width:"35",height:"70"}),a.a.createElement("rect",{x:"160",y:"35",rx:"0",ry:"0",width:"35",height:"140"}),a.a.createElement("rect",{x:"200",y:"55",rx:"0",ry:"0",width:"35",height:"120"}),a.a.createElement("rect",{x:"240",y:"15",rx:"0",ry:"0",width:"35",height:"160"}),a.a.createElement("rect",{x:"280",y:"135",rx:"0",ry:"0",width:"35",height:"40"}),a.a.createElement("rect",{x:"320",y:"85",rx:"0",ry:"0",width:"35",height:"90"}))};return a.a.createElement("div",{className:"charts-loading-container",style:{position:"absolute",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",left:0,top:0,zIndex:99,backgroundColor:"dark"===r?"rgb(20, 20, 20)":"rgb(255, 255, 255)"}},i())},VL=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)for(var i=0,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},WL,XL=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=VL(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML(Pd,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),$L=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)for(var i=0,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},qL,UL=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=$L(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML(fg,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),KL=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)for(var i=0,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},ZL,QL=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=KL(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML(ub,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),JL=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)for(var i=0,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},tB,eB=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=JL(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML(dg,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),nB=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)for(var i=0,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},rB,iB=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=nB(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML(ey,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),oB=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)for(var i=0,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},aB,sB=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=oB(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML(Ey,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),cB=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)for(var i=0,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},lB,uB=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=cB(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML(Fy,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),hB=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)for(var i=0,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},fB,pB=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=hB(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML(tb,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),dB=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)for(var i=0,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},gB,yB=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=dB(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML(yj,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),vB=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)for(var i=0,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},mB,bB=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=vB(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML(KO,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),xB=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)for(var i=0,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},OB,jB=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=xB(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML(tv,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),wB=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)for(var i=0,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},_B,MB=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=wB(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML(by,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),SB=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)for(var i=0,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},CB,AB=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=SB(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML(sv,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),kB=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)for(var i=0,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},TB,EB=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=kB(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML(Mj,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),PB=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)for(var i=0,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},IB,FB=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=PB(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML(fv,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),LB=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)for(var i=0,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},BB,DB=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=LB(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML(Vj,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),RB=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)for(var i=0,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},NB,zB=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=RB(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML(Ib,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),YB=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)for(var i=0,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},GB,HB=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=YB(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML(Ev,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),VB=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)for(var i=0,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},WB,XB=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=VB(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML(em,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),$B=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)for(var i=0,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},qB,UB=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=$B(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML(am,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),KB=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)for(var i=0,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},ZB,QB=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=KB(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML(LO,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),JB=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)for(var i=0,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},tD,eD=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=JB(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML(lm,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),nD=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)for(var i=0,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},rD,iD=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=nD(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML(nF,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),oD=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)for(var i=0,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},aD,sD=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=oD(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML(HF,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),cD=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)for(var i=0,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},lD,uD=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=cD(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML(F_,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),hD=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)for(var i=0,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},fD,pD=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=hD(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML(Wv,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),dD=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)for(var i=0,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},gD,yD=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=dD(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML(Lj,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),vD=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)for(var i=0,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},mD,bD=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=vD(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML(Fw,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),xD=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)for(var i=0,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},OD,jD=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=xD(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML($_,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),wD=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)for(var i=0,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},_D,MD=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=wD(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML(RI,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),SD=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)for(var i=0,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},CD,AD=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=SD(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML(nI,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),kD=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)for(var i=0,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},TD,ED=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=kD(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML(iO,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),PD=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)for(var i=0,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},ID,FD=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=PD(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML(YO,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),LD=function(){return(LD=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}).apply(this,arguments)},BD=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)for(var i=0,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},DD,RD=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=BD(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML(Om,LD(LD({},h),{chartType:"Mix"})),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),ND=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)for(var i=0,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},zD,YD=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,s=t.className,c=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=ND(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=ML(zm,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){SL(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(TL,{errorTemplate:u},c&&a.a.createElement(HL,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:s,style:i,ref:d}))})),GD=e.default={Area:XL,Bar:UL,Box:pB,Bullet:QL,Column:eB,Funnel:iB,Histogram:sB,Line:uB,Liquid:yB,Heatmap:bB,Pie:jB,Progress:AB,Radar:EB,Facet:FD,RingProgress:FB,Rose:DB,Chord:zB,Scatter:HB,TinyArea:XB,TinyColumn:UB,TinyLine:eD,Waterfall:iD,WordCloud:sD,Sunburst:uD,DualAxes:QB,Stock:pD,RadialBar:yD,Gauge:MB,CirclePacking:ED,Sankey:bD,Treemap:jD,Violin:MD,Venn:AD,MultiView:RD,Mix:RD,BidirectionalBar:YD,getCanvasPattern:Pp,FUNNEL_CONVERSATION_FIELD:mg,G2:r,flow:Vf,measureTextWidth:Qf,adaptors:XF}},116:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(8);function i(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function o(t,e){return i(t)*i(e)?(t[0]*e[0]+t[1]*e[1])/(i(t)*i(e)):1}function a(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(o(t,e))}function s(t,e){var n=e[1],i=e[2],s=Object(r.m)(Object(r.o)(e[3]),2*Math.PI),c=e[4],l=e[5],u=t[0],h=t[1],f=e[6],p=e[7],d=Math.cos(s)*(u-f)/2+Math.sin(s)*(h-p)/2,g=-1*Math.sin(s)*(u-f)/2+Math.cos(s)*(h-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;c===l&&(m*=-1),isNaN(m)&&(m=0);var b=i?m*n*g/i:0,x=n?m*-i*d/n:0,O=(u+f)/2+Math.cos(s)*b-Math.sin(s)*x,j=(h+p)/2+Math.sin(s)*b+Math.cos(s)*x,w=[(d-b)/n,(g-x)/i],_=[(-1*d-b)/n,(-1*g-x)/i],M=a([1,0],w),S=a(w,_);return o(w,_)<=-1&&(S=Math.PI),o(w,_)>=1&&(S=0),0===l&&S>0&&(S-=2*Math.PI),1===l&&S<0&&(S+=2*Math.PI),{cx:O,cy:j,rx:Object(r.j)(t,[f,p])?0:n,ry:Object(r.j)(t,[f,p])?0:i,startAngle:M,endAngle:M+S,xRotation:s,arcFlag:c,sweepFlag:l}}},118:function(t,e,n){"use strict";(function(t){var r=n(28),i=n(427),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s,c=a&&a.exports===o?r.a.Buffer:void 0,l,u=(c?c.isBuffer:void 0)||i.a;e.a=u}).call(this,n(239)(t))},120:function(t,e){},127:function(t,e,n){"use strict";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(){var t;return"[Event (type="+this.type+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();e.a=r},128:function(t,e,n){"use strict";var r=n(1),i=n(92),o=n(18),a=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=n.getDefaultCfg();return n.cfg=Object(o.i)(r,e),n}return Object(r.__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}(i.a);e.a=a},129:function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return i})),n.d(e,"clone",(function(){return o})),n.d(e,"length",(function(){return a})),n.d(e,"fromValues",(function(){return s})),n.d(e,"copy",(function(){return c})),n.d(e,"set",(function(){return l})),n.d(e,"add",(function(){return u})),n.d(e,"subtract",(function(){return h})),n.d(e,"multiply",(function(){return f})),n.d(e,"divide",(function(){return p})),n.d(e,"ceil",(function(){return d})),n.d(e,"floor",(function(){return g})),n.d(e,"min",(function(){return y})),n.d(e,"max",(function(){return v})),n.d(e,"round",(function(){return m})),n.d(e,"scale",(function(){return b})),n.d(e,"scaleAndAdd",(function(){return x})),n.d(e,"distance",(function(){return O})),n.d(e,"squaredDistance",(function(){return j})),n.d(e,"squaredLength",(function(){return w})),n.d(e,"negate",(function(){return _})),n.d(e,"inverse",(function(){return M})),n.d(e,"normalize",(function(){return S})),n.d(e,"dot",(function(){return C})),n.d(e,"cross",(function(){return A})),n.d(e,"lerp",(function(){return k})),n.d(e,"hermite",(function(){return T})),n.d(e,"bezier",(function(){return E})),n.d(e,"random",(function(){return P})),n.d(e,"transformMat4",(function(){return I})),n.d(e,"transformMat3",(function(){return F})),n.d(e,"transformQuat",(function(){return L})),n.d(e,"rotateX",(function(){return B})),n.d(e,"rotateY",(function(){return D})),n.d(e,"rotateZ",(function(){return R})),n.d(e,"angle",(function(){return N})),n.d(e,"zero",(function(){return z})),n.d(e,"str",(function(){return Y})),n.d(e,"exactEquals",(function(){return G})),n.d(e,"equals",(function(){return H})),n.d(e,"sub",(function(){return V})),n.d(e,"mul",(function(){return W})),n.d(e,"div",(function(){return X})),n.d(e,"dist",(function(){return $})),n.d(e,"sqrDist",(function(){return q})),n.d(e,"len",(function(){return U})),n.d(e,"sqrLen",(function(){return K})),n.d(e,"forEach",(function(){return Z}));var r=n(21);function i(){var t=new r.a(3);return r.a!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function o(t){var e=new r.a(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(t){var e=t[0],n=t[1],r=t[2];return Math.hypot(e,n,r)}function s(t,e,n){var i=new r.a(3);return i[0]=t,i[1]=e,i[2]=n,i}function c(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function l(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,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 h(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function f(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function p(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function d(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}function g(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}function y(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}function v(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}function m(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}function b(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function x(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}function O(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 j(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 w(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function _(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function M(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function S(t,e){var n=e[0],r=e[1],i=e[2],o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,t}function C(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function A(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],c=n[2];return t[0]=i*c-o*s,t[1]=o*a-r*c,t[2]=r*s-i*a,t}function k(t,e,n,r){var i=e[0],o=e[1],a=e[2];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=a+r*(n[2]-a),t}function T(t,e,n,r,i,o){var a=o*o,s=a*(2*o-3)+1,c=a*(o-2)+o,l=a*(o-1),u=a*(3-2*o);return t[0]=e[0]*s+n[0]*c+r[0]*l+i[0]*u,t[1]=e[1]*s+n[1]*c+r[1]*l+i[1]*u,t[2]=e[2]*s+n[2]*c+r[2]*l+i[2]*u,t}function E(t,e,n,r,i,o){var a=1-o,s=a*a,c=o*o,l=s*a,u=3*o*s,h=3*c*a,f=c*o;return t[0]=e[0]*l+n[0]*u+r[0]*h+i[0]*f,t[1]=e[1]*l+n[1]*u+r[1]*h+i[1]*f,t[2]=e[2]*l+n[2]*u+r[2]*h+i[2]*f,t}function P(t,e){e=e||1;var n=2*r.c()*Math.PI,i=2*r.c()-1,o=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=i*e,t}function I(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[3]*r+n[7]*i+n[11]*o+n[15];return a=a||1,t[0]=(n[0]*r+n[4]*i+n[8]*o+n[12])/a,t[1]=(n[1]*r+n[5]*i+n[9]*o+n[13])/a,t[2]=(n[2]*r+n[6]*i+n[10]*o+n[14])/a,t}function F(t,e,n){var r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t}function L(t,e,n){var r=n[0],i=n[1],o=n[2],a=n[3],s=e[0],c=e[1],l=e[2],u=i*l-o*c,h=o*s-r*l,f=r*c-i*s,p=i*f-o*h,d=o*u-r*f,g=r*h-i*u,y=2*a;return u*=y,h*=y,f*=y,p*=2,d*=2,g*=2,t[0]=s+u+p,t[1]=c+h+d,t[2]=l+f+g,t}function B(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function D(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function R(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function N(t,e){var n=t[0],r=t[1],i=t[2],o=e[0],a=e[1],s=e[2],c,l,u=Math.sqrt(n*n+r*r+i*i)*Math.sqrt(o*o+a*a+s*s),h=u&&C(t,e)/u;return Math.acos(Math.min(Math.max(h,-1),1))}function z(t){return t[0]=0,t[1]=0,t[2]=0,t}function Y(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function G(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function H(t,e){var n=t[0],i=t[1],o=t[2],a=e[0],s=e[1],c=e[2];return Math.abs(n-a)<=r.b*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(i-s)<=r.b*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(o-c)<=r.b*Math.max(1,Math.abs(o),Math.abs(c))}var V=h,W=f,X=p,$=O,q=j,U=a,K=w,Z=(Q=i(),function(t,e,n,r,i,o){var a,s;for(e||(e=3),n||(n=0),s=r?Math.min(r*e+n,t.length):t.length,a=n;a<s;a+=e)Q[0]=t[a],Q[1]=t[a+1],Q[2]=t[a+2],i(Q,Q,o),t[a]=Q[0],t[a+1]=Q[1],t[a+2]=Q[2];return t}),Q},13:function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return x}));var r=n(48);n.d(e,"PathUtil",(function(){return r}));var i=n(232),o=n.n(i);for(var a in i)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var s=n(233),c=n.n(s);for(var a in s)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return s[t]}))}(a);var l=n(127);n.d(e,"Event",(function(){return l.a}));var u=n(128);n.d(e,"Base",(function(){return u.a}));var h=n(410);n.d(e,"AbstractCanvas",(function(){return h.a}));var f=n(234);n.d(e,"AbstractGroup",(function(){return f.a}));var p=n(235);n.d(e,"AbstractShape",(function(){return p.a}));var d=n(229);n.d(e,"getBBoxMethod",(function(){return d.a})),n.d(e,"registerBBox",(function(){return d.b}));var g=n(74);n.d(e,"getTextHeight",(function(){return g.b})),n.d(e,"assembleFont",(function(){return g.a}));var y=n(18);n.d(e,"isAllowCapture",(function(){return y.b}));var v=n(36);n.d(e,"multiplyVec2",(function(){return v.c})),n.d(e,"invert",(function(){return v.a}));var m=n(130);n.d(e,"getOffScreenContext",(function(){return m.a}));var b=n(133);n.d(e,"registerEasing",(function(){return b.b}));var x="0.5.11"},130:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=null;function i(){if(!r){var t=document.createElement("canvas");t.width=1,t.height=1,r=t.getContext("2d")}return r}},131:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(13);function i(t,e,n){var i=new r.Event(e,n);i.target=t,i.propagationPath.push(t),t.emitDelegation(e,i);for(var o=t.getParent();o;)o.emitDelegation(e,i),i.propagationPath.push(o),o=o.getParent()}},133:function(t,e,n){"use strict";n.d(e,"a",(function(){return Z})),n.d(e,"b",(function(){return Q}));var r={};function i(t){return+t}function o(t){return t*t}function a(t){return t*(2-t)}function s(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function c(t){return t*t*t}function l(t){return--t*t*t+1}function u(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}n.r(r),n.d(r,"easeLinear",(function(){return i})),n.d(r,"easeQuad",(function(){return s})),n.d(r,"easeQuadIn",(function(){return o})),n.d(r,"easeQuadOut",(function(){return a})),n.d(r,"easeQuadInOut",(function(){return s})),n.d(r,"easeCubic",(function(){return u})),n.d(r,"easeCubicIn",(function(){return c})),n.d(r,"easeCubicOut",(function(){return l})),n.d(r,"easeCubicInOut",(function(){return u})),n.d(r,"easePoly",(function(){return d})),n.d(r,"easePolyIn",(function(){return f})),n.d(r,"easePolyOut",(function(){return p})),n.d(r,"easePolyInOut",(function(){return d})),n.d(r,"easeSin",(function(){return b})),n.d(r,"easeSinIn",(function(){return v})),n.d(r,"easeSinOut",(function(){return m})),n.d(r,"easeSinInOut",(function(){return b})),n.d(r,"easeExp",(function(){return w})),n.d(r,"easeExpIn",(function(){return O})),n.d(r,"easeExpOut",(function(){return j})),n.d(r,"easeExpInOut",(function(){return w})),n.d(r,"easeCircle",(function(){return S})),n.d(r,"easeCircleIn",(function(){return _})),n.d(r,"easeCircleOut",(function(){return M})),n.d(r,"easeCircleInOut",(function(){return S})),n.d(r,"easeBounce",(function(){return R})),n.d(r,"easeBounceIn",(function(){return D})),n.d(r,"easeBounceOut",(function(){return R})),n.d(r,"easeBounceInOut",(function(){return N})),n.d(r,"easeBack",(function(){return H})),n.d(r,"easeBackIn",(function(){return Y})),n.d(r,"easeBackOut",(function(){return G})),n.d(r,"easeBackInOut",(function(){return H})),n.d(r,"easeElastic",(function(){return q})),n.d(r,"easeElasticIn",(function(){return $})),n.d(r,"easeElasticOut",(function(){return q})),n.d(r,"easeElasticInOut",(function(){return U}));var h=3,f=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),p=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),d=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),g=Math.PI,y=g/2;function v(t){return 1==+t?1:1-Math.cos(t*y)}function m(t){return Math.sin(t*y)}function b(t){return(1-Math.cos(g*t))/2}function x(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function O(t){return x(1-+t)}function j(t){return 1-x(t)}function w(t){return((t*=2)<=1?x(1-t):2-x(t-1))/2}function _(t){return 1-Math.sqrt(1-t*t)}function M(t){return Math.sqrt(1- --t*t)}function S(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var C=4/11,A=6/11,k=8/11,T=3/4,E=9/11,P=10/11,I=15/16,F=21/22,L=63/64,B=7.5625;function D(t){return 1-R(1-t)}function R(t){return(t=+t)<C?B*t*t:t<k?B*(t-=A)*t+T:t<P?B*(t-=E)*t+I:B*(t-=F)*t+L}function N(t){return((t*=2)<=1?1-R(1-t):R(t-1)+1)/2}var z=1.70158,Y=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(1.70158),G=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(1.70158),H=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),V=2*Math.PI,W=1,X=.3,$=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=V);function i(t){return e*x(- --t)*Math.sin((r-t)/n)}return i.amplitude=function(e){return t(e,n*V)},i.period=function(n){return t(e,n)},i}(1,.3),q=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=V);function i(t){return 1-e*x(t=+t)*Math.sin((t+r)/n)}return i.amplitude=function(e){return t(e,n*V)},i.period=function(n){return t(e,n)},i}(1,.3),U=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=V);function i(t){return((t=2*t-1)<0?e*x(-t)*Math.sin((r-t)/n):2-e*x(t)*Math.sin((r+t)/n))/2}return i.amplitude=function(e){return t(e,n*V)},i.period=function(n){return t(e,n)},i}(1,.3),K={};function Z(t){return K[t.toLowerCase()]||r[t]}function Q(t,e){K[t.toLowerCase()]=e}},134:function(t,e,n){"use strict";var r=n(1),i=n(135),o=n(18),a={},s="_INDEX";function c(t,e){if(t.set("canvas",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){c(t,e)}))}}function l(t,e){if(t.set("timeline",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){l(t,e)}))}}function u(t,e){var n;return t.getChildren().indexOf(e)>=0}function h(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),Object(o.j)(t.getChildren(),e)}function f(t){return function(e,n){var r=t(e,n);return 0===r?e[s]-n[s]:r}}var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__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=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)})),a;return i.length>0?Object(o.a)(i,(function(i){var o=i.getBBox(),a=o.minX,s=o.maxX,c=o.minY,l=o.maxY;a<t&&(t=a),s>e&&(e=s),c<n&&(n=c),l>r&&(r=l)})):(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=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)})),a;return i.length>0?Object(o.a)(i,(function(i){var o=i.getCanvasBBox(),a=o.minX,s=o.maxX,c=o.minY,l=o.maxY;a<t&&(t=a),s>e&&(e=s),c<n&&(n=c),l>r&&(r=l)})):(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();Object(o.a)(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];Object(o.f)(n)?r=n:r.type=n;var i=a[r.type];i||(i=Object(o.k)(r.type),a[r.type]=i);var s=this.getShapeBase(),c=new s[i](r);return this.add(c),c},e.prototype.addGroup=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],r=t[1],i;if(Object(o.d)(n))i=new n(r||{parent:this});else{var a=n||{},s=this.getGroupBase();i=new s(a)}return this.add(i),i},e.prototype.getCanvas=function(){var t;return t=this.isCanvas()?this:this.get("canvas")},e.prototype.getShape=function(t,e,n){if(!Object(o.b)(this))return null;var r=this.getChildren(),i;if(this.isCanvas())i=this._findShape(r,t,e,n);else{var a=[t,e,1];a=this.invertFromMatrix(a),this.isClipped(a[0],a[1])||(i=this._findShape(r,a[0],a[1],n))}return i},e.prototype._findShape=function(t,e,n,r){for(var i=null,a=t.length-1;a>=0;a--){var s=t[a];if(Object(o.b)(s)&&(s.isGroup()?i=s.getShape(e,n,r):s.isHit(e,n)&&(i=s)),i)break}return i},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),r=this.get("timeline"),i=t.getParent();i&&h(i,t,!1),t.set("parent",this),e&&c(t,e),r&&l(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=this.getChildren();Object(o.a)(t,(function(t,e){return t[s]=e,t})),t.sort(f((function(t,e){return t.get("zIndex")-e.get("zIndex")}))),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){var e;return this.getChildren()[t]},e.prototype.getCount=function(){var t;return this.getChildren().length},e.prototype.contain=function(t){var e;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 Object(o.a)(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 Object(o.a)(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}(i.a);e.a=p},135:function(t,e,n){"use strict";var r=n(1),i=n(0),o=n(4),a=n(18),s=n(36),c=n(128),l=o.a.transform,u="matrix",h=["zIndex","capture","visible","type"],f=["repeat"],p=":",d="*";function g(t){for(var e=[],n=0;n<t.length;n++)Object(i.C)(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}function y(t,e){var n={},r=e.attrs;for(var i in t)n[i]=r[i];return n}function v(t,e){var n={},r=e.attr();return Object(i.j)(t,(function(t,e){-1!==f.indexOf(e)||Object(i.H)(r[e],t)||(n[e]=t)})),n}function m(t,e){if(e.onFrame)return t;var n=e.startTime,r=e.delay,o=e.duration,a=Object.prototype.hasOwnProperty;return Object(i.j)(t,(function(t){n+r<t.startTime+t.delay+t.duration&&o>t.delay&&Object(i.j)(e.toAttrs,(function(e,n){a.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var b=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var r=n.getDefaultAttrs();return Object(i.db)(r,e.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return Object(r.__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],o=e[1];if(!r)return this.attrs;if(Object(i.O)(r)){for(var a in r)this.setAttr(a,r[a]);return this.afterAttrsChange(r),this}return 2===e.length?(this.setAttr(r,o),this.afterAttrsChange(((t={})[r]=o,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"),r=e.indexOf(this);e.splice(r,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"),r=e.indexOf(this);e.splice(r,1),e.unshift(this),this.onCanvasChange("zIndex")}},e.prototype.remove=function(t){void 0===t&&(t=!0);var e=this.getParent();e?(Object(a.j)(e.getChildren(),this),e.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),t&&this.destroy()},e.prototype.resetMatrix=function(){this.attr(u,this.getDefaultMatrix()),this.onCanvasChange("matrix")},e.prototype.getMatrix=function(){return this.attr(u)},e.prototype.setMatrix=function(t){this.attr(u,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?Object(s.b)(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?Object(s.b)(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?Object(s.c)(e,t):t},e.prototype.invertFromMatrix=function(t){var e=this.attr("matrix");if(e){var n=Object(s.a)(e);if(n)return Object(s.c)(n,t)}return t},e.prototype.setClip=function(t){var e=this.getCanvas(),n=null;if(t){var r,o,a=this.getShapeBase()[Object(i.wb)(t.type)];a&&(n=new a({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={};Object(i.j)(e,(function(t,r){Object(i.C)(e[r])?n[r]=g(e[r]):n[r]=e[r]}));var r,o=new(0,this.constructor)({attrs:n});return Object(i.j)(h,(function(e){o.set(e,t.get(e))})),o},e.prototype.destroy=function(){var e;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 o=t[0],a=t[1],s=t[2],c=void 0===s?"easeLinear":s,l=t[3],u=void 0===l?i.fb:l,h=t[4],f=void 0===h?0:h,p,d,g,b,x;Object(i.I)(o)?(p=o,o={}):Object(i.O)(o)&&o.onFrame&&(p=o.onFrame,d=o.repeat),Object(i.O)(a)?(a=(x=a).duration,c=x.easing||"easeLinear",f=x.delay||0,d=x.repeat||d||!1,u=x.callback||i.fb,g=x.pauseCallback||i.fb,b=x.resumeCallback||i.fb):(Object(i.M)(u)&&(f=u,u=null),Object(i.I)(c)?(u=c,c="easeLinear"):c=c||"easeLinear");var O=v(o,this),j={fromAttrs:y(O,this),toAttrs:O,duration:a,easing:c,repeat:d,callback:u,pauseCallback:g,resumeCallback:b,delay:f,startTime:n.getTime(),id:Object(i.vb)(),onFrame:p,pathFormatted:!1};r.length>0?r=m(r,j):n.addAnimator(this),r.push(j),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");Object(i.j)(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 Object(i.j)(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,e=this.get("timeline").getTime(),n=this.get("animations"),r=this.get("_pause").pauseTime;return Object(i.j)(n,(function(t){t.startTime=t.startTime+(e-r),t._paused=!1,t._pauseTime=null,t.resumeCallback&&t.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",n),this},e.prototype.emitDelegation=function(t,e){var n=this,r=e.propagationPath,o=this.getEvents(),s;"mouseenter"===t?s=e.fromShape:"mouseleave"===t&&(s=e.toShape);for(var c=function(t){var o=r[t],c=o.get("name");if(c){if((o.isGroup()||o.isCanvas&&o.isCanvas())&&s&&Object(a.g)(o,s))return"break";Object(i.C)(c)?Object(i.j)(c,(function(t){n.emitDelegateEvent(o,t,e)})):l.emitDelegateEvent(o,c,e)}},l=this,u=0;u<r.length;u++){var h;if("break"===c(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=l(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=l(n,[["s",t,e||t]]);return this.setMatrix(r),this},e.prototype.rotate=function(t){var e=this.getMatrix(),n=l(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(),o=l(i,[["t",-n,-r],["r",t],["t",n,r]]);return this.setMatrix(o),this},e.prototype.rotateAtPoint=function(t,e,n){var r=this.getMatrix(),i=l(r,[["t",-t,-e],["r",n],["t",t,e]]);return this.setMatrix(i),this},e}(c.a);e.a=b},136:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return d}));var r=function(t,e,n){if(n||2===arguments.length)for(var r=0,i=e.length,o;r<i;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},i=function(){function t(t,e,n){this.name=t,this.version=e,this.os=n,this.type="browser"}return t}(),o=function(){function e(e){this.version=e,this.type="node",this.name="node",this.os=t.platform}return e}(),a=function(){function t(t,e,n,r){this.name=t,this.version=e,this.os=n,this.bot=r,this.type="bot-device"}return t}(),s=function(){function t(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return t}(),c=function(){function t(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return t}(),l,u=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,h=3,f=[["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/]],p=[["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 d(t){return t?v(t):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new c:"undefined"!=typeof navigator?v(navigator.userAgent):b()}function g(t){return""!==t&&f.reduce((function(e,n){var r=n[0],i=n[1];if(e)return e;var o=i.exec(t);return!!o&&[r,o]}),!1)}function y(t){var e=g(t);return e?e[0]:null}function v(t){var e=g(t);if(!e)return null;var n=e[0],o=e[1];if("searchbot"===n)return new s;var c=o[1]&&o[1].split(".").join("_").split("_").slice(0,3);c?c.length<3&&(c=r(r([],c,!0),x(3-c.length),!0)):c=[];var l=c.join("."),h=m(t),f=u.exec(t);return f&&f[1]?new a(n,l,h,f[1]):new i(n,l,h)}function m(t){for(var e=0,n=p.length;e<n;e++){var r=p[e],i=r[0],o,a;if(r[1].exec(t))return i}return null}function b(){var e;return void 0!==t&&t.version?new o(t.version.slice(1)):null}function x(t){for(var e=[],n=0;n<t;n++)e.push("0");return e}}).call(this,n(141))},137:function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return l}));var r=n(57);n.d(e,"Shape",(function(){return r}));var i=n(13);for(var o in i)["default","Canvas","Group","Shape","getArcParams","version"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a=n(419);n.d(e,"Canvas",(function(){return a.a}));var s=n(89);n.d(e,"Group",(function(){return s.a}));var c=n(116);n.d(e,"getArcParams",(function(){return c.a}));var l="0.5.12"},138:function(t,e,n){"use strict";n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return p}));var r=n(8),i=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,a=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function c(t,e){var n=t.match(s);Object(r.c)(n,(function(t){var n=t.split(":");e.addColorStop(n[0],n[1])}))}function l(t,e,n){var r=i.exec(n),o=parseFloat(r[1])%360*(Math.PI/180),a=r[2],s=e.getBBox(),l,u;o>=0&&o<.5*Math.PI?(l={x:s.minX,y:s.minY},u={x:s.maxX,y:s.maxY}):.5*Math.PI<=o&&o<Math.PI?(l={x:s.maxX,y:s.minY},u={x:s.minX,y:s.maxY}):Math.PI<=o&&o<1.5*Math.PI?(l={x:s.maxX,y:s.maxY},u={x:s.minX,y:s.minY}):(l={x:s.minX,y:s.maxY},u={x:s.maxX,y:s.minY});var h=Math.tan(o),f=h*h,p=(u.x-l.x+h*(u.y-l.y))/(f+1)+l.x,d=h*(u.x-l.x+h*(u.y-l.y))/(f+1)+l.y,g=t.createLinearGradient(l.x,l.y,p,d);return c(a,g),g}function u(t,e,n){var r=o.exec(n),i=parseFloat(r[1]),a=parseFloat(r[2]),l=parseFloat(r[3]),u=r[4];if(0===l){var h=u.match(s);return h[h.length-1].split(":")[1]}var f=e.getBBox(),p=f.maxX-f.minX,d=f.maxY-f.minY,g=Math.sqrt(p*p+d*d)/2,y=t.createRadialGradient(f.minX+p*i,f.minY+d*a,0,f.minX+p/2,f.minY+d/2,l*g);return c(u,y),y}function h(t,e,n){if(e.get("patternSource")&&e.get("patternSource")===n)return e.get("pattern");var r,i,o=a.exec(n),s=o[1],c=o[2];function l(){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,c.match(/^data:/i)||(i.crossOrigin="Anonymous"),i.src=c,i.complete?l():(i.onload=l,i.src=i.src),r}function f(t,e,n){var i=e.getBBox();if(isNaN(i.x)||isNaN(i.y)||isNaN(i.width)||isNaN(i.height))return n;if(Object(r.k)(n)){if("("===n[1]||"("===n[2]){if("l"===n[0])return l(t,e,n);if("r"===n[0])return u(t,e,n);if("p"===n[0])return h(t,e,n)}return n}return n instanceof CanvasPattern?n:void 0}function p(t){var e=0,n=0,i=0,o=0;return Object(r.g)(t)?1===t.length?e=n=i=o=t[0]:2===t.length?(e=i=t[0],n=o=t[1]):3===t.length?(e=t[0],n=o=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],o=t[3]):e=n=i=o=t,[e,n,i,o]}},139:function(t,e,n){"use strict";(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.a=n}).call(this,n(64))},14:function(t,e,n){"use strict";function r(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)}}}}var i,o,a,s;function c(){i=document.createElement("table"),o=document.createElement("tr"),a=/^\s*<(\w+|!)[^>]*>/,s={tr:document.createElement("tbody"),tbody:i,thead:i,tfoot:i,td:o,th:o,"*":document.createElement("div")}}function l(t){i||c();var e=a.test(t)&&RegExp.$1;e&&e in s||(e="*");var n=s[e];t="string"==typeof t?t.replace(/(^\s*)|(\s*$)/g,""):t,n.innerHTML=""+t;var r=n.childNodes[0];return r&&n.contains(r)&&n.removeChild(r),r}function u(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 h(t,e){var n=u(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)}function f(t,e){var n=h(t,e),r=parseFloat(u(t,"borderTopWidth"))||0,i=parseFloat(u(t,"paddingTop"))||0,o=parseFloat(u(t,"paddingBottom"))||0,a,s,c;return n+r+(parseFloat(u(t,"borderBottomWidth"))||0)+i+o+(parseFloat(u(t,"marginTop"))||0)+(parseFloat(u(t,"marginBottom"))||0)}function p(t,e){var n=u(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)}function d(t,e){var n=p(t,e),r=parseFloat(u(t,"borderLeftWidth"))||0,i=parseFloat(u(t,"paddingLeft"))||0,o=parseFloat(u(t,"paddingRight"))||0,a=parseFloat(u(t,"borderRightWidth"))||0,s=parseFloat(u(t,"marginRight"))||0,c;return n+r+a+i+o+(parseFloat(u(t,"marginLeft"))||0)+s}function g(){return window.devicePixelRatio?window.devicePixelRatio:2}function y(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return f})),n.d(e,"d",(function(){return d})),n.d(e,"e",(function(){return y}))},141:function(t,e){var n=t.exports={},r,i;function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}function c(t){if(i===clearTimeout)return clearTimeout(t);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{return i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(t){r=o}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(t){i=a}}();var l=[],u=!1,h,f=-1;function p(){u&&h&&(u=!1,h.length?l=h.concat(l):f=-1,l.length&&d())}function d(){if(!u){var t=s(p);u=!0;for(var e=l.length;e;){for(h=l,l=[];++f<e;)h&&h[f].run();f=-1,e=l.length}h=null,u=!1,c(t)}}function g(t,e){this.fun=t,this.array=e}function y(){}n.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];l.push(new g(t,e)),1!==l.length||u||s(d)},g.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=y,n.addListener=y,n.once=y,n.off=y,n.removeListener=y,n.removeAllListeners=y,n.emit=y,n.prependListener=y,n.prependOnceListener=y,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},142:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SizeSensorId=e.SensorTabIndex=e.SensorClassName=void 0;var r="size-sensor-id";e.SizeSensorId=r;var i="size-sensor-object";e.SensorClassName=i;var o="-1";e.SensorTabIndex="-1"},15:function(t,e,n){"use strict";var r=n(1),i=n(0),o=n(131),a=n(25),s=n(6),c=n(88),l="update_status",u=["visible","tip","delegateObject"],h=["container","group","shapesMap","isRegister","isUpdating","destroyed"],f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},e.prototype.remove=function(){var t;this.clear(),this.get("group").remove()},e.prototype.clear=function(){var t;this.get("group").clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},e.prototype.getChildComponentById=function(t){var e=this.getElementById(t),n;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 Object(i.j)(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(){var t;this.get("group").show(),this.set("visible",!0)},e.prototype.hide=function(){var t;this.get("group").hide(),this.set("visible",!1)},e.prototype.setCapture=function(t){var e;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=Object(a.a)(n,e)),e},e.prototype.on=function(t,e,n){var r;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){var n;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),Object(o.a)(n,t,e)},e.prototype.createOffScreenGroup=function(){var t,e,n;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",Object(s.d)(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,i=e.component,o=Object(r.__rest)(e,["id","component"]),a=new i(Object(r.__assign)(Object(r.__assign)({},o),{id:n,container:t,updateAutoRender:this.get("updateAutoRender")}));return a.init(),a.render(),this.get("isRegister")&&this.registerElement(a.get("group")),a},e.prototype.initEvent=function(){},e.prototype.removeEvent=function(){var t;this.get("group").off()},e.prototype.getElementId=function(t){var e,n;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=Object(a.f)(e);t.attr("matrix",n)},e.prototype.addAnimation=function(t,e,n){var r=e.attr("opacity");Object(i.K)(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=this,r=this.get("animate"),o=this.get("animateOption"),a=t.getChildren().slice(0),c;Object(i.j)(a,(function(t){var a=t.get("id"),f=n.getElementById(a),p=t.get("name");if(f)if(t.get("isComponent")){var d=t.get("component"),g=f.get("component"),y=Object(i.hb)(d.cfg,Object(i.i)(Object(i.T)(d.cfg),h));g.update(y),f.set(l,"update")}else{var v=n.getReplaceAttrs(f,t);r&&o.update?n.updateAnimation(p,f,v,o.update):f.attr(v),t.isGroup()&&n.updateElements(t,f),Object(i.j)(u,(function(e){f.set(e,t.get(e))})),Object(s.m)(f,t),c=f,f.set(l,"update")}else{e.add(t);var m=e.getChildren(),d;if(m.splice(m.length-1,1),c){var b=m.indexOf(c);m.splice(b+1,0,t)}else m.unshift(t);if(n.registerElement(t),t.set(l,"add"),t.get("isComponent"))(d=t.get("component")).set("container",e);else t.isGroup()&&n.registerNewGroup(t);if(c=t,r){var x=n.get("isInit")?o.appear:o.enter;x&&n.addAnimation(p,t,x)}}}))},e.prototype.clearUpdateStatus=function(t){var e=t.getChildren();Object(i.j)(e,(function(t){t.set(l,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,e,n;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={}),Object(i.db)(e.delegateObject,n)},e.prototype.getReplaceAttrs=function(t,e){var n=t.attr(),r=e.attr();return Object(i.j)(n,(function(t,e){void 0===r[e]&&(r[e]=void 0)})),r},e.prototype.registerNewGroup=function(t){var e=this,n=t.getChildren();Object(i.j)(n,(function(t){e.registerElement(t),t.set(l,"add"),t.isGroup()&&e.registerNewGroup(t)}))},e.prototype.deleteElements=function(){var t=this,e=this.get("shapesMap"),n=[];Object(i.j)(e,(function(t,e){!t.get(l)||t.destroyed?n.push([e,t]):t.set(l,null)}));var r=this.get("animate"),o=this.get("animateOption");Object(i.j)(n,(function(n){var a=n[0],s=n[1];if(!s.destroyed){var c=s.get("name");if(r&&o.leave){var l=Object(i.db)({callback:function(){t.removeElement(s)}},o.leave);t.removeAnimation(c,s,l)}else t.removeElement(s)}delete e[a]}))},e.prototype.removeElement=function(t){if(t.get("isGroup")){var e=t.get("component");e&&e.destroy()}t.remove()},e}(c.a);e.a=f},17:function(t,e,n){"use strict";var r=n(411);n.d(e,"Annotation",(function(){return r}));var i=n(412);n.d(e,"Axis",(function(){return i}));var o=n(414);n.d(e,"Crosshair",(function(){return o}));var a=n(416);n.d(e,"Grid",(function(){return a}));var s=n(417);n.d(e,"Legend",(function(){return s}));var c=n(418);n.d(e,"Tooltip",(function(){return c}));var l=n(88),u=n(15),h=n(60),f=n(415);n.d(e,"Slider",(function(){return f.a}));var p=n(420);n.d(e,"Scrollbar",(function(){return p.a}));var d=n(236),g=n.n(d),y=n(237),v=n.n(y),m=n(131);n.d(e,"propagationDelegate",(function(){return m.a}));var b=n(24);n.d(e,"TOOLTIP_CSS_CONST",(function(){return b}))},18:function(t,e,n){"use strict";n.d(e,"j",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"g",(function(){return a})),n.d(e,"b",(function(){return s}));var r=n(0);function i(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}n.d(e,"e",(function(){return r.K})),n.d(e,"d",(function(){return r.I})),n.d(e,"h",(function(){return r.Q})),n.d(e,"f",(function(){return r.O})),n.d(e,"i",(function(){return r.db})),n.d(e,"a",(function(){return r.j})),n.d(e,"k",(function(){return r.wb}));var o="undefined"!=typeof window&&void 0!==window.document;function a(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}function s(t){return t.cfg.visible&&t.cfg.capture}},2:function(t,e){t.exports=window.React},20:function(t,e,n){"use strict";n.d(e,"e",(function(){return x})),n.d(e,"b",(function(){return S})),n.d(e,"a",(function(){return H})),n.d(e,"c",(function(){return h})),n.d(e,"d",(function(){return U})),n.d(e,"f",(function(){return r}));var r={};n.r(r),n.d(r,"distance",(function(){return o})),n.d(r,"isNumberEqual",(function(){return a})),n.d(r,"getBBoxByArray",(function(){return s})),n.d(r,"getBBoxRange",(function(){return c})),n.d(r,"piMod",(function(){return l}));var i=n(0);function o(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}function a(t,e){return Math.abs(t-e)<.001}function s(t,e){var n=Object(i.bb)(t),r=Object(i.bb)(e),o,a;return{x:n,y:r,width:Object(i.Y)(t)-n,height:Object(i.Y)(e)-r}}function c(t,e,n,r){return{minX:Object(i.bb)([t,n]),maxX:Object(i.Y)([t,n]),minY:Object(i.bb)([e,r]),maxY:Object(i.Y)([e,r])}}function l(t){return(t+2*Math.PI)%(2*Math.PI)}var u=n(93),h={box:function(t,e,n,r){return s([t,n],[e,r])},length:function(t,e,n,r){return o(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,i,a){var s=(n-t)*(i-t)+(r-e)*(a-e),c;return s<0?o(t,e,i,a):s>(n-t)*(n-t)+(r-e)*(r-e)?o(n,r,i,a):this.pointToLine(t,e,n,r,i,a)},pointToLine:function(t,e,n,r,i,o){var a=[n-t,r-e];if(u.exactEquals(a,[0,0]))return Math.sqrt((i-t)*(i-t)+(o-e)*(o-e));var s=[-a[1],a[0]];u.normalize(s,s);var c=[i-t,o-e];return Math.abs(u.dot(c,s))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}},f=1e-4;function p(t,e,n,r,i,a){var s,c=1/0,l=[n,r],u=20;a&&a>200&&(u=a/10);for(var h=1/u,f=h/10,p=0;p<=u;p++){var d=p*h,g=[i.apply(null,t.concat([d])),i.apply(null,e.concat([d]))],y;(y=o(l[0],l[1],g[0],g[1]))<c&&(s=d,c=y)}if(0===s)return{x:t[0],y:e[0]};if(1===s){var v=t.length;return{x:t[v-1],y:e[v-1]}}c=1/0;for(var p=0;p<32&&!(f<1e-4);p++){var m=s-f,b=s+f,g=[i.apply(null,t.concat([m])),i.apply(null,e.concat([m]))],y=o(l[0],l[1],g[0],g[1]);if(m>=0&&y<c)s=m,c=y;else{var x=[i.apply(null,t.concat([b])),i.apply(null,e.concat([b]))],O=o(l[0],l[1],x[0],x[1]);b<=1&&O<c?(s=b,c=O):f*=.5}}return{x:i.apply(null,t.concat([s])),y:i.apply(null,e.concat([s]))}}function d(t,e){for(var n=0,r=t.length,i=0;i<r;i++){var a,s,c,l;n+=o(t[i],e[i],t[(i+1)%r],e[(i+1)%r])}return n/2}function g(t,e,n,r){var i=1-r;return i*i*t+2*r*i*e+r*r*n}function y(t,e,n){var r=t+n-2*e;if(a(r,0))return[.5];var i=(t-e)/r;return i<=1&&i>=0?[i]:[]}function v(t,e,n,r){return 2*(1-r)*(e-t)+2*r*(n-e)}function m(t,e,n,r,i,o,a){var s=g(t,n,i,a),c=g(e,r,o,a),l=h.pointAt(t,e,n,r,a),u=h.pointAt(n,r,i,o,a);return[[t,e,l.x,l.y,s,c],[s,c,u.x,u.y,i,o]]}function b(t,e,n,r,i,a,s){if(0===s)return(o(t,e,n,r)+o(n,r,i,a)+o(t,e,i,a))/2;var c=m(t,e,n,r,i,a,.5),l=c[0],u=c[1];return l.push(s-1),u.push(s-1),b.apply(null,l)+b.apply(null,u)}var x={box:function(t,e,n,r,i,o){var a=y(t,n,i)[0],c=y(e,r,o)[0],l=[t,i],u=[e,o];return void 0!==a&&l.push(g(t,n,i,a)),void 0!==c&&u.push(g(e,r,o,c)),s(l,u)},length:function(t,e,n,r,i,o){return b(t,e,n,r,i,o,3)},nearestPoint:function(t,e,n,r,i,o,a,s){return p([t,n,i],[e,r,o],a,s,g)},pointDistance:function(t,e,n,r,i,a,s,c){var l=this.nearestPoint(t,e,n,r,i,a,s,c);return o(l.x,l.y,s,c)},interpolationAt:g,pointAt:function(t,e,n,r,i,o,a){return{x:g(t,n,i,a),y:g(e,r,o,a)}},divide:function(t,e,n,r,i,o,a){return m(t,e,n,r,i,o,a)},tangentAngle:function(t,e,n,r,i,o,a){var s=v(t,n,i,a),c=v(e,r,o,a),u;return l(Math.atan2(c,s))}};function O(t,e,n,r,i){var o=1-i;return o*o*o*t+3*e*i*o*o+3*n*i*i*o+r*i*i*i}function j(t,e,n,r,i){var o=1-i;return 3*(o*o*(e-t)+2*o*i*(n-e)+i*i*(r-n))}function w(t,e,n,r){var i=-3*t+9*e-9*n+3*r,o=6*t-12*e+6*n,s=3*e-3*t,c=[],l,u,h;if(a(i,0))a(o,0)||(l=-s/o)>=0&&l<=1&&c.push(l);else{var f=o*o-4*i*s;a(f,0)?c.push(-o/(2*i)):f>0&&(u=(-o-(h=Math.sqrt(f)))/(2*i),(l=(-o+h)/(2*i))>=0&&l<=1&&c.push(l),u>=0&&u<=1&&c.push(u))}return c}function _(t,e,n,r,i,o,a,s,c){var l=O(t,n,i,a,c),u=O(e,r,o,s,c),f=h.pointAt(t,e,n,r,c),p=h.pointAt(n,r,i,o,c),d=h.pointAt(i,o,a,s,c),g=h.pointAt(f.x,f.y,p.x,p.y,c),y=h.pointAt(p.x,p.y,d.x,d.y,c);return[[t,e,f.x,f.y,g.x,g.y,l,u],[l,u,y.x,y.y,d.x,d.y,a,s]]}function M(t,e,n,r,i,o,a,s,c){if(0===c)return d([t,n,i,a],[e,r,o,s]);var l=_(t,e,n,r,i,o,a,s,.5),u=l[0],h=l[1];return u.push(c-1),h.push(c-1),M.apply(null,u)+M.apply(null,h)}var S={extrema:w,box:function(t,e,n,r,i,o,a,c){for(var l=[t,a],u=[e,c],h=w(t,n,i,a),f=w(e,r,o,c),p=0;p<h.length;p++)l.push(O(t,n,i,a,h[p]));for(var p=0;p<f.length;p++)u.push(O(e,r,o,c,f[p]));return s(l,u)},length:function(t,e,n,r,i,o,a,s){return M(t,e,n,r,i,o,a,s,3)},nearestPoint:function(t,e,n,r,i,o,a,s,c,l,u){return p([t,n,i,a],[e,r,o,s],c,l,O,u)},pointDistance:function(t,e,n,r,i,a,s,c,l,u,h){var f=this.nearestPoint(t,e,n,r,i,a,s,c,l,u,h);return o(f.x,f.y,l,u)},interpolationAt:O,pointAt:function(t,e,n,r,i,o,a,s,c){return{x:O(t,n,i,a,c),y:O(e,r,o,s,c)}},divide:function(t,e,n,r,i,o,a,s,c){return _(t,e,n,r,i,o,a,s,c)},tangentAngle:function(t,e,n,r,i,o,a,s,c){var u=j(t,n,i,a,c),h=j(e,r,o,s,c);return l(Math.atan2(h,u))}};function C(t,e){var n=Math.abs(t);return e>0?n:-1*n}var A=function(t,e,n,r){return{x:t-n,y:e-r,width:2*n,height:2*r}},k=function(t,e,n,r){return Math.PI*(3*(n+r)-Math.sqrt((3*n+r)*(n+3*r)))},T=function(t,e,n,r,i,o){var a=n,s=r;if(0===a||0===s)return{x:t,y:e};for(var c=i-t,l=o-e,u=Math.abs(c),h=Math.abs(l),f=a*a,p=s*s,d=Math.PI/4,g,y,v=0;v<4;v++){g=a*Math.cos(d),y=s*Math.sin(d);var m=(f-p)*Math.pow(Math.cos(d),3)/a,b=(p-f)*Math.pow(Math.sin(d),3)/s,x=g-m,O=y-b,j=u-m,w=h-b,_=Math.hypot(O,x),M=Math.hypot(w,j),S,A;d+=_*Math.asin((x*w-O*j)/(_*M))/Math.sqrt(f+p-g*g-y*y),d=Math.min(Math.PI/2,Math.max(0,d))}return{x:t+C(g,c),y:e+C(y,l)}},E=function(t,e,n,r,i,a){var s=this.nearestPoint(t,e,n,r,i,a);return o(s.x,s.y,i,a)},P=function(t,e,n,r,i){var o=2*Math.PI*i;return{x:t+n*Math.cos(o),y:e+r*Math.sin(o)}},I=function(t,e,n,r,i){var o=2*Math.PI*i,a;return l(Math.atan2(r*Math.cos(o),-n*Math.sin(o)))};function F(t,e,n,r,i,o,a,s){return-1*n*Math.cos(i)*Math.sin(s)-r*Math.sin(i)*Math.cos(s)}function L(t,e,n,r,i,o,a,s){return-1*n*Math.sin(i)*Math.sin(s)+r*Math.cos(i)*Math.cos(s)}function B(t,e,n){return Math.atan(-e/t*Math.tan(n))}function D(t,e,n){return Math.atan(e/(t*Math.tan(n)))}function R(t,e,n,r,i,o){return n*Math.cos(i)*Math.cos(o)-r*Math.sin(i)*Math.sin(o)+t}function N(t,e,n,r,i,o){return n*Math.sin(i)*Math.cos(o)+r*Math.cos(i)*Math.sin(o)+e}function z(t,e,n,r){var i;return(Math.atan2(r*t,n*e)+2*Math.PI)%(2*Math.PI)}function Y(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function G(t,e,n){var r=Math.cos(n),i=Math.sin(n);return[t*r-e*i,t*i+e*r]}var H={box:function(t,e,n,r,i,o,a){for(var s=B(n,r,i),c=1/0,l=-1/0,u=[o,a],h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var f=s+h;o<a?o<f&&f<a&&u.push(f):a<f&&f<o&&u.push(f)}for(var h=0;h<u.length;h++){var p=R(t,e,n,r,i,u[h]);p<c&&(c=p),p>l&&(l=p)}for(var d=D(n,r,i),g=1/0,y=-1/0,v=[o,a],h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var m=d+h;o<a?o<m&&m<a&&v.push(m):a<m&&m<o&&v.push(m)}for(var h=0;h<v.length;h++){var b=N(t,e,n,r,i,v[h]);b<g&&(g=b),b>y&&(y=b)}return{x:c,y:g,width:l-c,height:y-g}},length:function(t,e,n,r,i,o,a){},nearestPoint:function(t,e,n,r,i,o,a,s,c){var l=G(s-t,c-e,-i),u=l[0],h=l[1],f=T(0,0,n,r,u,h),p=z(n,r,f.x,f.y);p<o?f=Y(n,r,o):p>a&&(f=Y(n,r,a));var d=G(f.x,f.y,i);return{x:d[0]+t,y:d[1]+e}},pointDistance:function(t,e,n,r,i,a,s,c,l){var u=this.nearestPoint(t,e,n,r,c,l);return o(u.x,u.y,c,l)},pointAt:function(t,e,n,r,i,o,a,s){var c=(a-o)*s+o;return{x:R(t,e,n,r,i,c),y:N(t,e,n,r,i,c)}},tangentAngle:function(t,e,n,r,i,o,a,s){var c=(a-o)*s+o,u=F(t,e,n,r,i,o,a,c),h=L(t,e,n,r,i,o,a,c);return l(Math.atan2(h,u))}};function V(t){for(var e=0,n=[],r=0;r<t.length-1;r++){var i=t[r],a=t[r+1],s=o(i[0],i[1],a[0],a[1]),c={from:i,to:a,length:s};n.push(c),e+=s}return{segments:n,totalLength:e}}function W(t){if(t.length<2)return 0;for(var e=0,n=0;n<t.length-1;n++){var r=t[n],i=t[n+1];e+=o(r[0],r[1],i[0],i[1])}return e}function X(t,e){if(e>1||e<0||t.length<2)return null;var n=V(t),r=n.segments,i=n.totalLength;if(0===i)return{x:t[0][0],y:t[0][1]};for(var o=0,a=null,s=0;s<r.length;s++){var c=r[s],l=c.from,u=c.to,f=c.length/i;if(e>=o&&e<=o+f){var p=(e-o)/f;a=h.pointAt(l[0],l[1],u[0],u[1],p);break}o+=f}return a}function $(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=V(t),r=n.segments,i=n.totalLength,o=0,a=0,s=0;s<r.length;s++){var c=r[s],l=c.from,u=c.to,h=c.length/i;if(e>=o&&e<=o+h){a=Math.atan2(u[1]-l[1],u[0]-l[0]);break}o+=h}return a}function q(t,e,n){for(var r=1/0,i=0;i<t.length-1;i++){var o=t[i],a=t[i+1],s=h.pointDistance(o[0],o[1],a[0],a[1],e,n);s<r&&(r=s)}return r}var U={box:function(t){for(var e=[],n=[],r=0;r<t.length;r++){var i=t[r];e.push(i[0]),n.push(i[1])}return s(e,n)},length:function(t){return W(t)},pointAt:function(t,e){return X(t,e)},pointDistance:function(t,e,n){return q(t,e,n)},tangentAngle:function(t,e){return $(t,e)}};function K(t){var e=t.slice(0);return t.length&&e.push(t[0]),e}var Z=function(t){return U.box(t)},Q=function(t){return W(K(t))},J=function(t,e){return X(K(t),e)},tt=function(t,e,n){return q(K(t),e,n)},et=function(t,e){return $(K(t),e)}},21:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return o}));var r=1e-6,i="undefined"!=typeof Float32Array?Float32Array:Array,o=Math.random;function a(t){i=t}var s=Math.PI/180;function c(t){return t*s}function l(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)})},22:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a})),n.d(e,"d",(function(){return s})),n.d(e,"c",(function(){return c}));var r=n(0),i=n(10);function o(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function a(t){var e=i.a[t.type],n=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var r=o(e);if(t.get("id")&&(r.id=t.get("id")),t.set("el",r),t.set("attrs",{}),n){var a=n.get("el");a||(a=n.createDom(),n.set("el",a)),a.appendChild(r)}return r}function s(t,e){var n=t.get("el"),i=Object(r.rb)(n.children).sort(e),o=document.createDocumentFragment();i.forEach((function(t){o.appendChild(t)})),n.appendChild(o)}function c(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],o=r.indexOf(t);if(i){if(o>e)n.insertBefore(t,i);else if(o<e){var a=r[e+1];a?n.insertBefore(t,a):n.appendChild(t)}}else n.appendChild(t)}},229:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return i}));var r=new Map;function i(t,e){r.set(t,e)}function o(t){return r.get(t)}var a=function(t){var e=t.attr(),n,r,i,o;return{x:e.x,y:e.y,width:e.width,height:e.height}},s=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}},c=n(20);function l(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}function u(t,e){var n=t.get("startArrowShape"),r=t.get("endArrowShape"),i=null,o=null;return n&&(e=l(e,i=n.getCanvasBBox())),r&&(e=l(e,o=r.getCanvasBBox())),e}var h=function(t){for(var e,n=t.attr().points,r=[],i=[],o=0;o<n.length;o++){var a=n[o];r.push(a[0]),i.push(a[1])}var s=c.f.getBBoxByArray(r,i),l=s.x,h=s.y,f,p,d={minX:l,minY:h,maxX:l+s.width,maxY:h+s.height};return{x:(d=u(t,d)).minX,y:d.minY,width:d.maxX-d.minX,height:d.maxY-d.minY}},f=function(t){for(var e,n=t.attr().points,r=[],i=[],o=0;o<n.length;o++){var a=n[o];r.push(a[0]),i.push(a[1])}return c.f.getBBoxByArray(r,i)},p=n(74),d=function(t){var e=t.attr(),n=e.x,r=e.y,i=e.text,o=e.fontSize,a=e.lineHeight,s=e.font;s||(s=Object(p.a)(e));var c=Object(p.c)(i,s),l;if(c){var u=e.textAlign,h=e.textBaseline,f=Object(p.b)(i,o,a),d={x:n,y:r-f};u&&("end"===u||"right"===u?d.x-=c:"center"===u&&(d.x-=c/2)),h&&("top"===h?d.y+=f:"middle"===h&&(d.y+=f/2)),l={x:d.x,y:d.y,width:c,height:f}}else l={x:n,y:r,width:0,height:0};return l},g=n(39),y=n(0);function v(t,e){for(var n=[],r=[],i=[],o=0;o<t.length;o++){var a,s=(a=t[o]).currentPoint,l=a.params,u=a.prePoint,h=void 0;switch(a.command){case"Q":h=c.e.box(u[0],u[1],l[1],l[2],l[3],l[4]);break;case"C":h=c.b.box(u[0],u[1],l[1],l[2],l[3],l[4],l[5],l[6]);break;case"A":var f=a.arcParams;h=c.a.box(f.cx,f.cy,f.rx,f.ry,f.xRotation,f.startAngle,f.endAngle);break;default:n.push(s[0]),r.push(s[1])}h&&(a.box=h,n.push(h.x,h.x+h.width),r.push(h.y,h.y+h.height)),e&&("L"===a.command||"M"===a.command)&&a.prePoint&&a.nextPoint&&i.push(a)}n=n.filter((function(t){return!Number.isNaN(t)&&t!==1/0&&t!==-1/0})),r=r.filter((function(t){return!Number.isNaN(t)&&t!==1/0&&t!==-1/0}));var p=Object(y.bb)(n),d=Object(y.bb)(r),g=Object(y.Y)(n),v=Object(y.Y)(r);if(0===i.length)return{x:p,y:d,width:g-p,height:v-d};for(var o=0;o<i.length;o++){var a,s,b=void 0;(s=(a=i[o]).currentPoint)[0]===p?p-=(b=m(a,e)).xExtra:s[0]===g&&(g+=(b=m(a,e)).xExtra),s[1]===d?d-=(b=m(a,e)).yExtra:s[1]===v&&(v+=(b=m(a,e)).yExtra)}return{x:p,y:d,width:g-p,height:v-d}}function m(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),a=Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2),s=Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2),c=Math.acos((o+a-s)/(2*Math.sqrt(o)*Math.sqrt(a)));if(!c||0===Math.sin(c)||Object(y.N)(c,0))return{xExtra:0,yExtra:0};var l=Math.abs(Math.atan2(i[1]-r[1],i[0]-r[0])),u=Math.abs(Math.atan2(i[0]-r[0],i[1]-r[1])),h;return l=l>Math.PI/2?Math.PI-l:l,u=u>Math.PI/2?Math.PI-u:u,{xExtra:Math.cos(c/2-l)*(e/2*(1/Math.sin(c/2)))-e/2||0,yExtra:Math.cos(u-c/2)*(e/2*(1/Math.sin(c/2)))-e/2||0}}var b=function(t){var e=t.attr(),n=e.path,r,i=e.stroke?e.lineWidth:0,o,a=v(t.get("segments")||Object(g.e)(n),i),s=a.x,c=a.y,l,h,f={minX:s,minY:c,maxX:s+a.width,maxY:c+a.height};return{x:(f=u(t,f)).minX,y:f.minY,width:f.maxX-f.minX,height:f.maxY-f.minY}},x=function(t){var e=t.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2,a,s,c,l,h={minX:Math.min(n,i),maxX:Math.max(n,i),minY:Math.min(r,o),maxY:Math.max(r,o)};return{x:(h=u(t,h)).minX,y:h.minY,width:h.maxX-h.minX,height:h.maxY-h.minY}},O=function(t){var e=t.attr(),n=e.x,r=e.y,i=e.rx,o=e.ry;return{x:n-i,y:r-o,width:2*i,height:2*o}};i("rect",a),i("image",a),i("circle",s),i("marker",s),i("polyline",h),i("polygon",f),i("text",d),i("path",b),i("line",x),i("ellipse",O)},231:function(t,e,n){"use strict";(function(t){var r=n(139),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a,s=o&&o.exports===i&&r.a.process,c=function(){try{var t=o&&o.require&&o.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(t){}}();e.a=c}).call(this,n(239)(t))},232:function(t,e){},233:function(t,e){},234:function(t,e,n){"use strict";var r=n(1),i,o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__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}(n(134).a);e.a=o},235:function(t,e,n){"use strict";var r=n(1),i=n(135),o=n(36),a=function(t){function e(e){return t.call(this,e)||this}return Object(r.__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=Object(o.c)(e,[t.minX,t.minY]),c=Object(o.c)(e,[t.maxX,t.minY]),l=Object(o.c)(e,[t.minX,t.maxY]),u=Object(o.c)(e,[t.maxX,t.maxY]);n=Math.min(s[0],c[0],l[0],u[0]),i=Math.max(s[0],c[0],l[0],u[0]),r=Math.min(s[1],c[1],l[1],u[1]),a=Math.max(s[1],c[1],l[1],u[1])}var h=this.attrs;if(h.shadowColor){var f=h.shadowBlur,p=void 0===f?0:f,d=h.shadowOffsetX,g=void 0===d?0:d,y=h.shadowOffsetY,v=void 0===y?0:y,m=n-p+g,b=i+p+g,x=r-p+v,O=a+p+v;n=Math.min(n,m),i=Math.max(i,b),r=Math.min(r,x),a=Math.max(a,O)}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],o=(i=this.invertFromMatrix(i))[0],a=i[1],s=this._isInBBox(o,a);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(o,a)){if(this.isInShape(o,a))return!0;if(n&&n.isHit(o,a))return!0;if(r&&r.isHit(o,a))return!0}return!1},e}(i.a);e.a=a},236:function(t,e){},237:function(t,e){},238:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,r=null;return function(){for(var t=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];clearTimeout(r),r=setTimeout((function(){e.apply(t,o)}),n)}};e.default=r},239:function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},24:function(t,e,n){"use strict";n.r(e),n.d(e,"CONTAINER_CLASS",(function(){return r})),n.d(e,"TITLE_CLASS",(function(){return i})),n.d(e,"LIST_CLASS",(function(){return o})),n.d(e,"LIST_ITEM_CLASS",(function(){return a})),n.d(e,"MARKER_CLASS",(function(){return s})),n.d(e,"VALUE_CLASS",(function(){return c})),n.d(e,"NAME_CLASS",(function(){return l})),n.d(e,"CROSSHAIR_X",(function(){return u})),n.d(e,"CROSSHAIR_Y",(function(){return h}));var r="g2-tooltip",i="g2-tooltip-title",o="g2-tooltip-list",a="g2-tooltip-list-item",s="g2-tooltip-marker",c="g2-tooltip-value",l="g2-tooltip-name",u="g2-tooltip-crosshair-x",h="g2-tooltip-crosshair-y"},25:function(t,e,n){"use strict";n.d(e,"e",(function(){return o})),n.d(e,"f",(function(){return a})),n.d(e,"d",(function(){return s})),n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return h}));var r=n(4),i=[1,0,0,0,1,0,0,0,1];function o(t,e,n){return void 0===n&&(n=i),e?r.a.transform(n,[["t",-t.x,-t.y],["r",e],["t",t.x,t.y]]):null;var o}function a(t,e){return t.x||t.y?r.a.transform(e||i,[["t",t.x,t.y]]):null}function s(t){var e=[1,0,0],n=[0,0,0];return r.d.transformMat3(n,e,t),Math.atan2(n[1],n[0])}function c(t,e){var n=[0,0];return r.c.transformMat3(n,e,t),n}function l(t,e){var n=c(t,[e.minX,e.minY]),r=c(t,[e.maxX,e.minY]),i=c(t,[e.minX,e.maxY]),o=c(t,[e.maxX,e.maxY]),a=Math.min(n[0],r[0],i[0],o[0]),s=Math.max(n[0],r[0],i[0],o[0]),l=Math.min(n[1],r[1],i[1],o[1]),u=Math.max(n[1],r[1],i[1],o[1]);return{x:a,y:l,minX:a,minY:l,maxX:s,maxY:u,width:s-a,height:u-l}}function u(t,e,n,r){if(e){var i=o({x:n,y:r},e,t.getMatrix());t.setMatrix(i)}}function h(t,e,n){var r=a({x:e,y:n});t.attr("matrix",r)}},26:function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"d",(function(){return u})),n.d(e,"b",(function(){return h})),n.d(e,"c",(function(){return p})),n.d(e,"e",(function(){return y})),n.d(e,"h",(function(){return v})),n.d(e,"f",(function(){return b})),n.d(e,"g",(function(){return x}));var r=n(0),i=n(138),o=n(116),a=n(8),s=n(31),c={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function l(t,e){var n=e.attr();for(var o in n){var a=n[o],s=c[o]?c[o]:o;"matrix"===s&&a?t.transform(a[0],a[1],a[3],a[4],a[6],a[7]):"lineDash"===s&&t.setLineDash?Object(r.C)(a)&&t.setLineDash(a):("strokeStyle"===s||"fillStyle"===s?a=Object(i.b)(t,e,a):"globalAlpha"===s&&(a*=t.globalAlpha),t[s]=a)}}function u(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];i.cfg.visible?i.draw(t,n):i.skipDraw()}}function h(t,e,n){var i=t.get("refreshElements");Object(r.j)(i,(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})),i[0]===t?d(e,n):f(e,n)}function f(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()&&d(r.cfg.children,e);else if(r.cfg.refresh)r.isGroup()&&f(r.cfg.children,e);else{var i=g(r,e);r.cfg.refresh=i,i&&r.isGroup()&&f(r.cfg.children,e)}}}function p(t){for(var e=0;e<t.length;e++){var n=t[e];n.cfg.hasChanged=!1,n.isGroup()&&!n.destroyed&&p(n.cfg.children)}}function d(t,e){for(var n=0;n<t.length;n++){var r=t[n];r.cfg.visible&&(r.cfg.refresh=!0,r.isGroup()&&d(r.get("children"),e))}}function g(t,e){var n=t.cfg.cacheCanvasBBox,r;return t.cfg.isInView&&n&&Object(a.f)(n,e)}function y(t,e,n,r){var i=n.path,a=n.startArrow,c=n.endArrow;if(i){var l=[0,0],u=[0,0],h={dx:0,dy:0};e.beginPath();for(var f=0;f<i.length;f++){var p=i[f],d=p[0];if(0===f&&a&&a.d){var g=t.getStartTangent();h=s.c(g[0][0],g[0][1],g[1][0],g[1][1],a.d)}else if(f===i.length-2&&"Z"===i[f+1][0]&&c&&c.d){var y;if("Z"===i[f+1][0]){var g=t.getEndTangent();h=s.c(g[0][0],g[0][1],g[1][0],g[1][1],c.d)}}else if(f===i.length-1&&c&&c.d&&"Z"!==i[0]){var g=t.getEndTangent();h=s.c(g[0][0],g[0][1],g[1][0],g[1][1],c.d)}var v=h.dx,m=h.dy;switch(d){case"M":e.moveTo(p[1]-v,p[2]-m),u=[p[1],p[2]];break;case"L":e.lineTo(p[1]-v,p[2]-m);break;case"Q":e.quadraticCurveTo(p[1],p[2],p[3]-v,p[4]-m);break;case"C":e.bezierCurveTo(p[1],p[2],p[3],p[4],p[5]-v,p[6]-m);break;case"A":var b=void 0;r?(b=r[f])||(b=Object(o.a)(l,p),r[f]=b):b=Object(o.a)(l,p);var x=b.cx,O=b.cy,j=b.rx,w=b.ry,_=b.startAngle,M=b.endAngle,S=b.xRotation,C=b.sweepFlag;if(e.ellipse)e.ellipse(x,O,j,w,S,_,M,1-C);else{var A=j>w?j:w,k=j>w?1:j/w,T=j>w?w/j:1;e.translate(x,O),e.rotate(S),e.scale(k,T),e.arc(0,0,A,_,M,1-C),e.scale(1/k,1/T),e.rotate(-S),e.translate(-x,-O)}break;case"Z":e.closePath()}if("Z"===d)l=u;else{var E=p.length;l=[p[E-2],p[E-1]]}}}}function v(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())))}function m(t){var e;if(t.destroyed)e=t._cacheCanvasBBox;else{var n=t.get("cacheCanvasBBox"),r=n&&!(!n.width||!n.height),i=t.getCanvasBBox(),o=i&&!(!i.width||!i.height);r&&o?e=Object(a.l)(n,i):r?e=n:o&&(e=i)}return e}function b(t){if(!t.length)return null;var e=[],n=[],i=[],o=[];return Object(r.j)(t,(function(t){var r=m(t);r&&(e.push(r.minX),n.push(r.minY),i.push(r.maxX),o.push(r.maxY))})),{minX:Object(r.bb)(e),minY:Object(r.bb)(n),maxX:Object(r.Y)(i),maxY:Object(r.Y)(o)}}function x(t,e){return t&&e&&Object(a.f)(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}},28:function(t,e,n){"use strict";var r=n(139),i="object"==typeof self&&self&&self.Object===Object&&self,o=r.a||i||Function("return this")();e.a=o},31:function(t,e,n){"use strict";n.d(e,"c",(function(){return h})),n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return p}));var r=n(1),i=n(57),o=Math.sin,a=Math.cos,s=Math.atan2,c=Math.PI;function l(t,e,n,r,l,u,h){var f=e.stroke,p=e.lineWidth,d,g,y=s(r-u,n-l),v=new i.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*a(c/6)+","+10*o(c/6)+" L0,0 L"+10*a(c/6)+",-"+10*o(c/6),stroke:f,lineWidth:p}});v.translate(l,u),v.rotateAtPoint(l,u,y),t.set(h?"startArrowShape":"endArrowShape",v)}function u(t,e,n,c,l,u,h){var f=e.startArrow,p=e.endArrow,d=e.stroke,g=e.lineWidth,y=h?f:p,v=y.d,m=y.fill,b=y.stroke,x=y.lineWidth,O=Object(r.__rest)(y,["d","fill","stroke","lineWidth"]),j,w,_=s(c-u,n-l);v&&(l-=a(_)*v,u-=o(_)*v);var M=new i.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:Object(r.__assign)(Object(r.__assign)({},O),{stroke:b||d,lineWidth:x||g,fill:m})});M.translate(l,u),M.rotateAtPoint(l,u,_),t.set(h?"startArrowShape":"endArrowShape",M)}function h(t,e,n,r,i){var c=s(r-e,n-t);return{dx:a(c)*i,dy:o(c)*i}}function f(t,e,n,r,i,o){"object"==typeof e.startArrow?u(t,e,n,r,i,o,!0):e.startArrow?l(t,e,n,r,i,o,!0):t.set("startArrowShape",null)}function p(t,e,n,r,i,o){"object"==typeof e.endArrow?u(t,e,n,r,i,o,!1):e.endArrow?l(t,e,n,r,i,o,!1):t.set("startArrowShape",null)}},33:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var r=n(22);function i(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 o=e.find("filter",i);o||(o=e.addShadow(i)),n.setAttribute("filter","url(#"+o+")")}else n.removeAttribute("filter")}function o(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)}}function a(t,e){var n=t.getClip(),i=t.get("el");if(n){if(n&&!i.hasAttribute("clip-path")){Object(r.a)(n),n.createPath(e);var o=e.addClip(n);i.setAttribute("clip-path","url(#"+o+")")}}else i.removeAttribute("clip-path")}},34:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));
2
- /*! *****************************************************************************
3
- Copyright (c) Microsoft Corporation.
4
-
5
- Permission to use, copy, modify, and/or distribute this software for any
6
- purpose with or without fee is hereby granted.
7
-
8
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
- PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */
16
- var r=function(t,e){return(r=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)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function t(e){for(var n,r=1,i=arguments.length;r<i;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e}).apply(this,arguments)};function a(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)for(var i=0,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}function s(t,e,n,r){var i=arguments.length,o=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r,a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(o=(i<3?a(o):i>3?a(e,n,o):a(e,n))||o);return i>3&&o&&Object.defineProperty(e,n,o),o}function c(t,e){return function(n,r){e(n,r,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function u(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){t.done?n(t.value):i(t.value).then(a,s)}c((r=r.apply(t,e||[])).next())}))}function h(t,e){var n={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return c([t,e])}}function c(a){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=2&a[0]?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return n.label++,{value:a[1],done:!1};case 5:n.label++,i=a[1],a=[0];continue;case 7:a=n.ops.pop(),n.trys.pop();continue;default:if(!(o=n.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){n=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(6===a[0]&&n.label<o[1]){n.label=o[1],o=a;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(a);break}o[2]&&n.ops.pop(),n.trys.pop();continue}a=e.call(t,n)}catch(t){a=[6,t],i=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}function f(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}function p(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function d(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 g(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],a;try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(t){a={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o}function y(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(g(arguments[e]));return t}function v(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var r=Array(t),i=0,e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function m(t){return this instanceof m?(this.v=t,this):new m(t)}function b(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),i,o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(t){r[t]&&(i[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||s(t,e)}))})}function s(t,e){try{c(r[t](e))}catch(t){h(o[0][3],t)}}function c(t){t.value instanceof m?Promise.resolve(t.value.v).then(l,u):h(o[0][2],t)}function l(t){s("next",t)}function u(t){s("throw",t)}function h(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function x(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:m(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function O(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=d(t),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){i(r,o,(n=t[e](n)).done,n.value)}))}}function i(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)}}function j(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function w(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}function _(t){return t&&t.__esModule?t:{default:t}}function M(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function S(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},36:function(t,e,n){"use strict";function r(t,e){var n=[],r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],c=t[5],l=t[6],u=t[7],h=t[8],f=e[0],p=e[1],d=e[2],g=e[3],y=e[4],v=e[5],m=e[6],b=e[7],x=e[8];return n[0]=f*r+p*a+d*l,n[1]=f*i+p*s+d*u,n[2]=f*o+p*c+d*h,n[3]=g*r+y*a+v*l,n[4]=g*i+y*s+v*u,n[5]=g*o+y*c+v*h,n[6]=m*r+b*a+x*l,n[7]=m*i+b*s+x*u,n[8]=m*o+b*c+x*h,n}function i(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}function o(t){var e=[],n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],c=t[6],l=t[7],u=t[8],h=u*a-s*l,f=-u*o+s*c,p=l*o-a*c,d=n*h+r*f+i*p;return d?(d=1/d,e[0]=h*d,e[1]=(-u*r+i*l)*d,e[2]=(s*r-i*a)*d,e[3]=f*d,e[4]=(u*n-i*c)*d,e[5]=(-s*n+i*o)*d,e[6]=p*d,e[7]=(-l*n+r*c)*d,e[8]=(a*n-r*o)*d,e):null}n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}))},39:function(t,e,n){"use strict";n.d(e,"a",(function(){return b})),n.d(e,"c",(function(){return F})),n.d(e,"d",(function(){return D})),n.d(e,"e",(function(){return yt})),n.d(e,"b",(function(){return Ct}));var r=n(0),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\s\,]+/gi;function a(t){var e=t||[];return Object(r.C)(e)?e:Object(r.Q)(e)?(e=e.match(i),Object(r.j)(e,(function(t,n){if((t=t.match(o))[0].length>1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}Object(r.j)(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}var s=a,c=n(9);function l(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return c.a.fromTranslation(r,n),c.a.multiply(t,r,e)}function u(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return c.a.fromRotation(r,n),c.a.multiply(t,r,e)}function h(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return c.a.fromScaling(r,n),c.a.multiply(t,r,e)}function f(t,e,n){return c.a.multiply(t,n,e)}function p(t,e){for(var n=t?[].concat(t):[1,0,0,0,1,0,0,0,1],r=0,i=e.length;r<i;r++){var o=e[r];switch(o[0]){case"t":l(n,n,[o[1],o[2]]);break;case"s":h(n,n,[o[1],o[2]]);break;case"r":u(n,n,o[1]);break;case"m":f(n,n,o[1])}}return n}function d(t,e){return t[0]*e[1]-e[0]*t[1]}function g(t,e,n){var r=c.b.angle(t,e),i=d(t,e)>=0;return n?i?2*Math.PI-r:r:i?r:2*Math.PI-r}function y(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 v(t,e,n,r){var i=[],o=!!r,a,s,l,u,h,f,p;if(o){l=r[0],u=r[1];for(var d=0,g=t.length;d<g;d+=1){var y=t[d];l=c.b.min([0,0],l,y),u=c.b.max([0,0],u,y)}}for(var d=0,v=t.length;d<v;d+=1){var y=t[d];if(0!==d||n)if(d!==v-1||n){var m;a=t[[d?d-1:v-1,d-1][n?0:1]],s=t[n?(d+1)%v:d+1];var b=[0,0];b=c.b.sub(b,s,a),b=c.b.scale(b,b,e);var x=c.b.distance(y,a),O=c.b.distance(y,s),j=x+O;0!==j&&(x/=j,O/=j);var w=c.b.scale([0,0],b,-x),_=c.b.scale([0,0],b,O);f=c.b.add([0,0],y,w),h=c.b.add([0,0],y,_),h=c.b.min([0,0],h,c.b.max([0,0],s,y)),h=c.b.max([0,0],h,c.b.min([0,0],s,y)),w=c.b.sub([0,0],h,y),w=c.b.scale([0,0],w,-x/O),f=c.b.add([0,0],y,w),f=c.b.min([0,0],f,c.b.max([0,0],a,y)),f=c.b.max([0,0],f,c.b.min([0,0],a,y)),_=c.b.sub([0,0],y,f),_=c.b.scale([0,0],_,O/x),h=c.b.add([0,0],y,_),o&&(f=c.b.max([0,0],f,l),f=c.b.min([0,0],f,u),h=c.b.max([0,0],h,l),h=c.b.min([0,0],h,u)),i.push(p),i.push(f),p=h}else f=y,i.push(p),i.push(f);else p=y}return n&&i.push(i.shift()),i}function m(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=[[0,0],[1,1]]);for(var r=!!e,i=[],o=0,a=t.length;o<a;o+=2)i.push([t[o],t[o+1]]);for(var s=v(i,.4,r,n),c=i.length,l=[],u,h,f,o=0;o<c-1;o+=1)u=s[2*o],h=s[2*o+1],f=i[o+1],l.push(["C",u[0],u[1],h[0],h[1],f[0],f[1]]);return r&&(u=s[c],h=s[c+1],f=i[0],l.push(["C",u[0],u[1],h[0],h[1],f[0],f[1]])),l}var b=m;function x(t,e){var n=[],r=[];function i(t,e){if(1===t.length)n.push(t[0]),r.push(t[0]);else{for(var o=[],a=0;a<t.length-1;a++)0===a&&n.push(t[0]),a===t.length-2&&r.push(t[a+1]),o[a]=[(1-e)*t[a][0]+e*t[a+1][0],(1-e)*t[a][1]+e*t[a+1][1]];i(o,e)}}return t.length&&i(t,e),{left:n,right:r.reverse()}}function O(t,e,n){var r=[[t[1],t[2]]];n=n||2;var i=[],o;"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,s=1/n,c=0;c<n-1;c++){var l,u=x(a,s/(1-s*c));i.push(u.left),a=u.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])}))}function j(t,e,n){if(1===n)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(O(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var o=0;o<=n-1;o++)r.push(i)}return r}function w(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a<r-n;a++)t.push(t[0]);return t}for(var a=0;a<r;a++){var s=Math.floor(i*a);o[s]=(o[s]||0)+1}var c=o.reduce((function(e,r,i){return i===n?e.concat(t[n]):e.concat(j(t[i],t[i+1],r))}),[]);return c.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||c.push("Z"),c}function _(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}}var M=function(t,e){var n=t.length,i=e.length,o,a,s=0;if(0===n||0===i)return null;for(var c=[],l=0;l<=n;l++)c[l]=[],c[l][0]={min:l};for(var u=0;u<=i;u++)c[0][u]={min:u};for(var l=1;l<=n;l++){o=t[l-1];for(var u=1;u<=i;u++){a=e[u-1],s=Object(r.H)(o,a)?0:1;var h=c[l-1][u].min+1,f=c[l][u-1].min+1,p=c[l-1][u-1].min+s;c[l][u]=_(h,f,p)}}return c};function S(t,e){var n=M(t,e),r=t.length,i=e.length,o=[],a=1,s=1;if(n[r][i]!==r){for(var c=1;c<=r;c++){var l=n[c][c].min;s=c;for(var u=a;u<=i;u++)n[c][u].min<l&&(l=n[c][u].min,s=u);a=s,n[c][a].type&&o.push({index:c-1,type:n[c][a].type})}for(var c=o.length-1;c>=0;c--)a=o[c].index,"add"===o[c].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}if((r=t.length)<i)for(var c=0;c<i-r;c++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]);return t}function C(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 A(t,e,n){for(var r=[].concat(t),i,o=1/(n+1),a=C(e)[0],s=1;s<=n;s++)o*=s,0===(i=Math.floor(t.length*o))?r.unshift([a[0]*o+t[i][0]*(1-o),a[1]*o+t[i][1]*(1-o)]):r.splice(i,0,[a[0]*o+t[i][0]*(1-o),a[1]*o+t[i][1]*(1-o)]);return r}function k(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=C(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=A(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=A(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=A(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(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"]]}var E="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029",P=new RegExp("([a-z])["+E+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+E+"]*,?["+E+"]*)+)","ig"),I=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+E+"]*,?["+E+"]*","ig");function F(t){if(!t)return null;if(Object(r.C)(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(P,(function(t,r,i){var o=[],a=r.toLowerCase();if(i.replace(I,(function(t,e){e&&o.push(+e)})),"m"===a&&o.length>2&&(n.push([r].concat(o.splice(0,2))),a="l",r="m"===r?"l":"L"),"o"===a&&1===o.length&&n.push([r,o[0]]),"r"===a)n.push([r].concat(o));else for(;o.length>=e[a]&&(n.push([r].concat(o.splice(0,e[a]))),e[a]););return""})),n}var L=/[a-z]/;function B(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function D(t){var e=F(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,r=0;r<e.length;r++){var i=e[r][0];if(L.test(i)||["V","H","T","S"].indexOf(i)>=0){n=!0;break}}if(!n)return e;var o=[],a=0,s=0,c=0,l=0,u=0,h,f,p=e[0];"M"!==p[0]&&"m"!==p[0]||(c=a=+p[1],l=s=+p[2],u++,o[0]=["M",a,s]);for(var r=u,d=e.length;r<d;r++){var g=e[r],y=o[r-1],v=[],i,m=(i=g[0]).toUpperCase();if(i!==m)switch(v[0]=m,m){case"A":v[1]=g[1],v[2]=g[2],v[3]=g[3],v[4]=g[4],v[5]=g[5],v[6]=+g[6]+a,v[7]=+g[7]+s;break;case"V":v[1]=+g[1]+s;break;case"H":v[1]=+g[1]+a;break;case"M":c=+g[1]+a,l=+g[2]+s,v[1]=c,v[2]=l;break;default:for(var b=1,x=g.length;b<x;b++)v[b]=+g[b]+(b%2?a:s)}else v=e[r];switch(m){case"Z":a=+c,s=+l;break;case"H":v=["L",a=v[1],s];break;case"V":v=["L",a,s=v[1]];break;case"T":a=v[1],s=v[2];var O=B([y[1],y[2]],[y[3],y[4]]);v=["Q",O[0],O[1],a,s];break;case"S":a=v[v.length-2],s=v[v.length-1];var j=y.length,w=B([y[j-4],y[j-3]],[y[j-2],y[j-1]]);v=["C",w[0],w[1],v[1],v[2],a,s];break;case"M":c=v[v.length-2],l=v[v.length-1];break;default:a=v[v.length-2],s=v[v.length-1]}o.push(v)}return o}var R=2*Math.PI,N=function(t,e,n,r,i,o,a){var s=t.x,c=t.y,l,u;return{x:r*(s*=e)-i*(c*=n)+o,y:i*s+r*c+a}},z=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),o=Math.cos(t+e),a=Math.sin(t+e);return[{x:r-i*n,y:i+r*n},{x:o+a*n,y:a-o*n},{x:o,y:a}]},Y=function(t,e,n,r){var i,o=t*n+e*r;return o>1&&(o=1),o<-1&&(o=-1),(t*r-e*n<0?-1:1)*Math.acos(o)},G=function(t,e,n,r,i,o,a,s,c,l,u,h){var f=Math.pow(i,2),p=Math.pow(o,2),d=Math.pow(u,2),g=Math.pow(h,2),y=f*p-f*g-p*d;y<0&&(y=0),y/=f*g+p*d;var v=(y=Math.sqrt(y)*(a===s?-1:1))*i/o*h,m=y*-o/i*u,b=l*v-c*m+(t+n)/2,x=c*v+l*m+(e+r)/2,O=(u-v)/i,j=(h-m)/o,w=(-u-v)/i,_=(-h-m)/o,M=Y(1,0,O,j),S=Y(O,j,w,_);return 0===s&&S>0&&(S-=R),1===s&&S<0&&(S+=R),[b,x,M,S]},H=function(t){var e=t.px,n=t.py,r=t.cx,i=t.cy,o=t.rx,a=t.ry,s=t.xAxisRotation,c=void 0===s?0:s,l=t.largeArcFlag,u=void 0===l?0:l,h=t.sweepFlag,f=void 0===h?0:h,p=[];if(0===o||0===a)return[{x1:0,y1:0,x2:0,y2:0,x:r,y:i}];var d=Math.sin(c*R/360),g=Math.cos(c*R/360),y=g*(e-r)/2+d*(n-i)/2,v=-d*(e-r)/2+g*(n-i)/2;if(0===y&&0===v)return[{x1:0,y1:0,x2:0,y2:0,x:r,y:i}];o=Math.abs(o),a=Math.abs(a);var m=Math.pow(y,2)/Math.pow(o,2)+Math.pow(v,2)/Math.pow(a,2);m>1&&(o*=Math.sqrt(m),a*=Math.sqrt(m));var b=G(e,n,r,i,o,a,u,f,d,g,y,v),x=b[0],O=b[1],j=b[2],w=b[3],_=Math.abs(w)/(R/4);Math.abs(1-_)<1e-7&&(_=1);var M=Math.max(Math.ceil(_),1);w/=M;for(var S=0;S<M;S++)p.push(z(j,w)),j+=w;return p.map((function(t){var e=N(t[0],o,a,g,d,x,O),n=e.x,r=e.y,i=N(t[1],o,a,g,d,x,O),s=i.x,c=i.y,l=N(t[2],o,a,g,d,x,O),u,h;return{x1:n,y1:r,x2:s,y2:c,x:l.x,y:l.y}}))};function V(t,e,n,r,i,o,a,s,c){var l;return H({px:t,py:e,cx:s,cy:c,rx:n,ry:r,xAxisRotation:i,largeArcFlag:o,sweepFlag:a}).reduce((function(t,e){var n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.x,s=e.y;return t.push(n,r,i,o,a,s),t}),[])}function W(t,e,n,r,i,o){var a=1/3,s=2/3;return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*o+2/3*r,i,o]}function X(t,e,n,r){return[t,e,n,r,n,r]}function $(t,e){"TQ".indexOf(t[0])<0&&(e.qx=null,e.qy=null);var n=t.slice(1),r=n[0],i=n[1];switch(t[0]){case"M":return e.x=r,e.y=i,t;case"A":return["C"].concat(V.apply(0,[e.x1,e.y1].concat(t.slice(1))));case"Q":return e.qx=r,e.qy=i,["C"].concat(W.apply(0,[e.x1,e.y1].concat(t.slice(1))));case"L":return["C"].concat(X(e.x1,e.y1,t[1],t[2]));case"H":return["C"].concat(X(e.x1,e.y1,t[1],e.y1));case"V":return["C"].concat(X(e.x1,e.y1,e.x1,t[1]));case"Z":return["C"].concat(X(e.x1,e.y1,e.x,e.y))}return t}function q(t,e){void 0===e&&(e=!1);for(var n=D(t),r={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},i=[],o="",a=n.length,s,c,l=[],u=0;u<a;u+=1)n[u]&&(o=n[u][0]),i[u]=o,n[u]=$(n[u],r),U(n,i,u),a=n.length,"Z"===o&&l.push(u),c=(s=n[u]).length,r.x1=+s[c-2],r.y1=+s[c-1],r.x2=+s[c-4]||r.x1,r.y2=+s[c-3]||r.y1;return e?[n,l]:n}function U(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)}}var K=function(t,e,n,r,i){var o,a;return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},Z=function(t,e,n,r,i,o,a,s,c){null===c&&(c=1);for(var l=(c=c>1?1:c<0?0:c)/2,u=12,h=[-.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],p=0,d=0;d<u;d++){var g=l*h[d]+l,y=K(g,t,n,i,a),v=K(g,e,r,o,s),m=y*y+v*v;p+=f[d]*Math.sqrt(m)}return l*p},Q=function(t,e,n,r,i,o,a,s){for(var c=[],l=[[],[]],u,h,f,p,d=0;d<2;++d)if(0===d?(h=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*a,f=3*n-3*t):(h=6*e-12*r+6*o,u=-3*e+9*r-9*o+3*s,f=3*r-3*e),Math.abs(u)<1e-12){if(Math.abs(h)<1e-12)continue;(p=-f/h)>0&&p<1&&c.push(p)}else{var g=h*h-4*f*u,y=Math.sqrt(g);if(!(g<0)){var v=(-h+y)/(2*u);v>0&&v<1&&c.push(v);var m=(-h-y)/(2*u);m>0&&m<1&&c.push(m)}}for(var b=c.length,x=b,O;b--;)O=1-(p=c[b]),l[0][b]=O*O*O*t+3*O*O*p*n+3*O*p*p*i+p*p*p*a,l[1][b]=O*O*O*e+3*O*O*p*r+3*O*p*p*o+p*p*p*s;return l[0][x]=t,l[1][x]=e,l[0][x+1]=a,l[1][x+1]=s,l[0].length=l[1].length=x+2,{min:{x:Math.min.apply(0,l[0]),y:Math.min.apply(0,l[1])},max:{x:Math.max.apply(0,l[0]),y:Math.max.apply(0,l[1])}}},J=function(t,e,n,r,i,o,a,s){if(!(Math.max(t,n)<Math.min(i,a)||Math.min(t,n)>Math.max(i,a)||Math.max(e,r)<Math.min(o,s)||Math.min(e,r)>Math.max(o,s))){var c,l,u=(t-n)*(o-s)-(e-r)*(i-a);if(u){var h=((t*r-e*n)*(i-a)-(t-n)*(i*s-o*a))/u,f=((t*r-e*n)*(o-s)-(e-r)*(i*s-o*a))/u,p=+h.toFixed(2),d=+f.toFixed(2);if(!(p<+Math.min(t,n).toFixed(2)||p>+Math.max(t,n).toFixed(2)||p<+Math.min(i,a).toFixed(2)||p>+Math.max(i,a).toFixed(2)||d<+Math.min(e,r).toFixed(2)||d>+Math.max(e,r).toFixed(2)||d<+Math.min(o,s).toFixed(2)||d>+Math.max(o,s).toFixed(2)))return{x:h,y:f}}}},tt=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},et=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:T(t,e,n,r),vb:[t,e,n,r].join(" ")}},nt=function(t,e){return t=et(t),e=et(e),tt(e,t.x,t.y)||tt(e,t.x2,t.y)||tt(e,t.x,t.y2)||tt(e,t.x2,t.y2)||tt(t,e.x,e.y)||tt(t,e.x2,e.y)||tt(t,e.x,e.y2)||tt(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)},rt=function(t,e,n,i,o,a,s,c){Object(r.C)(t)||(t=[t,e,n,i,o,a,s,c]);var l=Q.apply(null,t);return et(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},it=function(t,e,n,r,i,o,a,s,c){var l=1-c,u=Math.pow(l,3),h=Math.pow(l,2),f=c*c,p=f*c,d,g,y=t+2*c*(n-t)+f*(i-2*n+t),v=e+2*c*(r-e)+f*(o-2*r+e),m=n+2*c*(i-n)+f*(a-2*i+n),b=r+2*c*(o-r)+f*(s-2*o+r),x,O,j,w,_;return{x:u*t+3*h*c*n+3*l*c*c*i+p*a,y:u*e+3*h*c*r+3*l*c*c*o+p*s,m:{x:y,y:v},n:{x:m,y:b},start:{x:l*t+c*n,y:l*e+c*r},end:{x:l*i+c*a,y:l*o+c*s},alpha:90-180*Math.atan2(y-m,v-b)/Math.PI}},ot=function(t,e,n){var r=rt(t),i=rt(e);if(!nt(r,i))return n?0:[];for(var o,a,s=~~(Z.apply(0,t)/8),c=~~(Z.apply(0,e)/8),l=[],u=[],h={},f=n?0:[],p=0;p<s+1;p++){var d=it.apply(0,t.concat(p/s));l.push({x:d.x,y:d.y,t:p/s})}for(var p=0;p<c+1;p++){var d=it.apply(0,e.concat(p/c));u.push({x:d.x,y:d.y,t:p/c})}for(var p=0;p<s;p++)for(var g=0;g<c;g++){var y=l[p],v=l[p+1],m=u[g],b=u[g+1],x=Math.abs(v.x-y.x)<.001?"y":"x",O=Math.abs(b.x-m.x)<.001?"y":"x",j=J(y.x,y.y,v.x,v.y,m.x,m.y,b.x,b.y);if(j){if(h[j.x.toFixed(4)]===j.y.toFixed(4))continue;h[j.x.toFixed(4)]=j.y.toFixed(4);var w=y.t+Math.abs((j[x]-y[x])/(v[x]-y[x]))*(v.t-y.t),_=m.t+Math.abs((j[O]-m[O])/(b[O]-m[O]))*(b.t-m.t);w>=0&&w<=1&&_>=0&&_<=1&&(n?f++:f.push({x:j.x,y:j.y,t1:w,t2:_}))}}return f},at=function(t,e,n){var r,i,o,a,s,c,l,u,h,f;t=q(t),e=q(e);for(var p=n?0:[],d=0,g=t.length;d<g;d++){var y=t[d];if("M"===y[0])r=s=y[1],i=c=y[2];else{"C"===y[0]?(h=[r,i].concat(y.slice(1)),r=h[6],i=h[7]):(h=[r,i,r,i,s,c,s,c],r=s,i=c);for(var v=0,m=e.length;v<m;v++){var b=e[v];if("M"===b[0])o=l=b[1],a=u=b[2];else{"C"===b[0]?(f=[o,a].concat(b.slice(1)),o=f[6],a=f[7]):(f=[o,a,o,a,l,u,l,u],o=l,a=u);var x=ot(h,f,n);if(n)p+=x;else{for(var O=0,j=x.length;O<j;O++)x[O].segment1=d,x[O].segment2=v,x[O].bez1=h,x[O].bez2=f;p=p.concat(x)}}}}}return p};function st(t,e){return at(t,e)}var ct=/,?([a-z]),?/gi;function lt(t){return t.join(",").replace(ct,"$1")}function ut(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function ht(t,e){return ut(t)*ut(e)?(t[0]*e[0]+t[1]*e[1])/(ut(t)*ut(e)):1}function ft(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(ht(t,e))}function pt(t,e){return t[0]===e[0]&&t[1]===e[1]}function dt(t,e){var n=e[1],i=e[2],o=Object(r.eb)(Object(r.sb)(e[3]),2*Math.PI),a=e[4],s=e[5],c=t[0],l=t[1],u=e[6],h=e[7],f=Math.cos(o)*(c-u)/2+Math.sin(o)*(l-h)/2,p=-1*Math.sin(o)*(c-u)/2+Math.cos(o)*(l-h)/2,d=f*f/(n*n)+p*p/(i*i);d>1&&(n*=Math.sqrt(d),i*=Math.sqrt(d));var g=n*n*(p*p)+i*i*(f*f),y=g?Math.sqrt((n*n*(i*i)-g)/g):1;a===s&&(y*=-1),isNaN(y)&&(y=0);var v=i?y*n*p/i:0,m=n?y*-i*f/n:0,b=(c+u)/2+Math.cos(o)*v-Math.sin(o)*m,x=(l+h)/2+Math.sin(o)*v+Math.cos(o)*m,O=[(f-v)/n,(p-m)/i],j=[(-1*f-v)/n,(-1*p-m)/i],w=ft([1,0],O),_=ft(O,j);return ht(O,j)<=-1&&(_=Math.PI),ht(O,j)>=1&&(_=0),0===s&&_>0&&(_-=2*Math.PI),1===s&&_<0&&(_+=2*Math.PI),{cx:b,cy:x,rx:pt(t,[u,h])?0:n,ry:pt(t,[u,h])?0:i,startAngle:w,endAngle:w+_,xRotation:o,arcFlag:a,sweepFlag:s}}function gt(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function yt(t){for(var e=[],n=null,r=null,i=null,o=0,a=(t=s(t)).length,c=0;c<a;c++){var l=t[c];r=t[c+1];var u=l[0],h={command:u,prePoint:n,params:l,startTangent:null,endTangent:null};switch(u){case"M":i=[l[1],l[2]],o=c;break;case"A":var f=dt(n,l);h.arcParams=f}if("Z"===u)n=i,r=t[o+1];else{var p=l.length;n=[l[p-2],l[p-1]]}r&&"Z"===r[0]&&(r=t[o],e[o]&&(e[o].prePoint=n)),h.currentPoint=n,e[o]&&pt(n,e[o].currentPoint)&&(e[o].prePoint=h.prePoint);var d=r?[r[r.length-2],r[r.length-1]]:null;h.nextPoint=d;var g=h.prePoint;if(["L","H","V"].includes(u))h.startTangent=[g[0]-n[0],g[1]-n[1]],h.endTangent=[n[0]-g[0],n[1]-g[1]];else if("Q"===u){var y=[l[1],l[2]];h.startTangent=[g[0]-y[0],g[1]-y[1]],h.endTangent=[n[0]-y[0],n[1]-y[1]]}else if("T"===u){var v,y=gt((v=e[c-1]).currentPoint,g);"Q"===v.command?(h.command="Q",h.startTangent=[g[0]-y[0],g[1]-y[1]],h.endTangent=[n[0]-y[0],n[1]-y[1]]):(h.command="TL",h.startTangent=[g[0]-n[0],g[1]-n[1]],h.endTangent=[n[0]-g[0],n[1]-g[1]])}else if("C"===u){var m=[l[1],l[2]],b=[l[3],l[4]];h.startTangent=[g[0]-m[0],g[1]-m[1]],h.endTangent=[n[0]-b[0],n[1]-b[1]],0===h.startTangent[0]&&0===h.startTangent[1]&&(h.startTangent=[m[0]-b[0],m[1]-b[1]]),0===h.endTangent[0]&&0===h.endTangent[1]&&(h.endTangent=[b[0]-m[0],b[1]-m[1]])}else if("S"===u){var v,m=gt((v=e[c-1]).currentPoint,g),b=[l[1],l[2]];"C"===v.command?(h.command="C",h.startTangent=[g[0]-m[0],g[1]-m[1]],h.endTangent=[n[0]-b[0],n[1]-b[1]]):(h.command="SQ",h.startTangent=[g[0]-b[0],g[1]-b[1]],h.endTangent=[n[0]-b[0],n[1]-b[1]])}else if("A"===u){var x=.001,O=h.arcParams||{},j=O.cx,w=void 0===j?0:j,_=O.cy,M=void 0===_?0:_,S=O.rx,C=void 0===S?0:S,A=O.ry,k=void 0===A?0:A,T=O.sweepFlag,E=void 0===T?0:T,P=O.startAngle,I=void 0===P?0:P,F=O.endAngle,L=void 0===F?0:F;0===E&&(x*=-1);var B=C*Math.cos(I-x)+w,D=k*Math.sin(I-x)+M;h.startTangent=[B-i[0],D-i[1]];var R=C*Math.cos(I+L+x)+w,N=k*Math.sin(I+L-x)+M;h.endTangent=[g[0]-R,g[1]-N]}e.push(h)}return e}var vt=function(t,e,n){return t>=e&&t<=n};function mt(t,e,n,r){var i=.001,o=n.x-t.x,a=n.y-t.y,s=e.x-t.x,c=e.y-t.y,l=r.x-n.x,u=r.y-n.y,h=s*u-c*l,f,p,d,g=null;if(h*h>.001*(s*s+c*c)*(l*l+u*u)){var y=(o*u-a*l)/h,v=(o*c-a*s)/h;vt(y,0,1)&&vt(v,0,1)&&(g={x:t.x+y*s,y:t.y+y*c})}return g}var bt=1e-6;function xt(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function Ot(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])}function jt(t,e,n){var r=!1,i=t.length;if(i<=2)return!1;for(var o=0;o<i;o++){var a=t[o],s=t[(o+1)%i];if(Ot(a,s,[e,n]))return!0;xt(a[1]-n)>0!=xt(s[1]-n)>0&&xt(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(r=!r)}return r}function wt(t){for(var e=[],n=t.length,r=0;r<n-1;r++){var i=t[r],o=t[r+1];e.push({from:{x:i[0],y:i[1]},to:{x:o[0],y:o[1]}})}if(e.length>1){var a=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:a[0],y:a[1]}})}return e}function _t(t,e){var n=!1;return Object(r.j)(t,(function(t){if(mt(t.from,t.to,e.from,e.to))return n=!0,!1})),n}function Mt(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)}}function St(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function Ct(t,e){if(t.length<2||e.length<2)return!1;var n,i;if(!St(Mt(t),Mt(e)))return!1;var o=!1;if(Object(r.j)(e,(function(e){if(jt(t,e[0],e[1]))return o=!0,!1})),o)return!0;if(Object(r.j)(t,(function(t){if(jt(e,t[0],t[1]))return o=!0,!1})),o)return!0;var a=wt(t),s=wt(e),c=!1;return Object(r.j)(s,(function(t){if(_t(a,t))return c=!0,!1})),c}},4:function(t,e,n){"use strict";n.d(e,"b",(function(){return i.a})),n.d(e,"c",(function(){return i.b})),n.d(e,"d",(function(){return i.c})),n.d(e,"a",(function(){return r}));var r={};n.r(r),n.d(r,"leftTranslate",(function(){return o})),n.d(r,"leftRotate",(function(){return a})),n.d(r,"leftScale",(function(){return s})),n.d(r,"transform",(function(){return l})),n.d(r,"direction",(function(){return u})),n.d(r,"angleTo",(function(){return h})),n.d(r,"vertical",(function(){return f}));var i=n(9);function o(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return i.a.fromTranslation(r,n),i.a.multiply(t,r,e)}function a(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return i.a.fromRotation(r,n),i.a.multiply(t,r,e)}function s(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return i.a.fromScaling(r,n),i.a.multiply(t,r,e)}function c(t,e,n){return i.a.multiply(t,n,e)}function l(t,e){for(var n=t?[].concat(t):[1,0,0,0,1,0,0,0,1],r=0,i=e.length;r<i;r++){var l=e[r];switch(l[0]){case"t":o(n,n,[l[1],l[2]]);break;case"s":s(n,n,[l[1],l[2]]);break;case"r":a(n,n,l[1]);break;case"m":c(n,n,l[1])}}return n}function u(t,e){return t[0]*e[1]-e[0]*t[1]}function h(t,e,n){var r=i.b.angle(t,e),o=u(t,e)>=0;return n?o?2*Math.PI-r:r:o?r:2*Math.PI-r}function f(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}},40:function(t,e,n){"use strict";var r=n(0),i=/rgba?\(([\s.,0-9]+)\)/,o=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,c=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)},l=function(){var t=document.createElement("i");return t.title="Web Colour Picker",t.style.display="none",document.body.appendChild(t),t},u=function(t,e,n,r){return t[r]+(e[r]-t[r])*n};function h(t){return"#"+p(t[0])+p(t[1])+p(t[2])}var f=function(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)]},p=function(t){var e=Math.round(t).toString(16);return 1===e.length?"0"+e:e},d=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),o=r*n-i,a=t[i],s=i===r?a:t[i+1];return h([u(a,s,o,0),u(a,s,o,1),u(a,s,o,2)])},g,y=function(t){if("#"===t[0]&&7===t.length)return t;g||(g=l()),g.style.color=t;var e=document.defaultView.getComputedStyle(g,"").getPropertyValue("color"),n,r;return e=h(i.exec(e)[1].split(/\s*,\s*/).map((function(t){return Number(t)})))},v=function(t){var e=Object(r.Q)(t)?t.split("-"):t,n=Object(r.W)(e,(function(t){return f(-1===t.indexOf("#")?y(t):t)}));return function(t){return d(n,t)}},m=function(t){if(c(t)){var e,n=void 0;if("l"===t[0]){var i,l=+(i=o.exec(t))[1]+90;n=i[2],e="linear-gradient("+l+"deg, "}else if("r"===t[0]){var i;e="radial-gradient(",n=(i=a.exec(t))[4]}var u=n.match(s);return Object(r.j)(u,(function(t,n){var r=t.split(":");e+=r[1]+" "+100*r[0]+"%",n!==u.length-1&&(e+=", ")})),e+=")"}return t};e.a={rgb2arr:f,gradient:v,toRGB:Object(r.ab)(y),toCSSGradient:m}},41:function(t,e,n){"use strict";n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return g}));var r=n(0),i="\u2026";function o(t){for(var e=0,n=0;n<t.length;n++)e+=a(t,n);return e}function a(t,e){return t.charCodeAt(e)>0&&t.charCodeAt(e)<128?1:2}function s(t,e,n){void 0===n&&(n="tail");var r=t.length,i="";if("tail"===n){for(var o=0,s=0;o<e;){var c;if(!(o+(c=a(t,s))<=e))break;i+=t[s],o+=a(t,s),s++}i+="\u2026"}else if("head"===n){for(var o=0,s=r-1;o<e;){var c;if(!(o+(c=a(t,s))<=e))break;i+=t[s],o+=a(t,s),s--}i="\u2026"+i}else{for(var l="",u="",o=0,h=0,f=r-1;o<e;){var p=a(t,h),d=!1;p+o<=e&&(l+=t[h],h++,o+=p,d=!0);var g=a(t,f);if(g+o<=e&&(u=t[f]+u,o+=g,f--,d=!0),!d)break}i=l+"\u2026"+u}return i}var c="\u2026",l=2,u=400;function h(t){for(var e=t.map((function(t){var e=t.attr("text");return Object(r.K)(e)?"":""+e})),n=0,i=0,o=0;o<e.length;o+=1){for(var a=0,s=0;s<=e[o].length;s+=1){var c=e[o].charCodeAt(s);a+=c>=19968&&c<=40869?2:1}a>n&&(n=a,i=o)}return t[i].getBBox().width}function f(t){if(t.length>400)return h(t);var e=0;return Object(r.j)(t,(function(t){var n,r=t.getBBox().width;e<r&&(e=r)})),e}function p(t,e){var n=e.getCanvasBBox();return t?n.width:n.height}function d(t,e){return t.getBBox().width<e}function g(t,e,n,i){var a;void 0===i&&(i="tail");var c=null!==(a=e.attr("text"))&&void 0!==a?a:"";if("tail"===i){var l=Object(r.hb)(e.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),u=Object(r.t)(c,n,l,"\u2026");return c!==u?(e.attr("text",u),e.set("tip",c),!0):(e.set("tip",null),!1)}var h=p(t,e),f=o(c),d=!1;if(n<h){var g=Math.floor(n/h*f)-2,y=void 0;(y=g>=0?s(c,g,i):"\u2026")&&(e.attr("text",y),d=!0)}return d?e.set("tip",c):e.set("tip",null),d}},410:function(t,e,n){"use strict";var r=n(1),i=n(136),o=n(134),a=n(18),s=n(0),c=0,l=0,u=0,h=1e3,f,p,d=0,g=0,y=0,v="object"==typeof performance&&performance.now?performance:Date,m="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function b(){return g||(m(x),g=v.now()+y)}function x(){g=0}function O(){this._call=this._time=this._next=null}function j(t,e,n){var r=new O;return r.restart(t,e,n),r}function w(){b(),++c;for(var t=f,e;t;)(e=g-t._time)>=0&&t._call.call(null,e),t=t._next;--c}function _(){g=(d=v.now())+y,c=l=0;try{w()}finally{c=0,S(),g=0}}function M(){var t=v.now(),e=t-d;e>1e3&&(y-=e,d=t)}function S(){for(var t,e=f,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:f=n);p=t,C(r)}function C(t){var e;c||(l&&(l=clearTimeout(l)),t-g>24?(t<1/0&&(l=setTimeout(_,t-v.now()-y)),u&&(u=clearInterval(u))):(u||(d=v.now(),u=setInterval(M,1e3)),c=1,m(_)))}O.prototype=j.prototype={constructor:O,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?b():+n)+(null==e?0:+e),this._next||p===this||(p?p._next=this:f=this,p=this),this._call=t,this._time=n,C()},stop:function(){this._call&&(this._call=null,this._time=1/0,C())}};var A=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function k(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function T(){}var E=.7,P=1/.7,I="\\s*([+-]?\\d+)\\s*",F="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",L="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",B=/^#([0-9a-f]{3,8})$/,D=new RegExp(`^rgb\\(${I},${I},${I}\\)$`),R=new RegExp(`^rgb\\(${L},${L},${L}\\)$`),N=new RegExp(`^rgba\\(${I},${I},${I},${F}\\)$`),z=new RegExp(`^rgba\\(${L},${L},${L},${F}\\)$`),Y=new RegExp(`^hsl\\(${F},${L},${L}\\)$`),G=new RegExp(`^hsla\\(${F},${L},${L},${F}\\)$`),H={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 V(){return this.rgb().formatHex()}function W(){return this.rgb().formatHex8()}function X(){return st(this).formatHsl()}function $(){return this.rgb().formatRgb()}function q(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=B.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?U(e):3===n?new J(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?K(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?K(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=D.exec(t))?new J(e[1],e[2],e[3],1):(e=R.exec(t))?new J(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=N.exec(t))?K(e[1],e[2],e[3],e[4]):(e=z.exec(t))?K(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Y.exec(t))?at(e[1],e[2]/100,e[3]/100,1):(e=G.exec(t))?at(e[1],e[2]/100,e[3]/100,e[4]):H.hasOwnProperty(t)?U(H[t]):"transparent"===t?new J(NaN,NaN,NaN,0):null}function U(t){return new J(t>>16&255,t>>8&255,255&t,1)}function K(t,e,n,r){return r<=0&&(t=e=n=NaN),new J(t,e,n,r)}function Z(t){return t instanceof T||(t=q(t)),t?new J((t=t.rgb()).r,t.g,t.b,t.opacity):new J}function Q(t,e,n,r){return 1===arguments.length?Z(t):new J(t,e,n,null==r?1:r)}function J(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function tt(){return`#${ot(this.r)}${ot(this.g)}${ot(this.b)}`}function et(){return`#${ot(this.r)}${ot(this.g)}${ot(this.b)}${ot(255*(isNaN(this.opacity)?1:this.opacity))}`}function nt(){const t=rt(this.opacity);return`${1===t?"rgb(":"rgba("}${it(this.r)}, ${it(this.g)}, ${it(this.b)}${1===t?")":`, ${t})`}`}function rt(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function it(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ot(t){return((t=it(t))<16?"0":"")+t.toString(16)}function at(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new lt(t,e,n,r)}function st(t){if(t instanceof lt)return new lt(t.h,t.s,t.l,t.opacity);if(t instanceof T||(t=q(t)),!t)return new lt;if(t instanceof lt)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,c=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n<r):n===o?(r-e)/s+2:(e-n)/s+4,s/=c<.5?o+i:2-o-i,a*=60):s=c>0&&c<1?0:a,new lt(a,s,c,t.opacity)}function ct(t,e,n,r){return 1===arguments.length?st(t):new lt(t,e,n,null==r?1:r)}function lt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function ut(t){return(t=(t||0)%360)<0?t+360:t}function ht(t){return Math.max(0,Math.min(1,t||0))}function ft(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function pt(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}A(T,q,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:V,formatHex:V,formatHex8:W,formatHsl:X,formatRgb:$,toString:$}),A(J,Q,k(T,{brighter(t){return t=null==t?1/.7:Math.pow(1/.7,t),new J(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new J(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new J(it(this.r),it(this.g),it(this.b),rt(this.opacity))},displayable(){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:tt,formatHex:tt,formatHex8:et,formatRgb:nt,toString:nt})),A(lt,ct,k(T,{brighter(t){return t=null==t?1/.7:Math.pow(1/.7,t),new lt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new lt(this.h,this.s,this.l*t,this.opacity)},rgb(){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 J(ft(t>=240?t-240:t+120,i,r),ft(t,i,r),ft(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new lt(ut(this.h),ht(this.s),ht(this.l),rt(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=rt(this.opacity);return`${1===t?"hsl(":"hsla("}${ut(this.h)}, ${100*ht(this.s)}%, ${100*ht(this.l)}%${1===t?")":`, ${t})`}`}}));var dt=function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=r<e-1?t[r+2]:2*o-i;return pt((n-r/e)*e,a,i,o,s)}},gt=function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],s=t[(r+2)%e];return pt((n-r/e)*e,i,o,a,s)}},yt=t=>()=>t;function vt(t,e){return function(n){return t+n*e}}function mt(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)}}function bt(t,e){var n=e-t;return n?vt(t,n>180||n<-180?n-360*Math.round(n/360):n):yt(isNaN(t)?e:t)}function xt(t){return 1==(t=+t)?Ot:function(e,n){return n-e?mt(e,n,t):yt(isNaN(e)?n:e)}}function Ot(t,e){var n=e-t;return n?vt(t,n):yt(isNaN(t)?e:t)}var jt=function t(e){var n=xt(e);function r(t,e){var r=n((t=Q(t)).r,(e=Q(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=Ot(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function wt(t){return function(e){var n=e.length,r=new Array(n),i=new Array(n),o=new Array(n),a,s;for(a=0;a<n;++a)s=Q(e[a]),r[a]=s.r||0,i[a]=s.g||0,o[a]=s.b||0;return r=t(r),i=t(i),o=t(o),s.opacity=1,function(t){return s.r=r(t),s.g=i(t),s.b=o(t),s+""}}}var _t=wt(dt),Mt=wt(gt),St=function(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=t[i]*(1-o)+e[i]*o;return r}};function Ct(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}var At=function(t,e){return(Ct(e)?St:kt)(t,e)};function kt(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=Rt(t[a],e[a]);for(;a<n;++a)o[a]=e[a];return function(t){for(a=0;a<r;++a)o[a]=i[a](t);return o}}var Tt=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}},Et=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},Pt=function(t,e){var n={},r={},i;for(i in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)i in t?n[i]=Rt(t[i],e[i]):r[i]=e[i];return function(t){for(i in n)r[i]=n[i](t);return r}},It=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ft=new RegExp(It.source,"g");function Lt(t){return function(){return t}}function Bt(t){return function(e){return t(e)+""}}var Dt=function(t,e){var n=It.lastIndex=Ft.lastIndex=0,r,i,o,a=-1,s=[],c=[];for(t+="",e+="";(r=It.exec(t))&&(i=Ft.exec(e));)(o=i.index)>n&&(o=e.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,c.push({i:a,x:Et(r,i)})),n=Ft.lastIndex;return n<e.length&&(o=e.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?c[0]?Bt(c[0].x):Lt(e):(e=c.length,function(t){for(var n=0,r;n<e;++n)s[(r=c[n]).i]=r.x(t);return s.join("")})},Rt=function(t,e){var n=typeof e,r;return null==e||"boolean"===n?yt(e):("number"===n?Et:"string"===n?(r=q(e))?(e=r,jt):Dt:e instanceof q?jt:e instanceof Date?Tt:Ct(e)?St:Array.isArray(e)?kt:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Pt:Et)(t,e)},Nt=n(133),zt=n(48),Yt=function(t){return["fill","stroke","fillStyle","strokeStyle"].includes(t)},Gt=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)},Ht=[1,0,0,0,1,0,0,0,1];function Vt(t,e,n){var r={},i=e.fromAttrs,o=e.toAttrs;if(!t.destroyed){var a;for(var c in o)if(!Object(s.H)(i[c],o[c]))if("path"===c){var l=o[c],u=i[c];l.length>u.length?(l=zt.parsePathString(o[c]),u=zt.parsePathString(i[c]),u=zt.fillPathByDiff(u,l),u=zt.formatPath(u,l),e.fromAttrs.path=u,e.toAttrs.path=l):e.pathFormatted||(l=zt.parsePathString(o[c]),u=zt.parsePathString(i[c]),u=zt.formatPath(u,l),e.fromAttrs.path=u,e.toAttrs.path=l,e.pathFormatted=!0),r[c]=[];for(var h=0;h<l.length;h++){for(var f=l[h],p=u[h],d=[],g=0;g<f.length;g++)Object(s.M)(f[g])&&p&&Object(s.M)(p[g])?(a=Rt(p[g],f[g]),d.push(a(n))):d.push(f[g]);r[c].push(d)}}else if("matrix"===c){var y,v=At(i[c]||Ht,o[c]||Ht)(n);r[c]=v}else Yt(c)&&Gt(o[c])?r[c]=o[c]:Object(s.I)(o[c])||(a=Rt(i[c],o[c]),r[c]=a(n));t.attr(r)}}function Wt(t,e,n){var r=e.startTime,i,o;if(n<r+e.delay||e._paused)return!1;var a=e.duration,s=e.easing,c=Object(Nt.a)(s);if(n=n-r-e.delay,e.repeat)o=c(o=n%a/a);else{if(!((o=n/a)<1))return e.onFrame?t.attr(e.onFrame(1)):t.attr(e.toAttrs),!0;o=c(o)}if(e.onFrame){var l=e.onFrame(o);t.attr(l)}else Vt(t,e,o);return!1}var Xt,$t=function(){function t(t){this.animators=[],this.current=0,this.timer=null,this.canvas=t}return t.prototype.initTimer=function(){var t=this,e=!1,n,r,i;this.timer=j((function(o){if(t.current=o,t.animators.length>0){for(var a=t.animators.length-1;a>=0;a--)if((n=t.animators[a]).destroyed)t.removeAnimator(a);else{if(!n.isAnimatePaused())for(var s=(r=n.get("animations")).length-1;s>=0;s--)i=r[s],(e=Wt(n,i,o))&&(r.splice(s,1),e=!1,i.callback&&i.callback());0===r.length&&t.removeAnimator(a)}var c;t.canvas.get("autoDraw")||t.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}(),qt=n(127),Ut=40,Kt=0,Zt=":",Qt=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function Jt(t,e){for(var n in t)if(t.hasOwnProperty(n)&&n.indexOf(":"+e)>=0)return!0;return!1}function te(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function ee(t,e,n){if(n.bubbles){var r=void 0,i=!1;if("mouseenter"===e?(r=n.fromShape,i=!0):"mouseleave"===e&&(i=!0,r=n.toShape),t.isCanvas()&&i)return;if(r&&Object(a.g)(t,r))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var ne,re=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){var n,r;if(e.canvas.get("el")!==t.target&&(e.dragging||e.currentShape)){var i=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,i,e.draggingShape)}},this._onDocumentMouseUp=function(t){var n,r;if(e.canvas.get("el")!==t.target&&e.dragging){var i=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,i,null),e._emitEvent("dragend",t,i,e.draggingShape),e._afterDrag(e.draggingShape,i,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");Object(a.a)(Qt,(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");Object(a.a)(Qt,(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,r,i,o){var a=new qt.a(t,e);return a.fromShape=i,a.toShape=o,a.x=n.x,a.y=n.y,a.clientX=n.clientX,a.clientY=n.clientY,a.propagationPath.push(r),a},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],o=!1;if(i)i.call(this,n,r,e);else{var a=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?(o=!0,a&&this._emitEvent(t,e,n,a,a,null),this._emitEvent(t,e,n,null,a,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,r,null,null)}if(o||(this.currentShape=r),r&&!r.get("destroyed")){var s=this.canvas,c;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,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(n,t,i,e,!1),this._emitEvent("drag",n,t,o);else{var a=this.mousedownPoint;if(a){var s=this.mousedownShape,c,l=n.timeStamp-this.mousedownTimeStamp,u=a.clientX-t.clientX,h=a.clientY-t.clientY,f;l>120||u*u+h*h>40?s&&s.get("draggable")?((o=this.mousedownShape).set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",n,t,o),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,o){var a=this._getEventObj(t,e,n,r,i,o);if(r){a.shape=r,te(r,t,a);for(var s=r.getParent();s;)s.emitDelegation(t,a),a.propagationStopped||ee(s,t,a),a.propagationPath.push(s),s=s.getParent()}else{var c;te(this.canvas,t,a)}},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}(),ie="px",oe=Object(i.a)(),ae=oe&&"firefox"===oe.name,se=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return Object(r.__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");Object(a.h)(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom(),e;this.set("el",t),this.get("container").appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new re({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new $t(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");a.c&&(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");a.c&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){var e;if(this.get("supportCSSTransform")){if(ae&&!Object(a.e)(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!Object(a.e)(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var n=this.getClientByEvent(t),r=n.x,i=n.y;return this.getPointByClient(r,i)},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,r=this.get("el").getBoundingClientRect();return{x:t-r.left,y:e-r.top}},e.prototype.getClientByPoint=function(t,e){var n,r=this.get("el").getBoundingClientRect();return{x:t+r.left,y:e+r.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){var t;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.a),ce=e.a=se},411:function(t,e,n){"use strict";n.r(e),n.d(e,"Line",(function(){return f})),n.d(e,"Text",(function(){return d})),n.d(e,"Arc",(function(){return y})),n.d(e,"Region",(function(){return m})),n.d(e,"Image",(function(){return x})),n.d(e,"DataMarker",(function(){return j})),n.d(e,"DataRegion",(function(){return _})),n.d(e,"RegionFilter",(function(){return S})),n.d(e,"Shape",(function(){return A})),n.d(e,"Html",(function(){return P}));var r=n(1),i=n(0),o=n(15),a=n(41),s=n(25),c=n(6);function l(t,e){var n=e.x,o=e.y,l=e.content,u=e.style,h=e.id,f=e.name,p=e.rotate,d=e.maxLength,g=e.autoEllipsis,y=e.isVertical,v=e.ellipsisPosition,m=e.background,b=t.addGroup({id:h+"-group",name:f+"-group",attrs:{x:n,y:o}}),x=b.addShape({type:"text",id:h,name:f,attrs:Object(r.__assign)({x:0,y:0,text:l},u)}),O=Object(c.c)(Object(i.s)(m,"padding",0));if(d&&g){var j=d-(O[1]+O[3]);Object(a.a)(!y,x,j,v)}if(m){var w=Object(i.s)(m,"style",{}),_=x.getCanvasBBox(),M=_.minX,S=_.minY,C=_.width,A=_.height,k;b.addShape("rect",{id:h+"-bg",name:h+"-bg",attrs:Object(r.__assign)({x:M-O[3],y:S-O[0],width:C+O[1]+O[3],height:A+O[0]+O[2]},w)}).toBack()}Object(s.c)(b,n,o),Object(s.b)(b,p,n,o)}var u=n(7),h,f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"annotation",type:"line",locationType:"region",start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:u.a.textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:u.a.fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:u.a.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"),i=this.get("style");this.addShape(t,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:Object(r.__assign)({x1:e.x,y1:e.y,x2:n.x,y2:n.y},i)})},e.prototype.getLabelPoint=function(t,e,n){var r;return((r="start"===n?0:"center"===n?.5:Object(i.Q)(n)&&-1!==n.indexOf("%")?parseInt(n,10)/100:Object(i.M)(n)?n:1)>1||r<0)&&(r=1),{x:Object(c.g)(t.x,e.x,r),y:Object(c.g)(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,o=e.content,a=e.style,s=e.offsetX,c=e.offsetY,u=e.autoRotate,h=e.maxLength,f=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+s,b=v.y+c,x={id:this.getElementId("line-text"),name:"annotation-line-text",x:m,y:b,content:o,style:a,maxLength:h,autoEllipsis:f,ellipsisPosition:p,background:d,isVertical:y};if(u){var O=[r.x-n.x,r.y-n.y];x.rotate=Math.atan2(O[1],O[0])}l(t,x)},e}(o.a),p,d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__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:u.a.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:u.a.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"),o=this.get("style"),a,s,c,u,h,f,p,d,g;l(t,{id:this.getElementId("text"),name:this.get("name")+"-text",x:n,y:r,content:i,style:o,maxLength:this.get("maxLength"),autoEllipsis:this.get("autoEllipsis"),isVertical:this.get("isVertical"),ellipsisPosition:this.get("ellipsisPosition"),background:this.get("background"),rotate:this.get("rotate")})},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");Object(s.c)(t,n,r),Object(s.b)(t,i,n,r)}},e}(o.a),g,y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__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,o=Object(c.e)(e,n,r),a=Object(c.e)(e,n,i),s=i-r>Math.PI?1:0,l=[["M",o.x,o.y]];if(i-r==2*Math.PI){var u=Object(c.e)(e,n,r+Math.PI);l.push(["A",n,n,0,s,1,u.x,u.y]),l.push(["A",n,n,0,s,1,a.x,a.y])}else l.push(["A",n,n,0,s,1,a.x,a.y]);return l},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:Object(r.__assign)({path:e},n)})},e}(o.a),v,m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:u.a.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"),i=this.get("style"),o=Object(c.k)({start:e,end:n});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:Object(r.__assign)({x:o.x,y:o.y,width:o.width,height:o.height},i)})},e}(o.a),b,x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__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"),i=Object(c.k)({start:t,end:e}),o=this.get("src");return Object(r.__assign)({x:i.x,y:i.y,img:o,width:i.width,height:i.height},n)},e.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},e}(o.a),O,j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__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.a.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:u.a.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:u.a.fontFamily}}}})},e.prototype.renderInner=function(t){Object(i.s)(this.get("line"),"display")&&this.renderLine(t),Object(i.s)(this.get("text"),"display")&&this.renderText(t),Object(i.s)(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,i=e.y,o=e.text,a=Object(r.__rest)(e,["x","y","text"]),s=this.get("text"),c=s.background,u=s.maxLength,h=s.autoEllipsis,f=s.isVertival,p=s.ellipsisPosition,d;l(t,{x:n,y:i,id:this.getElementId("text"),name:"annotation-text",content:o,style:a,background:c,maxLength:u,autoEllipsis:h,isVertival:f,ellipsisPosition:p})},e.prototype.autoAdjust=function(t){var e=this.get("direction"),n=this.get("x"),r=this.get("y"),o=Object(i.s)(this.get("line"),"length",0),a=this.get("coordinateBBox"),c=t.getBBox(),l=c.minX,u=c.maxX,h=c.minY,f=c.maxY,p=t.findById(this.getElementId("text-group")),d=t.findById(this.getElementId("text")),g=t.findById(this.getElementId("line"));if(a&&p){var y=p.attr("x"),v=p.attr("y"),m=d.getCanvasBBox(),b=m.width,x=m.height,O=0,j=0;if(n+l<=a.minX)if("leftward"===e)O=1;else{var w=a.minX-(n+l);y=p.attr("x")+w}else if(n+u>=a.maxX)if("rightward"===e)O=-1;else{var w=n+u-a.maxX;y=p.attr("x")-w}if(O&&(g&&g.attr("path",[["M",0,0],["L",o*O,0]]),y=(o+2+b)*O),r+h<=a.minY)if("upward"===e)j=1;else{var w=a.minY-(r+h);v=p.attr("y")+w}else if(r+f>=a.maxY)if("downward"===e)j=-1;else{var w=r+f-a.maxY;v=p.attr("y")-w}j&&(g&&g.attr("path",[["M",0,0],["L",0,o*j]]),v=(o+2+x)*j),y===p.attr("x")&&v===p.attr("y")||Object(s.c)(p,y,v)}},e.prototype.getShapeAttrs=function(){var t=Object(i.s)(this.get("line"),"display"),e=Object(i.s)(this.get("point"),"style",{}),n=Object(i.s)(this.get("line"),"style",{}),o=Object(i.s)(this.get("text"),"style",{}),a=this.get("direction"),s=t?Object(i.s)(this.get("line"),"length",0):0,c=0,l=0,u="top",h="start";switch(a){case"upward":l=-1,u="bottom";break;case"downward":l=1,u="top";break;case"leftward":c=-1,h="end";break;case"rightward":c=1,h="start"}return{point:Object(r.__assign)({x:0,y:0},e),line:Object(r.__assign)({path:[["M",0,0],["L",s*c,s*l]]},n),text:Object(r.__assign)({x:(s+2)*c,y:(s+2)*l,text:Object(i.s)(this.get("text"),"content",""),textBaseline:u,textAlign:h},o)}},e}(o.a),w,_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:u.a.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:u.a.textColor,fontFamily:u.a.fontFamily}}}})},e.prototype.renderInner=function(t){var e=Object(i.s)(this.get("region"),"style",{}),n=Object(i.s)(this.get("text"),"style",{}),o=this.get("lineLength")||0,a=this.get("points");if(a.length){var s=Object(c.j)(a),u=[],h;u.push(["M",a[0].x,s.minY-o]),a.forEach((function(t){u.push(["L",t.x,t.y])})),u.push(["L",a[a.length-1].x,a[a.length-1].y-o]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:Object(r.__assign)({path:u},e)}),l(t,Object(r.__assign)({id:this.getElementId("text"),name:"annotation-text",x:(s.minX+s.maxX)/2,y:s.minY-o},this.get("text")))}},e}(o.a),M,S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__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"),o=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});Object(i.j)(this.get("shapes"),(function(t,n){var r=t.get("type"),a=Object(i.e)(t.attr());e.adjustShapeAttrs(a),e.addShape(o,{id:e.getElementId("shape-"+r+"-"+n),capture:!1,type:r,attrs:a})}));var a=Object(c.k)({start:n,end:r});o.setClip({type:"rect",attrs:{x:a.minX,y:a.minY,width:a.width,height:a.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.a),C,A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"annotation",type:"shape",draw:i.fb})},e.prototype.renderInner=function(t){var e=this.get("render");Object(i.I)(e)&&e(t)},e}(o.a),k=n(14),T,E,P=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'<div class="g2-html-annotation" style="position:absolute"></div>',alignX:"left",alignY:"top",html:"",zIndex:7})},e.prototype.render=function(){var t=this.getContainer(),e=this.get("html");Object(c.a)(t);var n=Object(i.I)(e)?e(t):e;if(Object(i.F)(n))t.appendChild(n);else if(Object(i.Q)(n)||Object(i.M)(n)){var r=Object(k.b)(""+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"),a=this.get("offsetX"),s=this.get("offsetY"),c=Object(k.d)(t),l=Object(k.c)(t),u={x:n,y:r};"middle"===i?u.x-=Math.round(c/2):"right"===i&&(u.x-=Math.round(c)),"middle"===o?u.y-=Math.round(l/2):"bottom"===o&&(u.y-=Math.round(l)),a&&(u.x+=a),s&&(u.y+=s),Object(k.e)(t,{position:"absolute",left:u.x+"px",top:u.y+"px",zIndex:this.get("zIndex")})},e}(n(60).a)},412:function(t,e,n){"use strict";n.r(e),n.d(e,"Line",(function(){return z})),n.d(e,"Circle",(function(){return G})),n.d(e,"Base",(function(){return g}));var r={};n.r(r),n.d(r,"getDefault",(function(){return m})),n.d(r,"ellipsisHead",(function(){return b})),n.d(r,"ellipsisTail",(function(){return x})),n.d(r,"ellipsisMiddle",(function(){return O}));var i={};n.r(i),n.d(i,"getDefault",(function(){return A})),n.d(i,"reserveFirst",(function(){return k})),n.d(i,"reserveLast",(function(){return T})),n.d(i,"reserveBoth",(function(){return E})),n.d(i,"equidistance",(function(){return P})),n.d(i,"equidistanceWithReverseBoth",(function(){return I}));var o={};n.r(o),n.d(o,"getDefault",(function(){return B})),n.d(o,"fixedAngle",(function(){return D})),n.d(o,"unfixedAngle",(function(){return R}));var a={};n.r(a),n.d(a,"autoHide",(function(){return i})),n.d(a,"autoRotate",(function(){return o})),n.d(a,"autoEllipsis",(function(){return r}));var s=n(1),c=n(4),l=n(0),u=n(15),h=n(25),f=n(77),p=n(7),d,g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(s.__assign)(Object(s.__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:p.a.lineColor}},tickLine:{style:{lineWidth:1,stroke:p.a.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:p.a.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:p.a.textColor,fontFamily:p.a.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:p.a.textColor,textBaseline:"middle",fontFamily:p.a.fontFamily,textAlign:"center"},iconStyle:{fill:p.a.descriptionIconFill,stroke:p.a.descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:p.a.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){Object(l.db)(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 Object(l.j)(e,(function(e,r){t[r]&&n.push(r)})),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);Object(l.j)(n,(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return Object(l.l)(n,(function(n){return e.hasState(n,t)}))},e.prototype.getSidePoint=function(t,e){var n=this,r=this.getSideVector(e,t);return{x:t.x+r[0],y:t.y+r[1]}},e.prototype.getTextAnchor=function(t){var e;return Object(l.N)(t[0],0)?e="center":t[0]>0?e="start":t[0]<0&&(e="end"),e},e.prototype.getTextBaseline=function(t){var e;return Object(l.N)(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:Object(l.db)({path:e},n.style)})},e.prototype.getTickLineItems=function(t){var e=this,n=[],r=this.get("tickLine"),i=r.alignTick,o=r.length,a=1,s;return t.length>=2&&(a=t[1].value-t[0].value),Object(l.j)(t,(function(t){var r=t.point;i||(r=e.getTickPoint(t.value-a/2));var s=e.getSidePoint(r,o);n.push({startPoint:r,tickValue:t.value,endPoint:s,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 o=0;o<i-1;o++)for(var a=t[o],s=t[o+1],c=0;c<r;c++){var l=(c+1)/(r+1),u=(1-l)*a.tickValue+l*s.tickValue,h=this.getTickPoint(u),f=this.getSidePoint(h,n.length);e.push({startPoint:h,endPoint:f,tickValue:u,id:"sub-"+a.id+"-"+c})}return e},e.prototype.getTickLineAttrs=function(t,e,n,r){var i=this.get(e).style,o={points:[t.startPoint,t.endPoint]},a=Object(l.s)(this.get("theme"),["tickLine","style"],{});i=Object(l.I)(i)?Object(l.db)({},a,i(o,n,r)):i;var c=t.startPoint,u=t.endPoint;return Object(s.__assign)({x1:c.x,y1:c.y,x2:u.x,y2:u.y},i)},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),o=this.addGroup(t,{name:"axis-tickline-group",id:this.getElementId("tickline-group")}),a=this.get("tickLine");if(Object(l.j)(i,(function(n,r){if(a.displayWithLabel){var s=e.getElementId("label-"+n.tickId);t.findById(s)&&e.drawTick(n,o,"tickLine",r,i)}else e.drawTick(n,o,"tickLine",r,i)})),r){var s=this.getSubTickLineItems(i);Object(l.j)(s,(function(t,n){e.drawTick(t,o,"subTickLine",n,s)}))}},e.prototype.processTicks=function(){var t=this,e=this.get("ticks");Object(l.j)(e,(function(e){e.point=t.getTickPoint(e.value),Object(l.K)(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");Object(l.j)(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=Object(l.mb)(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,o=r.offsetX,a=r.offsetY,s=r.rotate,c=r.formatter,u=this.getSidePoint(t.point,i),f=this.getSideVector(i,u),p=c?c(t.name,t,e):t.name,d=r.style;d=Object(l.I)(d)?Object(l.s)(this.get("theme"),["label","style"],{}):d;var g=Object(l.db)({x:u.x+o,y:u.y+a,text:p,textAlign:this.getTextAnchor(f),textBaseline:this.getTextBaseline(f)},d);return s&&(g.matrix=Object(h.e)(u,s)),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")});Object(l.j)(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(),o=Object(l.s)(this.get("theme"),["label","style"],{}),a=this.get("label"),s=a.style,c=a.formatter;if(Object(l.I)(s)){var u=i.map((function(t){return Object(l.s)(t.get("delegateObject"),"tick")}));Object(l.j)(i,(function(t,e){var n=t.get("delegateObject").tick,r=c?c(n.name,n,e):n.name,i=Object(l.db)({},o,s(r,e,u));t.attr(i)}))}},e.prototype.getTitleAttrs=function(){var t=this.get("title"),e=t.style,n=t.position,r=t.offset,i=t.spacing,o=void 0===i?0:i,a=t.autoRotate,s=e.fontSize,u=.5;"start"===n?u=0:"end"===n&&(u=1);var f=this.getTickPoint(u),p=this.getSidePoint(f,r||o+s/2),d=Object(l.db)({x:p.x,y:p.y,text:t.text},e),g=t.rotate,y=g;if(Object(l.K)(g)&&a){var v=this.getAxisVector(f),m=[1,0];y=c.a.angleTo(v,m,!0)}if(y){var b=Object(h.e)(p,y);d.matrix=b}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")}),i=e.getBBox(),o=i.maxX,a=i.maxY,c=i.height,l=this.get("title").iconStyle,u=4,h=c/2,f=h/6,p=o+4,d=a-c/2,g=[p+h,d-h],y=g[0],v=g[1],m=[y+h,v+h],b=m[0],x=m[1],O=[y,x+h],j=O[0],w=O[1],_=[p,v+h],M=_[0],S=_[1],C=[p+h,d-c/4],A=C[0],k=C[1],T=[A,k+f],E=T[0],P=T[1],I=[E,P+f],F=I[0],L=I[1],B=[F,L+3*h/4],D=B[0],R=B[1];this.addShape(r,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:Object(s.__assign)({path:[["M",y,v],["A",h,h,0,0,1,b,x],["A",h,h,0,0,1,j,w],["A",h,h,0,0,1,M,S],["A",h,h,0,0,1,y,v],["M",A,k],["L",E,P],["M",F,L],["L",D,R]],lineWidth:f,matrix:n},l)}),this.addShape(r,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:p,y:d-c/2,width:c,height:c,stroke:"#000",fill:"#000",opacity:0,matrix:n,cursor:"pointer"}})},e.prototype.applyTickStates=function(t,e){var n;if(this.getItemStates(t).length){var r=this.get("tickStates"),i=this.getElementId("label-"+t.id),o=e.findById(i);if(o){var a=Object(f.a)(t,"label",r);a&&o.attr(a)}var s=this.getElementId("tickline-"+t.id),c=e.findById(s);if(c){var l=Object(f.a)(t,"tickLine",r);l&&c.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),o=this.get("tickLine"),a=this.getElementByLocalId("tickline-"+t.id);if(e.length){if(i){var s=Object(f.a)(t,"label",n);s&&i.attr(s)}if(a){var c=Object(f.a)(t,"tickLine",n);c&&a.attr(c)}}else i&&i.attr(r.style),a&&a.attr(o.style)},e}(u.a),y=n(41);function v(t,e,n,r){var i=e.getChildren(),o=!1;return Object(l.j)(i,(function(e){var i=Object(y.a)(t,e,n,r);o=o||i})),o}function m(){return x}function b(t,e,n){return v(t,e,n,"head")}function x(t,e,n){return v(t,e,n,"tail")}function O(t,e,n){return v(t,e,n,"middle")}var j=n(6);function w(t){var e=t.attr("matrix");return e&&1!==e[0]}function _(t){var e;return(w(t)?Object(h.d)(t.attr("matrix")):0)%360}function M(t,e,n,r){var i=!1,o=_(e),a=t?Math.abs(n.attr("y")-e.attr("y")):Math.abs(n.attr("x")-e.attr("x")),s=(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(o));i=Object(j.i)(c,0,Math.PI/180)?s.width+r>a:s.height/c+r>a}else{var c=Math.abs(Math.sin(o));i=Object(j.i)(c,0,Math.PI/180)?s.width+r>a:s.height/c+r>a}return i}function S(t,e,n,r){var i=(null==r?void 0:r.minGap)||0,o=e.getChildren().slice().filter((function(t){return t.get("visible")}));if(!o.length)return!1;var a=!1;n&&o.reverse();for(var s=o.length,c,l=o[0],u=1;u<s;u++){var h=o[u],f=h.getBBox(),p;M(t,l,h,i)?(h.hide(),a=!0):l=h}return a}function C(t,e,n){var r=(null==n?void 0:n.minGap)||0,i=e.getChildren().slice();if(i.length<2)return!1;var o=!1,a=i[0],s=a.getBBox(),c=i[1],l=i.length,u=_(a),h=t?Math.abs(c.attr("y")-a.attr("y")):Math.abs(c.attr("x")-a.attr("x")),f=0;if(t){var p=Math.abs(Math.cos(u)),d;if(Object(j.i)(p,0,Math.PI/180))f=((d=Object(y.b)(i))+r)/h;else f=(s.height/p+r)/h}else{var p=Math.abs(Math.sin(u)),d;if(Object(j.i)(p,0,Math.PI/180))f=((d=Object(y.b)(i))+r)/h;else f=(s.height/p+r)/h}if(f>1){f=Math.ceil(f);for(var g=0;g<l;g++)g%f!=0&&(i[g].hide(),o=!0)}return o}function A(){return P}function k(t,e,n,r){return S(t,e,!1,r)}function T(t,e,n,r){return S(t,e,!0,r)}function E(t,e,n,r){var i=(null==r?void 0:r.minGap)||0,o=e.getChildren().slice(),a;if(o.length<=2)return!1;for(var s=!1,c=o.length,l=o[0],u=o[c-1],h=l,f=1;f<c-1;f++){var p=o[f],d=p.getBBox(),g;M(t,h,p,i)?(p.hide(),s=!0):h=p}return M(t,h,u,i)&&(h.hide(),s=!0),s}function P(t,e,n,r){var i=C(t,e,r);return S(t,e,!1)&&(i=!0),i}function I(t,e,n,r){var i=e.getChildren().slice(),o=C(t,e,r);if(i.length>2){var a=i[0],s=i[i.length-1];a.get("visible")||(a.show(),S(t,e,!1,r)&&(o=!0)),s.get("visible")||(s.show(),S(t,e,!0,r)&&(o=!0))}return o}function F(t,e){Object(l.j)(t,(function(t){var n=t.attr("x"),r=t.attr("y"),i=Object(h.e)({x:n,y:r},e);t.attr("matrix",i)}))}function L(t,e,n,r){var i=e.getChildren();if(!i.length)return!1;if(!t&&i.length<2)return!1;var o=Object(y.b)(i),a=!1,s,c;t?a=!!n&&o>n:a=o>Math.abs(i[1].attr("x")-i[0].attr("x"));a&&F(i,r(n,o));return a}function B(){return D}function D(t,e,n,r){return L(t,e,n,(function(){return Object(l.M)(r)?r:t?p.a.verticalAxisRotate:p.a.horizontalAxisRotate}))}function R(t,e,n){return L(t,e,n,(function(e,n){if(!e)return t?p.a.verticalAxisRotate:p.a.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}))}var N,z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(s.__assign)(Object(s.__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),o=Math.min(e.y,n.y,r.y),a=Math.max(e.x,n.x,r.maxX),s=Math.max(e.y,n.y,r.maxY);return{x:i,y:o,minX:i,minY:o,maxX:a,maxY:s,width:a-i,height:s-o}},e.prototype.isVertical=function(){var t=this.get("start"),e=this.get("end");return Object(l.N)(t.x,e.x)},e.prototype.isHorizontal=function(){var t=this.get("start"),e=this.get("end");return Object(l.N)(t.y,e.y)},e.prototype.getTickPoint=function(t){var e=this,n=this.get("start"),r=this.get("end"),i=r.x-n.x,o=r.y-n.y;return{x:n.x+i*t,y:n.y+o*t}},e.prototype.getSideVector=function(t){var e=this.getAxisVector(),n=c.c.normalize([0,0],e),r=this.get("verticalFactor"),i=[n[1],-1*n[0]];return c.c.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"),o=this.get("title"),a=this.get("verticalLimitLength"),s=i.offset,c=a,u=0,h=0;o&&(u=o.style.fontSize,h=o.spacing),c&&(c=c-s-h-u);var f=this.get("overlapOrder");if(Object(l.j)(f,(function(n){i[n]&&e.canProcessOverlap(n)&&e.autoProcessOverlap(n,i[n],t,c)})),o&&Object(l.K)(o.offset)){var p=t.getCanvasBBox(),d=n?p.width:p.height;o.offset=s+d+h+u/2}}},e.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||Object(l.K)(e.rotate)},e.prototype.autoProcessOverlap=function(t,e,n,r){var i=this,o=this.isVertical(),s=!1,c=a[t];if(!0===e){var u=this.get("label");s=c.getDefault()(o,n,r)}else if(Object(l.I)(e))s=e(o,n,r);else if(Object(l.O)(e)){var h=e;c[h.type]&&(s=c[h.type](o,n,r,h.cfg))}else c[e]&&(s=c[e](o,n,r));if("autoRotate"===t){if(s){var f=n.getChildren(),p=this.get("verticalFactor");Object(l.j)(f,(function(t){var e;if("center"===t.attr("textAlign")){var n=p>0?"end":"start";t.attr("textAlign",n)}}))}}else if("autoHide"===t){var d=n.getChildren().slice(0);Object(l.j)(d,(function(t){t.get("visible")||(i.get("isRegister")&&i.unregisterElement(t),t.remove())}))}},e}(g),Y,G=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(s.__assign)(Object(s.__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,o=this.get("startAngle"),a=this.get("endAngle"),s=[];if(Math.abs(a-o)===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 c=this.getCirclePoint(o),l=this.getCirclePoint(a),u=Math.abs(a-o)>Math.PI?1:0,h=o>a?0:1;s=[["M",e,n],["L",c.x,c.y],["A",r,i,0,u,h,l.x,l.y],["L",e,n]]}return s},e.prototype.getTickPoint=function(t){var e=this.get("startAngle"),n,r=e+(this.get("endAngle")-e)*t;return this.getCirclePoint(r)},e.prototype.getSideVector=function(t,e){var n=this.get("center"),r=[e.x-n.x,e.y-n.y],i=this.get("verticalFactor"),o=c.c.length(r);return c.c.scale(r,r,i*t/o),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||Object(l.K)(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,a=i,s=0,c=0;r&&(s=r.style.fontSize,c=r.spacing),a&&(a=a-o-c-s);var u=this.get("overlapOrder");if(Object(l.j)(u,(function(r){n[r]&&e.canProcessOverlap(r)&&e.autoProcessOverlap(r,n[r],t,a)})),r&&Object(l.K)(r.offset)){var h=t.getCanvasBBox().height;r.offset=o+h+c+s/2}},e.prototype.autoProcessOverlap=function(t,e,n,r){var i=this,o=!1,s=a[t];if(r>0)if(!0===e)o=s.getDefault()(!1,n,r);else if(Object(l.I)(e))o=e(!1,n,r);else if(Object(l.O)(e)){var c=e;s[c.type]&&(o=s[c.type](!1,n,r,c.cfg))}else s[e]&&(o=s[e](!1,n,r));if("autoRotate"===t){if(o){var u=n.getChildren(),h=this.get("verticalFactor");Object(l.j)(u,(function(t){var e;if("center"===t.attr("textAlign")){var n=h>0?"end":"start";t.attr("textAlign",n)}}))}}else if("autoHide"===t){var f=n.getChildren().slice(0);Object(l.j)(f,(function(t){t.get("visible")||(i.get("isRegister")&&i.unregisterElement(t),t.remove())}))}},e}(g)},413:function(t,e,n){"use strict";var r=n(1),i=n(13),o=n(10),a=n(76),s=n(33),c=n(22),l=n(91),u=n(90),h=n(0),f=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,p=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,d=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function g(t){var e=t.match(d);if(!e)return"";var n="";return e.sort((function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])})),Object(h.j)(e,(function(t){t=t.split(":"),n+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'})),n}function y(t,e){var n=f.exec(t),r=Object(h.eb)(Object(h.sb)(parseFloat(n[1])),2*Math.PI),i=n[2],o,a;r>=0&&r<.5*Math.PI?(o={x:0,y:0},a={x:1,y:1}):.5*Math.PI<=r&&r<Math.PI?(o={x:1,y:0},a={x:0,y:1}):Math.PI<=r&&r<1.5*Math.PI?(o={x:1,y:1},a={x:0,y:0}):(o={x:0,y:1},a={x:1,y:0});var s=Math.tan(r),c=s*s,l=(a.x-o.x+s*(a.y-o.y))/(c+1)+o.x,u=s*(a.x-o.x+s*(a.y-o.y))/(c+1)+o.y;e.setAttribute("x1",o.x),e.setAttribute("y1",o.y),e.setAttribute("x2",l),e.setAttribute("y2",u),e.innerHTML=g(i)}function v(t,e){var n=p.exec(t),r=parseFloat(n[1]),i=parseFloat(n[2]),o=parseFloat(n[3]),a=n[4];e.setAttribute("cx",r),e.setAttribute("cy",i),e.setAttribute("r",o),e.innerHTML=g(a)}var m,b=function(){function t(t){this.cfg={};var e=null,n=Object(h.vb)("gradient_");return"l"===t.toLowerCase()[0]?y(t,e=Object(c.b)("linearGradient")):v(t,e=Object(c.b)("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}(),x={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},O={x:"-40%",y:"-40%",width:"200%",height:"200%"},j,w=function(){function t(t){this.type="filter",this.cfg={},this.type="filter";var e=Object(c.b)("filter");return Object(h.j)(O,(function(t,n){e.setAttribute(n,t)})),this.el=e,this.id=Object(h.vb)("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,r=this.cfg;return Object(h.j)(Object.keys(r),(function(t){if(r[t]!==e[t])return n=!1,!1})),n},t.prototype.update=function(t,e){var n=this.cfg;return n[x[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}(),_,M=function(){function t(t,e){this.cfg={};var n=Object(c.b)("marker"),r=Object(h.vb)("marker_");n.setAttribute("id",r);var i=Object(c.b)("path");i.setAttribute("stroke",t.stroke||"none"),i.setAttribute("fill",t.fill||"none"),n.appendChild(i),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=i,this.id=r;var o=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===o?this._setDefaultPath(e,i):(this.cfg=o,this._setMarker(t.lineWidth,i)),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,r=this.cfg.path,i=this.cfg.d;Object(h.C)(r)&&(r=r.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",r),n.appendChild(e),i&&n.setAttribute("refX",""+i/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}(),S,C=function(){function t(t){this.type="clip",this.cfg={};var e=Object(c.b)("clipPath");this.el=e,this.id=Object(h.vb)("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}(),A=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,k,T=function(){function t(t){this.cfg={};var e=Object(c.b)("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=Object(c.b)("image");e.appendChild(n);var r=Object(h.vb)("pattern_");e.id=r,this.el=e,this.id=r,this.cfg=t;var i,o=A.exec(t)[2];n.setAttribute("href",o);var a=new Image;function s(){e.setAttribute("width",""+a.width),e.setAttribute("height",""+a.height)}return o.match(/^data:/i)||(a.crossOrigin="Anonymous"),a.src=o,a.complete?s():(a.onload=s,a.src=a.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),E,P=function(){function t(t){var e=Object(c.b)("defs"),n=Object(h.vb)("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 M(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 b(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addArrow=function(t,e){var n=new M(t,e);return this.el.appendChild(n.el),this.add(n),n.id},t.prototype.addShadow=function(t){var e=new w(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addPattern=function(t){var e=new T(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addClip=function(t){var e=new C(t);return this.el.appendChild(e.el),this.add(e),e.id},t}(),I=function(t){function e(e){return t.call(this,Object(r.__assign)(Object(r.__assign)({},e),{autoDraw:!0,renderer:"svg"}))||this}return Object(r.__extends)(e,t),e.prototype.getShapeBase=function(){return l},e.prototype.getGroupBase=function(){return u.a},e.prototype.getShape=function(t,e,n){var r=n.target||n.srcElement;if(!o.a[r.tagName]){for(var i=r.parentNode;i&&!o.a[i.tagName];)i=i.parentNode;r=i}return this.find((function(t){return t.get("el")===r}))},e.prototype.createDom=function(){var t=Object(c.b)("svg"),e=new P(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&&Object(c.d)(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?Object(s.c)(this):"clip"===t?Object(s.a)(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();Object(s.a)(this,t),e.length&&Object(a.a)(t,e)},e}(i.AbstractCanvas),F=e.a=I},414:function(t,e,n){"use strict";n.r(e),n.d(e,"Line",(function(){return f})),n.d(e,"Circle",(function(){return d})),n.d(e,"Base",(function(){return u})),n.d(e,"Html",(function(){return w}));var r=n(1),i=n(6),o=n(0),a=n(15),s=n(25),c=n(7),l,u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:c.a.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:c.a.textColor,textAlign:"center",textBaseline:"middle",fontFamily:c.a.fontFamily}},textBackground:{padding:5,style:{stroke:c.a.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,i=e.autoRotate,a=e.content;if(!Object(o.K)(a)){var c=this.getTextPoint(),l=null;if(i){var u=this.getRotateAngle();l=Object(s.e)(c,u)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},c),{text:a,matrix:l}),n)})}},e.prototype.renderLine=function(t){var e=this.getLinePath(),n,i=this.get("line").style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:Object(r.__assign)({path:e},i)})},e.prototype.renderBackground=function(t){var e=this.getElementId("text"),n=t.findById(e),o=this.get("textBackground");if(o&&n){var a=n.getBBox(),s=Object(i.c)(o.padding),c=o.style,l;this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:Object(r.__assign)({x:a.x-s[3],y:a.y-s[0],width:a.width+s[1]+s[3],height:a.height+s[0]+s[2],matrix:n.attr("matrix")},c)}).toBack()}},e}(a.a),h,f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__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),o;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"),o=r.position,a=r.offset;return Object(i.f)(e,n,o,a)},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}(u),p,d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__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,r,i;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(),o=r.center,a=r.radius,s=r.startAngle,c=r.endAngle,l="start"===e?s:c,u=this.getRotateAngle()-Math.PI,h=Object(i.e)(o,a,l),f=Math.cos(u)*n,p=Math.sin(u)*n;return{x:h.x+f,y:h.y+p}},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.center,n=t.radius,r=t.startAngle,o=t.endAngle,a=null;if(o-r==2*Math.PI){var s=e.x,c=e.y;a=[["M",s,c-n],["A",n,n,0,1,1,s,c+n],["A",n,n,0,1,1,s,c-n],["Z"]]}else{var l=Object(i.e)(e,n,r),u=Object(i.e)(e,n,o),h=Math.abs(o-r)>Math.PI?1:0,f=r>o?0:1;a=[["M",l.x,l.y],["A",n,n,0,h,f,u.x,u.y]]}return a},e}(u),g=n(14),y=n(60),v="g2-crosshair",m="g2-crosshair-line",b="g2-crosshair-text",x,O=((x={})["g2-crosshair"]={position:"relative"},x[""+m]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},x[""+b]={position:"absolute",color:c.a.textColor,fontFamily:c.a.fontFamily},x),j,w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__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="g2-crosshair"></div>',crosshairTpl:'<div class="'+m+'"></div>',textTpl:'<span class="'+b+'">{content}</span>',domStyles:null,containerClassName:"g2-crosshair",defaultStyles:O,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=Object(g.b)(e);t.appendChild(n),this.applyStyle(m,n),this.set("crosshairEl",n)},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text"),o=r.position,a=r.offset;return Object(i.f)(e,n,o,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=Object(o.pb)(this.get("textTpl"),t);e=Object(g.b)(i),r.appendChild(e),this.applyStyle(b,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),o=Math.min(e.y,n.y);this.isVertical(e,n)?Object(g.e)(t,{width:"1px",height:Object(i.l)(Math.abs(n.y-e.y))}):Object(g.e)(t,{height:"1px",width:Object(i.l)(Math.abs(n.x-e.x))}),Object(g.e)(t,{top:Object(i.l)(o),left:Object(i.l)(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}Object(g.e)(t,{top:Object(i.l)(r.y),left:Object(i.l)(r.x)})}},e.prototype.updateInner=function(e){Object(o.y)(e,"text")&&this.resetText(),t.prototype.updateInner.call(this,e)},e}(y.a)},415:function(t,e,n){"use strict";n.d(e,"a",(function(){return A}));var r=n(1),i=n(0),o=n(15),a={opacity:0},s={stroke:"#C5C5C5",strokeOpacity:.85},c={fill:"#CACED4",opacity:.85},l=n(39),u=n(46);function h(t){return Object(i.W)(t,(function(t,e){var n,r,i;return[0===e?"M":"L",t[0],t[1]]}))}function f(t){return h(t)}function p(t){if(t.length<=2)return f(t);var e=[];Object(i.j)(t,(function(t){Object(i.H)(t,e.slice(e.length-2))||e.push(t[0],t[1])}));var n=Object(l.a)(e,!1),r=Object(i.z)(t),o=r[0],a=r[1];return n.unshift(["M",o,a]),n}function d(t,e,n,r){void 0===r&&(r=!0);var o=new u.b({values:t}),a=new u.a({values:Object(i.W)(t,(function(t,e){return e}))}),s=Object(i.W)(t,(function(t,r){return[a.scale(r)*e,n-o.scale(t)*n]}));return r?p(s):f(s)}function g(t,e){var n=new u.b({values:t}),r=n.max<0?n.max:Math.max(0,n.min);return e-n.scale(r)*e}function y(t,e,n,i){var o=Object(r.__spreadArrays)(t),a=g(i,n);return o.push(["L",e,a]),o.push(["L",0,a]),o.push(["Z"]),o}var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:a,lineStyle:s,areaStyle:c})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,i=e.height,o=e.data,a=e.smooth,s=e.isArea,c=e.backgroundStyle,l=e.lineStyle,u=e.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:Object(r.__assign)({x:0,y:0,width:n,height:i},c)});var h=d(o,n,i,a);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:Object(r.__assign)({path:h},l)}),s){var f=y(h,n,i,o);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:Object(r.__assign)({path:f},u)})}},e.prototype.applyOffset=function(){var t=this.cfg,e=t.x,n=t.y;this.moveElementTo(this.get("group"),{x:e,y:n})},e}(o.a),m=v,b={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"handler",x:0,y:0,width:10,height:24,style:b})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,r=e.height,i=e.style,o=i.fill,a=i.stroke,s=i.radius,c=i.opacity,l=i.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:n,height:r,fill:o,stroke:a,radius:s,opacity:c,cursor:l}});var u=1/3*n,h=2/3*n,f=1/4*r,p=3/4*r;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:u,y1:f,x2:u,y2:p,stroke:a,cursor:l}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:h,y1:f,x2:h,y2:p,stroke:a,cursor:l}})},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.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()}))},e.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},e}(o.a),O=x,j={fill:"#416180",opacity:.05},w={fill:"#5B8FF9",opacity:.15,cursor:"move"},_=10,M={width:10,height:24},S={textBaseline:"middle",fill:"#000",opacity:.45},C="sliderchange",A=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=Object(i.s)(r,"touches.0.pageX",r.pageX),e.prevY=Object(i.s)(r,"touches.0.pageY",r.pageY);var o=e.getContainerDOM();o.addEventListener("mousemove",e.onMouseMove),o.addEventListener("mouseup",e.onMouseUp),o.addEventListener("mouseleave",e.onMouseUp),o.addEventListener("touchmove",e.onMouseMove),o.addEventListener("touchend",e.onMouseUp),o.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 o=Object(i.s)(t,"touches.0.pageX",t.pageX),a=Object(i.s)(t,"touches.0.pageY",t.pageY),s=o-e.prevX,c=e.adjustOffsetRange(s/n);e.updateStartEnd(c),e.updateUI(e.getElementByLocalId("foreground"),e.getElementByLocalId("minText"),e.getElementByLocalId("maxText")),e.prevX=o,e.prevY=a,e.draw(),e.emit(C,[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 Object(r.__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"),o=Object(i.c)(n,t,e),a=Object(i.c)(r,t,e);this.get("isInit")||n===o&&r===a||this.setValue([o,a])},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(Object(i.C)(t)&&2===t.length){var n=[this.get("start"),this.get("end")];this.update({start:Object(i.c)(t[0],e.min,e.max),end:Object(i.c)(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 Object(r.__assign)(Object(r.__assign)({},e),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:j,foregroundStyle:w,handlerStyle:M,textStyle:S}})},e.prototype.update=function(e){var n=e.start,o=e.end,a=Object(r.__assign)({},e);Object(i.K)(n)||(a.start=Object(i.c)(n,0,1)),Object(i.K)(o)||(a.end=Object(i.c)(o,0,1)),t.prototype.update.call(this,a),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",Object(i.c)(this.get("start"),0,1)),this.set("end",Object(i.c)(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,o=e.end,a=e.width,s=e.height,c=e.trendCfg,l=void 0===c?{}:c,u=e.minText,h=e.maxText,f=e.backgroundStyle,p=void 0===f?{}:f,d=e.foregroundStyle,g=void 0===d?{}:d,y=e.textStyle,m=void 0===y?{}:y,O=Object(i.h)({},b,this.cfg.handlerStyle),j=n*a,w=o*a;Object(i.mb)(Object(i.s)(l,"data"))&&(this.trend=this.addComponent(t,Object(r.__assign)({component:v,id:this.getElementId("trend"),x:0,y:0,width:a,height:s},l))),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:Object(r.__assign)({x:0,y:0,width:a,height:s},p)});var _=this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:Object(r.__assign)({y:s/2,textAlign:"right",text:u,silent:!1},m)}),M=this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:Object(r.__assign)({y:s/2,textAlign:"left",text:h,silent:!1},m)}),S=this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:Object(r.__assign)({y:0,height:s},g)}),C=Object(i.s)(O,"width",10),A=Object(i.s)(O,"height",24);this.minHandler=this.addComponent(t,{component:x,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(s-A)/2,width:C,height:A,cursor:"ew-resize",style:O}),this.maxHandler=this.addComponent(t,{component:x,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(s-A)/2,width:C,height:A,cursor:"ew-resize",style:O})},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,o=r.start,a=r.end,s=r.width,c=r.minText,l=r.maxText,u=r.handlerStyle,h=r.height,f=o*s,p=a*s;this.trend&&(this.trend.update({width:s,height:h}),this.get("updateAutoRender")||this.trend.render()),t.attr("x",f),t.attr("width",p-f);var d=Object(i.s)(u,"width",10);e.attr("text",c),n.attr("text",l);var g=this._dodgeText([f,p],e,n),y=g[0],v=g[1];this.minHandler&&(this.minHandler.update({x:f-d/2}),this.get("updateAutoRender")||this.minHandler.render()),Object(i.j)(y,(function(t,n){return e.attr(n,t)})),this.maxHandler&&(this.maxHandler.update({x:p-d/2}),this.get("updateAutoRender")||this.maxHandler.render()),Object(i.j)(v,(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,o=1-n;return Math.min(o,Math.max(i,t));case"maxHandler":var i=0-r,o=1-r;return Math.min(o,Math.max(i,t));case"foreground":var i=0-n,o=1-r;return Math.min(o,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,o,a=this.cfg,s=a.handlerStyle,c=a.width,l=2,u=Object(i.s)(s,"width",10),h=t[0],f=t[1],p=!1;h>f&&(h=(r=[f,h])[0],f=r[1],e=(o=[n,e])[0],n=o[1],p=!0);var d=e.getBBox(),g=n.getBBox(),y=d.width>h-2?{x:h+u/2+2,textAlign:"left"}:{x:h-u/2-2,textAlign:"right"},v=g.width>c-f-2?{x:f-u/2-2,textAlign:"right"}:{x:f+u/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.a),k=A},416:function(t,e,n){"use strict";n.r(e),n.d(e,"Base",(function(){return c})),n.d(e,"Circle",(function(){return h})),n.d(e,"Line",(function(){return p}));var r=n(1),i=n(0),o=n(15),a=n(7),s,c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:a.a.lineColor}}}})},e.prototype.getLineType=function(){var t;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),o;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"),o=this.get("alternateColor"),a=null;Object(i.j)(r,(function(s,c){var l=s.id||c;if(n){var u=e.getPathStyle();u=Object(i.I)(u)?u(s,c,r):u;var h=e.getElementId("line-"+l),f=e.getGridPath(s.points);e.addShape(t,{type:"path",name:"grid-line",id:h,attrs:Object(i.db)({path:f},u)})}if(o&&c>0){var p=e.getElementId("region-"+l),d=c%2==0;if(Object(i.Q)(o))d&&e.drawAlternateRegion(p,t,a.points,s.points,o);else{var g=d?o[1]:o[0];e.drawAlternateRegion(p,t,a.points,s.points,g)}}a=s}))},e.prototype.drawAlternateRegion=function(t,e,n,r,i){var o=this.getAlternatePath(n,r);this.addShape(e,{type:"path",id:t,name:"grid-region",attrs:{path:o,fill:i}})},e}(o.a);function l(t,e,n,r){var i=n-t,o=r-e;return Math.sqrt(i*i+o*o)}var u,h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{type:"circle",center:null,closed:!0})},e.prototype.getGridPath=function(t,e){var n=this.getLineType(),r=this.get("closed"),o=[];if(t.length)if("circle"===n){var a=this.get("center"),s=t[0],c=l(a.x,a.y,s.x,s.y),u=e?0:1;r?(o.push(["M",a.x,a.y-c]),o.push(["A",c,c,0,0,u,a.x,a.y+c]),o.push(["A",c,c,0,0,u,a.x,a.y-c]),o.push(["Z"])):Object(i.j)(t,(function(t,e){0===e?o.push(["M",t.x,t.y]):o.push(["A",c,c,0,0,u,t.x,t.y])}))}else Object(i.j)(t,(function(t,e){0===e?o.push(["M",t.x,t.y]):o.push(["L",t.x,t.y])})),r&&o.push(["Z"]);return o},e}(c),f,p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{type:"line"})},e.prototype.getGridPath=function(t){var e=[];return Object(i.j)(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e}(c)},417:function(t,e,n){"use strict";n.r(e),n.d(e,"Category",(function(){return b})),n.d(e,"Continuous",(function(){return w})),n.d(e,"Base",(function(){return f}));var r=n(1),i=n(0),o=n(41),a=n(25),s=n(77),c=n(7),l=n(15),u=n(6),h,f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__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,o=e.height;return n&&(i=Math.min(i,n)),r&&(o=Math.min(o,r)),Object(u.b)(e.minX,e.minY,i,o)},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(),i=Object(u.c)(e.padding),o=Object(r.__assign)({x:0,y:0,width:n.width+i[1]+i[3],height:n.height+i[0]+i[2]},e.style),a;this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:o}).toBack()},e.prototype.drawTitle=function(t){var e=this.get("currentPoint"),n=this.get("title"),i=n.spacing,o=n.style,a=n.text,s,c=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:Object(r.__assign)({text:a,x:e.x,y:e.y},o)}).getBBox();this.set("currentPoint",{x:e.x,y:c.maxY+i})},e.prototype.resetDraw=function(){var t=this.get("background"),e={x:0,y:0};if(t){var n=Object(u.c)(t.padding);e.x=n[3],e.y=n[0]}this.set("currentPoint",e)},e}(l.a),p={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},d={fill:c.a.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:c.a.fontFamily,fontWeight:"normal",lineHeight:12},g="navigation-arrow-right",y="navigation-arrow-left",v={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},m,b=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 Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__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:c.a.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}},background:{padding:5,style:{stroke:c.a.lineColor}},itemBackground:{style:{opacity:0,fill:"#fff"}},pageNavigator:p,itemName:{spacing:16,style:d},marker:{spacing:8,style:{r:6,symbol:"circle"}},itemValue:{alignRight:!1,formatter:null,style:d,spacing:6},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:c.a.uncheckedColor},markerStyle:{fill:c.a.uncheckedColor,stroke:c.a.uncheckedColor}},inactive:{nameStyle:{fill:c.a.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){Object(i.db)(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,o=this.getItems().indexOf(t),a=this.createOffScreenGroup(),s=this.drawItem(t,o,this.getItemHeight(),a);this.updateElements(s,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 Object(i.j)(e,(function(e,r){t[r]&&n.push(r)})),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);Object(i.j)(n,(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return Object(i.l)(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");Object(i.j)(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"}),o=this.getItemHeight(),a=this.get("itemWidth"),s=this.get("itemSpacing"),c=this.get("itemMarginBottom"),l=this.get("currentPoint"),u=l.x,h=l.y,f=this.get("layout"),p=this.get("items"),d=!1,g=0,y=this.get("maxWidth"),v=this.get("maxHeight");Object(i.j)(p,(function(t,n){var i=e.drawItem(t,n,o,r),p=i.getBBox(),m=a||p.width;m>g&&(g=m),"horizontal"===f?(y&&y<l.x+m-u&&(d=!0,l.x=u,l.y+=o+c),e.moveElementTo(i,l),l.x+=m+s):(v&&v<l.y+o+c-h&&(d=!0,l.x+=g+s,l.y=h,g=0),e.moveElementTo(i,l),l.y+=o+c)})),d&&this.get("flipPage")&&(this.pageHeight=0,this.pageWidth=0,this.totalPagesCnt=1,this.startX=u,this.startY=h,this.adjustNavigation(t,r))},e.prototype.getItemHeight=function(){var t=this.get("itemHeight");if(!t){var e=(this.get("itemName")||{}).style;if(Object(i.I)(e)){var n=this.getItems();n.forEach((function(i,o){var a=Object(r.__assign)(Object(r.__assign)({},d),e(i,o,n)).fontSize;t<a&&(t=a)}))}else e&&(t=e.fontSize)}return t},e.prototype.drawMarker=function(t,e,n,o){var a=Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({x:0,y:o/2},e.style),{symbol:Object(i.s)(n.marker,"symbol","circle")}),Object(i.s)(n.marker,"style",{})),s=this.addShape(t,{type:"marker",id:this.getElementId("item-"+n.id+"-marker"),name:"legend-item-marker",attrs:a}),c=s.getBBox();s.attr("x",c.width/2);var l=s.attr(),u=l.stroke,h=l.fill;return u&&s.set("isStroke",!0),h&&s.set("isFill",!0),s},e.prototype.drawItemText=function(t,e,n,o,a,s,c){var l=n.formatter,u=n.style,h=Object(r.__assign)(Object(r.__assign)({x:s,y:a/2,text:l?l(o[e],o,c):o[e]},d),Object(i.I)(u)?u(o,c,this.getItems()):u);return this.addShape(t,{type:"text",id:this.getElementId("item-"+o.id+"-"+e),name:"legend-item-"+e,attrs:h})},e.prototype.drawRadio=function(t,e,n,i,o){var a,s,c=e.style||{},l=null!==(a=c.r)&&void 0!==a?a:i/2,u=3.6*l/8,h=[o+l,i/2-l],f=h[0],p=h[1],d=[f+l,p+l],g=d[0],y=d[1],v=[f,y+l],m=v[0],b=v[1],x=[o,p+l],O=x[0],j=x[1],w=n.showRadio,_=Object(r.__assign)(Object(r.__assign)({path:[["M",f,p],["A",l,l,0,0,1,g,y],["L",g-u,y],["L",g,y],["A",l,l,0,0,1,m,b],["L",m,b-u],["L",m,b],["A",l,l,0,0,1,O,j],["L",O+u,j],["L",O,j],["A",l,l,0,0,1,f,p],["L",f,p+u]],stroke:"#000000",fill:"#ffffff"},c),{opacity:w?null!==(s=null==c?void 0:c.opacity)&&void 0!==s?s:.45:0}),M=this.addShape(t,{type:"path",id:this.getElementId("item-"+n.id+"-radio"),name:"legend-item-radio",attrs:_});return M.set("tip",e.tip),M},e.prototype.drawItem=function(t,e,n,a){var s="item-"+t.id,c=this.addGroup(a,{name:"legend-item-container",id:this.getElementId("item-container-"+s),delegateObject:{item:t,index:e}}),l=this.addGroup(c,{name:"legend-item",id:this.getElementId(s),delegateObject:{item:t,index:e}}),u=this.get("marker"),h=this.get("itemName"),f=this.get("itemValue"),p=this.get("itemBackground"),d=this.get("radio"),g=this.getLimitItemWidth(),y=0;if(u){var v=this.drawMarker(l,u,t,n),m=u.spacing,b=Object(i.s)(t,["marker","spacing"]);Object(i.M)(b)&&(m=b),y=v.getBBox().maxX+m}if(h){var x=this.drawItemText(l,"name",h,t,n,y,e);g&&Object(o.a)(!0,x,Object(i.c)(g-y,0,g)),y=x.getBBox().maxX+h.spacing}if(f){var O=this.drawItemText(l,"value",f,t,n,y,e);g&&(f.alignRight?(O.attr({textAlign:"right",x:g}),Object(o.a)(!0,O,Object(i.c)(g-y,0,g),"head")):Object(o.a)(!0,O,Object(i.c)(g-y,0,g))),y=O.getBBox().maxX+f.spacing}if(d&&this.drawRadio(l,d,t,n,y),p){var j=l.getBBox(),w;this.addShape(l,{type:"rect",name:"legend-item-background",id:this.getElementId(s+"-background"),attrs:Object(r.__assign)({x:0,y:0,width:j.width,height:n},p.style)}).toBack()}return this.applyItemStates(t,l),l},e.prototype.adjustNavigation=function(t,e){var n=this,r=this.startX,o=this.startY,a=this.get("layout"),s=e.findAll((function(t){return"legend-item"===t.get("name")})),c=this.get("maxWidth"),l=this.get("maxHeight"),u=this.get("itemWidth"),h=this.get("itemSpacing"),f=this.getItemHeight(),d=Object(i.h)({},p,this.get("pageNavigator")),g=this.drawNavigation(t,a,"00/00",d),y=g.getBBox(),v={x:r,y:o},m=1,b=0,x=0,O=0,j=this.get("itemMarginBottom");function w(t,e){var n=t.getBBox(),r=u||n.width,i;return e.x+r+h+y.width>c}if("horizontal"===a){var _=this.get("maxRow")||1,M=f+(1===_?0:j),S=c-h-y.width-y.minX;this.pageHeight=M*_,this.pageWidth=S,Object(i.j)(s,(function(t){var e=t.getBBox(),i=u||e.width;(b&&b<v.x+i+h||w(t,v))&&(1===m&&(b=v.x+h,n.moveElementTo(g,{x:S,y:v.y+f/2-y.height/2-y.minY})),m+=1,v.x=r,v.y+=M),n.moveElementTo(t,v),t.getParent().setClip({type:"rect",attrs:{x:v.x,y:v.y,width:i+h,height:f}}),v.x+=i+h}))}else{Object(i.j)(s,(function(t){var e=t.getBBox();e.width>x&&(x=e.width)})),O=x,x+=h,c&&(x=Math.min(c,x),O=Math.min(c,O)),this.pageWidth=x,this.pageHeight=l-Math.max(y.height,f+j);var C=Math.floor(this.pageHeight/(f+j));Object(i.j)(s,(function(t,e){0!==e&&e%C==0&&(m+=1,v.x+=x,v.y=o),n.moveElementTo(t,v),t.getParent().setClip({type:"rect",attrs:{x:v.x,y:v.y,width:x,height:f}}),v.y+=f+j})),this.totalPagesCnt=m,this.moveElementTo(g,{x:r+O/2-y.width/2-y.minX,y:l-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"===a&&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,o){var a={x:0,y:0},s=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),c=Object(i.s)(o.marker,"style",{}),l=c.size,u=void 0===l?12:l,h=Object(r.__rest)(c,["size"]),f=this.drawArrow(s,a,y,"horizontal"===e?"up":"left",u,h);f.on("click",this.onNavigationBack);var p=f.getBBox();a.x+=p.width+2;var d,v=this.addShape(s,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:Object(r.__assign)({x:a.x,y:a.y+u/2,text:n,textBaseline:"middle"},Object(i.s)(o.text,"style"))}).getBBox(),m;return a.x+=v.width+2,this.drawArrow(s,a,g,"horizontal"===e?"down":"right",u,h).on("click",this.onNavigationAfter),s},e.prototype.updateNavigation=function(t){var e,n=Object(i.h)({},p,this.get("pageNavigator")).marker.style,r=n.fill,o=n.opacity,a=n.inactiveFill,s=n.inactiveOpacity,c=this.currentPageIndex+"/"+this.totalPagesCnt,l=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),u=t?t.findById(this.getElementId(y)):this.getElementByLocalId(y),h=t?t.findById(this.getElementId(g)):this.getElementByLocalId(g);l.attr("text",c),u.attr("opacity",1===this.currentPageIndex?s:o),u.attr("fill",1===this.currentPageIndex?a:r),u.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),h.attr("opacity",this.currentPageIndex===this.totalPagesCnt?s:o),h.attr("fill",this.currentPageIndex===this.totalPagesCnt?a:r),h.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var f=u.getBBox().maxX+2;l.attr("x",f),f+=l.getBBox().width+2,this.updateArrowPath(h,{x:f,y:0})},e.prototype.drawArrow=function(t,e,n,i,o,s){var c=e.x,l=e.y,u=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:Object(r.__assign)({size:o,direction:i,path:[["M",c+o/2,l],["L",c,l+o],["L",c+o,l+o],["Z"]],cursor:"pointer"},s)});return u.attr("matrix",Object(a.e)({x:c+o/2,y:l+o/2},v[i])),u},e.prototype.updateArrowPath=function(t,e){var n=e.x,r=e.y,i=t.attr(),o=i.size,s=i.direction,c=Object(a.e)({x:n+o/2,y:r+o/2},v[s]);t.attr("path",[["M",n+o/2,r],["L",n,r+o],["L",n+o,r+o],["Z"]]),t.attr("matrix",c)},e.prototype.getCurrentNavigationMatrix=function(){var t=this,e=t.currentPageIndex,n=t.pageWidth,r=t.pageHeight,i,o="horizontal"===this.get("layout")?{x:0,y:r*(1-e)}:{x:n*(1-e),y:0};return Object(a.f)(o)},e.prototype.applyItemStates=function(t,e){var n,r;if(this.getItemStates(t).length>0){var o=e.getChildren(),a=this.get("itemStates");Object(i.j)(o,(function(e){var n,r=e.get("name").split("-")[2],i=Object(s.a)(t,r,a);i&&(e.attr(i),"marker"!==r||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}(f),x=1.4,O=.4,j,w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__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:c.a.textColor,textBaseline:"middle",fontFamily:c.a.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:c.a.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,i=e.getCurrentValue()[1];i<n&&(i=n),e.setValue([n,i])})),t.on("legend-handler-max:drag",(function(t){var n=e.getValueByCanvasPoint(t.x,t.y),r,i=e.getCurrentValue()[0];i>n&&(i=n),e.setValue([i,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),o=e.getCurrentValue(),a=o[1]-o[0],s=e.getRange(),c=i-r;c<0?o[0]+c>s.min?e.setValue([o[0]+c,o[1]+c]):e.setValue([s.min,s.min+a]):c>0&&(c>0&&o[1]+c<s.max?e.setValue([o[0]+c,o[1]+c]):e.setValue([s.max-a,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"),o=n.style,a=n.align,s=n.formatter,c=this.get(t),l=this.getLabelAlignAttrs(t,a),u="label-"+t;this.addShape(e,{type:"text",id:this.getElementId(u),name:"legend-label-"+t,attrs:Object(r.__assign)(Object(r.__assign)({x:0,y:0,text:Object(i.I)(s)?s(c):c},o),l)})},e.prototype.getLabelAlignAttrs=function(t,e){var n,r="center",i="middle";return this.isVertical()?(r="start",i="rail"!==e?"min"===t?"top":"bottom":"top"):"rail"!==e?(i="top",r="min"===t?"start":"end"):(r="start",i="middle"),{textAlign:r,textBaseline:i}},e.prototype.getRailPath=function(t,e,n,r){var i=this.get("rail"),o=i.size,a=i.defaultLength,s=i.type,c=this.isVertical(),l=a,u=n,h=r;u||(u=c?o:a),h||(h=c?a:o);var f=[];return"color"===s?(f.push(["M",t,e]),f.push(["L",t+u,e]),f.push(["L",t+u,e+h]),f.push(["L",t,e+h]),f.push(["Z"])):(f.push(["M",t+u,e]),f.push(["L",t+u,e+h]),f.push(["L",t,e+h]),f.push(["Z"])),f},e.prototype.drawRail=function(t){var e,n=this.get("rail").style;this.addShape(t,{type:"path",id:this.getElementId("rail"),name:"legend-rail",attrs:Object(r.__assign)({path:this.getRailPath(0,0)},n)})},e.prototype.getTrackColor=function(t){var e=t.length,n;if(!e)return null;if(1===e)return t[0];n=this.isVertical()?"l(90)":"l(0)";for(var r=0;r<e;r++){var i;n+=" "+r/(e-1)+":"+t[r]}return n},e.prototype.getTrackPath=function(t){var e,n=this.getRailShape(t).attr("path");return Object(i.e)(n)},e.prototype.getClipTrackAttrs=function(t){var e=this.getCurrentValue(),n=e[0],r=e[1],i=this.getRailBBox(t),o=this.getPointByValue(n,t),a=this.getPointByValue(r,t),s,c,l,u,h;return this.isVertical()?(c=i.minX,l=o.y,u=i.width,h=a.y-o.y):(c=o.x,l=i.minY,u=a.x-o.x,h=i.height),{x:c,y:l,width:u,height:h}},e.prototype.getTrackAttrs=function(t){var e=this.get("track"),n=this.get("colors"),r=this.getTrackPath(t);return Object(i.db)({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(),o=this.getClipTrackAttrs(t);i?i.attr(o):r.setClip({type:"rect",attrs:o})},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,o=(t-r)/(n.max-r),a=this.getRailBBox(e),s,c={x:0,y:0};return this.isVertical()?(c.x=a.minX+a.width/2,c.y=Object(u.g)(a.minY,a.maxY,o)):(c.x=Object(u.g)(a.minX,a.maxX,o),c.y=a.minY+a.height/2),c},e.prototype.getRailShape=function(t){var e;return(t||this.get("group")).findById(this.getElementId("rail"))},e.prototype.getRailBBox=function(t){var e,n;return this.getRailShape(t).getBBox()},e.prototype.getRailCanvasBBox=function(){var t,e,n;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=this.getRange(),r=n.min,i=n.max,o=this.getRailCanvasBBox(),a=this.isVertical(),s=this.get("step"),c;c=a?(e-o.minY)/o.height:(t-o.minX)/o.width;var l=Object(u.g)(r,i,c),h;s&&(l=r+Math.round((l-r)/s)*s);return l>i&&(l=i),l<r&&(l=r),l},e.prototype.getCurrentValue=function(){var t=this.get("value");if(!t){var e=this.get("values");return e?[Math.max(Math.min.apply(Math,Object(r.__spreadArrays)(e,[this.get("max")])),this.get("min")),Math.min(Math.max.apply(Math,Object(r.__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,o=e.x,a=e.y,s=1.4*i,c=i/2,l=i/6;if(n){var u=o+.4*s;r.push(["M",o,a]),r.push(["L",u,a+c]),r.push(["L",o+s,a+c]),r.push(["L",o+s,a-c]),r.push(["L",u,a-c]),r.push(["Z"]),r.push(["M",u,a+l]),r.push(["L",o+s-2,a+l]),r.push(["M",u,a-l]),r.push(["L",o+s-2,a-l])}else{var h=a+.4*s;r.push(["M",o,a]),r.push(["L",o-c,h]),r.push(["L",o-c,a+s]),r.push(["L",o+c,a+s]),r.push(["L",o+c,h]),r.push(["Z"]),r.push(["M",o-l,h]),r.push(["L",o-l,a+s-2]),r.push(["M",o+l,h]),r.push(["L",o+l,a+s-2])}return r},e.prototype.resetHandler=function(t,e,n){var i=this.getPointByValue(n,t),o=this.get("handler"),a=this.getHandlerPath(o,i),s=this.getElementId("handler-"+e),c=t.findById(s),l=this.isVertical();c?c.attr("path",a):this.addShape(t,{type:"path",name:"legend-handler-"+e,draggable:!0,id:s,attrs:Object(r.__assign)(Object(r.__assign)({path:a},o.style),{cursor:l?"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 o,a=this.isVertical()?"height":"width",s=this.get("label"),c=s.align,l=s.spacing,u=this.get("max"+Object(i.wb)(a));if(u){var h,f=("rail"===c?n[a]+t[a]+e[a]+2*l:n[a])-u;f>0&&this.changeRailLength(r,a,n[a]-f)}},e.prototype.changeRailLength=function(t,e,n){var r=t.getBBox(),i;i="height"===e?this.getRailPath(r.x,r.y,r.width,n):this.getRailPath(r.x,r.y,n,r.height),t.attr("path",i)},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"),o=i.align,a=i.spacing,s=n.getBBox(),c=t.getBBox(),l=e.getBBox(),u=s.height;this.fitRailLength(c,l,s,n),s=n.getBBox(),"rail"===o?(t.attr({x:r.x,y:r.y+u/2}),this.changeRailPosition(n,r.x+c.width+a,r.y),e.attr({x:r.x+c.width+s.width+2*a,y:r.y+u/2})):"top"===o?(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+c.height+a)):(this.changeRailPosition(n,r.x,r.y),t.attr({x:r.x,y:r.y+s.height+a}),e.attr({x:r.x+s.width,y:r.y+s.height+a}))},e.prototype.fixedVertail=function(t,e,n,r){var i=this.get("label"),o=i.align,a=i.spacing,s=n.getBBox(),c=t.getBBox(),l=e.getBBox();if(this.fitRailLength(c,l,s,n),s=n.getBBox(),"rail"===o)t.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x,r.y+c.height+a),e.attr({x:r.x,y:r.y+c.height+s.height+2*a});else if("right"===o)t.attr({x:r.x+s.width+a,y:r.y}),this.changeRailPosition(n,r.x,r.y),e.attr({x:r.x+s.width+a,y:r.y+s.height});else{var u=Math.max(c.width,l.width);t.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x+u+a,r.y),e.attr({x:r.x,y:r.y+s.height})}},e}(f)},418:function(t,e,n){"use strict";n.r(e),n.d(e,"Html",(function(){return m}));var r=n(1),i=n(40),o=n(14),a=n(0),s=n(60),c=n(6),l=n(24),u=n(7),h,f=((h={})[""+l.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:u.a.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},h[""+l.TITLE_CLASS]={marginBottom:"4px"},h[""+l.LIST_CLASS]={margin:"0px",listStyleType:"none",padding:"0px"},h[""+l.LIST_ITEM_CLASS]={listStyleType:"none",marginBottom:"4px"},h[""+l.MARKER_CLASS]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},h[""+l.VALUE_CLASS]={display:"inline-block",float:"right",marginLeft:"30px"},h[""+l.CROSSHAIR_X]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},h[""+l.CROSSHAIR_Y]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},h);function p(t,e,n,r,i){var o;return{left:t<i.x,right:t+n>i.x+i.width,top:e<i.y,bottom:e+r>i.y+i.height}}function d(t,e,n,r,i,o){var a=t,s=e;switch(o){case"left":a=t-r-n,s=e-i/2;break;case"right":a=t+n,s=e-i/2;break;case"top":a=t-r/2,s=e-i-n;break;case"bottom":a=t-r/2,s=e+n;break;default:a=t+n,s=e-i-n}return{x:a,y:s}}function g(t,e,n,r,i,o,a){var s=d(t,e,n,r,i,o);if(a){var c=p(s.x,s.y,r,i,a);"auto"===o?(c.right&&(s.x=Math.max(0,t-r-n)),c.top&&(s.y=Math.max(0,e-i-n))):"top"===o||"bottom"===o?(c.left&&(s.x=a.x),c.right&&(s.x=a.x+a.width-r),"top"===o&&c.top&&(s.y=e+n),"bottom"===o&&c.bottom&&(s.y=e-i-n)):(c.top&&(s.y=a.y),c.bottom&&(s.y=a.y+a.height-i),"left"===o&&c.left&&(s.x=t+n),"right"===o&&c.right&&(s.x=t-r-n))}return s}function y(t,e){var n=!1;return Object(a.j)(e,(function(e){if(Object(a.y)(t,e))return n=!0,!1})),n}var v,m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'<div class="'+l.CONTAINER_CLASS+'"><div class="'+l.TITLE_CLASS+'"></div><ul class="'+l.LIST_CLASS+'"></ul></div>',itemTpl:'<li class="'+l.LIST_ITEM_CLASS+'" data-index={index}>\n <span class="'+l.MARKER_CLASS+'" style="background:{color}"></span>\n <span class="'+l.NAME_CLASS+'">{name}</span>:\n <span class="'+l.VALUE_CLASS+'">{value}</span>\n </li>',xCrosshairTpl:'<div class="'+l.CROSSHAIR_X+'"></div>',yCrosshairTpl:'<div class="'+l.CROSSHAIR_Y+'"></div>',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:l.CONTAINER_CLASS,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:f})},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),Object(o.e)(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},e.prototype.hide=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!1),Object(o.e)(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&&Object(o.e)(n,{display:e}),r&&Object(o.e)(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){this.get("customContent")?this.renderCustomContent():(y(e,["title","showTitle"])&&this.resetTitle(),Object(a.y)(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=this.get("x"),e=this.get("y"),n=this.get("offset"),r=this.getOffset(),i=r.offsetX,a=r.offsetY,s=this.get("position"),l=this.get("region"),u=this.getContainer(),h=this.getBBox(),f=h.width,p=h.height,d;l&&(d=Object(c.k)(l));var y=g(t,e,n,f,p,s,d);Object(o.e)(u,{left:Object(c.l)(y.x+i),top:Object(c.l)(y.y+a)}),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=Object(a.F)(n)?n:Object(o.b)(n)}return t},e.prototype.cacheDoms=function(){var t=this.getContainer(),e=t.getElementsByClassName(l.TITLE_CLASS)[0],n=t.getElementsByClassName(l.LIST_CLASS)[0];this.set("titleDom",e),this.set("listDom",n)},e.prototype.resetTitle=function(){var t=this.get("title"),e;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=Object(c.k)(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?Object(o.e)(n,{left:Object(c.l)(r),top:Object(c.l)(e.y),height:Object(c.l)(e.height)}):Object(o.e)(n,{top:Object(c.l)(r),left:Object(c.l)(e.x),width:Object(c.l)(e.width)})},e.prototype.checkCrosshair=function(t){var e=t+"CrosshairDom",n=t+"CrosshairTpl",r="CROSSHAIR_"+t.toUpperCase(),i=l[r],a=this.get(e),s=this.get("parent");return a||(a=Object(o.b)(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&&(Object(a.j)(t,(function(t){var s=i.a.toCSSGradient(t.color),c=Object(r.__assign)(Object(r.__assign)({},t),{color:s}),l=Object(a.pb)(e,c),u=Object(o.b)(l);n.appendChild(u)})),this.applyChildrenStyles(n,this.get("domStyles")))},e.prototype.clearItemDoms=function(){this.get("listDom")&&Object(c.a)(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}(s.a)},419:function(t,e,n){"use strict";var r=n(1),i=n(13);function o(t,e){if(e){var n=Object(i.invert)(e);return Object(i.multiplyVec2)(n,t)}return t}function a(t,e,n){var r=t.getTotalMatrix();if(r){var i=o([e,n,1],r),a,s;return[i[0],i[1]]}return[e,n]}function s(t,e,n){if(t.isCanvas&&t.isCanvas())return!0;if(!Object(i.isAllowCapture)(t)||!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var r=a(t,e,n),o=r[0],s=r[1];if(t.isClipped(o,s))return!1}var c=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=c.minX&&e<=c.maxX&&n>=c.minY&&n<=c.maxY}function c(t,e,n){if(!s(t,e,n))return null;for(var r=null,i=t.getChildren(),o,l=i.length-1;l>=0;l--){var u=i[l];if(u.isGroup())r=c(u,e,n);else if(s(u,e,n)){var h=u,f=a(u,e,n),p=f[0],d=f[1];h.isInShape(p,d)&&(r=u)}if(r)break}return r}var l=n(57),u=n(89),h=n(8),f=n(26),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__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 l},e.prototype.getGroupBase=function(){return u.a},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||Object(h.d)();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"),o=this.getPixelRatio();i.width=o*e,i.height=o*n,o>1&&r.scale(o,o)},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){var r;return r=this.get("quickHit")?c(this,e,n):t.prototype.getShape.call(this,e,n,null)},e.prototype._getRefreshRegion=function(){var t=this.get("refreshElements"),e=this.getViewRange(),n,r;t.length&&t[0]===this?n=e:(n=Object(f.f)(t))&&(n.minX=Math.floor(n.minX),n.minY=Math.floor(n.minY),n.maxX=Math.ceil(n.maxX),n.maxY=Math.ceil(n.maxY),n.maxY+=1,this.get("clipView")&&(n=Object(f.g)(n,e)));return n},e.prototype.refreshElement=function(t){var e;this.get("refreshElements").push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&(Object(h.a)(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),Object(f.a)(t,this),Object(f.d)(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(),Object(f.a)(t,this),Object(f.b)(this,n,r),Object(f.d)(t,n,r),t.restore()):e.length&&Object(f.c)(e),Object(h.c)(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=Object(h.n)((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}(i.AbstractCanvas),d=e.a=p},42:function(t,e,n){"use strict";var r=n(0),i=n(62),o=function(){function t(t){var e=t.xField,n=t.yField,r=t.adjustNames,i=void 0===r?["x","y"]:r,o=t.dimValuesMap;this.adjustNames=i,this.xField=e,this.yField=n,this.dimValuesMap=o}return t.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},t.prototype.getAdjustRange=function(t,e,n){var r=this.yField,i=n.indexOf(e),o=n.length,a,s;return!r&&this.isAdjust("y")?(a=0,s=1):o>1?(a=n[0===i?0:i-1],s=n[i===o-1?o-1:i+1],0!==i?a+=(e-a)/2:a-=(s-e)/2,i!==o-1?s-=(s-e)/2:s+=(e-n[o-2])/2):(a=0===e?0:e-.5,s=0===e?1:e+.5),{pre:a,next:s}},t.prototype.adjustData=function(t,e){var n=this,i=this.getDimValues(e);r.j(t,(function(t,e){r.j(i,(function(r,i){n.adjustDim(i,r,t,e)}))}))},t.prototype.groupData=function(t,e){return r.j(t,(function(t){void 0===t[e]&&(t[e]=i.a)})),r.w(t,e)},t.prototype.adjustDim=function(t,e,n,r){},t.prototype.getDimValues=function(t){var e=this,n=e.xField,o=e.yField,a=r.b({},this.dimValuesMap),s=[];if(n&&this.isAdjust("x")&&s.push(n),o&&this.isAdjust("y")&&s.push(o),s.forEach((function(e){a&&a[e]||(a[e]=r.yb(t,e).sort((function(t,e){return t-e})))})),!o&&this.isAdjust("y")){var c="y";a.y=[i.a,1]}return a},t}();e.a=o},420:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(1),i=n(14),o=n(0),a=n(15),s,c={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)"}},l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.clearEvents=o.fb,e.onStartEvent=function(t){return function(n){e.isMobile=t,n.originalEvent.preventDefault();var r=t?Object(o.s)(n.originalEvent,"touches.0.clientX"):n.clientX,i=t?Object(o.s)(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?[Object(i.a)(t,"touchmove",e.onMouseMove),Object(i.a)(t,"touchend",e.onMouseUp),Object(i.a)(t,"touchcancel",e.onMouseUp)]:[Object(i.a)(t,"mousemove",e.onMouseMove),Object(i.a)(t,"mouseup",e.onMouseUp),Object(i.a)(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?Object(o.s)(t,"touches.0.clientX"):t.clientX,s=e.isMobile?Object(o.s)(t,"touches.0.clientY"):t.clientY,c=r?a:s,l=c-e.startPos;e.startPos=c,e.updateThumbOffset(i+l)},e.onMouseUp=function(t){t.preventDefault(),e.clearEvents()},e.onTrackClick=function(t){var n=e.cfg,r=n.isHorizontal,i=n.x,o=n.y,a=n.thumbLen,s,c=e.getContainerDOM().getBoundingClientRect(),l=t.clientX,u=t.clientY,h=r?l-c.left-i-a/2:u-c.top-o-a/2,f=e.validateRange(h);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 Object(r.__extends)(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.getValue(),r=Object(o.c)(n,t,e);n===r||this.get("isInit")||this.setValue(r)},e.prototype.getRange=function(){var t,e;return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},e.prototype.setValue=function(t){var e=this.getRange(),n=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*Object(o.c)(t,e.min,e.max)}),this.delegateEmit("valuechange",{originalValue:n,value:this.getValue()})},e.prototype.getValue=function(){return Object(o.c)(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:c})},e.prototype.renderInner=function(t){this.renderTrackShape(t),this.renderThumbShape(t)},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.renderTrackShape=function(t){var e=this.cfg,n=e.trackLen,r=e.theme,i=void 0===r?{default:{}}:r,a=Object(o.h)({},c,i).default,s=a.lineCap,l=a.trackColor,u=a.size,h=Object(o.s)(this.cfg,"size",u),f=this.get("isHorizontal")?{x1:0+h/2,y1:h/2,x2:n-h/2,y2:h/2,lineWidth:h,stroke:l,lineCap:s}:{x1:h/2,y1:0+h/2,x2:h/2,y2:n-h/2,lineWidth:h,stroke:l,lineCap:s};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:f})},e.prototype.renderThumbShape=function(t){var e=this.cfg,n=e.thumbOffset,r=e.thumbLen,i=e.theme,a=Object(o.h)({},c,i).default,s=a.size,l=a.lineCap,u=a.thumbColor,h=Object(o.s)(this.cfg,"size",s),f=this.get("isHorizontal")?{x1:n+h/2,y1:h/2,x2:n+r-h/2,y2:h/2,lineWidth:h,stroke:u,lineCap:l,cursor:"default"}:{x1:h/2,y1:n+h/2,x2:h/2,y2:n+r-h/2,lineWidth:h,stroke:u,lineCap:l,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:f})},e.prototype.bindEvents=function(){var t=this.get("group"),e;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 n=t.findById(this.getElementId("thumb"));n.on("mouseover",this.onThumbMouseOver),n.on("mouseout",this.onThumbMouseOut)},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e.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},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.updateThumbOffset=function(t){var e=this.cfg,n=e.thumbOffset,r=e.isHorizontal,i=e.thumbLen,o=e.size,a=this.validateRange(t);if(a!==n){var s=this.getElementByLocalId("thumb");r?s.attr({x1:a+o/2,x2:a+i-o/2}):s.attr({y1:a+o/2,y2:a+i-o/2}),this.emitOffsetChange(a)}},e.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:Object(o.c)(t/(r-i),0,1)}),this.delegateEmit("valuechange",{originalValue:n,value:t})},e}(a.a)},421:function(t,e,n){"use strict";var r=n(34),i=n(0),o=n(62),a,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.d:r,a=e.dodgeRatio,s=void 0===a?o.b:a,c=e.dodgeBy,l=e.intervalPadding,u=e.dodgePadding,h=e.xDimensionLength,f=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=c,n.intervalPadding=l,n.dodgePadding=u,n.xDimensionLegenth=h,n.groupNum=f,n.defaultSize=p,n.maxColumnWidth=d,n.minColumnWidth=g,n.columnWidthRatio=y,n.customOffset=v,n}return Object(r.b)(e,t),e.prototype.process=function(t){var e=i.e(t),n=i.q(e),r=this.dodgeBy,o=r?i.v(n,r):e;return this.cacheMap={},this.adjustDataArray=o,this.mergeData=n,this.adjustData(o,n),this.adjustDataArray=[],this.mergeData=[],e},e.prototype.adjustDim=function(t,e,n,r){var o=this,a=this.customOffset,s=this.getDistribution(t),c=this.groupData(n,t);return i.j(c,(function(n,c){var l;l=1===e.length?{pre:e[0]-1,next:e[0]+1}:o.getAdjustRange(t,parseFloat(c),e),i.j(n,(function(e){var n=e[t],c=s[n],u=c.indexOf(r);if(i.K(a))e[t]=o.getDodgeOffset(l,u,c.length);else{var h=l.pre,f=l.next;e[t]=i.I(a)?a(e,l):(h+f)/2+a}}))})),[]},e.prototype.getDodgeOffset=function(t,e,n){var r=this,o=r.dodgeRatio,a=r.marginRatio,s=r.intervalPadding,c=r.dodgePadding,l=t.pre,u=t.next,h=u-l,f,p;if(!i.K(s)&&i.K(c)&&s>=0)f=l+(p=this.getIntervalOnlyOffset(n,e));else if(!i.K(c)&&i.K(s)&&c>=0){var p;f=l+(p=this.getDodgeOnlyOffset(n,e))}else if(!i.K(s)&&!i.K(c)&&s>=0&&c>=0){var p;f=l+(p=this.getIntervalAndDodgeOffset(n,e))}else{var d=h*o/n,g=a*d,p;f=(l+u)/2+(p=.5*(h-n*d-(n-1)*g)+((e+1)*d+e*g)-.5*d-.5*h)}return f},e.prototype.getIntervalOnlyOffset=function(t,e){var n=this,r=n.defaultSize,o=n.intervalPadding,a=n.xDimensionLegenth,s=n.groupNum,c=n.dodgeRatio,l=n.maxColumnWidth,u=n.minColumnWidth,h=n.columnWidthRatio,f=o/a,p=(1-(s-1)*f)/s*c/(t-1),d=((1-f*(s-1))/s-p*(t-1))/t,g;if(d=i.K(h)?d:1/s/t*h,!i.K(l)){var y=l/a;d=Math.min(d,y)}if(!i.K(u)){var v=u/a;d=Math.max(d,v)}return((.5+e)*(d=r?r/a:d)+e*(p=((1-(s-1)*f)/s-t*d)/(t-1))+.5*f)*s-f/2},e.prototype.getDodgeOnlyOffset=function(t,e){var n=this,r=n.defaultSize,o=n.dodgePadding,a=n.xDimensionLegenth,s=n.groupNum,c=n.marginRatio,l=n.maxColumnWidth,u=n.minColumnWidth,h=n.columnWidthRatio,f=o/a,p=1*c/(s-1),d=((1-p*(s-1))/s-f*(t-1))/t,g;if(d=h?1/s/t*h:d,!i.K(l)){var y=l/a;d=Math.min(d,y)}if(!i.K(u)){var v=u/a;d=Math.max(d,v)}return((.5+e)*(d=r?r/a:d)+e*f+.5*(p=(1-(d*t+f*(t-1))*s)/(s-1)))*s-p/2},e.prototype.getIntervalAndDodgeOffset=function(t,e){var n=this,r=n.intervalPadding,i=n.dodgePadding,o=n.xDimensionLegenth,a=n.groupNum,s=r/o,c=i/o,l,u;return((.5+e)*(((1-s*(a-1))/a-c*(t-1))/t)+e*c+.5*s)*a-s/2},e.prototype.getDistribution=function(t){var e=this.adjustDataArray,n=this.cacheMap,r=n[t];return r||(r={},i.j(e,(function(e,n){var o=i.yb(e,t);o.length||o.push(0),i.j(o,(function(t){r[t]||(r[t]=[]),r[t].push(n)}))})),n[t]=r),r},e}(n(42).a);e.a=s},422:function(t,e,n){"use strict";var r=n(34),i=n(0),o=n(62),a;function s(t,e){return(e-t)*Math.random()+t}var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.process=function(t){var e=i.e(t),n=i.q(e);return this.adjustData(e,n),e},e.prototype.adjustDim=function(t,e,n){var r=this,o=this.groupData(n,t);return i.j(o,(function(n,i){return r.adjustGroup(n,t,parseFloat(i),e)}))},e.prototype.getAdjustOffset=function(t){var e=t.pre,n=t.next,r=(n-e)*o.c;return s(e+r,n-r)},e.prototype.adjustGroup=function(t,e,n,r){var o=this,a=this.getAdjustRange(e,n,r);return i.j(t,(function(t){t[e]=o.getAdjustOffset(a)})),t},e}(n(42).a);e.a=c},423:function(t,e,n){"use strict";var r=n(34),i=n(0),o=n(42),a=i.a,s=function(t){function e(e){var n=t.call(this,e)||this,r=e.adjustNames,i=void 0===r?["y"]:r,o=e.height,a=void 0===o?NaN:o,s=e.size,c=void 0===s?10:s,l=e.reverseOrder,u=void 0!==l&&l;return n.adjustNames=i,n.height=a,n.size=c,n.reverseOrder=u,n}return Object(r.b)(e,t),e.prototype.process=function(t){var e=this,n=e.yField,r=e.reverseOrder,i=n?this.processStack(t):this.processOneDimStack(t);return r?this.reverse(i):i},e.prototype.reverse=function(t){return t.slice(0).reverse()},e.prototype.processStack=function(t){var e=this,n=e.xField,o=e.yField,s,c=e.reverseOrder?this.reverse(t):t,l=new a,u=new a;return c.map((function(t){return t.map((function(t){var e,a=i.s(t,n,0),s=i.s(t,[o]),c=a.toString();if(s=i.C(s)?s[1]:s,!i.K(s)){var h=s>=0?l:u;h.has(c)||h.set(c,0);var f=h.get(c),p=s+f;return h.set(c,p),Object(r.a)(Object(r.a)({},t),((e={})[o]=[f,p],e))}return t}))}))},e.prototype.processOneDimStack=function(t){var e=this,n=this,i=n.xField,o=n.height,s=n.reverseOrder,c="y",l=s?this.reverse(t):t,u=new a;return l.map((function(t){return t.map((function(t){var n,a=e.size,s=t[i],c=2*a/o;u.has(s)||u.set(s,c/2);var l=u.get(s);return u.set(s,l+c),Object(r.a)(Object(r.a)({},t),((n={}).y=l,n))}))}))},e}(o.a);e.a=s},424:function(t,e,n){"use strict";var r=n(34),i=n(0),o,a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.process=function(t){var e=i.q(t),n=this,o=n.xField,a=n.yField,s=this.getXValuesMaxMap(e),c=Math.max.apply(Math,Object.keys(s).map((function(t){return s[t]})));return i.W(t,(function(t){return i.W(t,(function(t){var e,n,l=t[a],u=t[o];if(i.C(l)){var h=(c-s[u])/2;return Object(r.a)(Object(r.a)({},t),((e={})[a]=i.W(l,(function(t){return h+t})),e))}var f=(c-l)/2;return Object(r.a)(Object(r.a)({},t),((n={})[a]=[f,l+f],n))}))}))},e.prototype.getXValuesMaxMap=function(t){var e=this,n=this,r=n.xField,o=n.yField,a=i.w(t,(function(t){return t[r]}));return i.X(a,(function(t){return e.getDimMaxValue(t,o)}))},e.prototype.getDimMaxValue=function(t,e){var n=i.W(t,(function(t){return i.s(t,e,[])})),r=i.q(n);return Math.max.apply(Math,r)},e}(n(42).a);e.a=a},425:function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return c}));var r=n(91);n.d(e,"Shape",(function(){return r}));var i=n(13);for(var o in i)["default","Canvas","Group","Shape","version"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a=n(413);n.d(e,"Canvas",(function(){return a.a}));var s=n(90);n.d(e,"Group",(function(){return s.a}));var c="0.5.6"},426:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ver=e.clear=e.bind=void 0;var r=n(447),i=function t(e,n){var i=(0,r.getSensor)(e);return i.bind(n),function(){i.unbind(n)}};e.bind=i;var o=function t(e){var n=(0,r.getSensor)(e);(0,r.removeSensor)(n)};e.clear=o;var a="1.0.2";e.ver=a},427:function(t,e,n){"use strict";function r(){return!1}e.a=r},428:function(t,e,n){"use strict";var r=50,i=2,o=Math.log(2),a=t.exports,s=n(452);function c(t){return 1-Math.abs(t)}function l(t,e){for(var n={},r=0,i=-e;i<=e;i++)r+=t(i/e),n[i]=r;return n}t.exports.getUnifiedMinMax=function(t,e){return a.getUnifiedMinMaxMulti([t],e)},t.exports.getUnifiedMinMaxMulti=function(t,e){e=e||{};var n=!1,r=!1,i=s.isNumber(e.width)?e.width:2,o=s.isNumber(e.size)?e.size:50,a=s.isNumber(e.min)?e.min:(n=!0,s.findMinMulti(t)),c=s.isNumber(e.max)?e.max:(r=!0,s.findMaxMulti(t)),l,u=(c-a)/(o-1);return n&&(a-=2*i*u),r&&(c+=2*i*u),{min:a,max:c}},t.exports.create=function(t,e){if(e=e||{},!t||0===t.length)return[];var n=s.isNumber(e.size)?e.size:50,r=s.isNumber(e.width)?e.width:2,i=a.getUnifiedMinMax(t,{size:n,width:r,min:e.min,max:e.max}),o=i.min,u,h=i.max-o,f=h/(n-1);if(0===h)return[{x:o,y:1}];for(var p=[],d=0;d<n;d++)p.push({x:o+d*f,y:0});var g=function(t){return Math.floor((t-o)/f)},y=l(c,r),v=y[r],m=y[r-1]-y[r-2],b=0;t.forEach((function(t){var e=g(t);if(!(e+r<0||e-r>=p.length)){var n=Math.max(e-r,0),i=e,o=Math.min(e+r,p.length-1),a=n-(e-r),c=e+r-o,l=y[-r-1+a]||0,u=y[-r-1+c]||0,h=v/(v-l-u);a>0&&(b+=h*(a-1)*m);var f=Math.max(0,e-r+1);s.inside(0,p.length-1,f)&&(p[f].y+=1*h*m),s.inside(0,p.length-1,i+1)&&(p[i+1].y-=2*h*m),s.inside(0,p.length-1,o+1)&&(p[o+1].y+=1*h*m)}}));var x=b,O=0,j=0;return p.forEach((function(t){O+=t.y,x+=O,t.y=x,j+=x})),j>0&&p.forEach((function(t){t.y/=j})),p},t.exports.getExpectedValueFromPdf=function(t){if(t&&0!==t.length){var e=0;return t.forEach((function(t){e+=t.x*t.y})),e}},t.exports.getXWithLeftTailArea=function(t,e){if(t&&0!==t.length){for(var n=0,r=0,i=0;i<t.length&&(r=i,!((n+=t[i].y)>=e));i++);return t[r].x}},t.exports.getPerplexity=function(t){if(t&&0!==t.length){var e=0;return t.forEach((function(t){var n=Math.log(t.y);isFinite(n)&&(e+=t.y*n)})),e=-e/o,Math.pow(2,e)}}},43:function(t,e,n){var r,i;r=this,(i=function(t){"use strict";function e(t,e,n,r){var i=(r=r||{}).maxIterations||100,o=r.tolerance||1e-10,a=t(e),s=t(n),c=n-e;if(a*s>0)throw"Initial bisect points must have opposite signs";if(0===a)return e;if(0===s)return n;for(var l=0;l<i;++l){var u=e+(c/=2),h=t(u);if(h*a>=0&&(e=u),Math.abs(c)<o||0===h)return u}return e+c}function n(t){for(var e=new Array(t),n=0;n<t;++n)e[n]=0;return e}function r(t,e){return n(t).map((function(){return n(e)}))}function i(t,e){for(var n=0,r=0;r<t.length;++r)n+=t[r]*e[r];return n}function o(t){return Math.sqrt(i(t,t))}function a(t,e,n){for(var r=0;r<e.length;++r)t[r]=e[r]*n}function s(t,e,n,r,i){for(var o=0;o<t.length;++o)t[o]=e*n[o]+r*i[o]}function c(t,e,n){var r=(n=n||{}).maxIterations||200*e.length,i=n.nonZeroDelta||1.05,o=n.zeroDelta||.001,a=n.minErrorDelta||1e-6,c=n.minErrorDelta||1e-5,l=void 0!==n.rho?n.rho:1,u=void 0!==n.chi?n.chi:2,h=void 0!==n.psi?n.psi:-.5,f=void 0!==n.sigma?n.sigma:.5,p,d=e.length,g=new Array(d+1);g[0]=e,g[0].fx=t(e),g[0].id=0;for(var y=0;y<d;++y){var v=e.slice();v[y]=v[y]?v[y]*i:o,g[y+1]=v,g[y+1].fx=t(v),g[y+1].id=y+1}function m(t){for(var e=0;e<t.length;e++)g[d][e]=t[e];g[d].fx=t.fx}for(var b=function(t,e){return t.fx-e.fx},x=e.slice(),O=e.slice(),j=e.slice(),w=e.slice(),_=0;_<r;++_){if(g.sort(b),n.history){var M=g.map((function(t){var e=t.slice();return e.fx=t.fx,e.id=t.id,e}));M.sort((function(t,e){return t.id-e.id})),n.history.push({x:g[0].slice(),fx:g[0].fx,simplex:M})}for(p=0,y=0;y<d;++y)p=Math.max(p,Math.abs(g[0][y]-g[1][y]));if(Math.abs(g[0].fx-g[d].fx)<a&&p<c)break;for(y=0;y<d;++y){x[y]=0;for(var S=0;S<d;++S)x[y]+=g[S][y];x[y]/=d}var C=g[d];if(s(O,1+l,x,-l,C),O.fx=t(O),O.fx<g[0].fx)s(w,1+u,x,-u,C),w.fx=t(w),w.fx<O.fx?m(w):m(O);else if(O.fx>=g[d-1].fx){var A=!1;if(O.fx>C.fx?(s(j,1+h,x,-h,C),j.fx=t(j),j.fx<C.fx?m(j):A=!0):(s(j,1-h*l,x,h*l,C),j.fx=t(j),j.fx<O.fx?m(j):A=!0),A){if(f>=1)break;for(y=1;y<g.length;++y)s(g[y],1-f,g[0],f,g[y]),g[y].fx=t(g[y])}}else m(O)}return g.sort(b),{fx:g[0].fx,x:g[0]}}function l(t,e,n,r,o,a,c){var l=n.fx,u=i(n.fxprime,e),h=l,f=l,p=u,d=0;function g(f,d,g){for(var y=0;y<16;++y)if(o=(f+d)/2,s(r.x,1,n.x,o,e),h=r.fx=t(r.x,r.fxprime),p=i(r.fxprime,e),h>l+a*o*u||h>=g)d=o;else{if(Math.abs(p)<=-c*u)return o;p*(d-f)>=0&&(d=f),f=o,g=h}return 0}o=o||1,a=a||1e-6,c=c||.1;for(var y=0;y<10;++y){if(s(r.x,1,n.x,o,e),h=r.fx=t(r.x,r.fxprime),p=i(r.fxprime,e),h>l+a*o*u||y&&h>=f)return g(d,o,f);if(Math.abs(p)<=-c*u)return o;if(p>=0)return g(o,d,h);f=h,d=o,o*=2}return o}function u(t,e,n){var r={x:e.slice(),fx:0,fxprime:e.slice()},c={x:e.slice(),fx:0,fxprime:e.slice()},u=e.slice(),h,f,p=1,d;d=(n=n||{}).maxIterations||20*e.length,r.fx=t(r.x,r.fxprime),a(h=r.fxprime.slice(),r.fxprime,-1);for(var g=0;g<d;++g){if(p=l(t,h,r,c,p),n.history&&n.history.push({x:r.x.slice(),fx:r.fx,fxprime:r.fxprime.slice(),alpha:p}),p){s(u,1,c.fxprime,-1,r.fxprime);var y=i(r.fxprime,r.fxprime),v;s(h,Math.max(0,i(u,c.fxprime)/y),h,-1,c.fxprime),f=r,r=c,c=f}else a(h,r.fxprime,-1);if(o(r.fxprime)<=1e-5)break}return n.history&&n.history.push({x:r.x.slice(),fx:r.fx,fxprime:r.fxprime.slice(),alpha:p}),r}function h(t,e,n){for(var r=(n=n||{}).maxIterations||100*e.length,i=n.learnRate||.001,a={x:e.slice(),fx:0,fxprime:e.slice()},c=0;c<r&&(a.fx=t(a.x,a.fxprime),n.history&&n.history.push({x:a.x.slice(),fx:a.fx,fxprime:a.fxprime.slice()}),s(a.x,1,a.x,-i,a.fxprime),!(o(a.fxprime)<=1e-5));++c);return a}function f(t,e,n){n=n||{};var r={x:e.slice(),fx:0,fxprime:e.slice()},i={x:e.slice(),fx:0,fxprime:e.slice()},s=n.maxIterations||100*e.length,c=n.learnRate||1,u=e.slice(),h=n.c1||.001,f=n.c2||.1,p,d=[];if(n.history){var g=t;t=function(t,e){return d.push(t.slice()),g(t,e)}}r.fx=t(r.x,r.fxprime);for(var y=0;y<s&&(a(u,r.fxprime,-1),c=l(t,u,r,i,c,h,f),n.history&&(n.history.push({x:r.x.slice(),fx:r.fx,fxprime:r.fxprime.slice(),functionCalls:d,learnRate:c,alpha:c}),d=[]),p=r,r=i,i=p,!(0===c||o(r.fxprime)<1e-5));++y);return r}t.bisect=e,t.nelderMead=c,t.conjugateGradient=u,t.gradientDescent=h,t.gradientDescentLineSearch=f,t.zeros=n,t.zerosM=r,t.norm2=o,t.weightedSum=s,t.scale=a})(e)},444:function(t,e,n){t.exports=n(445)},445:function(t,e,n){"use strict";n.r(e);var r=n(85),i=n.n(r);for(var o in n.d(e,"default",(function(){return i.a})),r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);var a={},s="ChartsMaterials",c=!0;function l(t,e){return t.default?t.default:t[e]?t[e]:t}},446:function(t,e,n){function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e,n){return(e=a(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t){var e=s(t,"string");return"symbol"===h(e)?e:String(e)}function s(t,e){if("object"!==h(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function c(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=l(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function t(){};return{s:i,n:function e(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function t(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o=!0,a=!1,s;return{s:function e(){n=n.call(t)},n:function t(){var e=n.next();return o=e.done,e},e:function t(e){a=!0,s=e},f:function t(){try{o||null==n.return||n.return()}finally{if(a)throw s}}}}function l(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function h(t){return(h="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)}var f=Object.create,p=Object.defineProperty,d=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,y=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,m,b=function t(e,n,r,i){if(n&&"object"===h(n)||"function"==typeof n){var o=c(g(n)),a;try{var s=function t(){var o=a.value;v.call(e,o)||o===r||p(e,o,{get:function t(){return n[o]},enumerable:!(i=d(n,o))||i.enumerable})};for(o.s();!(a=o.n()).done;)s()}catch(t){o.e(t)}finally{o.f()}}return e},x=function t(e,n,r){return r=null!=e?f(y(e)):{},b(!n&&e&&e.__esModule?r:p(r,"default",{value:e,enumerable:!0}),e)},O=function t(e){return b(p({},"__esModule",{value:!0}),e)},j={};(function t(e,n){for(var r in n)p(e,r,{get:n[r],enumerable:!0})})(j,{default:function t(){return C}}),t.exports=O(j);var w=x(n(2)),_=n(115),M=n(542),S,C=function t(e){var n=e.color,r=e.others,o=void 0===r?{}:r,a=(0,w.useMemo)((function(){return(0,M.isArr)(n)?n.filter(Boolean):n}),[n]);return w.default.createElement(_.Line,i(i(i({key:"".concat(e.width,"-").concat(e.height,"-").concat(e.autoFit),style:{flex:1}},e),o),{},{color:a}))}},447:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeSensor=e.getSensor=e.Sensors=void 0;var r=a(n(448)),i=n(449),o=n(142);function a(t){return t&&t.__esModule?t:{default:t}}var s={};function c(t){t&&s[t]&&delete s[t]}e.Sensors=s;var l=function t(e){var n=e.getAttribute(o.SizeSensorId);if(n&&s[n])return s[n];var a=(0,r.default)();e.setAttribute(o.SizeSensorId,a);var l=(0,i.createSensor)(e,(function(){return c(a)}));return s[a]=l,l};e.getSensor=l;var u=function t(e){var n=e.element.getAttribute(o.SizeSensorId);e.destroy(),c(n)};e.removeSensor=u},448:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=1,i=function t(){return"".concat(r++)};e.default=i},449:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var r=n(450),i=n(451),o="undefined"!=typeof ResizeObserver?i.createSensor:r.createSensor;e.createSensor=o},450:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var r=o(n(238)),i=n(142);function o(t){return t&&t.__esModule?t:{default:t}}var a=function t(e,n){var o=void 0,a=[],s=function t(){"static"===getComputedStyle(e).position&&(e.style.position="relative");var n=document.createElement("object");return n.onload=function(){n.contentDocument.defaultView.addEventListener("resize",c),c()},n.style.display="block",n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.height="100%",n.style.width="100%",n.style.overflow="hidden",n.style.pointerEvents="none",n.style.zIndex="-1",n.style.opacity="0",n.setAttribute("class",i.SensorClassName),n.setAttribute("tabindex",i.SensorTabIndex),n.type="text/html",e.appendChild(n),n.data="about:blank",n},c=(0,r.default)((function(){a.forEach((function(t){t(e)}))})),l,u=function t(){o&&o.parentNode&&(o.contentDocument&&o.contentDocument.defaultView.removeEventListener("resize",c),o.parentNode.removeChild(o),e.removeAttribute(i.SizeSensorId),o=void 0,a=[],n&&n())},h=function t(e){var n=a.indexOf(e);-1!==n&&a.splice(n,1),0===a.length&&o&&u()};return{element:e,bind:function t(e){o||(o=s()),-1===a.indexOf(e)&&a.push(e)},destroy:u,unbind:h}};e.createSensor=a},451:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var r=n(142),i=o(n(238));function o(t){return t&&t.__esModule?t:{default:t}}var a=function t(e,n){var o=void 0,a=[],s=(0,i.default)((function(){a.forEach((function(t){t(e)}))})),c=function t(){var n=new ResizeObserver(s);return n.observe(e),s(),n},l,u=function t(){o.disconnect(),a=[],o=void 0,e.removeAttribute(r.SizeSensorId),n&&n()},h=function t(e){var n=a.indexOf(e);-1!==n&&a.splice(n,1),0===a.length&&o&&u()};return{element:e,bind:function t(e){o||(o=c()),-1===a.indexOf(e)&&a.push(e)},destroy:u,unbind:h}};e.createSensor=a},452:function(t,e,n){"use strict";var r=t.exports;t.exports.isNumber=function(t){return"number"==typeof t},t.exports.findMin=function(t){if(0===t.length)return 1/0;for(var e=t[0],n=1;n<t.length;n++)e=Math.min(e,t[n]);return e},t.exports.findMax=function(t){if(0===t.length)return-1/0;for(var e=t[0],n=1;n<t.length;n++)e=Math.max(e,t[n]);return e},t.exports.findMinMulti=function(t){for(var e=r.findMin(t[0]),n=1;n<t.length;n++)e=Math.min(e,r.findMin(t[n]));return e},t.exports.findMaxMulti=function(t){for(var e=r.findMax(t[0]),n=1;n<t.length;n++)e=Math.max(e,r.findMax(t[n]));return e},t.exports.inside=function(t,e,n){return t<=n&&n<=e}},453:function(t,e,n){function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e,n){return(e=a(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t){var e=s(t,"string");return"symbol"===h(e)?e:String(e)}function s(t,e){if("object"!==h(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function c(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=l(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function t(){};return{s:i,n:function e(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function t(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o=!0,a=!1,s;return{s:function e(){n=n.call(t)},n:function t(){var e=n.next();return o=e.done,e},e:function t(e){a=!0,s=e},f:function t(){try{o||null==n.return||n.return()}finally{if(a)throw s}}}}function l(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function h(t){return(h="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)}var f=Object.create,p=Object.defineProperty,d=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,y=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,m,b=function t(e,n,r,i){if(n&&"object"===h(n)||"function"==typeof n){var o=c(g(n)),a;try{var s=function t(){var o=a.value;v.call(e,o)||o===r||p(e,o,{get:function t(){return n[o]},enumerable:!(i=d(n,o))||i.enumerable})};for(o.s();!(a=o.n()).done;)s()}catch(t){o.e(t)}finally{o.f()}}return e},x=function t(e,n,r){return r=null!=e?f(y(e)):{},b(!n&&e&&e.__esModule?r:p(r,"default",{value:e,enumerable:!0}),e)},O=function t(e){return b(p({},"__esModule",{value:!0}),e)},j={};(function t(e,n){for(var r in n)p(e,r,{get:n[r],enumerable:!0})})(j,{default:function t(){return S}}),t.exports=O(j);var w=x(n(2)),_=n(115),M,S=function t(e){return w.default.createElement(_.Pie,i({key:"".concat(e.width,"-").concat(e.height,"-").concat(e.autoFit),style:{flex:1}},e))}},454:function(t,e,n){function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e,n){return(e=a(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t){var e=s(t,"string");return"symbol"===h(e)?e:String(e)}function s(t,e){if("object"!==h(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function c(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=l(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function t(){};return{s:i,n:function e(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function t(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o=!0,a=!1,s;return{s:function e(){n=n.call(t)},n:function t(){var e=n.next();return o=e.done,e},e:function t(e){a=!0,s=e},f:function t(){try{o||null==n.return||n.return()}finally{if(a)throw s}}}}function l(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function h(t){return(h="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)}var f=Object.create,p=Object.defineProperty,d=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,y=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,m,b=function t(e,n,r,i){if(n&&"object"===h(n)||"function"==typeof n){var o=c(g(n)),a;try{var s=function t(){var o=a.value;v.call(e,o)||o===r||p(e,o,{get:function t(){return n[o]},enumerable:!(i=d(n,o))||i.enumerable})};for(o.s();!(a=o.n()).done;)s()}catch(t){o.e(t)}finally{o.f()}}return e},x=function t(e,n,r){return r=null!=e?f(y(e)):{},b(!n&&e&&e.__esModule?r:p(r,"default",{value:e,enumerable:!0}),e)},O=function t(e){return b(p({},"__esModule",{value:!0}),e)},j={};(function t(e,n){for(var r in n)p(e,r,{get:n[r],enumerable:!0})})(j,{default:function t(){return S}}),t.exports=O(j);var w=x(n(2)),_=n(115),M,S=function t(e){return w.default.createElement(_.Bar,i({key:"".concat(e.width,"-").concat(e.height,"-").concat(e.autoFit),style:{flex:1}},e))}},455:function(t,e,n){function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e,n){return(e=a(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t){var e=s(t,"string");return"symbol"===h(e)?e:String(e)}function s(t,e){if("object"!==h(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function c(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=l(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function t(){};return{s:i,n:function e(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function t(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o=!0,a=!1,s;return{s:function e(){n=n.call(t)},n:function t(){var e=n.next();return o=e.done,e},e:function t(e){a=!0,s=e},f:function t(){try{o||null==n.return||n.return()}finally{if(a)throw s}}}}function l(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function h(t){return(h="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)}var f=Object.create,p=Object.defineProperty,d=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,y=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,m,b=function t(e,n,r,i){if(n&&"object"===h(n)||"function"==typeof n){var o=c(g(n)),a;try{var s=function t(){var o=a.value;v.call(e,o)||o===r||p(e,o,{get:function t(){return n[o]},enumerable:!(i=d(n,o))||i.enumerable})};for(o.s();!(a=o.n()).done;)s()}catch(t){o.e(t)}finally{o.f()}}return e},x=function t(e,n,r){return r=null!=e?f(y(e)):{},b(!n&&e&&e.__esModule?r:p(r,"default",{value:e,enumerable:!0}),e)},O=function t(e){return b(p({},"__esModule",{value:!0}),e)},j={};(function t(e,n){for(var r in n)p(e,r,{get:n[r],enumerable:!0})})(j,{default:function t(){return S}}),t.exports=O(j);var w=x(n(2)),_=n(115),M,S=function t(e){return w.default.createElement(_.Area,i({key:"".concat(e.width,"-").concat(e.height,"-").concat(e.autoFit),style:{flex:1}},e))}},456:function(t,e,n){function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e,n){return(e=a(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t){var e=s(t,"string");return"symbol"===h(e)?e:String(e)}function s(t,e){if("object"!==h(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function c(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=l(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function t(){};return{s:i,n:function e(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function t(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o=!0,a=!1,s;return{s:function e(){n=n.call(t)},n:function t(){var e=n.next();return o=e.done,e},e:function t(e){a=!0,s=e},f:function t(){try{o||null==n.return||n.return()}finally{if(a)throw s}}}}function l(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function h(t){return(h="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)}var f=Object.create,p=Object.defineProperty,d=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,y=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,m,b=function t(e,n,r,i){if(n&&"object"===h(n)||"function"==typeof n){var o=c(g(n)),a;try{var s=function t(){var o=a.value;v.call(e,o)||o===r||p(e,o,{get:function t(){return n[o]},enumerable:!(i=d(n,o))||i.enumerable})};for(o.s();!(a=o.n()).done;)s()}catch(t){o.e(t)}finally{o.f()}}return e},x=function t(e,n,r){return r=null!=e?f(y(e)):{},b(!n&&e&&e.__esModule?r:p(r,"default",{value:e,enumerable:!0}),e)},O=function t(e){return b(p({},"__esModule",{value:!0}),e)},j={};(function t(e,n){for(var r in n)p(e,r,{get:n[r],enumerable:!0})})(j,{default:function t(){return S}}),t.exports=O(j);var w=x(n(2)),_=n(115),M,S=function t(e){return w.default.createElement(_.Column,i({key:"".concat(e.width,"-").concat(e.height,"-").concat(e.autoFit),style:{flex:1}},e))}},46:function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return ct})),n.d(e,"c",(function(){return l})),n.d(e,"d",(function(){return Mt}));var r={};n.r(r),n.d(r,"default",(function(){return V})),n.d(r,"assign",(function(){return j})),n.d(r,"format",(function(){return Y})),n.d(r,"parse",(function(){return G})),n.d(r,"defaultI18n",(function(){return C})),n.d(r,"setGlobalDateI18n",(function(){return k})),n.d(r,"setGlobalDateMasks",(function(){return z}));var i=n(0),o={};function a(t){return o[t]}function s(t,e){o[t]=e}var c,l=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){Object(i.b)(this.__cfg__,t),this.init()},t.prototype.clone=function(){return this.constructor(this.__cfg__)},t.prototype.getTicks=function(){var t=this;return Object(i.W)(this.ticks,(function(e,n){return Object(i.O)(e)?e:{text:t.getText(e,n),tickValue:e,value:t.scale(e)}}))},t.prototype.getText=function(t,e){var n=this.formatter,r=n?n(t,e):t;return Object(i.K)(r)||!Object(i.I)(r.toString)?"":r.toString()},t.prototype.getConfig=function(t){return this.__cfg__[t]},t.prototype.init=function(){Object(i.b)(this,this.__cfg__),this.setDomain(),Object(i.G)(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(Object(i.Q)(t)){var n=a(t);if(!n)throw new Error("There is no method to to calculate ticks!");e=n(this)}else Object(i.I)(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 Object(i.M)(t)?(t-e)/(n-e):NaN},t.prototype.calcValue=function(t,e,n){return e+t*(n-e)},t}(),u=n(1),h,f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cat",e.isCategory=!0,e}return Object(u.__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=Object(i.M)(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 Object(i.M)(e)&&!this.values.includes(e)&&(o=this.values[o]),t.prototype.getText.apply(this,Object(u.__spreadArrays)([o],n))},e.prototype.initCfg=function(){this.tickMethod="cat"},e.prototype.setDomain=function(){if(Object(i.K)(this.getConfig("min"))&&(this.min=0),Object(i.K)(this.getConfig("max"))){var t=this.values.length;this.max=t>1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(l),p=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,d="\\d\\d?",g="\\d\\d",y="\\d{3}",v="\\d{4}",m="[^\\s]+",b=/\[([^]*?)\]/gm;function x(t,e){for(var n=[],r=0,i=t.length;r<i;r++)n.push(t[r].substr(0,e));return n}var O=function(t){return function(e,n){var r,i=n[t].map((function(t){return t.toLowerCase()})).indexOf(e.toLowerCase());return i>-1?i:null}};function j(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 o=i[r];for(var a in o)t[a]=o[a]}return t}var w=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],_=["January","February","March","April","May","June","July","August","September","October","November","December"],M=x(_,3),S,C={dayNamesShort:x(w,3),dayNames:w,monthNamesShort:M,monthNames:_,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!=10?1:0)*t%10]}},A=j({},C),k=function(t){return A=j(A,t)},T=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},E=function(t,e){for(void 0===e&&(e=2),t=String(t);t.length<e;)t="0"+t;return t},P={D:function(t){return String(t.getDate())},DD:function(t){return E(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return E(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 E(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 E(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return E(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return E(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return E(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return E(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return E(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return E(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return E(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?"-":"+")+E(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+E(Math.floor(Math.abs(e)/60),2)+":"+E(Math.abs(e)%60,2)}},I=function(t){return+t-1},F=[null,"\\d\\d?"],L=[null,m],B=["isPm",m,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],D=["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}],R={D:["day","\\d\\d?"],DD:["day","\\d\\d"],Do:["day","\\d\\d?"+m,function(t){return parseInt(t,10)}],M:["month","\\d\\d?",I],MM:["month","\\d\\d",I],YY:["year","\\d\\d",function(t){var e,n=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+t>68?n-1:n)+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:F,dd:F,ddd:L,dddd:L,MMM:["month",m,O("monthNamesShort")],MMMM:["month",m,O("monthNames")],a:B,A:B,ZZ:D,Z:D},N={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"},z=function(t){return j(N,t)},Y=function(t,e,n){if(void 0===e&&(e=N.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 r=[];e=(e=N[e]||e).replace(b,(function(t,e){return r.push(e),"@@@"}));var i=j(j({},A),n);return(e=e.replace(p,(function(e){return P[e](t,i)}))).replace(/@@@/g,(function(){return r.shift()}))};function G(t,e,n){if(void 0===n&&(n={}),"string"!=typeof e)throw new Error("Invalid format in fecha parse");if(e=N[e]||e,t.length>1e3)return null;var r,i={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},o=[],a=[],s=e.replace(b,(function(t,e){return a.push(T(e)),"@@@"})),c={},l={};s=T(s).replace(p,(function(t){var e=R[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&&(l[i]=!0),o.push(e),"("+r+")"})),Object.keys(l).forEach((function(t){if(!c[t])throw new Error("Invalid format. "+t+" is required in specified format")})),s=s.replace(/@@@/g,(function(){return a.shift()}));var u=t.match(new RegExp(s,"i"));if(!u)return null;for(var h=j(j({},A),n),f=1,d;f<u.length;f++){var g=o[f-1],y=g[0],v=g[2],m=v?v(u[f],h):+u[f];if(null==m)return null;i[y]=m}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 x=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],f=0,O=x.length;f<O;f++)if(c[x[f][0]]&&i[x[f][0]]!==d[x[f][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}var H,V={format:Y,parse:G,defaultI18n:C,setGlobalDateI18n:k,setGlobalDateMasks:z},W=function(t){return function(e,n,r,o){for(var a=Object(i.K)(r)?0:r,s=Object(i.K)(o)?e.length:o;a<s;){var c=a+s>>>1;t(e[c])>n?s=c:a=c+1}return a}},X="format";function $(t,e){var n;return(r.format||V.format)(t,e)}function q(t){return Object(i.Q)(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),Object(i.E)(t)&&(t=t.getTime()),t}var U=1e3,K=6e4,Z=36e5,Q=24*Z,J=31*Q,tt=365*Q,et=[["HH:mm:ss",1e3],["HH:mm:ss",1e4],["HH:mm:ss",3e4],["HH:mm",6e4],["HH:mm",6e5],["HH:mm",18e5],["HH",Z],["HH",6*Z],["HH",12*Z],["YYYY-MM-DD",Q],["YYYY-MM-DD",4*Q],["YYYY-WW",7*Q],["YYYY-MM",J],["YYYY-MM",4*J],["YYYY-MM",6*J],["YYYY",380*Q]];function nt(t,e,n){var r=(e-t)/n,o=W((function(t){return t[1]}))(et,r)-1,a=et[o];return o<0?a=et[0]:o>=et.length&&(a=Object(i.U)(et)),a}var rt,it=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return Object(u.__extends)(e,t),e.prototype.translate=function(t){t=q(t);var e=this.values.indexOf(t);return-1===e&&(e=Object(i.M)(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):$(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;Object(i.j)(e,(function(t,n){e[n]=q(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(f),ot,at=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return Object(u.__extends)(e,t),e.prototype.scale=function(t){if(Object(i.K)(t))return NaN;var e=this.rangeMin(),n=this.rangeMax(),r,o,a;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=Object(i.z)(e),r=Object(i.U)(e);n<this.min&&(this.min=n),r>this.max&&(this.max=r),Object(i.K)(this.minLimit)||(this.min=n),Object(i.K)(this.maxLimit)||(this.max=r)},e.prototype.setDomain=function(){var t=Object(i.u)(this.values),e=t.min,n=t.max;Object(i.K)(this.min)&&(this.min=e),Object(i.K)(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=Object(i.l)(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}(l),st,ct=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return Object(u.__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}(at);function lt(t,e){var n=Math.E,r;return r=e>=0?Math.pow(n,Math.log(e)/t):-1*Math.pow(n,Math.log(-e)/t)}function ut(t,e){return 1===t?1:Math.log(e)/Math.log(t)}function ht(t,e,n){Object(i.K)(n)&&(n=Math.max.apply(null,t));var r=n;return Object(i.j)(t,(function(t){t>0&&t<r&&(r=t)})),r===n&&(r=n/e),r>1&&(r=1),r}function ft(t){var e=t.toString().split(/[eE]/),n=(e[0].split(".")[1]||"").length-+(e[1]||0);return n>0?n:0}function pt(t,e){var n=ft(t),r=ft(e),i=Math.pow(10,Math.max(n,r));return(t*i+e*i)/i}var dt,gt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return Object(u.__extends)(e,t),e.prototype.invert=function(t){var e=this.base,n=ut(e,this.max),r=this.rangeMin(),i=this.rangeMax()-r,o,a=this.positiveMin;if(a){if(0===t)return 0;var s=1/(n-(o=ut(e,a/e)))*i;if(t<s)return t/s*a}else o=ut(e,this.min);var c,l=(t-r)/i*(n-o)+o;return Math.pow(e,l)},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=ht(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,o;return i&&(n=1*i/r),o=t<i?t/i/(ut(r,e)-ut(r,n)):(ut(r,t)-ut(r,n))/(ut(r,e)-ut(r,n))},e}(at),yt,vt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pow",e}return Object(u.__extends)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t),n=this.exponent,r=lt(n,this.max),i=lt(n,this.min),o=e*(r-i)+i,a=o>=0?1:-1;return Math.pow(o,n)*a},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,i;return(lt(r,t)-lt(r,n))/(lt(r,e)-lt(r,n))},e}(at),mt,bt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return Object(u.__extends)(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),r=this.formatter;return r?r(n,e):$(n,this.mask)},e.prototype.scale=function(e){var n=e;return(Object(i.Q)(n)||Object(i.E)(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return q(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(Object(i.K)(e)&&Object(i.M)(e)||(this.min=this.translate(this.min)),Object(i.K)(n)&&Object(i.M)(n)||(this.max=this.translate(this.max)),t&&t.length){var r=[],o=1/0,a=o,s=0;Object(i.j)(t,(function(t){var e=q(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");o>e?(a=o,o=e):a>e&&(a=e),s<e&&(s=e),r.push(e)})),t.length>1&&(this.minTickInterval=a-o),Object(i.K)(e)&&(this.min=o),Object(i.K)(n)&&(this.max=s)}},e}(ct),xt,Ot=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return Object(u.__extends)(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,r=this.getInvertPercent(t),o=Math.floor(r*(n-1));if(o>=n-1)return Object(i.U)(e);if(o<0)return Object(i.z)(e);var a=e[o],s,c=o/(n-1),l;return a+(r-c)/((o+1)/(n-1)-c)*(e[o+1]-a)},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||(Object(i.U)(e)!==this.max&&e.push(this.max),Object(i.z)(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(t<Object(i.z)(e))return 0;if(t>Object(i.U)(e))return 1;var n=0;return Object(i.j)(e,(function(e,r){if(!(t>=e))return!1;n=r})),n/(e.length-1)},e}(at),jt,wt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return Object(u.__extends)(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(Ot),_t={};function Mt(t){return _t[t]}function St(t,e){if(Mt(t))throw new Error("type '"+t+"' existed.");_t[t]=e}var Ct,At=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return Object(u.__extends)(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&Object(i.M)(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}(l);function kt(t){var e=t.values,n=t.tickInterval,r=t.tickCount,o=t.showLast;if(Object(i.M)(n)){var a=Object(i.l)(e,(function(t,e){return e%n==0})),s=Object(i.U)(e);return o&&Object(i.U)(a)!==s&&a.push(s),a}var c=e.length,l=t.min,u=t.max;if(Object(i.K)(l)&&(l=0),Object(i.K)(u)&&(u=e.length-1),!Object(i.M)(r)||r>=c)return e.slice(l,u+1);if(r<=0||u<=0)return[];for(var h=1===r?c:Math.floor(c/(r-1)),f=[],p=l,d=0;d<r&&!(p>=u);d++)p=Math.min(l+d*h,u),d===r-1&&o?f.push(e[u]):f.push(e[p]);return f}function Tt(t){var e=t.min,n=t.max,r=t.nice,i=t.tickCount,o=new Lt;return o.domain([e,n]),r&&o.nice(i),o.ticks(i)}var Et=5,Pt=Math.sqrt(50),It=Math.sqrt(10),Ft=Math.sqrt(2),Lt=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=this._domain.slice(),i=0,o=this._domain.length-1,a=this._domain[i],s=this._domain[o],c;return s<a&&(a=(e=[s,a])[0],s=e[1],i=(n=[o,i])[0],o=n[1]),(c=Dt(a,s,t))>0?c=Dt(a=Math.floor(a/c)*c,s=Math.ceil(s/c)*c,t):c<0&&(c=Dt(a=Math.ceil(a*c)/c,s=Math.floor(s*c)/c,t)),c>0?(r[i]=Math.floor(a/c)*c,r[o]=Math.ceil(s/c)*c,this.domain(r)):c<0&&(r[i]=Math.ceil(a*c)/c,r[o]=Math.floor(s*c)/c,this.domain(r)),this},t.prototype.ticks=function(t){return void 0===t&&(t=5),Bt(this._domain[0],this._domain[this._domain.length-1],t||5)},t}();function Bt(t,e,n){var r,i=-1,o,a,s;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];if((r=e<t)&&(o=t,t=e,e=o),0===(s=Dt(t,e,n))||!isFinite(s))return[];if(s>0)for(t=Math.ceil(t/s),e=Math.floor(e/s),a=new Array(o=Math.ceil(e-t+1));++i<o;)a[i]=(t+i)*s;else for(t=Math.floor(t*s),e=Math.ceil(e*s),a=new Array(o=Math.ceil(t-e+1));++i<o;)a[i]=(t-i)/s;return r&&a.reverse(),a}function Dt(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Pt?10:o>=It?5:o>=Ft?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Pt?10:o>=It?5:o>=Ft?2:1)}function Rt(t,e,n){var r;return(r="ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e}function Nt(t,e,n){var r=Rt(t,n,"floor"),o=Rt(e,n,"ceil");r=Object(i.p)(r,n),o=Object(i.p)(o,n);for(var a=[],s=Math.max((o-r)/(Math.pow(2,12)-1),n),c=r;c<=o;c+=s){var l=Object(i.p)(c,s);a.push(l)}return{min:r,max:o,ticks:a}}function zt(t,e,n){var r,o=t.minLimit,a=t.maxLimit,s=t.min,c=t.max,l=t.tickCount,u=void 0===l?5:l,h=Object(i.K)(o)?Object(i.K)(e)?s:e:o,f=Object(i.K)(a)?Object(i.K)(n)?c:n:a;if(h>f&&(f=(r=[h,f])[0],h=r[1]),u<=2)return[h,f];for(var p=(f-h)/(u-1),d=[],g=0;g<u;g++)d.push(h+p*g);return d}function Yt(t){var e=t.min,n=t.max,r=t.tickInterval,o=t.minLimit,a=t.maxLimit,s=Tt(t);return Object(i.K)(o)&&Object(i.K)(a)?r?Nt(e,n,r).ticks:s:zt(t,Object(i.z)(s),Object(i.U)(s))}function Gt(t){return Math.abs(t)<1e-15?t:parseFloat(t.toFixed(15))}var Ht=[1,5,2,2.5,4,3],Vt=[1,5,2,2.5,4,3,1.5,7,6,8,9],Wt=100*Number.EPSILON;function Xt(t,e){return(t%e+e)%e}function $t(t){return Math.round(1e12*t)/1e12}function qt(t,e,n,r,o,a){var s=Object(i.mb)(e),c=Object(i.B)(e,t),l=0,u=Xt(r,a);return(u<Wt||a-u<Wt)&&r<=0&&o>=0&&(l=1),1-c/(s-1)-n+l}function Ut(t,e,n){var r=Object(i.mb)(e),o,a=1;return 1-Object(i.B)(e,t)/(r-1)-n+1}function Kt(t,e,n,r,i,o){var a=(t-1)/(o-i),s=(e-1)/(Math.max(o,r)-Math.min(n,i));return 2-Math.max(a/s,s/a)}function Zt(t,e){return t>=e?2-(t-1)/(e-1):1}function Qt(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 Jt(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}function te(){return 1}function ee(t,e,n,r,o,a){void 0===n&&(n=5),void 0===r&&(r=!0),void 0===o&&(o=Ht),void 0===a&&(a=[.25,.2,.5,.05]);var s=n<0?0:Math.round(n);if(Number.isNaN(t)||Number.isNaN(e)||"number"!=typeof t||"number"!=typeof e||!s)return{min:0,max:0,ticks:[]};if(e-t<1e-15||1===s)return{min:t,max:e,ticks:[t]};if(e-t>1e148){var c,l=(e-t)/(c=n||5);return{min:t,max:e,ticks:Array(c).fill(null).map((function(e,n){return Gt(t+l*n)}))}}for(var u={score:-2,lmin:0,lmax:0,lstep:0},h=1;h<1/0;){for(var f=0;f<o.length;f+=1){var p=o[f],d=Ut(p,o,h);if(a[0]*d+a[1]+a[2]+a[3]<u.score){h=1/0;break}for(var g=2;g<1/0;){var y=Zt(g,s);if(a[0]*d+a[1]+a[2]*y+a[3]<u.score)break;for(var v=(e-t)/(g+1)/h/p,m=Math.ceil(Math.log10(v));m<1/0;){var b=h*p*Math.pow(10,m),x=Jt(t,e,b*(g-1));if(a[0]*d+a[1]*x+a[2]*y+a[3]<u.score)break;var O=Math.floor(e/b)*h-(g-1)*h,j=Math.ceil(t/b)*h;if(O<=j)for(var c=j-O,w=0;w<=c;w+=1){var _,M=(O+w)*(b/h),S=M+b*(g-1),C=b,A=qt(p,o,h,M,S,C),k=Qt(t,e,M,S),T=Kt(g,s,t,e,M,S),E=1,P=a[0]*A+a[1]*k+a[2]*T+1*a[3];P>u.score&&(!r||M<=t&&S>=e)&&(u.lmin=M,u.lmax=S,u.lstep=C,u.score=P)}m+=1}g+=1}}h+=1}var I=Gt(u.lmax),F=Gt(u.lmin),L=Gt(u.lstep),B=Math.floor($t((I-F)/L))+1,D=new Array(B);D[0]=Gt(F);for(var f=1;f<B;f++)D[f]=Gt(D[f-1]+L);return{min:Math.min(t,Object(i.z)(D)),max:Math.max(e,Object(i.U)(D)),ticks:D}}function ne(t){var e=t.min,n=t.max,r=t.tickCount,o=t.nice,a=t.tickInterval,s=t.minLimit,c=t.maxLimit,l=ee(e,n,r,o).ticks;return Object(i.K)(s)&&Object(i.K)(c)?a?Nt(e,n,a).ticks:l:zt(t,Object(i.z)(l),Object(i.U)(l))}function re(t){var e=t.base,n=t.tickCount,r=t.min,i=t.max,o=t.values,a,s=ut(e,i);if(r>0)a=Math.floor(ut(e,r));else{var c=ht(o,e,i);a=Math.floor(ut(e,c))}for(var l=s-a,u=Math.ceil(l/n),h=[],f=a;f<s+u;f+=u)h.push(Math.pow(e,f));return r<=0&&h.unshift(0),h}function ie(t,e,n){if(void 0===n&&(n=5),t===e)return{max:e,min:t,ticks:[t]};var r=n<0?0:Math.round(n);if(0===r)return{max:e,min:t,ticks:[]};var i=1.5,o=2.75,a,s=(e-t)/r,c=Math.pow(10,Math.floor(Math.log10(s))),l=c;2*c-s<i*(s-l)&&5*c-s<o*(s-(l=2*c))&&10*c-s<i*(s-(l=5*c))&&(l=10*c);for(var u=Math.ceil(e/l),h=Math.floor(t/l),f=Math.max(u*l,e),p=Math.min(h*l,t),d=Math.floor((f-p)/l)+1,g=new Array(d),y=0;y<d;y++)g[y]=Gt(p+y*l);return{min:p,max:f,ticks:g}}function oe(t){var e=t.exponent,n=t.tickCount,r=Math.ceil(lt(e,t.max)),i,o;return ie(Math.floor(lt(e,t.min)),r,n).ticks.map((function(t){var n=t>=0?1:-1;return Math.pow(t,e)*n}))}function ae(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]}function se(t){var e=t.tickCount,n=t.values;if(!n||!n.length)return[];for(var r=n.slice().sort((function(t,e){return t-e})),i=[],o=0;o<e;o++){var a=o/(e-1);i.push(ae(r,a))}return i}function ce(t){var e=t.min,n=t.max,r=t.tickCount,o=t.tickInterval,a=t.minLimit,s=t.maxLimit,c=ie(e,n,r).ticks;return Object(i.K)(a)&&Object(i.K)(s)?o?Nt(e,n,o).ticks:c:zt(t,Object(i.z)(c),Object(i.U)(c))}function le(t){var e=t.min,n=t.max,r=t.minTickInterval,i=t.tickInterval,o=t.tickCount;if(i)o=Math.ceil((n-e)/i);else{var a,s=(n-e)/(i=nt(e,n,o)[1])/o;s>1&&(i*=Math.ceil(s)),r&&i<r&&(i=r)}i=Math.max(Math.floor((n-e)/(Math.pow(2,12)-1)),i);for(var c=[],l=e;l<n+i;l+=i)c.push(l);return c}function ue(t){var e;return kt(Object(u.__assign)({showLast:!0},t))}function he(t){return new Date(t).getFullYear()}function fe(t){return new Date(t,0,1).getTime()}function pe(t){return new Date(t).getMonth()}function de(t,e){var n=he(t),r=he(e),i=pe(t),o;return 12*(r-n)+(pe(e)-i)%12}function ge(t,e){return new Date(t,e,1).getTime()}function ye(t,e){return Math.ceil((e-t)/Q)}function ve(t,e){return Math.ceil((e-t)/Z)}function me(t,e){return Math.ceil((e-t)/6e4)}function be(t){var e=t.min,n=t.max,r=t.minTickInterval,i=t.tickCount,o=t.tickInterval,a=[];o||(o=(n-e)/i,r&&o<r&&(o=r)),o=Math.max(Math.floor((n-e)/(Math.pow(2,12)-1)),o);var s=he(e);if(o>tt)for(var c=he(n),l=Math.ceil(o/tt),u=s;u<=c+l;u+=l)a.push(fe(u));else if(o>J)for(var h=Math.ceil(o/J),f=pe(e),p=de(e,n),u=0;u<=p+h;u+=h)a.push(ge(s,u+f));else if(o>Q)for(var d,g=(d=new Date(e)).getFullYear(),y=d.getMonth(),v=d.getDate(),m=Math.ceil(o/Q),b=ye(e,n),u=0;u<b+m;u+=m)a.push(new Date(g,y,v+u).getTime());else if(o>Z)for(var d,g=(d=new Date(e)).getFullYear(),y=d.getMonth(),m=d.getDate(),x=d.getHours(),O=Math.ceil(o/Z),j=ve(e,n),u=0;u<=j+O;u+=O)a.push(new Date(g,y,m,x+u).getTime());else if(o>6e4)for(var w=me(e,n),_=Math.ceil(o/6e4),u=0;u<=w+_;u+=_)a.push(e+6e4*u);else{var M=o;M<1e3&&(M=1e3);for(var S=1e3*Math.floor(e/1e3),C=Math.ceil((n-e)/1e3),A=Math.ceil(M/1e3),u=0;u<C+A;u+=A)a.push(S+1e3*u)}return a.length>=512&&console.warn("Notice: current ticks length("+a.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+o+") is too small, increase the value to solve the problem!"),a}s("cat",kt),s("time-cat",ue),s("wilkinson-extended",ne),s("r-pretty",ce),s("time",le),s("time-pretty",be),s("log",re),s("pow",oe),s("quantile",se),s("d3-linear",Yt),St("cat",f),St("category",f),St("identity",At),St("linear",ct),St("log",gt),St("pow",vt),St("time",bt),St("timeCat",it),St("quantize",Ot),St("quantile",wt)},48:function(t,e,n){"use strict";n.r(e),n.d(e,"catmullRomToBezier",(function(){return c})),n.d(e,"fillPath",(function(){return I})),n.d(e,"fillPathByDiff",(function(){return D})),n.d(e,"formatPath",(function(){return z})),n.d(e,"intersection",(function(){return k})),n.d(e,"parsePathArray",(function(){return y})),n.d(e,"parsePathString",(function(){return s})),n.d(e,"pathToAbsolute",(function(){return u})),n.d(e,"pathToCurve",(function(){return d})),n.d(e,"rectPath",(function(){return j}));var r=n(0),i="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029",o=new RegExp("([a-z])["+i+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+i+"]*,?["+i+"]*)+)","ig"),a=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+i+"]*,?["+i+"]*","ig"),s=function(t){if(!t)return null;if(Object(r.C)(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(o,(function(r,i,o){var s=[],c=i.toLowerCase();if(o.replace(a,(function(t,e){e&&s.push(+e)})),"m"===c&&s.length>2&&(n.push([i].concat(s.splice(0,2))),c="l",i="m"===i?"l":"L"),"o"===c&&1===s.length&&n.push([i,s[0]]),"r"===c)n.push([i].concat(s));else for(;s.length>=e[c]&&(n.push([i].concat(s.splice(0,e[c]))),e[c]););return t})),n},c=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var o=[{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?o[3]={x:+t[0],y:+t[1]}:i-2===r&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?o[3]=o[2]:r||(o[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n},l=function(t,e,n,r,i){var o=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var a=Math.PI/180,s=t+n*Math.cos(-r*a),c=t+n*Math.cos(-i*a),l,u;o=[["M",s,e+n*Math.sin(-r*a)],["A",n,n,0,+(i-r>180),0,c,e+n*Math.sin(-i*a)]]}else o=[["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 o},u=function(t){if(!(t=s(t))||!t.length)return[["M",0,0]];var e=[],n=0,r=0,i=0,o=0,a=0,u,h;"M"===t[0][0]&&(i=n=+t[0][1],o=r=+t[0][2],a++,e[0]=["M",n,r]);for(var f=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),p=void 0,d=void 0,g=a,y=t.length;g<y;g++){if(e.push(p=[]),(u=(d=t[g])[0])!==u.toUpperCase())switch(p[0]=u.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]+n,p[7]=+d[7]+r;break;case"V":p[1]=+d[1]+r;break;case"H":p[1]=+d[1]+n;break;case"R":for(var v=2,m=(h=[n,r].concat(d.slice(1))).length;v<m;v++)h[v]=+h[v]+n,h[++v]=+h[v]+r;e.pop(),e=e.concat(c(h,f));break;case"O":e.pop(),(h=l(n,r,d[1],d[2])).push(h[0]),e=e.concat(h);break;case"U":e.pop(),e=e.concat(l(n,r,d[1],d[2],d[3])),p=["U"].concat(e[e.length-1].slice(-2));break;case"M":i=+d[1]+n,o=+d[2]+r;break;default:for(var v=1,m=d.length;v<m;v++)p[v]=+d[v]+(v%2?n:r)}else if("R"===u)h=[n,r].concat(d.slice(1)),e.pop(),e=e.concat(c(h,f)),p=["R"].concat(d.slice(-2));else if("O"===u)e.pop(),(h=l(n,r,d[1],d[2])).push(h[0]),e=e.concat(h);else if("U"===u)e.pop(),e=e.concat(l(n,r,d[1],d[2],d[3])),p=["U"].concat(e[e.length-1].slice(-2));else for(var b=0,x=d.length;b<x;b++)p[b]=d[b];if("O"!==(u=u.toUpperCase()))switch(p[0]){case"Z":n=+i,r=+o;break;case"H":n=p[1];break;case"V":r=p[1];break;case"M":i=p[p.length-2],o=p[p.length-1];break;default:n=p[p.length-2],r=p[p.length-1]}}return e},h=function(t,e,n,r){return[t,e,n,r,n,r]},f=function(t,e,n,r,i,o){var a=1/3,s=2/3;return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*o+2/3*r,i,o]},p=function(t,e,n,r,i,o,a,s,c,l){n===r&&(n+=1);var u=120*Math.PI/180,h=Math.PI/180*(+i||0),f=[],d,g,y,v,m,b=function(t,e,n){var r,i;return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(l)g=l[0],y=l[1],v=l[2],m=l[3];else{t=(d=b(t,e,-h)).x,e=d.y,s=(d=b(s,c,-h)).x,c=d.y,t===s&&e===c&&(s+=1,c+=1);var x=(t-s)/2,O=(e-c)/2,j=x*x/(n*n)+O*O/(r*r);j>1&&(n*=j=Math.sqrt(j),r*=j);var w=n*n,_=r*r,M=(o===a?-1:1)*Math.sqrt(Math.abs((w*_-w*O*O-_*x*x)/(w*O*O+_*x*x)));v=M*n*O/r+(t+s)/2,m=M*-r*x/n+(e+c)/2,g=Math.asin(((e-m)/r).toFixed(9)),y=Math.asin(((c-m)/r).toFixed(9)),g=t<v?Math.PI-g:g,y=s<v?Math.PI-y:y,g<0&&(g=2*Math.PI+g),y<0&&(y=2*Math.PI+y),a&&g>y&&(g-=2*Math.PI),!a&&y>g&&(y-=2*Math.PI)}var S=y-g;if(Math.abs(S)>u){var C=y,A=s,k=c;y=g+u*(a&&y>g?1:-1),s=v+n*Math.cos(y),c=m+r*Math.sin(y),f=p(s,c,n,r,i,0,a,A,k,[y,C,v,m])}S=y-g;var T=Math.cos(g),E=Math.sin(g),P=Math.cos(y),I=Math.sin(y),F=Math.tan(S/4),L=4/3*n*F,B=4/3*r*F,D=[t,e],R=[t+L*E,e-B*T],N=[s+L*I,c-B*P],z=[s,c];if(R[0]=2*D[0]-R[0],R[1]=2*D[1]-R[1],l)return[R,N,z].concat(f);for(var Y=[],G=0,H=(f=[R,N,z].concat(f).join().split(",")).length;G<H;G++)Y[G]=G%2?b(f[G-1],f[G],h).y:b(f[G],f[G+1],h).x;return Y},d=function(t,e){var n=u(t),r=e&&u(e),i={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},a=[],s=[],c="",l="",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(f(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(f(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(h(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(h(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(h(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(h(e.x,e.y,e.X,e.Y))}return t},y=function(t,e){if(t[e].length>7){t[e].shift();for(var i=t[e];i.length;)a[e]="A",r&&(s[e]="A"),t.splice(e++,0,["C"].concat(i.splice(0,6)));t.splice(e,1),d=Math.max(n.length,r&&r.length||0)}},v=function(t,e,i,o,a){t&&e&&"M"===t[a][0]&&"M"!==e[a][0]&&(e.splice(a,0,["M",o.x,o.y]),i.bx=0,i.by=0,i.x=t[a][1],i.y=t[a][2],d=Math.max(n.length,r&&r.length||0))};d=Math.max(n.length,r&&r.length||0);for(var m=0;m<d;m++){n[m]&&(c=n[m][0]),"C"!==c&&(a[m]=c,m&&(l=a[m-1])),n[m]=g(n[m],i,l),"A"!==a[m]&&"C"===c&&(a[m]="C"),y(n,m),r&&(r[m]&&(c=r[m][0]),"C"!==c&&(s[m]=c,m&&(l=s[m-1])),r[m]=g(r[m],o,l),"A"!==s[m]&&"C"===c&&(s[m]="C"),y(r,m)),v(n,r,i,o,m),v(r,n,o,i,m);var b=n[m],x=r&&r[m],O=b.length,j=r&&x.length;i.x=b[O-2],i.y=b[O-1],i.bx=parseFloat(b[O-4])||i.x,i.by=parseFloat(b[O-3])||i.y,o.bx=r&&(parseFloat(x[j-4])||o.x),o.by=r&&(parseFloat(x[j-3])||o.y),o.x=r&&x[j-2],o.y=r&&x[j-1]}return r?[n,r]:n},g=/,?([a-z]),?/gi,y=function(t){return t.join(",").replace(g,"$1")},v=function(t,e,n,r,i){var o,a;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,o,a,s,c){null===c&&(c=1);for(var l=(c=c>1?1:c<0?0:c)/2,u=12,h=[-.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],p=0,d=0;d<u;d++){var g=l*h[d]+l,y=v(g,t,n,i,a),m=v(g,e,r,o,s),b=y*y+m*m;p+=f[d]*Math.sqrt(b)}return l*p},b=function(t,e,n,r,i,o,a,s){for(var c=[],l=[[],[]],u,h,f,p,d=0;d<2;++d)if(0===d?(h=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*a,f=3*n-3*t):(h=6*e-12*r+6*o,u=-3*e+9*r-9*o+3*s,f=3*r-3*e),Math.abs(u)<1e-12){if(Math.abs(h)<1e-12)continue;(p=-f/h)>0&&p<1&&c.push(p)}else{var g=h*h-4*f*u,y=Math.sqrt(g);if(!(g<0)){var v=(-h+y)/(2*u);v>0&&v<1&&c.push(v);var m=(-h-y)/(2*u);m>0&&m<1&&c.push(m)}}for(var b=c.length,x=b,O;b--;)O=1-(p=c[b]),l[0][b]=O*O*O*t+3*O*O*p*n+3*O*p*p*i+p*p*p*a,l[1][b]=O*O*O*e+3*O*O*p*r+3*O*p*p*o+p*p*p*s;return l[0][x]=t,l[1][x]=e,l[0][x+1]=a,l[1][x+1]=s,l[0].length=l[1].length=x+2,{min:{x:Math.min.apply(0,l[0]),y:Math.min.apply(0,l[1])},max:{x:Math.max.apply(0,l[0]),y:Math.max.apply(0,l[1])}}},x=function(t,e,n,r,i,o,a,s){if(!(Math.max(t,n)<Math.min(i,a)||Math.min(t,n)>Math.max(i,a)||Math.max(e,r)<Math.min(o,s)||Math.min(e,r)>Math.max(o,s))){var c,l,u=(t-n)*(o-s)-(e-r)*(i-a);if(u){var h=((t*r-e*n)*(i-a)-(t-n)*(i*s-o*a))/u,f=((t*r-e*n)*(o-s)-(e-r)*(i*s-o*a))/u,p=+h.toFixed(2),d=+f.toFixed(2);if(!(p<+Math.min(t,n).toFixed(2)||p>+Math.max(t,n).toFixed(2)||p<+Math.min(i,a).toFixed(2)||p>+Math.max(i,a).toFixed(2)||d<+Math.min(e,r).toFixed(2)||d>+Math.max(e,r).toFixed(2)||d<+Math.min(o,s).toFixed(2)||d>+Math.max(o,s).toFixed(2)))return{x:h,y:f}}}},O=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},j=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 o=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return o.parsePathArray=y,o},w=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:j(t,e,n,r),vb:[t,e,n,r].join(" ")}},_=function(t,e){return t=w(t),e=w(e),O(e,t.x,t.y)||O(e,t.x2,t.y)||O(e,t.x,t.y2)||O(e,t.x2,t.y2)||O(t,e.x,e.y)||O(t,e.x2,e.y)||O(t,e.x,e.y2)||O(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)},M=function(t,e,n,i,o,a,s,c){Object(r.C)(t)||(t=[t,e,n,i,o,a,s,c]);var l=b.apply(null,t);return w(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},S=function(t,e,n,r,i,o,a,s,c){var l=1-c,u=Math.pow(l,3),h=Math.pow(l,2),f=c*c,p=f*c,d,g,y=t+2*c*(n-t)+f*(i-2*n+t),v=e+2*c*(r-e)+f*(o-2*r+e),m=n+2*c*(i-n)+f*(a-2*i+n),b=r+2*c*(o-r)+f*(s-2*o+r),x,O,j,w,_;return{x:u*t+3*h*c*n+3*l*c*c*i+p*a,y:u*e+3*h*c*r+3*l*c*c*o+p*s,m:{x:y,y:v},n:{x:m,y:b},start:{x:l*t+c*n,y:l*e+c*r},end:{x:l*i+c*a,y:l*o+c*s},alpha:90-180*Math.atan2(y-m,v-b)/Math.PI}},C=function(t,e,n){var r=M(t),i=M(e);if(!_(r,i))return n?0:[];for(var o,a,s=~~(m.apply(0,t)/8),c=~~(m.apply(0,e)/8),l=[],u=[],h={},f=n?0:[],p=0;p<s+1;p++){var d=S.apply(0,t.concat(p/s));l.push({x:d.x,y:d.y,t:p/s})}for(var p=0;p<c+1;p++){var d=S.apply(0,e.concat(p/c));u.push({x:d.x,y:d.y,t:p/c})}for(var p=0;p<s;p++)for(var g=0;g<c;g++){var y=l[p],v=l[p+1],b=u[g],O=u[g+1],j=Math.abs(v.x-y.x)<.001?"y":"x",w=Math.abs(O.x-b.x)<.001?"y":"x",C=x(y.x,y.y,v.x,v.y,b.x,b.y,O.x,O.y);if(C){if(h[C.x.toFixed(4)]===C.y.toFixed(4))continue;h[C.x.toFixed(4)]=C.y.toFixed(4);var A=y.t+Math.abs((C[j]-y[j])/(v[j]-y[j]))*(v.t-y.t),k=b.t+Math.abs((C[w]-b[w])/(O[w]-b[w]))*(O.t-b.t);A>=0&&A<=1&&k>=0&&k<=1&&(n?f+=1:f.push({x:C.x,y:C.y,t1:A,t2:k}))}}return f},A=function(t,e,n){var r,i,o,a,s,c,l,u,h,f;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=c=v[2];else{"C"===v[0]?(h=[r,i].concat(v.slice(1)),r=h[6],i=h[7]):(h=[r,i,r,i,s,c,s,c],r=s,i=c);for(var m=0,b=e.length;m<b;m++){var x=e[m];if("M"===x[0])o=l=x[1],a=u=x[2];else{"C"===x[0]?(f=[o,a].concat(x.slice(1)),o=f[6],a=f[7]):(f=[o,a,o,a,l,u,l,u],o=l,a=u);var O=C(h,f,n);if(n)p+=O;else{for(var j=0,w=O.length;j<w;j++)O[j].segment1=g,O[j].segment2=m,O[j].bez1=h,O[j].bez2=f;p=p.concat(O)}}}}}return p},k=function(t,e){return A(t,e)};function T(t,e){var n=[],r=[];function i(t,e){if(1===t.length)n.push(t[0]),r.push(t[0]);else{for(var o=[],a=0;a<t.length-1;a++)0===a&&n.push(t[0]),a===t.length-2&&r.push(t[a+1]),o[a]=[(1-e)*t[a][0]+e*t[a+1][0],(1-e)*t[a][1]+e*t[a+1][1]];i(o,e)}}return t.length&&i(t,e),{left:n,right:r.reverse()}}function E(t,e,n){var r=[[t[1],t[2]]];n=n||2;var i=[],o;"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,s=1/n,c=0;c<n-1;c++){var l,u=T(a,s/(1-s*c));i.push(u.left),a=u.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])}))}var P=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(E(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var o=0;o<=n-1;o++)r.push(i)}return r},I=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a<r-n;a++)t.push(t[0]);return t}for(var a=0;a<r;a++){var s=Math.floor(i*a);o[s]=(o[s]||0)+1}var c=o.reduce((function(e,r,i){return i===n?e.concat(t[n]):e.concat(P(t[i],t[i+1],r))}),[]);return c.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||c.push("Z"),c},F=function(t,e){if(t.length!==e.length)return!1;var n=!0;return Object(r.j)(t,(function(t,r){if(t!==e[r])return n=!1,!1})),n};function L(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}}var B=function(t,e){var n=t.length,r=e.length,i,o,a=0;if(0===n||0===r)return null;for(var s=[],c=0;c<=n;c++)s[c]=[],s[c][0]={min:c};for(var l=0;l<=r;l++)s[0][l]={min:l};for(var c=1;c<=n;c++){i=t[c-1];for(var l=1;l<=r;l++){o=e[l-1],a=F(i,o)?0:1;var u=s[c-1][l].min+1,h=s[c][l-1].min+1,f=s[c-1][l-1].min+a;s[c][l]=L(u,h,f)}}return s},D=function(t,e){var n=B(t,e),r=t.length,i=e.length,o=[],a=1,s=1;if(n[r][i].min!==r){for(var c=1;c<=r;c++){var l=n[c][c].min;s=c;for(var u=a;u<=i;u++)n[c][u].min<l&&(l=n[c][u].min,s=u);a=s,n[c][a].type&&o.push({index:c-1,type:n[c][a].type})}for(var c=o.length-1;c>=0;c--)a=o[c].index,"add"===o[c].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}var h=i-(r=t.length);if(r<i)for(var c=0;c<h;c++)"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};function R(t,e,n){for(var r=[].concat(t),i,o=1/(n+1),a=N(e)[0],s=1;s<=n;s++)o*=s,0===(i=Math.floor(t.length*o))?r.unshift([a[0]*o+t[i][0]*(1-o),a[1]*o+t[i][1]*(1-o)]):r.splice(i,0,[a[0]*o+t[i][0]*(1-o),a[1]*o+t[i][1]*(1-o)]);return r}function N(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}var z=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=N(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=R(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=R(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=R(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}},542:function(t,e,n){"use strict";n.r(e),n.d(e,"getUniqueId",(function(){return r})),n.d(e,"isFunction",(function(){return i})),n.d(e,"isArr",(function(){return o})),n.d(e,"isString",(function(){return a})),n.d(e,"isNumber",(function(){return s})),n.d(e,"isUndefined",(function(){return c})),n.d(e,"isBoolean",(function(){return l})),n.d(e,"isJson",(function(){return u})),n.d(e,"isPlainObject",(function(){return g})),n.d(e,"setTheme",(function(){return y})),n.d(e,"formatDate",(function(){return x})),n.d(e,"excelDateToJSDate",(function(){return O})),n.d(e,"jsDateToExcelDate",(function(){return j})),n.d(e,"isIpad",(function(){return w})),n.d(e,"isMobile",(function(){return _})),n.d(e,"isAndroid",(function(){return M})),n.d(e,"isIos",(function(){return S})),n.d(e,"sendWarningLog",(function(){return I}));var r=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:11;return e+(Math.random()+"").replace(/\D/g,"").substring(0,n)},i=function t(e){return"function"==typeof e},o=function t(e){return Array.isArray(e)},a=function t(e){return"string"==typeof e},s=function t(e){return"number"==typeof e},c=function t(e){return void 0===e},l=function t(e){return"boolean"==typeof e},u=function t(e){if("string"!=typeof e)return!1;try{return JSON.parse(e)}catch(t){return!1}},h=Object.getPrototypeOf,f={}.hasOwnProperty,p=f.toString,d=p.call(Object),g=function t(e){var n,r;return!(!e||"[object Object]"!==toString.call(e))&&(!(n=h(e))||"function"==typeof(r=f.call(n,"constructor")&&n.constructor)&&p.call(r)===d)},y=function t(e){try{for(var n=Object.entries(e),r=0,i=n;r<i.length;r++){var o=i[r];document.documentElement.style.setProperty(o[0],o[1])}}catch(t){console.error(t)}},v=n(87),m=n.n(v),b=["D MMM YYYY, hh:mma","YYYY-MM-DD"],x=function t(e,n){var r=n||b[0];return e?m()(e).format(r):e},O=function t(e){var n,r;return x(new Date(864e5*(e-25569)),b[1])},j=function t(e){var n,r,i,o;return(new Date(e)-new Date(Date.UTC(1900,0,1)))/864e5+25569},w=function t(){var e=navigator.userAgent,n=-1!=e.indexOf("Safari")&&-1!=e.indexOf("Version"),r=-1!=e.indexOf("iPhone")&&-1!=e.indexOf("Version"),i=n&&!r&&"ontouchend"in document;return!(!/iphone|ios|ipad|android|mobile/i.test(navigator.userAgent.toLowerCase())&&!i)},_=function t(){var e=window.navigator.userAgent.toLowerCase(),n="ipad"==e.match(/ipad/i),r="iphone os"==e.match(/iphone os/i),i="midp"==e.match(/midp/i),o="rv:1.2.3.4"==e.match(/rv:1.2.3.4/i),a="ucweb"==e.match(/ucweb/i),s="android"==e.match(/android/i),c="windows ce"==e.match(/windows ce/i),l="windows mobile"==e.match(/windows mobile/i);return!!(n||r||i||o||a||s||c||l||w())},M=function t(){return-1!==navigator.userAgent.toLowerCase().indexOf("android")},S=function t(){return/iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase())},C="https://open.feishu.cn/open-apis/bot/v2/hook/6f328eb8-782c-4305-a0b5-d14986a24a0d";function A(t){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function k(){
17
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
18
- k=function e(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function t(e,n,r){return e[n]=r}}function l(t,e,n,i){var o=e&&e.prototype instanceof f?e:f,a=Object.create(o.prototype),s=new M(i||[]);return r(a,"_invoke",{value:O(t,n,s)}),a}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h={};function f(){}function p(){}function d(){}var g={};c(g,o,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(S([])));v&&v!==e&&n.call(v,o)&&(g=v);var m=d.prototype=f.prototype=Object.create(g);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function i(r,o,a,s){var c=u(t[r],t,o);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==A(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return i("throw",t,a,s)}))}s(c.arg)}var o;r(this,"_invoke",{value:function t(n,r){function a(){return new e((function(t,e){i(n,r,t,e)}))}return o=o?o.then(a,a):a()}})}function O(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return C()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=j(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function j(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,j(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=u(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function S(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=d,r(m,"constructor",{value:d,configurable:!0}),r(d,"constructor",{value:p,configurable:!0}),p.displayName=c(d,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,c(t,s,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},b(x.prototype),c(x.prototype,a,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new x(l(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(m),c(m,s,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=S,M.prototype={constructor:M,reset:function t(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function t(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function t(e){if(this.done)throw e;var r=this;function i(t,n){return s.type="throw",s.arg=e,r.next=t,n&&(r.method="next",r.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function t(e,r){for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=r&&r<=a.finallyLoc&&(a=null);var s=a?a.completion:{};return s.type=e,s.arg=r,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(s)},complete:function t(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),h},finish:function t(e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),h}},catch:function t(e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===e){var i=r.completion;if("throw"===i.type){var o=i.arg;_(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function t(e,n,r){return this.delegate={iterator:S(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function T(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function E(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){T(o,r,i,a,s,"next",t)}function s(t){T(o,r,i,a,s,"throw",t)}a(void 0)}))}}var P=function t(e){return JSON.stringify(e.map((function(t){return[{tag:"text",text:"".concat(t.key,": ")},{tag:"text",text:"".concat(t.value)}]})))},I=function(){var t=E(k().mark((function t(e){var n,r,i,o;return k().wrap((function t(a){for(;;)switch(a.prev=a.next){case 0:return n=e.title,r=e.content,i=P(r),a.next=4,fetch(C,{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify({msg_type:"post",content:'{"post":{"zh_cn":{"title":"'.concat(n,'","content":').concat(i,"}}}")})});case 4:return o=a.sent,a.next=7,o.json();case 7:return a.abrupt("return",a.sent);case 8:case"end":return a.stop()}}),t)})));return function e(n){return t.apply(this,arguments)}}()},57:function(t,e,n){"use strict";n.r(e),n.d(e,"Base",(function(){return u})),n.d(e,"Circle",(function(){return f})),n.d(e,"Ellipse",(function(){return g})),n.d(e,"Image",(function(){return m})),n.d(e,"Line",(function(){return w})),n.d(e,"Marker",(function(){return A})),n.d(e,"Path",(function(){return V})),n.d(e,"Polygon",(function(){return $})),n.d(e,"Polyline",(function(){return U})),n.d(e,"Rect",(function(){return tt})),n.d(e,"Text",(function(){return nt}));var r={};n.r(r),n.d(r,"Base",(function(){return u})),n.d(r,"Circle",(function(){return f})),n.d(r,"Ellipse",(function(){return g})),n.d(r,"Image",(function(){return m})),n.d(r,"Line",(function(){return w})),n.d(r,"Marker",(function(){return A})),n.d(r,"Path",(function(){return V})),n.d(r,"Polygon",(function(){return $})),n.d(r,"Polyline",(function(){return U})),n.d(r,"Rect",(function(){return tt})),n.d(r,"Text",(function(){return nt}));var i=n(1),o=n(13),a=n(8),s=n(26),c=n(89),l,u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return r},e.prototype.getGroupBase=function(){return c.a},e.prototype.onCanvasChange=function(t){Object(s.h)(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),n,r=Object(o.getBBoxMethod)(t)(this),i=e/2,a=r.x-i,s=r.y-i,c=r.x+r.width+i,l=r.y+r.height+i;return{x:a,minX:a,y:s,minY:s,width:r.width+e,height:r.height+e,maxX:c,maxY:l}},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(),Object(s.a)(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(!Object(a.f)(e,r))return this.set("hasChanged",!1),void(this.cfg.isInView&&this._afterDraw())}t.save(),Object(s.a)(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=Object(a.f)(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,o=e.fillOpacity;this.isFill()&&(Object(a.i)(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=r)),this.isStroke()&&n>0&&(Object(a.i)(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}(o.AbstractShape),h,f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),s=o.x,c=o.y,l=o.r,u=i/2,h=Object(a.b)(s,c,t,e);return r&&n?h<=l+u:r?h<=l:!!n&&(h>=l-u&&h<=l+u)},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}(u);function p(t,e,n,r){return t/(n*n)+e/(r*r)}var d,g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),a=i/2,s=o.x,c=o.y,l=o.rx,u=o.ry,h=(t-s)*(t-s),f=(e-c)*(e-c);return r&&n?p(h,f,l+a,u+a)<=1:r?p(h,f,l,u)<=1:!!n&&(p(h,f,l-a,u-a)>=1&&p(h,f,l+a,u+a)<=1)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.rx,o=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,r,i,o,0,0,2*Math.PI,!1);else{var a=i>o?i:o,s=i>o?1:i/o,c=i>o?o/i:1;t.save(),t.translate(n,r),t.scale(s,c),t.arc(0,0,a,0,2*Math.PI),t.restore(),t.closePath()}},e}(u);function y(t){return t instanceof HTMLElement&&Object(a.k)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var v,m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(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(Object(a.k)(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)):y(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,o=e.height,s=e.sx,c=e.sy,l=e.swidth,u=e.sheight,h=e.img;(h instanceof Image||y(h))&&(Object(a.i)(s)||Object(a.i)(c)||Object(a.i)(l)||Object(a.i)(u)?t.drawImage(h,n,r,i,o):t.drawImage(h,s,c,l,u,n,r,i,o))},e}(u),b=n(20);function x(t,e,n,r,i,o,a){var s=Math.min(t,n),c=Math.max(t,n),l=Math.min(e,r),u=Math.max(e,r),h=i/2;return o>=s-h&&o<=c+h&&a>=l-h&&a<=u+h&&b.c.pointToLine(t,e,n,r,o,a)<=i/2}var O=n(31),j,w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(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,o=t.startArrow,a=t.endArrow;o&&O.b(this,t,r,i,e,n),a&&O.a(this,t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var o=this.attr(),a,s,c,l;return x(o.x1,o.y1,o.x2,o.y2,i,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.startArrow,s=e.endArrow,c={dx:0,dy:0},l={dx:0,dy:0};a&&a.d&&(c=O.c(n,r,i,o,e.startArrow.d)),s&&s.d&&(l=O.c(n,r,i,o,e.endArrow.d)),t.beginPath(),t.moveTo(n+c.dx,r+c.dy),t.lineTo(i-l.dx,o-l.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 b.c.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 b.c.pointAt(n,r,i,o,t)},e}(u),_=n(0),M=n(39),S={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"]]}},C,A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(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 Object(_.K)(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t=this.attr(),n=t.x,r=t.y,i=t.symbol||"circle",o=this._getR(t),s,c;if(Object(a.h)(i))c=(s=i)(n,r,o),c=Object(M.d)(c);else{if(!(s=e.Symbols[i]))return console.warn(i+" marker is not supported."),null;c=s(n,r,o)}return c},e.prototype.createPath=function(t){var e=this._getPath(),n=this.get("paramsCache");Object(s.e)(this,t,{path:e},n)},e.Symbols=S,e}(u);function k(t,e,n){var r=Object(o.getOffScreenContext)();return t.createPath(r),r.isPointInPath(e,n)}var T=1e-6;function E(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function P(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])}function I(t,e,n){var r=!1,i=t.length;if(i<=2)return!1;for(var o=0;o<i;o++){var a=t[o],s=t[(o+1)%i];if(P(a,s,[e,n]))return!0;E(a[1]-n)>0!=E(s[1]-n)>0&&E(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(r=!r)}return r}var F=n(4),L=n(129);function B(t,e,n,r,i,o,s,c){var l=(Math.atan2(c-e,s-t)+2*Math.PI)%(2*Math.PI);if(l<r||l>i)return!1;var u={x:t+n*Math.cos(l),y:e+n*Math.sin(l)};return Object(a.b)(u.x,u.y,s,c)<=o/2}var D=F.a.transform;function R(t){for(var e=!1,n=t.length,r=0;r<n;r++){var i,o=t[r][0];if("C"===o||"A"===o||"Q"===o){e=!0;break}}return e}function N(t,e,n,r,i){for(var o=!1,s=e/2,c=0;c<t.length;c++){var l=t[c],u=l.currentPoint,h=l.params,f=l.prePoint,p=l.box;if(!p||Object(a.e)(p.x-s,p.y-s,p.width+e,p.height+e,n,r)){switch(l.command){case"L":case"Z":o=x(f[0],f[1],u[0],u[1],e,n,r);break;case"Q":var d;o=b.e.pointDistance(f[0],f[1],h[1],h[2],h[3],h[4],n,r)<=e/2;break;case"C":var g;o=b.b.pointDistance(f[0],f[1],h[1],h[2],h[3],h[4],h[5],h[6],n,r,i)<=e/2;break;case"A":var y=l.arcParams,v=y.cx,m=y.cy,O=y.rx,j=y.ry,w=y.startAngle,_=y.endAngle,M=y.xRotation,S=[n,r,1],C=O>j?O:j,A,k,T=D(null,[["t",-v,-m],["r",-M],["s",1/(O>j?1:O/j),1/(O>j?j/O:1)]]);L.transformMat3(S,S,T),o=B(0,0,C,w,_,e,S[0],S[1])}if(o)break}}return o}function z(t){for(var e=t.length,n=[],r=[],i=[],o=0;o<e;o++){var a=t[o],s=a[0];"M"===s?(i.length&&(r.push(i),i=[]),i.push([a[1],a[2]])):"Z"===s?i.length&&(n.push(i),i=[]):i.push([a[1],a[2]])}return i.length>0&&r.push(i),{polygons:n,polylines:r}}var Y=Object(i.__assign)({hasArc:R,extractPolygons:z,isPointInStroke:N},o.PathUtil);function G(t,e,n){for(var r=!1,i=0;i<t.length;i++){var o;if(r=I(t[i],e,n))break}return r}var H,V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(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=Object(M.d)(t);var e=Y.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=Object(M.e)(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();O.b(this,t,r[0][0],r[0][1],r[1][0],r[1][1])}if(n){var r=this.getEndTangent();O.a(this,t,r[0][0],r[0][1],r[1][0],r[1][1])}},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.getSegments(),a=this.get("hasArc"),s=!1;if(n){var c=this.getTotalLength();s=Y.isPointInStroke(o,i,t,e,c)}if(!s&&r)if(a)s=k(this,t,e);else{var l=this.attr("path"),u=Y.extractPolygons(l);s=G(u.polygons,t,e)||G(u.polylines,t,e)}return s},e.prototype.createPath=function(t){var e=this.attr(),n=this.get("paramsCache");Object(s.e)(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 Object(_.K)(t)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):t},e.prototype.getPoint=function(t){var e=this.get("tCache"),n,r;e||(this._calculateCurve(),this._setTcache(),e=this.get("tCache"));var i=this.get("curve");if(!e||0===e.length)return i?{x:i[0][1],y:i[0][2]}:null;Object(_.j)(e,(function(e,i){t>=e[0]&&t<=e[1]&&(n=(t-e[0])/(e[1]-e[0]),r=i)}));var o=i[r];if(Object(_.K)(o)||Object(_.K)(r))return null;var a=o.length,s=i[r+1];return b.b.pointAt(o[a-2],o[a-1],s[1],s[2],s[3],s[4],s[5],s[6],n)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",Y.pathToCurve(t))},e.prototype._setTcache=function(){var t=0,e=0,n=[],r,i,o,a,s=this.get("curve");s&&(Object(_.j)(s,(function(e,n){o=s[n+1],a=e.length,o&&(t+=b.b.length(e[a-2],e[a-1],o[1],o[2],o[3],o[4],o[5],o[6])||0)})),this.set("totalLength",t),0!==t?(Object(_.j)(s,(function(c,l){o=s[l+1],a=c.length,o&&((r=[])[0]=e/t,i=b.b.length(c[a-2],c[a-1],o[1],o[2],o[3],o[4],o[5],o[6]),e+=i||0,r[1]=e/t,n.push(r))})),this.set("tCache",n)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t=this.getSegments(),e;if(t.length>1){var n=t[0].currentPoint,r=t[1].currentPoint,i=t[1].startTangent;e=[],i?(e.push([n[0]-i[0],n[1]-i[1]]),e.push([n[0],n[1]])):(e.push([r[0],r[1]]),e.push([n[0],n[1]]))}return e},e.prototype.getEndTangent=function(){var t=this.getSegments(),e=t.length,n;if(e>1){var r=t[e-2].currentPoint,i=t[e-1].currentPoint,o=t[e-1].endTangent;n=[],o?(n.push([i[0]-o[0],i[1]-o[1]]),n.push([i[0],i[1]])):(n.push([r[0],r[1]]),n.push([i[0],i[1]]))}return n},e}(u);function W(t,e,n,r,i){var o=t.length;if(o<2)return!1;for(var a=0;a<o-1;a++){var s,c,l,u;if(x(t[a][0],t[a][1],t[a+1][0],t[a+1][1],e,n,r))return!0}if(i){var h=t[0],f=t[o-1];if(x(h[0],h[1],f[0],f[1],e,n,r))return!0}return!1}var X,$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.__extends)(e,t),e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr().points,a=!1;return n&&(a=W(o,i,t,e,!0)),!a&&r&&(a=I(o,t,e)),a},e.prototype.createPath=function(t){var e,n=this.attr().points;if(!(n.length<2)){t.beginPath();for(var r=0;r<n.length;r++){var i=n[r];0===r?t.moveTo(i[0],i[1]):t.lineTo(i[0],i[1])}t.closePath()}},e}(u),q,U=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(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,o=n.length,a=n[0][0],s=n[0][1],c=n[o-1][0],l=n[o-1][1];r&&O.b(this,t,n[1][0],n[1][1],a,s),i&&O.a(this,t,n[o-2][0],n[o-2][1],c,l)},e.prototype.isFill=function(){return!1},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!(!n||!i)&&W(this.attr().points,i,t,e,!1);var o},e.prototype.isStroke=function(){return!0},e.prototype.createPath=function(t){var e=this.attr(),n=e.points,r=e.startArrow,i=e.endArrow,o=n.length;if(!(n.length<2)){var a=n[0][0],s=n[0][1],c=n[o-1][0],l=n[o-1][1],u,u;if(r&&r.d)a+=(u=O.c(a,s,n[1][0],n[1][1],r.d)).dx,s+=u.dy;if(i&&i.d)c-=(u=O.c(n[o-2][0],n[o-2][1],c,l,i.d)).dx,l-=u.dy;t.beginPath(),t.moveTo(a,s);for(var h=0;h<o-1;h++){var f=n[h];t.lineTo(f[0],f[1])}t.lineTo(c,l)}},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 Object(_.K)(e)?(this.set("totalLength",b.d.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e=this.attr().points,n=this.get("tCache"),r,i;return n||(this._setTcache(),n=this.get("tCache")),Object(_.j)(n,(function(e,n){t>=e[0]&&t<=e[1]&&(r=(t-e[0])/(e[1]-e[0]),i=n)})),b.c.pointAt(e[i][0],e[i][1],e[i+1][0],e[i+1][1],r)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n=0,r=[],i,o;Object(_.j)(t,(function(a,s){t[s+1]&&((i=[])[0]=n/e,o=b.c.length(a[0],a[1],t[s+1][0],t[s+1][1]),n+=o,i[1]=n/e,r.push(i))})),this.set("tCache",r)}}},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}(u),K=n(138);function Z(t,e,n,r,i,o,s){var c=i/2;return Object(a.e)(t-c,e-c,n,i,o,s)||Object(a.e)(t+n-c,e-c,i,r,o,s)||Object(a.e)(t+c,e+r-c,n,i,o,s)||Object(a.e)(t-c,e+c,i,r,o,s)}function Q(t,e,n,r,i,o,a,s){var c=o/2;return x(t+i,e,t+n-i,e,o,a,s)||x(t+n,e+i,t+n,e+r-i,o,a,s)||x(t+n-i,e+r,t+i,e+r,o,a,s)||x(t,e+r-i,t,e+i,o,a,s)||B(t+n-i,e+i,i,1.5*Math.PI,2*Math.PI,o,a,s)||B(t+n-i,e+r-i,i,0,.5*Math.PI,o,a,s)||B(t+i,e+r-i,i,.5*Math.PI,Math.PI,o,a,s)||B(t+i,e+i,i,Math.PI,1.5*Math.PI,o,a,s)}var J,tt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),s=o.x,c=o.y,l=o.width,u=o.height,h=o.radius;if(h){var f=!1;return n&&(f=Q(s,c,l,u,h,i,t,e)),!f&&r&&(f=k(this,t,e)),f}var p=i/2;return r&&n?Object(a.e)(s-p,c-p,l+p,u+p,t,e):r?Object(a.e)(s,c,l,u,t,e):n?Z(s,c,l,u,i,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.width,o=e.height,a=e.radius;if(t.beginPath(),0===a)t.rect(n,r,i,o);else{var s=Object(K.a)(a),c=s[0],l=s[1],u=s[2],h=s[3];t.moveTo(n+c,r),t.lineTo(n+i-l,r),0!==l&&t.arc(n+i-l,r+l,l,-Math.PI/2,0),t.lineTo(n+i,r+o-u),0!==u&&t.arc(n+i-u,r+o-u,u,0,Math.PI/2),t.lineTo(n+h,r+o),0!==h&&t.arc(n+h,r+o-h,h,Math.PI/2,Math.PI),t.lineTo(n,r+c),0!==c&&t.arc(n+c,r+c,c,Math.PI,1.5*Math.PI),t.closePath()}},e}(u),et,nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(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=Object(o.assembleFont)(t)},e.prototype._setText=function(t){var e=null;Object(a.k)(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=this.attrs,i=r.textBaseline,s=r.x,c=r.y,l=1*r.fontSize,u=this._getSpaceingY(),h=Object(o.getTextHeight)(r.text,r.fontSize,r.lineHeight),f;Object(a.c)(e,(function(e,r){f=c+r*(u+l)-h+l,"middle"===i&&(f+=h-l-(h-l)/2),"top"===i&&(f+=h-l),Object(a.i)(e)||(n?t.fillText(e,s,f):t.strokeText(e,s,f))}))},e.prototype._drawText=function(t,e){var n=this.attr(),r=n.x,i=n.y,o=this.get("textArr");if(o)this._drawTextArr(t,o,e);else{var s=n.text;Object(a.i)(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,o=e.fillOpacity;this.isStroke()&&n>0&&(Object(a.i)(i)||1===i||(t.globalAlpha=r),this.stroke(t)),this.isFill()&&(Object(a.i)(o)||1===o?this.fill(t):(t.globalAlpha=o,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}(u)},6:function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"h",(function(){return a})),n.d(e,"k",(function(){return s})),n.d(e,"j",(function(){return c})),n.d(e,"b",(function(){return l})),n.d(e,"g",(function(){return u})),n.d(e,"e",(function(){return h})),n.d(e,"i",(function(){return d})),n.d(e,"d",(function(){return v})),n.d(e,"m",(function(){return m})),n.d(e,"l",(function(){return b})),n.d(e,"f",(function(){return x}));var r=n(0);function i(t){var e=0,n=0,i=0,o=0;return Object(r.M)(t)?e=n=i=o=t:Object(r.C)(t)&&(e=t[0],i=Object(r.K)(t[1])?t[0]:t[1],o=Object(r.K)(t[2])?t[0]:t[2],n=Object(r.K)(t[3])?i:t[3]),[e,i,o,n]}function o(t){for(var e=t.childNodes,n,r=e.length-1;r>=0;r--)t.removeChild(e[r])}function a(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}function s(t){var e=t.start,n=t.end,r=Math.min(e.x,n.x),i=Math.min(e.y,n.y),o=Math.max(e.x,n.x),a=Math.max(e.y,n.y);return{x:r,y:i,minX:r,minY:i,maxX:o,maxY:a,width:o-r,height:a-i}}function c(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),o=Math.max.apply(Math,e),a=Math.max.apply(Math,n);return{x:r,y:i,minX:r,minY:i,maxX:o,maxY:a,width:o-r,height:a-i}}function l(t,e,n,r){var i=t+n,o=e+r;return{x:t,y:e,width:n,height:r,minX:t,minY:e,maxX:isNaN(i)?0:i,maxY:isNaN(o)?0:o}}function u(t,e,n){return(1-n)*t+e*n}function h(t,e,n){return{x:t.x+Math.cos(n)*e,y:t.y+Math.sin(n)*e}}function f(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}var p=function(t){return new Promise((function(e){setTimeout(e,t)}))},d=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};function g(t,e){var n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY),i,o;return l(n,r,Math.min(t.maxX,e.maxX)-n,Math.min(t.maxY,e.maxY)-r)}function y(t,e){var n=Math.min(t.minX,e.minX),r=Math.min(t.minY,e.minY),i,o;return l(n,r,Math.max(t.maxX,e.maxX)-n,Math.max(t.maxY,e.maxY)-r)}function v(t){var e=t.getClip(),n=e&&e.getBBox(),i;if(t.isGroup()){var o=1/0,a=-1/0,s=1/0,c=-1/0,u=t.getChildren();u.length>0?Object(r.j)(u,(function(t){if(t.get("visible")){if(t.isGroup()&&0===t.get("children").length)return!0;var e=v(t),n=t.applyToMatrix([e.minX,e.minY,1]),r=t.applyToMatrix([e.minX,e.maxY,1]),i=t.applyToMatrix([e.maxX,e.minY,1]),l=t.applyToMatrix([e.maxX,e.maxY,1]),u=Math.min(n[0],r[0],i[0],l[0]),h=Math.max(n[0],r[0],i[0],l[0]),f=Math.min(n[1],r[1],i[1],l[1]),p=Math.max(n[1],r[1],i[1],l[1]);u<o&&(o=u),h>a&&(a=h),f<s&&(s=f),p>c&&(c=p)}})):(o=0,a=0,s=0,c=0),i=l(o,s,a-o,c-s)}else i=t.getBBox();return n?g(i,n):i}function m(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)}}function b(t){return t+"px"}function x(t,e,n,r){var i,o=r/f(t,e),a=0;return"start"===n?a=0-o:"end"===n&&(a=1+o),{x:u(t.x,e.x,a),y:u(t.y,e.y,a)}}},60:function(t,e,n){"use strict";var r=n(1),i=n(14),o=n(0),a=n(6),s,c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{container:null,containerTpl:"<div></div>",updateAutoRender:!0,containerClassName:"",parent:null})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.show=function(){var t;this.get("container").style.display="",this.set("visible",!0)},e.prototype.hide=function(){var t;this.get("container").style.display="none",this.set("visible",!1)},e.prototype.setCapture=function(t){var e,n=t?"auto":"none";this.getContainer().style.pointerEvents=n,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 Object(a.b)(e,n,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){var t=this.get("container");Object(a.a)(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(Object(o.K)(t)){t=this.createDom();var e=this.get("parent");Object(o.Q)(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 Object(o.Q)(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?Object(o.h)({},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&&Object(a.h)(e,n)){var r=t[n];Object(i.e)(e,r)}}},e.prototype.applyChildrenStyles=function(t,e){Object(o.j)(e,(function(e,n){var r=t.getElementsByClassName(n);Object(o.j)(r,(function(t){Object(i.e)(t,e)}))}))},e.prototype.applyStyle=function(t,e){var n=this.get("domStyles");Object(i.e)(e,n[t])},e.prototype.createDom=function(){var t=this.get("containerTpl");return Object(i.b)(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){Object(o.y)(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}(n(88).a);e.a=c},61:function(t,e){t.exports=window.ReactDOM},62:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"d",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a}));var r=0,i=.5,o=.5,a=.05},63:function(t,e,n){var r,i;r=this,(i=function(t){"use strict";function e(t,e){return n(t)||r(t,e)||i()}function n(t){if(Array.isArray(t))return t}function r(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a=t[Symbol.iterator](),s;!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function o(t,e,n,r){t=t.filter((function(t,r){var i=e(t,r),o=n(t,r);return null!=i&&isFinite(i)&&null!=o&&isFinite(o)})),r&&t.sort((function(t,n){return e(t)-e(n)}));for(var i=t.length,o=new Float64Array(i),a=new Float64Array(i),s=0,c=0,l,u,h,f=0;f<i;)h=t[f],o[f]=l=+e(h,f,t),a[f]=u=+n(h,f,t),s+=(l-s)/++f,c+=(u-c)/f;for(var p=0;p<i;++p)o[p]-=s,a[p]-=c;return[o,a,s,c]}function a(t,e,n,r){for(var i=0,o=0,a=t.length;o<a;o++){var s=t[o],c=+e(s,o,t),l=+n(s,o,t);null!=c&&isFinite(c)&&null!=l&&isFinite(l)&&r(c,l,i++)}}function s(t,e,n,r,i){var o=0,s=0;return a(t,e,n,(function(t,e){var n=e-i(t),a=e-r;o+=n*n,s+=a*a})),1-o/s}function c(t){return 180*Math.atan2(t[1][1]-t[0][1],t[1][0]-t[0][0])/Math.PI}function l(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}function u(t,e,n){for(var r=Math.log(e-t)*Math.LOG10E+1|0,i=1*Math.pow(10,-r/2-1),o=1e4,a=[u(t),u(e)],s=0;h(a)&&s<1e4;);return a;function u(t){return[t,n(t)]}function h(t){s++;for(var e=t.length,n=!1,r=0;r<e-1;r++){var o=t[r],a,h=l([o,t[r+1]]),f=u(h[0]),p=c([o,h]),d=c([o,f]),g;Math.abs(p-d)>i&&(t.splice(r+1,0,f),n=!0)}return n}}function h(t,e,n,r){var i=r-t*t,o=Math.abs(i)<1e-24?0:(n-t*e)/i,a;return[e-o*t,o]}function f(){var t=function t(e){return e[0]},n=function t(e){return e[1]},r;function i(i){var o=0,c=0,l=0,f=0,p=0,d=0,g=r?+r[0]:1/0,y=r?+r[1]:-1/0;a(i,t,n,(function(t,e){var n=Math.log(e),i=t*e;++o,c+=(e-c)/o,f+=(i-f)/o,d+=(t*i-d)/o,l+=(e*n-l)/o,p+=(i*n-p)/o,r||(t<g&&(g=t),t>y&&(y=t))}));var v,m=e(h(f/c,l/c,p/c,d/c),2),b=m[0],x=m[1];b=Math.exp(b);var O=function t(e){return b*Math.exp(x*e)},j=u(g,y,O);return j.a=b,j.b=x,j.predict=O,j.rSquared=s(i,t,n,c,O),j}return i.domain=function(t){return arguments.length?(r=t,i):r},i.x=function(e){return arguments.length?(t=e,i):t},i.y=function(t){return arguments.length?(n=t,i):n},i}function p(){var t=function t(e){return e[0]},n=function t(e){return e[1]},r;function i(i){var o=0,c=0,l=0,u=0,f=0,p=r?+r[0]:1/0,d=r?+r[1]:-1/0;a(i,t,n,(function(t,e){++o,c+=(t-c)/o,l+=(e-l)/o,u+=(t*e-u)/o,f+=(t*t-f)/o,r||(t<p&&(p=t),t>d&&(d=t))}));var g,y=e(h(c,l,u,f),2),v=y[0],m=y[1],b=function t(e){return m*e+v},x=[[p,b(p)],[d,b(d)]];return x.a=m,x.b=v,x.predict=b,x.rSquared=s(i,t,n,l,b),x}return i.domain=function(t){return arguments.length?(r=t,i):r},i.x=function(e){return arguments.length?(t=e,i):t},i.y=function(t){return arguments.length?(n=t,i):n},i}function d(t){t.sort((function(t,e){return t-e}));var e=t.length/2;return e%1==0?(t[e-1]+t[e])/2:t[Math.floor(e)]}var g=2,y=1e-12;function v(){var t=function t(e){return e[0]},n=function t(e){return e[1]},r=.3;function i(i){for(var a,s=e(o(i,t,n,!0),4),c=s[0],l=s[1],u=s[2],f=s[3],p=c.length,g=Math.max(2,~~(r*p)),y=new Float64Array(p),v=new Float64Array(p),O=new Float64Array(p).fill(1),j=-1;++j<=2;){for(var w=[0,g-1],_=0;_<p;++_){for(var M=c[_],S=w[0],C=w[1],A=M-c[S]>c[C]-M?S:C,k=0,T=0,E=0,P=0,I=0,F=1/Math.abs(c[A]-M||1),L=S;L<=C;++L){var B=c[L],D=l[L],R=m(Math.abs(M-B)*F)*O[L],N=B*R;k+=R,T+=N,E+=D*R,P+=D*N,I+=B*N}var z,Y=e(h(T/k,E/k,P/k,I/k),2),G=Y[0],H=Y[1];y[_]=G+H*M,v[_]=Math.abs(l[_]-y[_]),b(c,_+1,w)}if(2===j)break;var V=d(v);if(Math.abs(V)<1e-12)break;for(var W=0,X,$;W<p;++W)X=v[W]/(6*V),O[W]=X>=1?1e-12:($=1-X*X)*$}return x(c,y,u,f)}return i.bandwidth=function(t){return arguments.length?(r=t,i):r},i.x=function(e){return arguments.length?(t=e,i):t},i.y=function(t){return arguments.length?(n=t,i):n},i}function m(t){return(t=1-t*t*t)*t*t}function b(t,e,n){var r=t[e],i=n[0],o=n[1]+1;if(!(o>=t.length))for(;e>i&&t[o]-r<=r-t[i];)n[0]=++i,n[1]=o,++o}function x(t,e,n,r){for(var i=t.length,o=[],a=0,s=0,c=[],l;a<i;++a)l=t[a]+n,c[0]===l?c[1]+=(e[a]-c[1])/++s:(s=0,c[1]+=r,c=[l,e[a]],o.push(c));return c[1]+=r,o}function O(){var t=function t(e){return e[0]},n=function t(e){return e[1]},r=Math.E,i;function o(o){var c=0,l=0,f=0,p=0,d=0,g=i?+i[0]:1/0,y=i?+i[1]:-1/0,v=Math.log(r);a(o,t,n,(function(t,e){var n=Math.log(t)/v;++c,l+=(n-l)/c,f+=(e-f)/c,p+=(n*e-p)/c,d+=(n*n-d)/c,i||(t<g&&(g=t),t>y&&(y=t))}));var m,b=e(h(l,f,p,d),2),x=b[0],O=b[1],j=function t(e){return O*Math.log(e)/v+x},w=u(g,y,j);return w.a=O,w.b=x,w.predict=j,w.rSquared=s(o,t,n,f,j),w}return o.domain=function(t){return arguments.length?(i=t,o):i},o.x=function(e){return arguments.length?(t=e,o):t},o.y=function(t){return arguments.length?(n=t,o):n},o.base=function(t){return arguments.length?(r=t,o):r},o}function j(){var t=function t(e){return e[0]},n=function t(e){return e[1]},r;function i(i){var c,l=e(o(i,t,n),4),h=l[0],f=l[1],p=l[2],d=l[3],g=h.length,y=0,v=0,m=0,b=0,x=0,O,j,w,_;for(O=0;O<g;)j=h[O],w=f[O++],y+=((_=j*j)-y)/O,v+=(_*j-v)/O,m+=(_*_-m)/O,b+=(j*w-b)/O,x+=(_*w-x)/O;var M=0,S=0,C=r?+r[0]:1/0,A=r?+r[1]:-1/0;a(i,t,n,(function(t,e){S++,M+=(e-M)/S,r||(t<C&&(C=t),t>A&&(A=t))}));var k=m-y*y,T=y*k-v*v,E=(x*y-b*v)/T,P=(b*k-x*v)/T,I=-E*y,F=function t(e){return E*(e-=p)*e+P*e+I+d},L=u(C,A,F);return L.a=E,L.b=P-2*E*p,L.c=I-P*p+E*p*p+d,L.predict=F,L.rSquared=s(i,t,n,M,F),L}return i.domain=function(t){return arguments.length?(r=t,i):r},i.x=function(e){return arguments.length?(t=e,i):t},i.y=function(t){return arguments.length?(n=t,i):n},i}function w(){var t=function t(e){return e[0]},n=function t(e){return e[1]},r=3,i;function c(c){if(1===r){var l=p().x(t).y(n).domain(i)(c);return l.coefficients=[l.b,l.a],delete l.a,delete l.b,l}if(2===r){var h=j().x(t).y(n).domain(i)(c);return h.coefficients=[h.c,h.b,h.a],delete h.a,delete h.b,delete h.c,h}var f,d=e(o(c,t,n),4),g=d[0],y=d[1],v=d[2],m=d[3],b=g.length,x=[],O=[],w=r+1,S=0,C=0,A=i?+i[0]:1/0,k=i?+i[1]:-1/0,T,E,P,I,F;for(a(c,t,n,(function(t,e){++C,S+=(e-S)/C,i||(t<A&&(A=t),t>k&&(k=t))})),T=0;T<w;++T){for(P=0,I=0;P<b;++P)I+=Math.pow(g[P],T)*y[P];for(x.push(I),F=new Float64Array(w),E=0;E<w;++E){for(P=0,I=0;P<b;++P)I+=Math.pow(g[P],T+E);F[E]=I}O.push(F)}O.push(x);var L=M(O),B=function t(e){e-=v;var n=m+L[0]+L[1]*e+L[2]*e*e;for(T=3;T<w;++T)n+=L[T]*Math.pow(e,T);return n},D=u(A,k,B);return D.coefficients=_(w,L,-v,m),D.predict=B,D.rSquared=s(c,t,n,S,B),D}return c.domain=function(t){return arguments.length?(i=t,c):i},c.x=function(e){return arguments.length?(t=e,c):t},c.y=function(t){return arguments.length?(n=t,c):n},c.order=function(t){return arguments.length?(r=t,c):r},c}function _(t,e,n,r){var i=Array(t),o,a,s,c;for(o=0;o<t;++o)i[o]=0;for(o=t-1;o>=0;--o)for(s=e[o],c=1,i[o]+=s,a=1;a<=o;++a)c*=(o+1-a)/a,i[o-a]+=s*Math.pow(n,a)*c;return i[0]+=r,i}function M(t){var e=t.length-1,n=[],r,i,o,a,s;for(r=0;r<e;++r){for(a=r,i=r+1;i<e;++i)Math.abs(t[r][i])>Math.abs(t[r][a])&&(a=i);for(o=r;o<e+1;++o)s=t[o][r],t[o][r]=t[o][a],t[o][a]=s;for(i=r+1;i<e;++i)for(o=e;o>=r;o--)t[o][i]-=t[o][r]*t[r][i]/t[r][r]}for(i=e-1;i>=0;--i){for(s=0,o=i+1;o<e;++o)s+=t[o][i]*n[o];n[i]=(t[e][i]-s)/t[i][i]}return n}function S(){var t=function t(e){return e[0]},n=function t(e){return e[1]},r;function i(i){var o=0,c=0,l=0,f=0,p=0,d=0,g=r?+r[0]:1/0,y=r?+r[1]:-1/0;a(i,t,n,(function(t,e){var n=Math.log(t),i=Math.log(e);++o,c+=(n-c)/o,l+=(i-l)/o,f+=(n*i-f)/o,p+=(n*n-p)/o,d+=(e-d)/o,r||(t<g&&(g=t),t>y&&(y=t))}));var v,m=e(h(c,l,f,p),2),b=m[0],x=m[1];b=Math.exp(b);var O=function t(e){return b*Math.pow(e,x)},j=u(g,y,O);return j.a=b,j.b=x,j.predict=O,j.rSquared=s(i,t,n,d,O),j}return i.domain=function(t){return arguments.length?(r=t,i):r},i.x=function(e){return arguments.length?(t=e,i):t},i.y=function(t){return arguments.length?(n=t,i):n},i}t.regressionExp=f,t.regressionLinear=p,t.regressionLoess=v,t.regressionLog=O,t.regressionPoly=w,t.regressionPow=S,t.regressionQuad=j,Object.defineProperty(t,"__esModule",{value:!0})})(e)},64:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},7:function(t,e,n){"use strict";e.a={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)"}},74:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return c}));var r=n(18),i=n(130);function o(t,e,n){var i=1,o;return Object(r.h)(t)&&(i=t.split("\n").length),i>1?e*i+a(e,n)*(i-1):e}function a(t,e){return e?e-t:.14*t}function s(t,e){var n=Object(i.a)(),o=0;if(Object(r.e)(t)||""===t)return o;if(n.save(),n.font=e,Object(r.h)(t)&&t.includes("\n")){var a=t.split("\n");Object(r.a)(a,(function(t){var e=n.measureText(t).width;o<e&&(o=e)}))}else o=n.measureText(t).width;return n.restore(),o}function c(t){var e=t.fontSize,n=t.fontFamily,r=t.fontWeight,i,o;return[t.fontStyle,t.fontVariant,r,e+"px",n].join(" ").trim()}},75:function(t,e,n){"use strict";n.d(e,"getAdjust",(function(){return s})),n.d(e,"registerAdjust",(function(){return c}));var r=n(42),i=n(120),o=n.n(i),a={},s=function(t){return a[t.toLowerCase()]},c=function(t,e){if(s(t))throw new Error("Adjust type '"+t+"' existed.");a[t.toLowerCase()]=e}},76:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a}));var r=n(33),i=n(22);function o(t,e){e.forEach((function(e){e.draw(t)}))}function a(t,e){var n=t.get("canvas");if(n&&n.get("autoDraw")){var o=n.get("context"),a=t.getParent(),s=a?a.getChildren():[n],c=t.get("el"),l;if("remove"===e)if(t.get("isClipShape")){var u=c&&c.parentNode,h=u&&u.parentNode;u&&h&&h.removeChild(u)}else c&&c.parentNode&&c.parentNode.removeChild(c);else if("show"===e)c.setAttribute("visibility","visible");else if("hide"===e)c.setAttribute("visibility","hidden");else if("zIndex"===e)Object(i.c)(c,s.indexOf(t));else if("sort"===e){var f=t.get("children");f&&f.length&&Object(i.d)(t,(function(t,e){return f.indexOf(t)-f.indexOf(e)?1:0}))}else"clear"===e?c&&(c.innerHTML=""):"matrix"===e?Object(r.c)(t):"clip"===e?Object(r.a)(t,o):"attr"===e||"add"===e&&t.draw(o)}}},77:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0);function i(t,e,n){var i=e+"Style",o=null;return Object(r.j)(n,(function(e,n){t[n]&&e[i]&&(o||(o={}),Object(r.db)(o,e[i]))})),o}},8:function(t,e,n){"use strict";n.d(e,"d",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"e",(function(){return a})),n.d(e,"f",(function(){return s})),n.d(e,"l",(function(){return c})),n.d(e,"j",(function(){return l}));var r=n(0);function i(){return window?window.devicePixelRatio:1}function o(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}function a(t,e,n,r,i,o){return i>=t&&i<=t+n&&o>=e&&o<=e+r}function s(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function c(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}function l(t,e){return t[0]===e[0]&&t[1]===e[1]}n.d(e,"i",(function(){return r.K})),n.d(e,"k",(function(){return r.Q})),n.d(e,"h",(function(){return r.I})),n.d(e,"g",(function(){return r.C})),n.d(e,"c",(function(){return r.j})),n.d(e,"o",(function(){return r.sb})),n.d(e,"m",(function(){return r.eb})),n.d(e,"n",(function(){return r.kb})),n.d(e,"a",(function(){return r.d}))},85:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=i(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function t(){};return{s:o,n:function e(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function t(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=!0,s=!1,c;return{s:function e(){n=n.call(t)},n:function t(){var e=n.next();return a=e.done,e},e:function t(e){s=!0,c=e},f:function t(){try{a||null==n.return||n.return()}finally{if(s)throw c}}}}function i(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var s=Object.create,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,h=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,p,d=function t(e,n,i,o){if(n&&"object"===a(n)||"function"==typeof n){var s=r(u(n)),h;try{var p=function t(){var r=h.value;f.call(e,r)||r===i||c(e,r,{get:function t(){return n[r]},enumerable:!(o=l(n,r))||o.enumerable})};for(s.s();!(h=s.n()).done;)p()}catch(t){s.e(t)}finally{s.f()}}return e},g=function t(e,n,r){return r=null!=e?s(h(e)):{},d(!n&&e&&e.__esModule?r:c(r,"default",{value:e,enumerable:!0}),e)},y=function t(e){return d(c({},"__esModule",{value:!0}),e)},v={};(function t(e,n){for(var r in n)c(e,r,{get:n[r],enumerable:!0})})(v,{Area:function t(){return O.default},Bar:function t(){return x.default},Column:function t(){return j.default},Line:function t(){return m.default},Pie:function t(){return b.default}}),t.exports=y(v);var m=g(n(446)),b=g(n(453)),x=g(n(454)),O=g(n(455)),j=g(n(456))},86:function(t,e,n){"use strict";var r=n(75);n.d(e,"getAdjust",(function(){return r.getAdjust}));var i=n(42),o=n(421),a=n(422),s=n(423),c=n(424),l=n(120),u=n.n(l);Object(r.registerAdjust)("Dodge",o.a),Object(r.registerAdjust)("Jitter",a.a),Object(r.registerAdjust)("Stack",s.a),Object(r.registerAdjust)("Symmetric",c.a)},87:function(t,e,n){!function(e,n){t.exports=n()}(this,(function(){"use strict";var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",s="day",c="week",l="month",u="quarter",h="year",f="date",p="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},v=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},m={s:v,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+v(r,2,"0")+":"+v(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,l),o=n-i<0,a=e.clone().add(r+(o?-1:1),l);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:l,y:h,w:c,d:s,D:f,h:a,m:o,s:i,ms:r,Q:u}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},b="en",x={};x[b]=y;var O=function(t){return t instanceof M},j=function t(e,n,r){var i;if(!e)return b;if("string"==typeof e){var o=e.toLowerCase();x[o]&&(i=o),n&&(x[o]=n,i=o);var a=e.split("-");if(!i&&a.length>1)return t(a[0])}else{var s=e.name;x[s]=e,i=s}return!r&&i&&(b=i),i||!r&&b},w=function(t,e){if(O(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new M(n)},_=m;_.l=j,_.i=O,_.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var M=function(){function y(t){this.$L=j(t.locale,null,!0),this.parse(t)}var v=y.prototype;return v.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(_.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(d);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},v.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},v.$utils=function(){return _},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},v.isAfter=function(t,e){return w(t)<this.startOf(e)},v.isBefore=function(t,e){return this.endOf(e)<w(t)},v.$g=function(t,e,n){return _.u(t)?this[e]:this.set(n,t)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(t,e){var n=this,r=!!_.u(e)||e,u=_.p(t),p=function(t,e){var i=_.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(s)},d=function(t,e){return _.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},g=this.$W,y=this.$M,v=this.$D,m="set"+(this.$u?"UTC":"");switch(u){case h:return r?p(1,0):p(31,11);case l:return r?p(1,y):p(0,y+1);case c:var b=this.$locale().weekStart||0,x=(g<b?g+7:g)-b;return p(r?v-x:v+(6-x),y);case s:case f:return d(m+"Hours",0);case a:return d(m+"Minutes",1);case o:return d(m+"Seconds",2);case i:return d(m+"Milliseconds",3);default:return this.clone()}},v.endOf=function(t){return this.startOf(t,!1)},v.$set=function(t,e){var n,c=_.p(t),u="set"+(this.$u?"UTC":""),p=(n={},n[s]=u+"Date",n[f]=u+"Date",n[l]=u+"Month",n[h]=u+"FullYear",n[a]=u+"Hours",n[o]=u+"Minutes",n[i]=u+"Seconds",n[r]=u+"Milliseconds",n)[c],d=c===s?this.$D+(e-this.$W):e;if(c===l||c===h){var g=this.clone().set(f,1);g.$d[p](d),g.init(),this.$d=g.set(f,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](d);return this.init(),this},v.set=function(t,e){return this.clone().$set(t,e)},v.get=function(t){return this[_.p(t)]()},v.add=function(r,u){var f,p=this;r=Number(r);var d=_.p(u),g=function(t){var e=w(p);return _.w(e.date(e.date()+Math.round(t*r)),p)};if(d===l)return this.set(l,this.$M+r);if(d===h)return this.set(h,this.$y+r);if(d===s)return g(1);if(d===c)return g(7);var y=(f={},f[o]=e,f[a]=n,f[i]=t,f)[d]||1,v=this.$d.getTime()+r*y;return _.w(v,this)},v.subtract=function(t,e){return this.add(-1*t,e)},v.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=_.z(this),o=this.$H,a=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,h=function(t,n,i,o){return t&&(t[n]||t(e,r))||i[n].slice(0,o)},f=function(t){return _.s(o%12||12,t,"0")},d=u||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(g,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return _.s(e.$y,4,"0");case"M":return s+1;case"MM":return _.s(s+1,2,"0");case"MMM":return h(n.monthsShort,s,l,3);case"MMMM":return h(l,s);case"D":return e.$D;case"DD":return _.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(n.weekdaysMin,e.$W,c,2);case"ddd":return h(n.weekdaysShort,e.$W,c,3);case"dddd":return c[e.$W];case"H":return String(o);case"HH":return _.s(o,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return d(o,a,!0);case"A":return d(o,a,!1);case"m":return String(a);case"mm":return _.s(a,2,"0");case"s":return String(e.$s);case"ss":return _.s(e.$s,2,"0");case"SSS":return _.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,f,p){var d,g=this,y=_.p(f),v=w(r),m=(v.utcOffset()-this.utcOffset())*e,b=this-v,x=function(){return _.m(g,v)};switch(y){case h:d=x()/12;break;case l:d=x();break;case u:d=x()/3;break;case c:d=(b-m)/6048e5;break;case s:d=(b-m)/864e5;break;case a:d=b/n;break;case o:d=b/e;break;case i:d=b/t;break;default:d=b}return p?d:_.a(d)},v.daysInMonth=function(){return this.endOf(l).$D},v.$locale=function(){return x[this.$L]},v.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=j(t,e,!0);return r&&(n.$L=r),n},v.clone=function(){return _.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},y}(),S=M.prototype;return w.prototype=S,[["$ms",r],["$s",i],["$m",o],["$H",a],["$W",s],["$M",l],["$y",h],["$D",f]].forEach((function(t){S[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),w.extend=function(t,e){return t.$i||(t(e,M,w),t.$i=!0),w},w.locale=j,w.isDayjs=O,w.unix=function(t){return w(1e3*t)},w.en=x[b],w.Ls=x,w.p={},w}))},88:function(t,e,n){"use strict";var r=n(1),i=n(13),o=n(0),a={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 Object(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")||{};Object(o.j)(t,(function(t,r){var i,a=t;e.get(r)!==t&&(Object(o.O)(t)&&n[r]&&(a=Object(o.h)({},n[r],t)),e.set(r,a))})),this.updateInner(t),this.afterUpdate(t)},e.prototype.updateInner=function(t){},e.prototype.afterUpdate=function(t){Object(o.y)(t,"visible")&&(t.visible?this.show():this.hide()),Object(o.y)(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=Object(r.__assign)({},t);this.update(e)},e.prototype.getLocation=function(){var t=this,e={},n=this.get("locationType"),r=a[n];return Object(o.j)(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");Object(o.j)(e,(function(e,n){var r=t.get(n);if(Object(o.O)(r)){var i=Object(o.h)({},e,r);t.set(n,i)}}))},e}(i.Base);e.a=s},89:function(t,e,n){"use strict";var r=n(1),i=n(13),o=n(57),a=n(26),s=n(0),c=n(8),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.onCanvasChange=function(t){Object(a.h)(this,t)},e.prototype.getShapeBase=function(){return o},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,e){e&&(t.save(),Object(a.a)(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,e=[],n=[];Object(s.j)(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=Object(s.bb)(e),o=Object(s.Y)(e),a=Object(s.bb)(n),l=Object(s.Y)(n);r={minX:i,minY:a,x:i,y:a,maxX:o,maxY:l,width:o-i,height:l-a};var u=this.cfg.canvas;if(u){var h=u.getViewRange();this.set("isInView",Object(c.f)(r,h))}}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(),Object(a.a)(t,this),this._applyClip(t,this.getClip()),Object(a.d)(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}(i.AbstractGroup);e.a=l},9:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return D})),n.d(e,"c",(function(){return R}));var r={};n.r(r),n.d(r,"create",(function(){return o})),n.d(r,"fromMat4",(function(){return a})),n.d(r,"clone",(function(){return s})),n.d(r,"copy",(function(){return c})),n.d(r,"fromValues",(function(){return l})),n.d(r,"set",(function(){return u})),n.d(r,"identity",(function(){return h})),n.d(r,"transpose",(function(){return f})),n.d(r,"invert",(function(){return p})),n.d(r,"adjoint",(function(){return d})),n.d(r,"determinant",(function(){return g})),n.d(r,"multiply",(function(){return y})),n.d(r,"translate",(function(){return v})),n.d(r,"rotate",(function(){return m})),n.d(r,"scale",(function(){return b})),n.d(r,"fromTranslation",(function(){return x})),n.d(r,"fromRotation",(function(){return O})),n.d(r,"fromScaling",(function(){return j})),n.d(r,"fromMat2d",(function(){return w})),n.d(r,"fromQuat",(function(){return _})),n.d(r,"normalFromMat4",(function(){return M})),n.d(r,"projection",(function(){return S})),n.d(r,"str",(function(){return C})),n.d(r,"frob",(function(){return A})),n.d(r,"add",(function(){return k})),n.d(r,"subtract",(function(){return T})),n.d(r,"multiplyScalar",(function(){return E})),n.d(r,"multiplyScalarAndAdd",(function(){return P})),n.d(r,"exactEquals",(function(){return I})),n.d(r,"equals",(function(){return F})),n.d(r,"mul",(function(){return L})),n.d(r,"sub",(function(){return B}));var i=n(21);function o(){var t=new i.a(9);return i.a!=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}function a(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}function s(t){var e=new i.a(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}function c(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}function l(t,e,n,r,o,a,s,c,l){var u=new i.a(9);return u[0]=t,u[1]=e,u[2]=n,u[3]=r,u[4]=o,u[5]=a,u[6]=s,u[7]=c,u[8]=l,u}function u(t,e,n,r,i,o,a,s,c,l){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=c,t[8]=l,t}function h(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}function f(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}function p(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],c=e[6],l=e[7],u=e[8],h=u*a-s*l,f=-u*o+s*c,p=l*o-a*c,d=n*h+r*f+i*p;return d?(d=1/d,t[0]=h*d,t[1]=(-u*r+i*l)*d,t[2]=(s*r-i*a)*d,t[3]=f*d,t[4]=(u*n-i*c)*d,t[5]=(-s*n+i*o)*d,t[6]=p*d,t[7]=(-l*n+r*c)*d,t[8]=(a*n-r*o)*d,t):null}function d(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],c=e[6],l=e[7],u=e[8];return t[0]=a*u-s*l,t[1]=i*l-r*u,t[2]=r*s-i*a,t[3]=s*c-o*u,t[4]=n*u-i*c,t[5]=i*o-n*s,t[6]=o*l-a*c,t[7]=r*c-n*l,t[8]=n*a-r*o,t}function g(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],c=t[7],l=t[8];return e*(l*o-a*c)+n*(-l*i+a*s)+r*(c*i-o*s)}function y(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],c=e[5],l=e[6],u=e[7],h=e[8],f=n[0],p=n[1],d=n[2],g=n[3],y=n[4],v=n[5],m=n[6],b=n[7],x=n[8];return t[0]=f*r+p*a+d*l,t[1]=f*i+p*s+d*u,t[2]=f*o+p*c+d*h,t[3]=g*r+y*a+v*l,t[4]=g*i+y*s+v*u,t[5]=g*o+y*c+v*h,t[6]=m*r+b*a+x*l,t[7]=m*i+b*s+x*u,t[8]=m*o+b*c+x*h,t}function v(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],c=e[5],l=e[6],u=e[7],h=e[8],f=n[0],p=n[1];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=c,t[6]=f*r+p*a+l,t[7]=f*i+p*s+u,t[8]=f*o+p*c+h,t}function m(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],c=e[5],l=e[6],u=e[7],h=e[8],f=Math.sin(n),p=Math.cos(n);return t[0]=p*r+f*a,t[1]=p*i+f*s,t[2]=p*o+f*c,t[3]=p*a-f*r,t[4]=p*s-f*i,t[5]=p*c-f*o,t[6]=l,t[7]=u,t[8]=h,t}function b(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}function x(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}function O(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}function j(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}function w(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}function _(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,s=r+r,c=i+i,l=n*a,u=r*a,h=r*s,f=i*a,p=i*s,d=i*c,g=o*a,y=o*s,v=o*c;return t[0]=1-h-d,t[3]=u-v,t[6]=f+y,t[1]=u+v,t[4]=1-l-d,t[7]=p-g,t[2]=f-y,t[5]=p+g,t[8]=1-l-h,t}function M(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],c=e[6],l=e[7],u=e[8],h=e[9],f=e[10],p=e[11],d=e[12],g=e[13],y=e[14],v=e[15],m=n*s-r*a,b=n*c-i*a,x=n*l-o*a,O=r*c-i*s,j=r*l-o*s,w=i*l-o*c,_=u*g-h*d,M=u*y-f*d,S=u*v-p*d,C=h*y-f*g,A=h*v-p*g,k=f*v-p*y,T=m*k-b*A+x*C+O*S-j*M+w*_;return T?(T=1/T,t[0]=(s*k-c*A+l*C)*T,t[1]=(c*S-a*k-l*M)*T,t[2]=(a*A-s*S+l*_)*T,t[3]=(i*A-r*k-o*C)*T,t[4]=(n*k-i*S+o*M)*T,t[5]=(r*S-n*A-o*_)*T,t[6]=(g*w-y*j+v*O)*T,t[7]=(y*x-d*w-v*b)*T,t[8]=(d*j-g*x+v*m)*T,t):null}function S(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}function C(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}function A(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])}function k(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}function T(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}function E(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}function P(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}function I(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]}function F(t,e){var n=t[0],r=t[1],o=t[2],a=t[3],s=t[4],c=t[5],l=t[6],u=t[7],h=t[8],f=e[0],p=e[1],d=e[2],g=e[3],y=e[4],v=e[5],m=e[6],b=e[7],x=e[8];return Math.abs(n-f)<=i.b*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(r-p)<=i.b*Math.max(1,Math.abs(r),Math.abs(p))&&Math.abs(o-d)<=i.b*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(a-g)<=i.b*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(s-y)<=i.b*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(c-v)<=i.b*Math.max(1,Math.abs(c),Math.abs(v))&&Math.abs(l-m)<=i.b*Math.max(1,Math.abs(l),Math.abs(m))&&Math.abs(u-b)<=i.b*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(h-x)<=i.b*Math.max(1,Math.abs(h),Math.abs(x))}var L=y,B=T,D=n(93),R=n(129)},90:function(t,e,n){"use strict";var r=n(1),i=n(13),o=n(0),a=n(91),s=n(76),c=n(33),l=n(10),u=n(22),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.isEntityGroup=function(){return!0},e.prototype.createDom=function(){var t=Object(u.b)("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){Object(s.b)(this,t)},e.prototype.getShapeBase=function(){return a},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(),Object(c.a)(this,t),this.createPath(t),e.length&&Object(s.a)(t,e))},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(o.j)(e||n,(function(t,e){l.b[e]&&r.setAttribute(l.b[e],t)})),Object(c.c)(this)},e}(i.AbstractGroup);e.a=h},91:function(t,e,n){"use strict";n.r(e),n.d(e,"Base",(function(){return f})),n.d(e,"Circle",(function(){return g})),n.d(e,"Dom",(function(){return v})),n.d(e,"Ellipse",(function(){return b})),n.d(e,"Image",(function(){return O})),n.d(e,"Line",(function(){return _})),n.d(e,"Marker",(function(){return A})),n.d(e,"Path",(function(){return T})),n.d(e,"Polygon",(function(){return P})),n.d(e,"Polyline",(function(){return F})),n.d(e,"Rect",(function(){return z})),n.d(e,"Text",(function(){return $}));var r={};n.r(r),n.d(r,"Base",(function(){return f})),n.d(r,"Circle",(function(){return g})),n.d(r,"Dom",(function(){return v})),n.d(r,"Ellipse",(function(){return b})),n.d(r,"Image",(function(){return O})),n.d(r,"Line",(function(){return _})),n.d(r,"Marker",(function(){return A})),n.d(r,"Path",(function(){return T})),n.d(r,"Polygon",(function(){return P})),n.d(r,"Polyline",(function(){return F})),n.d(r,"Rect",(function(){return z})),n.d(r,"Text",(function(){return $}));var i=n(1),o=n(13),a=n(33),s=n(22),c=n(76),l=n(10),u=n(90),h,f=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 Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(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 r},e.prototype.getGroupBase=function(){return u.a},e.prototype.onCanvasChange=function(t){Object(c.b)(this,t)},e.prototype.calculateBBox=function(){var t=this.get("el"),e=null;if(t)e=t.getBBox();else{var n=Object(o.getBBoxMethod)(this.get("type"));n&&(e=n(this))}if(e){var r=e.x,i=e.y,a=e.width,s=e.height,c=this.getHitLineWidth(),l=c/2,u=r-l,h=i-l,f,p;return{x:u,y:h,minX:u,minY:h,maxX:r+a+l,maxY:i+s+l,width:a+c,height:s+c}}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||Object(s.a)(this),Object(a.a)(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,o=n.stroke,a=n.strokeStyle,s=n.fillOpacity,c=n.strokeOpacity,u=n.lineWidth,h=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&&h.setAttribute(l.b.fillOpacity,s)),this.canStroke&&u>0&&(e?"stroke"in n?this._setColor(t,"stroke",o):"strokeStyle"in n&&this._setColor(t,"stroke",a):this._setColor(t,"stroke",o||a),c&&h.setAttribute(l.b.strokeOpacity,c),u&&h.setAttribute(l.b.lineWidth,u))},e.prototype._setColor=function(t,e,n){var r=this.get("el"),i;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(l.b[e],"url(#"+i+")");else if(/^[p,P]{1}[\s]*\(/.test(n)){var i;(i=t.find("pattern",n))||(i=t.addPattern(n)),r.setAttribute(l.b[e],"url(#"+i+")")}else r.setAttribute(l.b[e],n);else r.setAttribute(l.b[e],"none")},e.prototype.shadow=function(t,e){var n=this.attr(),r=e||n,i=r.shadowOffsetX,o=r.shadowOffsetY,s=r.shadowBlur,c=r.shadowColor;(i||o||s||c)&&Object(a.b)(this,t)},e.prototype.transform=function(t){var e=this.attr(),n;(t||e).matrix&&Object(a.c)(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var n=this.get("el"),r,i=this.get("canvas").get("el").getBoundingClientRect(),o=t+i.left,a=e+i.top,s=document.elementFromPoint(o,a);return!(!s||!s.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(o.AbstractShape),p=n(0),d,g=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 Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(p.j)(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):l.b[e]&&r.setAttribute(l.b[e],t)}))},e}(f),y,v=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 Object(i.__extends)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");if(Object(p.j)(e||n,(function(t,e){l.b[e]&&r.setAttribute(l.b[e],t)})),"function"==typeof n.html){var i=n.html.call(this,n);if(i instanceof Element||i instanceof HTMLDocument){for(var o=r.childNodes,a=o.length-1;a>=0;a--)r.removeChild(o[a]);r.appendChild(i)}else r.innerHTML=i}else r.innerHTML=n.html},e}(f),m,b=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 Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(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");Object(p.j)(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):l.b[e]&&r.setAttribute(l.b[e],t)}))},e}(f),x,O=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 Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(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");Object(p.j)(e||r,(function(t,e){"img"===e?n._setImage(r.img):l.b[e]&&i.setAttribute(l.b[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(Object(p.Q)(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&&Object(p.Q)(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}(f),j=n(20),w,_=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 Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(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");Object(p.j)(e||n,(function(e,i){if("startArrow"===i||"endArrow"===i)if(e){var o=Object(p.O)(e)?t.addArrow(n,l.b[i]):t.getDefaultArrow(n,l.b[i]);r.setAttribute(l.b[i],"url(#"+o+")")}else r.removeAttribute(l.b[i]);else l.b[i]&&r.setAttribute(l.b[i],e)}))},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return j.c.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 j.c.pointAt(n,r,i,o,t)},e}(f),M={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"]]}},S={get:function(t){return M[t]},register:function(t,e){M[t]=e},remove:function(t){delete M[t]},getAll:function(){return M}},C,A=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 Object(i.__extends)(e,t),e.prototype.createPath=function(t){var e;this.get("el").setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return Object(p.C)(t)?t.map((function(t){return t.join(" ")})).join(""):t},e.prototype._getPath=function(){var t=this.attr(),e=t.x,n=t.y,r=t.r||t.radius,i=t.symbol||"circle",o;return(o=Object(p.I)(i)?i:S.get(i))?o(e,n,r):(console.warn(o+" symbol is not exist."),null)},e.symbolsFactory=S,e}(f),k,T=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 Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");Object(p.j)(e||r,(function(e,o){if("path"===o&&Object(p.C)(e))i.setAttribute("d",n._formatPath(e));else if("startArrow"===o||"endArrow"===o)if(e){var a=Object(p.O)(e)?t.addArrow(r,l.b[o]):t.getDefaultArrow(r,l.b[o]);i.setAttribute(l.b[o],"url(#"+a+")")}else i.removeAttribute(l.b[o]);else l.b[o]&&i.setAttribute(l.b[o],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}(f),E,P=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 Object(i.__extends)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(p.j)(e||n,(function(t,e){"points"===e&&Object(p.C)(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):l.b[e]&&r.setAttribute(l.b[e],t)}))},e}(f),I,F=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 Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(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");Object(p.j)(e||n,(function(t,e){"points"===e&&Object(p.C)(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):l.b[e]&&r.setAttribute(l.b[e],t)}))},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return Object(p.K)(e)?(this.set("totalLength",j.d.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e=this.attr().points,n=this.get("tCache"),r,i;return n||(this._setTcache(),n=this.get("tCache")),Object(p.j)(n,(function(e,n){t>=e[0]&&t<=e[1]&&(r=(t-e[0])/(e[1]-e[0]),i=n)})),j.c.pointAt(e[i][0],e[i][1],e[i+1][0],e[i+1][1],r)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n=0,r=[],i,o;Object(p.j)(t,(function(a,s){t[s+1]&&((i=[])[0]=n/e,o=j.c.length(a[0],a[1],t[s+1][0],t[s+1][1]),n+=o,i[1]=n/e,r.push(i))})),this.set("tCache",r)}}},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}(f),L=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,B=/[^\s,]+/gi;function D(t){var e=0,n=0,r=0,i=0;return Object(p.C)(t)?1===t.length?e=n=r=i=t[0]:2===t.length?(e=r=t[0],n=i=t[1]):3===t.length?(e=t[0],n=i=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],i=t[3]):e=n=r=i=t,{r1:e,r2:n,r3:r,r4:i}}function R(t){return t=t||[],Object(p.C)(t)?t:Object(p.Q)(t)?(t=t.match(L),Object(p.j)(t,(function(e,n){if((e=e.match(B))[0].length>1){var r=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=r}Object(p.j)(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0}var N,z=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 Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(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,a=["x","y","width","height","radius"];Object(p.j)(e||r,(function(t,e){-1===a.indexOf(e)||o?-1===a.indexOf(e)&&l.b[e]&&i.setAttribute(l.b[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 a=D(o),s;return Object(p.C)(o)?1===o.length?a.r1=a.r2=a.r3=a.r4=o[0]:2===o.length?(a.r1=a.r3=o[0],a.r2=a.r4=o[1]):3===o.length?(a.r1=o[0],a.r2=a.r4=o[1],a.r3=o[2]):(a.r1=o[0],a.r2=o[1],a.r3=o[2],a.r4=o[3]):a.r1=a.r2=a.r3=a.r4=o,[["M "+(e+a.r1)+","+n],["l "+(r-a.r1-a.r2)+",0"],["a "+a.r2+","+a.r2+",0,0,1,"+a.r2+","+a.r2],["l 0,"+(i-a.r2-a.r3)],["a "+a.r3+","+a.r3+",0,0,1,"+-a.r3+","+a.r3],["l "+(a.r3+a.r4-r)+",0"],["a "+a.r4+","+a.r4+",0,0,1,"+-a.r4+","+-a.r4],["l 0,"+(a.r4+a.r1-i)],["a "+a.r1+","+a.r1+",0,0,1,"+a.r1+","+-a.r1],["z"]].join(" ")},e}(f),Y=n(136),G=.3,H={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},V={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},W={left:"left",start:"left",center:"middle",right:"end",end:"end"},X,$=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 Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(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(),Object(p.j)(e||r,(function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?Object(a.c)(n):l.b[e]&&i.setAttribute(l.b[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=Object(Y.a)();i&&"firefox"===i.name?t.setAttribute("dominant-baseline",V[n]||"alphabetic"):t.setAttribute("alignment-baseline",H[n]||"baseline"),t.setAttribute("text-anchor",W[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 a=t.split("\n"),s=a.length-1,c="";Object(p.j)(a,(function(t,e){0===e?"alphabetic"===o?c+='<tspan x="'+r+'" dy="'+-s+'em">'+t+"</tspan>":"top"===o?c+='<tspan x="'+r+'" dy="0.9em">'+t+"</tspan>":"middle"===o?c+='<tspan x="'+r+'" dy="'+-(s-1)/2+'em">'+t+"</tspan>":"bottom"===o?c+='<tspan x="'+r+'" dy="-'+(s+.3)+'em">'+t+"</tspan>":"hanging"===o&&(c+='<tspan x="'+r+'" dy="'+(-(s-1)-.3)+'em">'+t+"</tspan>"):c+='<tspan x="'+r+'" dy="1em">'+t+"</tspan>"})),e.innerHTML=c}else e.innerHTML=t;else e.innerHTML=""},e}(f)},92:function(t,e,n){"use strict";var r="*",i=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]||[],o=this._events["*"]||[],a=function(r){for(var i=r.length,o=0;o<i;o++)if(r[o]){var a=r[o],s=a.callback,c;a.once&&(r.splice(o,1),0===r.length&&delete e._events[t],i--,o--),s.apply(e,n)}};a(i),a(o)},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.a=i},93:function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return i})),n.d(e,"clone",(function(){return o})),n.d(e,"fromValues",(function(){return a})),n.d(e,"copy",(function(){return s})),n.d(e,"set",(function(){return c})),n.d(e,"add",(function(){return l})),n.d(e,"subtract",(function(){return u})),n.d(e,"multiply",(function(){return h})),n.d(e,"divide",(function(){return f})),n.d(e,"ceil",(function(){return p})),n.d(e,"floor",(function(){return d})),n.d(e,"min",(function(){return g})),n.d(e,"max",(function(){return y})),n.d(e,"round",(function(){return v})),n.d(e,"scale",(function(){return m})),n.d(e,"scaleAndAdd",(function(){return b})),n.d(e,"distance",(function(){return x})),n.d(e,"squaredDistance",(function(){return O})),n.d(e,"length",(function(){return j})),n.d(e,"squaredLength",(function(){return w})),n.d(e,"negate",(function(){return _})),n.d(e,"inverse",(function(){return M})),n.d(e,"normalize",(function(){return S})),n.d(e,"dot",(function(){return C})),n.d(e,"cross",(function(){return A})),n.d(e,"lerp",(function(){return k})),n.d(e,"random",(function(){return T})),n.d(e,"transformMat2",(function(){return E})),n.d(e,"transformMat2d",(function(){return P})),n.d(e,"transformMat3",(function(){return I})),n.d(e,"transformMat4",(function(){return F})),n.d(e,"rotate",(function(){return L})),n.d(e,"angle",(function(){return B})),n.d(e,"zero",(function(){return D})),n.d(e,"str",(function(){return R})),n.d(e,"exactEquals",(function(){return N})),n.d(e,"equals",(function(){return z})),n.d(e,"len",(function(){return Y})),n.d(e,"sub",(function(){return G})),n.d(e,"mul",(function(){return H})),n.d(e,"div",(function(){return V})),n.d(e,"dist",(function(){return W})),n.d(e,"sqrDist",(function(){return X})),n.d(e,"sqrLen",(function(){return $})),n.d(e,"forEach",(function(){return q}));var r=n(21);function i(){var t=new r.a(2);return r.a!=Float32Array&&(t[0]=0,t[1]=0),t}function o(t){var e=new r.a(2);return e[0]=t[0],e[1]=t[1],e}function a(t,e){var n=new r.a(2);return n[0]=t,n[1]=e,n}function s(t,e){return t[0]=e[0],t[1]=e[1],t}function c(t,e,n){return t[0]=e,t[1]=n,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function h(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function p(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t}function d(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t}function g(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function y(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function v(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t}function m(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function b(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function x(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.hypot(n,r)}function O(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function j(t){var e=t[0],n=t[1];return Math.hypot(e,n)}function w(t){var e=t[0],n=t[1];return e*e+n*n}function _(t,e){return t[0]=-e[0],t[1]=-e[1],t}function M(t,e){return t[0]=1/e[0],t[1]=1/e[1],t}function S(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}function C(t,e){return t[0]*e[0]+t[1]*e[1]}function A(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t}function k(t,e,n,r){var i=e[0],o=e[1];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t}function T(t,e){e=e||1;var n=2*r.c()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t}function E(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}function P(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function I(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}function F(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}function L(t,e,n,r){var i=e[0]-n[0],o=e[1]-n[1],a=Math.sin(r),s=Math.cos(r);return t[0]=i*s-o*a+n[0],t[1]=i*a+o*s+n[1],t}function B(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],a=Math.sqrt(n*n+r*r)*Math.sqrt(i*i+o*o),s=a&&(n*i+r*o)/a;return Math.acos(Math.min(Math.max(s,-1),1))}function D(t){return t[0]=0,t[1]=0,t}function R(t){return"vec2("+t[0]+", "+t[1]+")"}function N(t,e){return t[0]===e[0]&&t[1]===e[1]}function z(t,e){var n=t[0],i=t[1],o=e[0],a=e[1];return Math.abs(n-o)<=r.b*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-a)<=r.b*Math.max(1,Math.abs(i),Math.abs(a))}var Y=j,G=u,H=h,V=f,W=x,X=O,$=w,q=(U=i(),function(t,e,n,r,i,o){var a,s;for(e||(e=2),n||(n=0),s=r?Math.min(r*e+n,t.length):t.length,a=n;a<s;a+=e)U[0]=t[a],U[1]=t[a+1],i(U,U,o),t[a]=U[0],t[a+1]=U[1];return t}),U}})}));