UNPKG

487 kBJavaScriptView Raw
1/*!
2 * Copyright (c) 2017 ~ present NAVER Corp.
3 * billboard.js project is licensed under the MIT license
4 *
5 * billboard.js, JavaScript chart library
6 * https://naver.github.io/billboard.js/
7 *
8 * @version 3.2.2
9 *
10 * All-in-one packaged file for ease use of 'billboard.js' with dependant d3.js modules & polyfills.
11 * - d3-axis ^3.0.0
12 * - d3-brush ^3.0.0
13 * - d3-drag ^3.0.0
14 * - d3-dsv ^3.0.1
15 * - d3-ease ^3.0.1
16 * - d3-interpolate ^3.0.1
17 * - d3-scale ^4.0.2
18 * - d3-selection ^3.0.0
19 * - d3-shape ^3.0.1
20 * - d3-time-format ^4.0.0
21 * - d3-transition ^3.0.1
22 * - d3-zoom ^3.0.0
23 */
24!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(this,(function(){return function(){var t=[function(t,e,n){n(1),n(82),n(83),n(84),n(85),n(86),n(87),n(88),n(89),n(90),n(91),n(92),n(93),n(94),n(95),n(96),n(111),n(113),n(116),n(118),n(120),n(122),n(123),n(124),n(125),n(127),n(128),n(130),n(134),n(135),n(136),n(137),n(141),n(142),n(144),n(145),n(146),n(149),n(150),n(151),n(152),n(153),n(158),n(160),n(161),n(162),n(163),n(170),n(172),n(175),n(176),n(177),n(178),n(179),n(180),n(184),n(185),n(187),n(188),n(189),n(191),n(192),n(193),n(194),n(195),n(196),n(204),n(206),n(207),n(208),n(210),n(211),n(213),n(214),n(216),n(217),n(218),n(219),n(220),n(221),n(222),n(223),n(224),n(225),n(226),n(230),n(231),n(233),n(235),n(236),n(237),n(238),n(239),n(241),n(243),n(244),n(245),n(247),n(248),n(250),n(251),n(252),n(253),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(264),n(265),n(266),n(267),n(268),n(269),n(270),n(271),n(272),n(273),n(275),n(276),n(277),n(278),n(290),n(291),n(292),n(293),n(294),n(295),n(296),n(297),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(314),n(315),n(317),n(318),n(319),n(320),n(321),n(322),n(323),n(325),n(328),n(329),n(330),n(331),n(335),n(336),n(338),n(339),n(340),n(341),n(343),n(344),n(345),n(346),n(347),n(348),n(350),n(351),n(352),n(355),n(356),n(357),n(358),n(359),n(360),n(361),n(362),n(363),n(364),n(365),n(366),n(367),n(373),n(374),n(375),n(376),n(377),n(378),n(379),n(380),n(381),n(382),n(383),n(384),n(385),n(389),n(390),n(391),n(392),n(393),n(394),n(395),n(396),n(397),n(398),n(399),n(400),n(401),n(402),n(403),n(404),n(405),n(406),n(407),n(408),n(409),n(410),n(411),n(413),n(414),n(417),n(418),n(419),n(420),n(421),n(425),n(424),n(75)},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(20),o=n(62),s=n(7),u=n(12),c=n(32),l=n(5),f=n(23),h=n(6),d=n(35),g=n(63),p=n(18),v=n(17),y=n(21),x=n(19),_=n(42),m=n(36),b=n(10),w=n(15),T=n(64),A=n(9),S=n(67),k=n(69),E=n(52),M=n(71),O=n(60),C=n(4),R=n(41),L=n(8),I=n(72),P=n(43),D=n(31),z=n(47),N=n(48),F=n(37),j=n(30),X=n(73),B=n(74),$=n(76),U=n(45),Y=n(77).forEach,V=z("hidden"),G="Symbol",H=j("toPrimitive"),W=U.set,q=U.getterFor(G),Z=Object.prototype,K=i.Symbol,J=K&&K.prototype,Q=i.TypeError,tt=i.QObject,et=a("JSON","stringify"),nt=C.f,rt=R.f,it=M.f,at=L.f,ot=u([].push),st=D("symbols"),ut=D("op-symbols"),ct=D("string-to-symbol-registry"),lt=D("symbol-to-string-registry"),ft=D("wks"),ht=!tt||!tt.prototype||!tt.prototype.findChild,dt=l&&h((function(){return 7!=S(rt({},"a",{get:function(){return rt(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=nt(Z,e);r&&delete Z[e],rt(t,e,n),r&&t!==Z&&rt(Z,e,r)}:rt,gt=function(t,e){var n=st[t]=S(J);return W(n,{type:G,tag:t,description:e}),l||(n.description=e),n},pt=function(t,e,n){t===Z&&pt(ut,e,n),_(t);var r=w(e);return _(n),d(st,r)?(n.enumerable?(d(t,V)&&t[V][r]&&(t[V][r]=!1),n=S(n,{enumerable:A(0,!1)})):(d(t,V)||rt(t,V,A(1,{})),t[V][r]=!0),dt(t,r,n)):rt(t,r,n)},vt=function(t,e){_(t);var n=b(e),r=k(n).concat(mt(n));return Y(r,(function(e){l&&!s(yt,n,e)||pt(t,e,n[e])})),t},yt=function(t){var e=w(t),n=s(at,this,e);return!(this===Z&&d(st,e)&&!d(ut,e))&&(!(n||!d(this,e)||!d(st,e)||d(this,V)&&this[V][e])||n)},xt=function(t,e){var n=b(t),r=w(e);if(n!==Z||!d(st,r)||d(ut,r)){var i=nt(n,r);return!i||!d(st,r)||d(n,V)&&n[V][r]||(i.enumerable=!0),i}},_t=function(t){var e=it(b(t)),n=[];return Y(e,(function(t){d(st,t)||d(N,t)||ot(n,t)})),n},mt=function(t){var e=t===Z,n=it(e?ut:b(t)),r=[];return Y(n,(function(t){!d(st,t)||e&&!d(Z,t)||ot(r,st[t])})),r};(f||(K=function(){if(y(J,this))throw Q("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?T(arguments[0]):void 0,e=F(t),n=function(t){this===Z&&s(n,ut,t),d(this,V)&&d(this[V],e)&&(this[V][e]=!1),dt(this,e,A(1,t))};return l&&ht&&dt(Z,e,{configurable:!0,set:n}),gt(e,t)},P(J=K.prototype,"toString",(function(){return q(this).tag})),P(K,"withoutSetter",(function(t){return gt(F(t),t)})),L.f=yt,R.f=pt,C.f=xt,E.f=M.f=_t,O.f=mt,X.f=function(t){return gt(j(t),t)},l&&(rt(J,"description",{configurable:!0,get:function(){return q(this).description}}),c||P(Z,"propertyIsEnumerable",yt,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!f,sham:!f},{Symbol:K}),Y(k(ft),(function(t){B(t)})),r({target:G,stat:!0,forced:!f},{for:function(t){var e=T(t);if(d(ct,e))return ct[e];var n=K(e);return ct[e]=n,lt[n]=e,n},keyFor:function(t){if(!x(t))throw Q(t+" is not a symbol");if(d(lt,t))return lt[t]},useSetter:function(){ht=!0},useSimple:function(){ht=!1}}),r({target:"Object",stat:!0,forced:!f,sham:!l},{create:function(t,e){return void 0===e?S(t):vt(S(t),e)},defineProperty:pt,defineProperties:vt,getOwnPropertyDescriptor:xt}),r({target:"Object",stat:!0,forced:!f},{getOwnPropertyNames:_t,getOwnPropertySymbols:mt}),r({target:"Object",stat:!0,forced:h((function(){O.f(1)}))},{getOwnPropertySymbols:function(t){return O.f(m(t))}}),et)&&r({target:"JSON",stat:!0,forced:!f||h((function(){var t=K();return"[null]"!=et([t])||"{}"!=et({a:t})||"{}"!=et(Object(t))}))},{stringify:function(t,e,n){var r=I(arguments),i=e;if((v(e)||void 0!==t)&&!x(t))return g(e)||(e=function(t,e){if(p(i)&&(e=s(i,this,t,e)),!x(e))return e}),r[1]=e,o(et,null,r)}});if(!J[H]){var bt=J.valueOf;P(J,H,(function(t){return s(bt,this)}))}$(K,G),N[V]=!0},function(t,e,n){var r=n(3),i=n(4).f,a=n(40),o=n(43),s=n(34),u=n(50),c=n(61);t.exports=function(t,e){var n,l,f,h,d,g=t.target,p=t.global,v=t.stat;if(n=p?r:v?r[g]||s(g,{}):(r[g]||{}).prototype)for(l in e){if(h=e[l],f=t.noTargetGet?(d=i(n,l))&&d.value:n[l],!c(p?l:g+(v?".":"#")+l,t.forced)&&void 0!==f){if(typeof h==typeof f)continue;u(h,f)}(t.sham||f&&f.sham)&&a(h,"sham",!0),o(n,l,h,t)}}},function(t){var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof global&&global)||function(){return this}()||Function("return this")()},function(t,e,n){var r=n(5),i=n(7),a=n(8),o=n(9),s=n(10),u=n(15),c=n(35),l=n(38),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=s(t),e=u(e),l)try{return f(t,e)}catch(t){}if(c(t,e))return o(!i(a.f,t,e),t[e])}},function(t,e,n){var r=n(6);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t){var e=Function.prototype.call;t.exports=e.bind?e.bind(e):function(){return e.apply(e,arguments)}},function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(11),i=n(14);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(3),i=n(12),a=n(6),o=n(13),s=r.Object,u=i("".split);t.exports=a((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?u(t,""):s(t)}:s},function(t){var e=Function.prototype,n=e.bind,r=e.call,i=n&&n.bind(r);t.exports=n?function(t){return t&&i(r,t)}:function(t){return t&&function(){return r.apply(t,arguments)}}},function(t,e,n){var r=n(12),i=r({}.toString),a=r("".slice);t.exports=function(t){return a(i(t),8,-1)}},function(t,e,n){var r=n(3).TypeError;t.exports=function(t){if(null==t)throw r("Can't call method on "+t);return t}},function(t,e,n){var r=n(16),i=n(19);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},function(t,e,n){var r=n(3),i=n(7),a=n(17),o=n(19),s=n(26),u=n(29),c=n(30),l=r.TypeError,f=c("toPrimitive");t.exports=function(t,e){if(!a(t)||o(t))return t;var n,r=s(t,f);if(r){if(void 0===e&&(e="default"),n=i(r,t,e),!a(n)||o(n))return n;throw l("Can't convert object to primitive value")}return void 0===e&&(e="number"),u(t,e)}},function(t,e,n){var r=n(18);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},function(t){t.exports=function(t){return"function"==typeof t}},function(t,e,n){var r=n(3),i=n(20),a=n(18),o=n(21),s=n(22),u=r.Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return a(e)&&o(e.prototype,u(t))}},function(t,e,n){var r=n(3),i=n(18),a=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?a(r[t]):r[t]&&r[t][e]}},function(t,e,n){var r=n(12);t.exports=r({}.isPrototypeOf)},function(t,e,n){var r=n(23);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(24),i=n(6);t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,e,n){var r,i,a=n(3),o=n(25),s=a.process,u=a.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(i=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},function(t,e,n){var r=n(20);t.exports=r("navigator","userAgent")||""},function(t,e,n){var r=n(27);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},function(t,e,n){var r=n(3),i=n(18),a=n(28),o=r.TypeError;t.exports=function(t){if(i(t))return t;throw o(a(t)+" is not a function")}},function(t,e,n){var r=n(3).String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},function(t,e,n){var r=n(3),i=n(7),a=n(18),o=n(17),s=r.TypeError;t.exports=function(t,e){var n,r;if("string"===e&&a(n=t.toString)&&!o(r=i(n,t)))return r;if(a(n=t.valueOf)&&!o(r=i(n,t)))return r;if("string"!==e&&a(n=t.toString)&&!o(r=i(n,t)))return r;throw s("Can't convert object to primitive value")}},function(t,e,n){var r=n(3),i=n(31),a=n(35),o=n(37),s=n(23),u=n(22),c=i("wks"),l=r.Symbol,f=l&&l.for,h=u?l:l&&l.withoutSetter||o;t.exports=function(t){if(!a(c,t)||!s&&"string"!=typeof c[t]){var e="Symbol."+t;s&&a(l,t)?c[t]=l[t]:c[t]=u&&f?f(e):h(e)}return c[t]}},function(t,e,n){var r=n(32),i=n(33);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.1",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t){t.exports=!1},function(t,e,n){var r=n(3),i=n(34),a="__core-js_shared__",o=r[a]||i(a,{});t.exports=o},function(t,e,n){var r=n(3),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},function(t,e,n){var r=n(12),i=n(36),a=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return a(i(t),e)}},function(t,e,n){var r=n(3),i=n(14),a=r.Object;t.exports=function(t){return a(i(t))}},function(t,e,n){var r=n(12),i=0,a=Math.random(),o=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++i+a,36)}},function(t,e,n){var r=n(5),i=n(6),a=n(39);t.exports=!r&&!i((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(3),i=n(17),a=r.document,o=i(a)&&i(a.createElement);t.exports=function(t){return o?a.createElement(t):{}}},function(t,e,n){var r=n(5),i=n(41),a=n(9);t.exports=r?function(t,e,n){return i.f(t,e,a(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(3),i=n(5),a=n(38),o=n(42),s=n(15),u=r.TypeError,c=Object.defineProperty;e.f=i?c:function(t,e,n){if(o(t),e=s(e),o(n),a)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(3),i=n(17),a=r.String,o=r.TypeError;t.exports=function(t){if(i(t))return t;throw o(a(t)+" is not an object")}},function(t,e,n){var r=n(3),i=n(18),a=n(35),o=n(40),s=n(34),u=n(44),c=n(45),l=n(49).CONFIGURABLE,f=c.get,h=c.enforce,d=String(String).split("String");(t.exports=function(t,e,n,u){var c,f=!!u&&!!u.unsafe,g=!!u&&!!u.enumerable,p=!!u&&!!u.noTargetGet,v=u&&void 0!==u.name?u.name:e;i(n)&&("Symbol("===String(v).slice(0,7)&&(v="["+String(v).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!a(n,"name")||l&&n.name!==v)&&o(n,"name",v),(c=h(n)).source||(c.source=d.join("string"==typeof v?v:""))),t!==r?(f?!p&&t[e]&&(g=!0):delete t[e],g?t[e]=n:o(t,e,n)):g?t[e]=n:s(e,n)})(Function.prototype,"toString",(function(){return i(this)&&f(this).source||u(this)}))},function(t,e,n){var r=n(12),i=n(18),a=n(33),o=r(Function.toString);i(a.inspectSource)||(a.inspectSource=function(t){return o(t)}),t.exports=a.inspectSource},function(t,e,n){var r,i,a,o=n(46),s=n(3),u=n(12),c=n(17),l=n(40),f=n(35),h=n(33),d=n(47),g=n(48),p="Object already initialized",v=s.TypeError,y=s.WeakMap;if(o||h.state){var x=h.state||(h.state=new y),_=u(x.get),m=u(x.has),b=u(x.set);r=function(t,e){if(m(x,t))throw new v(p);return e.facade=t,b(x,t,e),e},i=function(t){return _(x,t)||{}},a=function(t){return m(x,t)}}else{var w=d("state");g[w]=!0,r=function(t,e){if(f(t,w))throw new v(p);return e.facade=t,l(t,w,e),e},i=function(t){return f(t,w)?t[w]:{}},a=function(t){return f(t,w)}}t.exports={set:r,get:i,has:a,enforce:function(t){return a(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=i(e)).type!==t)throw v("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){var r=n(3),i=n(18),a=n(44),o=r.WeakMap;t.exports=i(o)&&/native code/.test(a(o))},function(t,e,n){var r=n(31),i=n(37),a=r("keys");t.exports=function(t){return a[t]||(a[t]=i(t))}},function(t){t.exports={}},function(t,e,n){var r=n(5),i=n(35),a=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,s=i(a,"name"),u=s&&"something"===function(){}.name,c=s&&(!r||r&&o(a,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},function(t,e,n){var r=n(35),i=n(51),a=n(4),o=n(41);t.exports=function(t,e){for(var n=i(e),s=o.f,u=a.f,c=0;c<n.length;c++){var l=n[c];r(t,l)||s(t,l,u(e,l))}}},function(t,e,n){var r=n(20),i=n(12),a=n(52),o=n(60),s=n(42),u=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=a.f(s(t)),n=o.f;return n?u(e,n(t)):e}},function(t,e,n){var r=n(53),i=n(59).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){var r=n(12),i=n(35),a=n(10),o=n(54).indexOf,s=n(48),u=r([].push);t.exports=function(t,e){var n,r=a(t),c=0,l=[];for(n in r)!i(s,n)&&i(r,n)&&u(l,n);for(;e.length>c;)i(r,n=e[c++])&&(~o(l,n)||u(l,n));return l}},function(t,e,n){var r=n(10),i=n(55),a=n(57),o=function(t){return function(e,n,o){var s,u=r(e),c=a(u),l=i(o,c);if(t&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},function(t,e,n){var r=n(56),i=Math.max,a=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):a(n,e)}},function(t){var e=Math.ceil,n=Math.floor;t.exports=function(t){var r=+t;return r!=r||0===r?0:(r>0?n:e)(r)}},function(t,e,n){var r=n(58);t.exports=function(t){return r(t.length)}},function(t,e,n){var r=n(56),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(6),i=n(18),a=/#|\.prototype\./,o=function(t,e){var n=u[s(t)];return n==l||n!=c&&(i(e)?r(e):!!e)},s=o.normalize=function(t){return String(t).replace(a,".").toLowerCase()},u=o.data={},c=o.NATIVE="N",l=o.POLYFILL="P";t.exports=o},function(t){var e=Function.prototype,n=e.apply,r=e.bind,i=e.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?i.bind(n):function(){return i.apply(n,arguments)})},function(t,e,n){var r=n(13);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(3),i=n(65),a=r.String;t.exports=function(t){if("Symbol"===i(t))throw TypeError("Cannot convert a Symbol value to a string");return a(t)}},function(t,e,n){var r=n(3),i=n(66),a=n(18),o=n(13),s=n(30)("toStringTag"),u=r.Object,c="Arguments"==o(function(){return arguments}());t.exports=i?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=u(t),s))?n:c?o(e):"Object"==(r=o(e))&&a(e.callee)?"Arguments":r}},function(t,e,n){var r={};r[n(30)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){var r,i=n(42),a=n(68),o=n(59),s=n(48),u=n(70),c=n(39),l=n(47),f=l("IE_PROTO"),h=function(){},d=function(t){return"<script>"+t+"</"+"script>"},g=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},p=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;p="undefined"!=typeof document?document.domain&&r?g(r):((e=c("iframe")).style.display="none",u.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):g(r);for(var n=o.length;n--;)delete p.prototype[o[n]];return p()};s[f]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(h.prototype=i(t),n=new h,h.prototype=null,n[f]=t):n=p(),void 0===e?n:a(n,e)}},function(t,e,n){var r=n(5),i=n(41),a=n(42),o=n(10),s=n(69);t.exports=r?Object.defineProperties:function(t,e){a(t);for(var n,r=o(e),u=s(e),c=u.length,l=0;c>l;)i.f(t,n=u[l++],r[n]);return t}},function(t,e,n){var r=n(53),i=n(59);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){var r=n(20);t.exports=r("document","documentElement")},function(t,e,n){var r=n(13),i=n(10),a=n(52).f,o=n(72),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"==r(t)?function(t){try{return a(t)}catch(t){return o(s)}}(t):a(i(t))}},function(t,e,n){var r=n(12);t.exports=r([].slice)},function(t,e,n){var r=n(30);e.f=r},function(t,e,n){var r=n(75),i=n(35),a=n(73),o=n(41).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||o(e,t,{value:a.f(t)})}},function(t,e,n){var r=n(3);t.exports=r},function(t,e,n){var r=n(41).f,i=n(35),a=n(30)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},function(t,e,n){var r=n(78),i=n(12),a=n(11),o=n(36),s=n(57),u=n(79),c=i([].push),l=function(t){var e=1==t,n=2==t,i=3==t,l=4==t,f=6==t,h=7==t,d=5==t||f;return function(g,p,v,y){for(var x,_,m=o(g),b=a(m),w=r(p,v),T=s(b),A=0,S=y||u,k=e?S(g,T):n||h?S(g,0):void 0;T>A;A++)if((d||A in b)&&(_=w(x=b[A],A,m),t))if(e)k[A]=_;else if(_)switch(t){case 3:return!0;case 5:return x;case 6:return A;case 2:c(k,x)}else switch(t){case 4:return!1;case 7:c(k,x)}return f?-1:i||l?l:k}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},function(t,e,n){var r=n(12),i=n(27),a=r(r.bind);t.exports=function(t,e){return i(t),void 0===e?t:a?a(t,e):function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(80);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},function(t,e,n){var r=n(3),i=n(63),a=n(81),o=n(17),s=n(30)("species"),u=r.Array;t.exports=function(t){var e;return i(t)&&(e=t.constructor,(a(e)&&(e===u||i(e.prototype))||o(e)&&null===(e=e[s]))&&(e=void 0)),void 0===e?u:e}},function(t,e,n){var r=n(12),i=n(6),a=n(18),o=n(65),s=n(20),u=n(44),c=function(){},l=[],f=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,d=r(h.exec),g=!h.exec(c),p=function(t){if(!a(t))return!1;try{return f(c,l,t),!0}catch(t){return!1}};t.exports=!f||i((function(){var t;return p(p.call)||!p(Object)||!p((function(){t=!0}))||t}))?function(t){if(!a(t))return!1;switch(o(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return g||!!d(h,u(t))}:p},function(t,e,n){"use strict";var r=n(2),i=n(5),a=n(3),o=n(12),s=n(35),u=n(18),c=n(21),l=n(64),f=n(41).f,h=n(50),d=a.Symbol,g=d&&d.prototype;if(i&&u(d)&&(!("description"in g)||void 0!==d().description)){var p={},v=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),e=c(g,this)?new d(t):void 0===t?d():d(t);return""===t&&(p[e]=!0),e};h(v,d),v.prototype=g,g.constructor=v;var y="Symbol(test)"==String(d("test")),x=o(g.toString),_=o(g.valueOf),m=/^Symbol\((.*)\)[^)]+$/,b=o("".replace),w=o("".slice);f(g,"description",{configurable:!0,get:function(){var t=_(this),e=x(t);if(s(p,t))return"";var n=y?w(e,7,-1):b(e,m,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:v})}},function(t,e,n){n(74)("asyncIterator")},function(t,e,n){n(74)("hasInstance")},function(t,e,n){n(74)("isConcatSpreadable")},function(t,e,n){n(74)("iterator")},function(t,e,n){n(74)("match")},function(t,e,n){n(74)("matchAll")},function(t,e,n){n(74)("replace")},function(t,e,n){n(74)("search")},function(t,e,n){n(74)("species")},function(t,e,n){n(74)("split")},function(t,e,n){n(74)("toPrimitive")},function(t,e,n){n(74)("toStringTag")},function(t,e,n){n(74)("unscopables")},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(21),o=n(97),s=n(99),u=n(50),c=n(67),l=n(40),f=n(9),h=n(101),d=n(102),g=n(103),p=n(109),v=n(30),y=n(110),x=v("toStringTag"),_=i.Error,m=[].push,b=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,i=a(w,this);s?n=s(new _(void 0),i?o(this):w):(n=i?this:c(w),l(n,x,"Error")),l(n,"message",p(e,"")),y&&l(n,"stack",h(n.stack,1)),d(n,r);var u=[];return g(t,m,{that:u}),l(n,"errors",u),n};s?s(b,_):u(b,_);var w=b.prototype=c(_.prototype,{constructor:f(1,b),message:f(1,""),name:f(1,"AggregateError")});r({global:!0},{AggregateError:b})},function(t,e,n){var r=n(3),i=n(35),a=n(18),o=n(36),s=n(47),u=n(98),c=s("IE_PROTO"),l=r.Object,f=l.prototype;t.exports=u?l.getPrototypeOf:function(t){var e=o(t);if(i(e,c))return e[c];var n=e.constructor;return a(n)&&e instanceof n?n.prototype:e instanceof l?f:null}},function(t,e,n){var r=n(6);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){var r=n(12),i=n(42),a=n(100);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return i(n),a(r),e?t(n,r):n.__proto__=r,n}}():void 0)},function(t,e,n){var r=n(3),i=n(18),a=r.String,o=r.TypeError;t.exports=function(t){if("object"==typeof t||i(t))return t;throw o("Can't set "+a(t)+" as a prototype")}},function(t,e,n){var r=n(12),i=n(72),a=r("".replace),o=r("".split),s=r([].join),u=String(Error("zxcasd").stack),c=/\n\s*at [^:]*:[^\n]*/,l=c.test(u),f=/@[^\n]*\n/.test(u)&&!/zxcasd/.test(u);t.exports=function(t,e){if("string"!=typeof t)return t;if(l)for(;e--;)t=a(t,c,"");else if(f)return s(i(o(t,"\n"),e),"\n");return t}},function(t,e,n){var r=n(17),i=n(40);t.exports=function(t,e){r(e)&&"cause"in e&&i(t,"cause",e.cause)}},function(t,e,n){var r=n(3),i=n(78),a=n(7),o=n(42),s=n(28),u=n(104),c=n(57),l=n(21),f=n(106),h=n(107),d=n(108),g=r.TypeError,p=function(t,e){this.stopped=t,this.result=e},v=p.prototype;t.exports=function(t,e,n){var r,y,x,_,m,b,w,T=n&&n.that,A=!(!n||!n.AS_ENTRIES),S=!(!n||!n.IS_ITERATOR),k=!(!n||!n.INTERRUPTED),E=i(e,T),M=function(t){return r&&d(r,"normal",t),new p(!0,t)},O=function(t){return A?(o(t),k?E(t[0],t[1],M):E(t[0],t[1])):k?E(t,M):E(t)};if(S)r=t;else{if(!(y=h(t)))throw g(s(t)+" is not iterable");if(u(y)){for(x=0,_=c(t);_>x;x++)if((m=O(t[x]))&&l(v,m))return m;return new p(!1)}r=f(t,y)}for(b=r.next;!(w=a(b,r)).done;){try{m=O(w.value)}catch(t){d(r,"throw",t)}if("object"==typeof m&&m&&l(v,m))return m}return new p(!1)}},function(t,e,n){var r=n(30),i=n(105),a=r("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[a]===t)}},function(t){t.exports={}},function(t,e,n){var r=n(3),i=n(7),a=n(27),o=n(42),s=n(28),u=n(107),c=r.TypeError;t.exports=function(t,e){var n=arguments.length<2?u(t):e;if(a(n))return o(i(n,t));throw c(s(t)+" is not iterable")}},function(t,e,n){var r=n(65),i=n(26),a=n(105),o=n(30)("iterator");t.exports=function(t){if(null!=t)return i(t,o)||i(t,"@@iterator")||a[r(t)]}},function(t,e,n){var r=n(7),i=n(42),a=n(26);t.exports=function(t,e,n){var o,s;i(t);try{if(!(o=a(t,"return"))){if("throw"===e)throw n;return n}o=r(o,t)}catch(t){s=!0,o=t}if("throw"===e)throw n;if(s)throw o;return i(o),n}},function(t,e,n){var r=n(64);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},function(t,e,n){var r=n(6),i=n(9);t.exports=!r((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",i(1,7)),7!==t.stack)}))},function(t,e,n){"use strict";var r=n(2),i=n(36),a=n(57),o=n(56),s=n(112);r({target:"Array",proto:!0},{at:function(t){var e=i(this),n=a(e),r=o(t),s=r>=0?r:n+r;return s<0||s>=n?void 0:e[s]}}),s("at")},function(t,e,n){var r=n(30),i=n(67),a=n(41),o=r("unscopables"),s=Array.prototype;null==s[o]&&a.f(s,o,{configurable:!0,value:i(null)}),t.exports=function(t){s[o][t]=!0}},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(6),o=n(63),s=n(17),u=n(36),c=n(57),l=n(114),f=n(79),h=n(115),d=n(30),g=n(24),p=d("isConcatSpreadable"),v=9007199254740991,y="Maximum allowed index exceeded",x=i.TypeError,_=g>=51||!a((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),m=h("concat"),b=function(t){if(!s(t))return!1;var e=t[p];return void 0!==e?!!e:o(t)};r({target:"Array",proto:!0,forced:!_||!m},{concat:function(t){var e,n,r,i,a,o=u(this),s=f(o,0),h=0;for(e=-1,r=arguments.length;e<r;e++)if(b(a=-1===e?o:arguments[e])){if(h+(i=c(a))>v)throw x(y);for(n=0;n<i;n++,h++)n in a&&l(s,h,a[n])}else{if(h>=v)throw x(y);l(s,h++,a)}return s.length=h,s}})},function(t,e,n){"use strict";var r=n(15),i=n(41),a=n(9);t.exports=function(t,e,n){var o=r(e);o in t?i.f(t,o,a(0,n)):t[o]=n}},function(t,e,n){var r=n(6),i=n(30),a=n(24),o=i("species");t.exports=function(t){return a>=51||!r((function(){var e=[];return(e.constructor={})[o]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,n){var r=n(2),i=n(117),a=n(112);r({target:"Array",proto:!0},{copyWithin:i}),a("copyWithin")},function(t,e,n){"use strict";var r=n(36),i=n(55),a=n(57),o=Math.min;t.exports=[].copyWithin||function(t,e){var n=r(this),s=a(n),u=i(t,s),c=i(e,s),l=arguments.length>2?arguments[2]:void 0,f=o((void 0===l?s:i(l,s))-c,s-u),h=1;for(c<u&&u<c+f&&(h=-1,c+=f-1,u+=f-1);f-- >0;)c in n?n[u]=n[c]:delete n[u],u+=h,c+=h;return n}},function(t,e,n){"use strict";var r=n(2),i=n(77).every;r({target:"Array",proto:!0,forced:!n(119)("every")},{every:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(6);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},function(t,e,n){var r=n(2),i=n(121),a=n(112);r({target:"Array",proto:!0},{fill:i}),a("fill")},function(t,e,n){"use strict";var r=n(36),i=n(55),a=n(57);t.exports=function(t){for(var e=r(this),n=a(e),o=arguments.length,s=i(o>1?arguments[1]:void 0,n),u=o>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>s;)e[s++]=t;return e}},function(t,e,n){"use strict";var r=n(2),i=n(77).filter;r({target:"Array",proto:!0,forced:!n(115)("filter")},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(2),i=n(77).find,a=n(112),o="find",s=!0;o in[]&&Array(1).find((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),a(o)},function(t,e,n){"use strict";var r=n(2),i=n(77).findIndex,a=n(112),o="findIndex",s=!0;o in[]&&Array(1).findIndex((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),a(o)},function(t,e,n){"use strict";var r=n(2),i=n(126),a=n(36),o=n(57),s=n(56),u=n(79);r({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=a(this),n=o(e),r=u(e,0);return r.length=i(r,e,e,n,0,void 0===t?1:s(t)),r}})},function(t,e,n){"use strict";var r=n(3),i=n(63),a=n(57),o=n(78),s=r.TypeError,u=function(t,e,n,r,c,l,f,h){for(var d,g,p=c,v=0,y=!!f&&o(f,h);v<r;){if(v in n){if(d=y?y(n[v],v,e):n[v],l>0&&i(d))g=a(d),p=u(t,e,d,g,p,l-1)-1;else{if(p>=9007199254740991)throw s("Exceed the acceptable array length");t[p]=d}p++}v++}return p};t.exports=u},function(t,e,n){"use strict";var r=n(2),i=n(126),a=n(27),o=n(36),s=n(57),u=n(79);r({target:"Array",proto:!0},{flatMap:function(t){var e,n=o(this),r=s(n);return a(t),(e=u(n,0)).length=i(e,n,n,r,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},function(t,e,n){"use strict";var r=n(2),i=n(129);r({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},function(t,e,n){"use strict";var r=n(77).forEach,i=n(119)("forEach");t.exports=i?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,n){var r=n(2),i=n(131);r({target:"Array",stat:!0,forced:!n(133)((function(t){Array.from(t)}))},{from:i})},function(t,e,n){"use strict";var r=n(3),i=n(78),a=n(7),o=n(36),s=n(132),u=n(104),c=n(81),l=n(57),f=n(114),h=n(106),d=n(107),g=r.Array;t.exports=function(t){var e=o(t),n=c(this),r=arguments.length,p=r>1?arguments[1]:void 0,v=void 0!==p;v&&(p=i(p,r>2?arguments[2]:void 0));var y,x,_,m,b,w,T=d(e),A=0;if(!T||this==g&&u(T))for(y=l(e),x=n?new this(y):g(y);y>A;A++)w=v?p(e[A],A):e[A],f(x,A,w);else for(b=(m=h(e,T)).next,x=n?new this:[];!(_=a(b,m)).done;A++)w=v?s(m,p,[_.value,A],!0):_.value,f(x,A,w);return x.length=A,x}},function(t,e,n){var r=n(42),i=n(108);t.exports=function(t,e,n,a){try{return a?e(r(n)[0],n[1]):e(n)}catch(e){i(t,"throw",e)}}},function(t,e,n){var r=n(30)("iterator"),i=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){i=!0}};o[r]=function(){return this},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var a={};a[r]=function(){return{next:function(){return{done:n=!0}}}},t(a)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(2),i=n(54).includes,a=n(112);r({target:"Array",proto:!0},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),a("includes")},function(t,e,n){"use strict";var r=n(2),i=n(12),a=n(54).indexOf,o=n(119),s=i([].indexOf),u=!!s&&1/s([1],1,-0)<0,c=o("indexOf");r({target:"Array",proto:!0,forced:u||!c},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return u?s(this,t,e)||0:a(this,t,e)}})},function(t,e,n){n(2)({target:"Array",stat:!0},{isArray:n(63)})},function(t,e,n){"use strict";var r=n(10),i=n(112),a=n(105),o=n(45),s=n(138),u="Array Iterator",c=o.set,l=o.getterFor(u);t.exports=s(Array,"Array",(function(t,e){c(this,{type:u,target:r(t),index:0,kind:e})}),(function(){var t=l(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},function(t,e,n){"use strict";var r=n(2),i=n(7),a=n(32),o=n(49),s=n(18),u=n(139),c=n(97),l=n(99),f=n(76),h=n(40),d=n(43),g=n(30),p=n(105),v=n(140),y=o.PROPER,x=o.CONFIGURABLE,_=v.IteratorPrototype,m=v.BUGGY_SAFARI_ITERATORS,b=g("iterator"),w="keys",T="values",A="entries",S=function(){return this};t.exports=function(t,e,n,o,g,v,k){u(n,e,o);var E,M,O,C=function(t){if(t===g&&D)return D;if(!m&&t in I)return I[t];switch(t){case w:case T:case A:return function(){return new n(this,t)}}return function(){return new n(this)}},R=e+" Iterator",L=!1,I=t.prototype,P=I[b]||I["@@iterator"]||g&&I[g],D=!m&&P||C(g),z="Array"==e&&I.entries||P;if(z&&(E=c(z.call(new t)))!==Object.prototype&&E.next&&(a||c(E)===_||(l?l(E,_):s(E[b])||d(E,b,S)),f(E,R,!0,!0),a&&(p[R]=S)),y&&g==T&&P&&P.name!==T&&(!a&&x?h(I,"name",T):(L=!0,D=function(){return i(P,this)})),g)if(M={values:C(T),keys:v?D:C(w),entries:C(A)},k)for(O in M)(m||L||!(O in I))&&d(I,O,M[O]);else r({target:e,proto:!0,forced:m||L},M);return a&&!k||I[b]===D||d(I,b,D,{name:g}),p[e]=D,M}},function(t,e,n){"use strict";var r=n(140).IteratorPrototype,i=n(67),a=n(9),o=n(76),s=n(105),u=function(){return this};t.exports=function(t,e,n){var c=e+" Iterator";return t.prototype=i(r,{next:a(1,n)}),o(t,c,!1,!0),s[c]=u,t}},function(t,e,n){"use strict";var r,i,a,o=n(6),s=n(18),u=n(67),c=n(97),l=n(43),f=n(30),h=n(32),d=f("iterator"),g=!1;[].keys&&("next"in(a=[].keys())?(i=c(c(a)))!==Object.prototype&&(r=i):g=!0),null==r||o((function(){var t={};return r[d].call(t)!==t}))?r={}:h&&(r=u(r)),s(r[d])||l(r,d,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:g}},function(t,e,n){"use strict";var r=n(2),i=n(12),a=n(11),o=n(10),s=n(119),u=i([].join),c=a!=Object,l=s("join",",");r({target:"Array",proto:!0,forced:c||!l},{join:function(t){return u(o(this),void 0===t?",":t)}})},function(t,e,n){var r=n(2),i=n(143);r({target:"Array",proto:!0,forced:i!==[].lastIndexOf},{lastIndexOf:i})},function(t,e,n){"use strict";var r=n(62),i=n(10),a=n(56),o=n(57),s=n(119),u=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,f=s("lastIndexOf"),h=l||!f;t.exports=h?function(t){if(l)return r(c,this,arguments)||0;var e=i(this),n=o(e),s=n-1;for(arguments.length>1&&(s=u(s,a(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in e&&e[s]===t)return s||0;return-1}:c},function(t,e,n){"use strict";var r=n(2),i=n(77).map;r({target:"Array",proto:!0,forced:!n(115)("map")},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(6),o=n(81),s=n(114),u=i.Array;r({target:"Array",stat:!0,forced:a((function(){function t(){}return!(u.of.call(t)instanceof t)}))},{of:function(){for(var t=0,e=arguments.length,n=new(o(this)?this:u)(e);e>t;)s(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(2),i=n(147).left,a=n(119),o=n(24),s=n(148);r({target:"Array",proto:!0,forced:!a("reduce")||!s&&o>79&&o<83},{reduce:function(t){var e=arguments.length;return i(this,t,e,e>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(3),i=n(27),a=n(36),o=n(11),s=n(57),u=r.TypeError,c=function(t){return function(e,n,r,c){i(n);var l=a(e),f=o(l),h=s(l),d=t?h-1:0,g=t?-1:1;if(r<2)for(;;){if(d in f){c=f[d],d+=g;break}if(d+=g,t?d<0:h<=d)throw u("Reduce of empty array with no initial value")}for(;t?d>=0:h>d;d+=g)d in f&&(c=n(c,f[d],d,l));return c}};t.exports={left:c(!1),right:c(!0)}},function(t,e,n){var r=n(13),i=n(3);t.exports="process"==r(i.process)},function(t,e,n){"use strict";var r=n(2),i=n(147).right,a=n(119),o=n(24),s=n(148);r({target:"Array",proto:!0,forced:!a("reduceRight")||!s&&o>79&&o<83},{reduceRight:function(t){return i(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(2),i=n(12),a=n(63),o=i([].reverse),s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return a(this)&&(this.length=this.length),o(this)}})},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(63),o=n(81),s=n(17),u=n(55),c=n(57),l=n(10),f=n(114),h=n(30),d=n(115),g=n(72),p=d("slice"),v=h("species"),y=i.Array,x=Math.max;r({target:"Array",proto:!0,forced:!p},{slice:function(t,e){var n,r,i,h=l(this),d=c(h),p=u(t,d),_=u(void 0===e?d:e,d);if(a(h)&&(n=h.constructor,(o(n)&&(n===y||a(n.prototype))||s(n)&&null===(n=n[v]))&&(n=void 0),n===y||void 0===n))return g(h,p,_);for(r=new(void 0===n?y:n)(x(_-p,0)),i=0;p<_;p++,i++)p in h&&f(r,i,h[p]);return r.length=i,r}})},function(t,e,n){"use strict";var r=n(2),i=n(77).some;r({target:"Array",proto:!0,forced:!n(119)("some")},{some:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(2),i=n(12),a=n(27),o=n(36),s=n(57),u=n(64),c=n(6),l=n(154),f=n(119),h=n(155),d=n(156),g=n(24),p=n(157),v=[],y=i(v.sort),x=i(v.push),_=c((function(){v.sort(void 0)})),m=c((function(){v.sort(null)})),b=f("sort"),w=!c((function(){if(g)return g<70;if(!(h&&h>3)){if(d)return!0;if(p)return p<603;var t,e,n,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)v.push({k:e+r,v:n})}for(v.sort((function(t,e){return e.v-t.v})),r=0;r<v.length;r++)e=v[r].k.charAt(0),i.charAt(i.length-1)!==e&&(i+=e);return"DGBEFHACIJK"!==i}}));r({target:"Array",proto:!0,forced:_||!m||!b||!w},{sort:function(t){void 0!==t&&a(t);var e=o(this);if(w)return void 0===t?y(e):y(e,t);var n,r,i=[],c=s(e);for(r=0;r<c;r++)r in e&&x(i,e[r]);for(l(i,function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:u(e)>u(n)?1:-1}}(t)),n=i.length,r=0;r<n;)e[r]=i[r++];for(;r<c;)delete e[r++];return e}})},function(t,e,n){var r=n(72),i=Math.floor,a=function(t,e){var n=t.length,u=i(n/2);return n<8?o(t,e):s(t,a(r(t,0,u),e),a(r(t,u),e),e)},o=function(t,e){for(var n,r,i=t.length,a=1;a<i;){for(r=a,n=t[a];r&&e(t[r-1],n)>0;)t[r]=t[--r];r!==a++&&(t[r]=n)}return t},s=function(t,e,n,r){for(var i=e.length,a=n.length,o=0,s=0;o<i||s<a;)t[o+s]=o<i&&s<a?r(e[o],n[s])<=0?e[o++]:n[s++]:o<i?e[o++]:n[s++];return t};t.exports=a},function(t,e,n){var r=n(25).match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},function(t,e,n){var r=n(25);t.exports=/MSIE|Trident/.test(r)},function(t,e,n){var r=n(25).match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},function(t,e,n){n(159)("Array")},function(t,e,n){"use strict";var r=n(20),i=n(41),a=n(30),o=n(5),s=a("species");t.exports=function(t){var e=r(t),n=i.f;o&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(55),o=n(56),s=n(57),u=n(36),c=n(79),l=n(114),f=n(115)("splice"),h=i.TypeError,d=Math.max,g=Math.min,p=9007199254740991,v="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!f},{splice:function(t,e){var n,r,i,f,y,x,_=u(this),m=s(_),b=a(t,m),w=arguments.length;if(0===w?n=r=0:1===w?(n=0,r=m-b):(n=w-2,r=g(d(o(e),0),m-b)),m+n-r>p)throw h(v);for(i=c(_,r),f=0;f<r;f++)(y=b+f)in _&&l(i,f,_[y]);if(i.length=r,n<r){for(f=b;f<m-r;f++)x=f+n,(y=f+r)in _?_[x]=_[y]:delete _[x];for(f=m;f>m-r+n;f--)delete _[f-1]}else if(n>r)for(f=m-r;f>b;f--)x=f+n-1,(y=f+r-1)in _?_[x]=_[y]:delete _[x];for(f=0;f<n;f++)_[f+b]=arguments[f+2];return _.length=m-r+n,i}})},function(t,e,n){n(112)("flat")},function(t,e,n){n(112)("flatMap")},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(164),o=n(159),s="ArrayBuffer",u=a.ArrayBuffer;r({global:!0,forced:i.ArrayBuffer!==u},{ArrayBuffer:u}),o(s)},function(t,e,n){"use strict";var r=n(3),i=n(12),a=n(5),o=n(165),s=n(49),u=n(40),c=n(166),l=n(6),f=n(167),h=n(56),d=n(58),g=n(168),p=n(169),v=n(97),y=n(99),x=n(52).f,_=n(41).f,m=n(121),b=n(72),w=n(76),T=n(45),A=s.PROPER,S=s.CONFIGURABLE,k=T.get,E=T.set,M="ArrayBuffer",O="DataView",C="Wrong index",R=r.ArrayBuffer,L=R,I=L&&L.prototype,P=r.DataView,D=P&&P.prototype,z=Object.prototype,N=r.Array,F=r.RangeError,j=i(m),X=i([].reverse),B=p.pack,$=p.unpack,U=function(t){return[255&t]},Y=function(t){return[255&t,t>>8&255]},V=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},G=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},H=function(t){return B(t,23,4)},W=function(t){return B(t,52,8)},q=function(t,e){_(t.prototype,e,{get:function(){return k(this)[e]}})},Z=function(t,e,n,r){var i=g(n),a=k(t);if(i+e>a.byteLength)throw F(C);var o=k(a.buffer).bytes,s=i+a.byteOffset,u=b(o,s,s+e);return r?u:X(u)},K=function(t,e,n,r,i,a){var o=g(n),s=k(t);if(o+e>s.byteLength)throw F(C);for(var u=k(s.buffer).bytes,c=o+s.byteOffset,l=r(+i),f=0;f<e;f++)u[c+f]=l[a?f:e-f-1]};if(o){var J=A&&R.name!==M;if(l((function(){R(1)}))&&l((function(){new R(-1)}))&&!l((function(){return new R,new R(1.5),new R(NaN),J&&!S})))J&&S&&u(R,"name",M);else{(L=function(t){return f(this,I),new R(g(t))}).prototype=I;for(var Q,tt=x(R),et=0;tt.length>et;)(Q=tt[et++])in L||u(L,Q,R[Q]);I.constructor=L}y&&v(D)!==z&&y(D,z);var nt=new P(new L(2)),rt=i(D.setInt8);nt.setInt8(0,2147483648),nt.setInt8(1,2147483649),!nt.getInt8(0)&&nt.getInt8(1)||c(D,{setInt8:function(t,e){rt(this,t,e<<24>>24)},setUint8:function(t,e){rt(this,t,e<<24>>24)}},{unsafe:!0})}else I=(L=function(t){f(this,I);var e=g(t);E(this,{bytes:j(N(e),0),byteLength:e}),a||(this.byteLength=e)}).prototype,D=(P=function(t,e,n){f(this,D),f(t,I);var r=k(t).byteLength,i=h(e);if(i<0||i>r)throw F("Wrong offset");if(i+(n=void 0===n?r-i:d(n))>r)throw F("Wrong length");E(this,{buffer:t,byteLength:n,byteOffset:i}),a||(this.buffer=t,this.byteLength=n,this.byteOffset=i)}).prototype,a&&(q(L,"byteLength"),q(P,"buffer"),q(P,"byteLength"),q(P,"byteOffset")),c(D,{getInt8:function(t){return Z(this,1,t)[0]<<24>>24},getUint8:function(t){return Z(this,1,t)[0]},getInt16:function(t){var e=Z(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=Z(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return G(Z(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return G(Z(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return $(Z(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return $(Z(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){K(this,1,t,U,e)},setUint8:function(t,e){K(this,1,t,U,e)},setInt16:function(t,e){K(this,2,t,Y,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){K(this,2,t,Y,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){K(this,4,t,V,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){K(this,4,t,V,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){K(this,4,t,H,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){K(this,8,t,W,e,arguments.length>2?arguments[2]:void 0)}});w(L,M),w(P,O),t.exports={ArrayBuffer:L,DataView:P}},function(t){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(t,e,n){var r=n(43);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},function(t,e,n){var r=n(3),i=n(21),a=r.TypeError;t.exports=function(t,e){if(i(e,t))return t;throw a("Incorrect invocation")}},function(t,e,n){var r=n(3),i=n(56),a=n(58),o=r.RangeError;t.exports=function(t){if(void 0===t)return 0;var e=i(t),n=a(e);if(e!==n)throw o("Wrong length or index");return n}},function(t,e,n){var r=n(3).Array,i=Math.abs,a=Math.pow,o=Math.floor,s=Math.log,u=Math.LN2;t.exports={pack:function(t,e,n){var c,l,f,h=r(n),d=8*n-e-1,g=(1<<d)-1,p=g>>1,v=23===e?a(2,-24)-a(2,-77):0,y=t<0||0===t&&1/t<0?1:0,x=0;for((t=i(t))!=t||t===1/0?(l=t!=t?1:0,c=g):(c=o(s(t)/u),t*(f=a(2,-c))<1&&(c--,f*=2),(t+=c+p>=1?v/f:v*a(2,1-p))*f>=2&&(c++,f/=2),c+p>=g?(l=0,c=g):c+p>=1?(l=(t*f-1)*a(2,e),c+=p):(l=t*a(2,p-1)*a(2,e),c=0));e>=8;h[x++]=255&l,l/=256,e-=8);for(c=c<<e|l,d+=e;d>0;h[x++]=255&c,c/=256,d-=8);return h[--x]|=128*y,h},unpack:function(t,e){var n,r=t.length,i=8*r-e-1,o=(1<<i)-1,s=o>>1,u=i-7,c=r-1,l=t[c--],f=127&l;for(l>>=7;u>0;f=256*f+t[c],c--,u-=8);for(n=f&(1<<-u)-1,f>>=-u,u+=e;u>0;n=256*n+t[c],c--,u-=8);if(0===f)f=1-s;else{if(f===o)return n?NaN:l?-1/0:1/0;n+=a(2,e),f-=s}return(l?-1:1)*n*a(2,f-e)}}},function(t,e,n){var r=n(2),i=n(171);r({target:"ArrayBuffer",stat:!0,forced:!i.NATIVE_ARRAY_BUFFER_VIEWS},{isView:i.isView})},function(t,e,n){"use strict";var r,i,a,o=n(165),s=n(5),u=n(3),c=n(18),l=n(17),f=n(35),h=n(65),d=n(28),g=n(40),p=n(43),v=n(41).f,y=n(21),x=n(97),_=n(99),m=n(30),b=n(37),w=u.Int8Array,T=w&&w.prototype,A=u.Uint8ClampedArray,S=A&&A.prototype,k=w&&x(w),E=T&&x(T),M=Object.prototype,O=u.TypeError,C=m("toStringTag"),R=b("TYPED_ARRAY_TAG"),L=b("TYPED_ARRAY_CONSTRUCTOR"),I=o&&!!_&&"Opera"!==h(u.opera),P=!1,D={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},z={BigInt64Array:8,BigUint64Array:8},N=function(t){if(!l(t))return!1;var e=h(t);return f(D,e)||f(z,e)};for(r in D)(a=(i=u[r])&&i.prototype)?g(a,L,i):I=!1;for(r in z)(a=(i=u[r])&&i.prototype)&&g(a,L,i);if((!I||!c(k)||k===Function.prototype)&&(k=function(){throw O("Incorrect invocation")},I))for(r in D)u[r]&&_(u[r],k);if((!I||!E||E===M)&&(E=k.prototype,I))for(r in D)u[r]&&_(u[r].prototype,E);if(I&&x(S)!==E&&_(S,E),s&&!f(E,C))for(r in P=!0,v(E,C,{get:function(){return l(this)?this[R]:void 0}}),D)u[r]&&g(u[r],R,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:I,TYPED_ARRAY_CONSTRUCTOR:L,TYPED_ARRAY_TAG:P&&R,aTypedArray:function(t){if(N(t))return t;throw O("Target is not a typed array")},aTypedArrayConstructor:function(t){if(c(t)&&(!_||y(k,t)))return t;throw O(d(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,e,n){if(s){if(n)for(var r in D){var i=u[r];if(i&&f(i.prototype,t))try{delete i.prototype[t]}catch(t){}}E[t]&&!n||p(E,t,n?e:I&&T[t]||e)}},exportTypedArrayStaticMethod:function(t,e,n){var r,i;if(s){if(_){if(n)for(r in D)if((i=u[r])&&f(i,t))try{delete i[t]}catch(t){}if(k[t]&&!n)return;try{return p(k,t,n?e:I&&k[t]||e)}catch(t){}}for(r in D)!(i=u[r])||i[t]&&!n||p(i,t,e)}},isView:function(t){if(!l(t))return!1;var e=h(t);return"DataView"===e||f(D,e)||f(z,e)},isTypedArray:N,TypedArray:k,TypedArrayPrototype:E}},function(t,e,n){"use strict";var r=n(2),i=n(12),a=n(6),o=n(164),s=n(42),u=n(55),c=n(58),l=n(173),f=o.ArrayBuffer,h=o.DataView,d=h.prototype,g=i(f.prototype.slice),p=i(d.getUint8),v=i(d.setUint8);r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:a((function(){return!new f(2).slice(1,void 0).byteLength}))},{slice:function(t,e){if(g&&void 0===e)return g(s(this),t);for(var n=s(this).byteLength,r=u(t,n),i=u(void 0===e?n:e,n),a=new(l(this,f))(c(i-r)),o=new h(this),d=new h(a),y=0;r<i;)v(d,y++,p(o,r++));return a}})},function(t,e,n){var r=n(42),i=n(174),a=n(30)("species");t.exports=function(t,e){var n,o=r(t).constructor;return void 0===o||null==(n=r(o)[a])?e:i(n)}},function(t,e,n){var r=n(3),i=n(81),a=n(28),o=r.TypeError;t.exports=function(t){if(i(t))return t;throw o(a(t)+" is not a constructor")}},function(t,e,n){var r=n(2),i=n(164);r({global:!0,forced:!n(165)},{DataView:i.DataView})},function(t,e,n){"use strict";var r=n(2),i=n(12),a=n(6)((function(){return 120!==new Date(16e11).getYear()})),o=i(Date.prototype.getFullYear);r({target:"Date",proto:!0,forced:a},{getYear:function(){return o(this)-1900}})},function(t,e,n){var r=n(2),i=n(3),a=n(12),o=i.Date,s=a(o.prototype.getTime);r({target:"Date",stat:!0},{now:function(){return s(new o)}})},function(t,e,n){"use strict";var r=n(2),i=n(12),a=n(56),o=Date.prototype,s=i(o.getTime),u=i(o.setFullYear);r({target:"Date",proto:!0},{setYear:function(t){s(this);var e=a(t);return u(this,0<=e&&e<=99?e+1900:e)}})},function(t,e,n){n(2)({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})},function(t,e,n){var r=n(2),i=n(181);r({target:"Date",proto:!0,forced:Date.prototype.toISOString!==i},{toISOString:i})},function(t,e,n){"use strict";var r=n(3),i=n(12),a=n(6),o=n(182).start,s=r.RangeError,u=Math.abs,c=Date.prototype,l=c.toISOString,f=i(c.getTime),h=i(c.getUTCDate),d=i(c.getUTCFullYear),g=i(c.getUTCHours),p=i(c.getUTCMilliseconds),v=i(c.getUTCMinutes),y=i(c.getUTCMonth),x=i(c.getUTCSeconds);t.exports=a((function(){return"0385-07-25T07:06:39.999Z"!=l.call(new Date(-50000000000001))}))||!a((function(){l.call(new Date(NaN))}))?function(){if(!isFinite(f(this)))throw s("Invalid time value");var t=this,e=d(t),n=p(t),r=e<0?"-":e>9999?"+":"";return r+o(u(e),r?6:4,0)+"-"+o(y(t)+1,2,0)+"-"+o(h(t),2,0)+"T"+o(g(t),2,0)+":"+o(v(t),2,0)+":"+o(x(t),2,0)+"."+o(n,3,0)+"Z"}:l},function(t,e,n){var r=n(12),i=n(58),a=n(64),o=n(183),s=n(14),u=r(o),c=r("".slice),l=Math.ceil,f=function(t){return function(e,n,r){var o,f,h=a(s(e)),d=i(n),g=h.length,p=void 0===r?" ":a(r);return d<=g||""==p?h:((f=u(p,l((o=d-g)/p.length))).length>o&&(f=c(f,0,o)),t?h+f:f+h)}};t.exports={start:f(!1),end:f(!0)}},function(t,e,n){"use strict";var r=n(3),i=n(56),a=n(64),o=n(14),s=r.RangeError;t.exports=function(t){var e=a(o(this)),n="",r=i(t);if(r<0||r==1/0)throw s("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n}},function(t,e,n){"use strict";var r=n(2),i=n(6),a=n(36),o=n(16);r({target:"Date",proto:!0,forced:i((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(t){var e=a(this),n=o(e,"number");return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(35),i=n(43),a=n(186),o=n(30)("toPrimitive"),s=Date.prototype;r(s,o)||i(s,o,a)},function(t,e,n){"use strict";var r=n(3),i=n(42),a=n(29),o=r.TypeError;t.exports=function(t){if(i(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw o("Incorrect hint");return a(this,t)}},function(t,e,n){var r=n(12),i=n(43),a=Date.prototype,o="Invalid Date",s="toString",u=r(a.toString),c=r(a.getTime);String(new Date(NaN))!=o&&i(a,s,(function(){var t=c(this);return t==t?u(this):o}))},function(t,e,n){"use strict";var r=n(2),i=n(12),a=n(64),o=i("".charAt),s=i("".charCodeAt),u=i(/./.exec),c=i(1..toString),l=i("".toUpperCase),f=/[\w*+\-./@]/,h=function(t,e){for(var n=c(t,16);n.length<e;)n="0"+n;return n};r({global:!0},{escape:function(t){for(var e,n,r=a(t),i="",c=r.length,d=0;d<c;)e=o(r,d++),u(f,e)?i+=e:i+=(n=s(e,0))<256?"%"+h(n,2):"%u"+l(h(n,4));return i}})},function(t,e,n){n(2)({target:"Function",proto:!0},{bind:n(190)})},function(t,e,n){"use strict";var r=n(3),i=n(12),a=n(27),o=n(17),s=n(35),u=n(72),c=r.Function,l=i([].concat),f=i([].join),h={},d=function(t,e,n){if(!s(h,e)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";h[e]=c("C,a","return new C("+f(r,",")+")")}return h[e](t,n)};t.exports=c.bind||function(t){var e=a(this),n=e.prototype,r=u(arguments,1),i=function(){var n=l(r,u(arguments));return this instanceof i?d(e,n.length,n):e.apply(t,n)};return o(n)&&(i.prototype=n),i}},function(t,e,n){"use strict";var r=n(18),i=n(17),a=n(41),o=n(97),s=n(30)("hasInstance"),u=Function.prototype;s in u||a.f(u,s,{value:function(t){if(!r(this)||!i(t))return!1;var e=this.prototype;if(!i(e))return t instanceof this;for(;t=o(t);)if(e===t)return!0;return!1}})},function(t,e,n){var r=n(5),i=n(49).EXISTS,a=n(12),o=n(41).f,s=Function.prototype,u=a(s.toString),c=/^\s*function ([^ (]*)/,l=a(c.exec);r&&!i&&o(s,"name",{configurable:!0,get:function(){try{return l(c,u(this))[1]}catch(t){return""}}})},function(t,e,n){n(2)({global:!0},{globalThis:n(3)})},function(t,e,n){var r=n(2),i=n(3),a=n(20),o=n(62),s=n(12),u=n(6),c=i.Array,l=a("JSON","stringify"),f=s(/./.exec),h=s("".charAt),d=s("".charCodeAt),g=s("".replace),p=s(1..toString),v=/[\uD800-\uDFFF]/g,y=/^[\uD800-\uDBFF]$/,x=/^[\uDC00-\uDFFF]$/,_=function(t,e,n){var r=h(n,e-1),i=h(n,e+1);return f(y,t)&&!f(x,i)||f(x,t)&&!f(y,r)?"\\u"+p(d(t,0),16):t},m=u((function(){return'"\\udf06\\ud834"'!==l("\udf06\ud834")||'"\\udead"'!==l("\udead")}));l&&r({target:"JSON",stat:!0,forced:m},{stringify:function(t,e,n){for(var r=0,i=arguments.length,a=c(i);r<i;r++)a[r]=arguments[r];var s=o(l,null,a);return"string"==typeof s?g(s,v,_):s}})},function(t,e,n){var r=n(3);n(76)(r.JSON,"JSON",!0)},function(t,e,n){"use strict";n(197)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(203))},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(12),o=n(61),s=n(43),u=n(198),c=n(103),l=n(167),f=n(18),h=n(17),d=n(6),g=n(133),p=n(76),v=n(202);t.exports=function(t,e,n){var y=-1!==t.indexOf("Map"),x=-1!==t.indexOf("Weak"),_=y?"set":"add",m=i[t],b=m&&m.prototype,w=m,T={},A=function(t){var e=a(b[t]);s(b,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(x&&!h(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return x&&!h(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(x&&!h(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(o(t,!f(m)||!(x||b.forEach&&!d((function(){(new m).entries().next()})))))w=n.getConstructor(e,t,y,_),u.enable();else if(o(t,!0)){var S=new w,k=S[_](x?{}:-0,1)!=S,E=d((function(){S.has(1)})),M=g((function(t){new m(t)})),O=!x&&d((function(){for(var t=new m,e=5;e--;)t[_](e,e);return!t.has(-0)}));M||((w=e((function(t,e){l(t,b);var n=v(new m,t,w);return null!=e&&c(e,n[_],{that:n,AS_ENTRIES:y}),n}))).prototype=b,b.constructor=w),(E||O)&&(A("delete"),A("has"),y&&A("get")),(O||k)&&A(_),x&&b.clear&&delete b.clear}return T[t]=w,r({global:!0,forced:w!=m},T),p(w,t),x||n.setStrong(w,t,y),w}},function(t,e,n){var r=n(2),i=n(12),a=n(48),o=n(17),s=n(35),u=n(41).f,c=n(52),l=n(71),f=n(199),h=n(37),d=n(201),g=!1,p=h("meta"),v=0,y=function(t){u(t,p,{value:{objectID:"O"+v++,weakData:{}}})},x=t.exports={enable:function(){x.enable=function(){},g=!0;var t=c.f,e=i([].splice),n={};n[p]=1,t(n).length&&(c.f=function(n){for(var r=t(n),i=0,a=r.length;i<a;i++)if(r[i]===p){e(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,p)){if(!f(t))return"F";if(!e)return"E";y(t)}return t[p].objectID},getWeakData:function(t,e){if(!s(t,p)){if(!f(t))return!0;if(!e)return!1;y(t)}return t[p].weakData},onFreeze:function(t){return d&&g&&f(t)&&!s(t,p)&&y(t),t}};a[p]=!0},function(t,e,n){var r=n(6),i=n(17),a=n(13),o=n(200),s=Object.isExtensible,u=r((function(){s(1)}));t.exports=u||o?function(t){return!!i(t)&&((!o||"ArrayBuffer"!=a(t))&&(!s||s(t)))}:s},function(t,e,n){var r=n(6);t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},function(t,e,n){var r=n(6);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(t,e,n){var r=n(18),i=n(17),a=n(99);t.exports=function(t,e,n){var o,s;return a&&r(o=e.constructor)&&o!==n&&i(s=o.prototype)&&s!==n.prototype&&a(t,s),t}},function(t,e,n){"use strict";var r=n(41).f,i=n(67),a=n(166),o=n(78),s=n(167),u=n(103),c=n(138),l=n(159),f=n(5),h=n(198).fastKey,d=n(45),g=d.set,p=d.getterFor;t.exports={getConstructor:function(t,e,n,c){var l=t((function(t,r){s(t,d),g(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),f||(t.size=0),null!=r&&u(r,t[c],{that:t,AS_ENTRIES:n})})),d=l.prototype,v=p(e),y=function(t,e,n){var r,i,a=v(t),o=x(t,e);return o?o.value=n:(a.last=o={index:i=h(e,!0),key:e,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=o),r&&(r.next=o),f?a.size++:t.size++,"F"!==i&&(a.index[i]=o)),t},x=function(t,e){var n,r=v(t),i=h(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==e)return n};return a(d,{clear:function(){for(var t=v(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,f?t.size=0:this.size=0},delete:function(t){var e=this,n=v(e),r=x(e,t);if(r){var i=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=i),i&&(i.previous=a),n.first==r&&(n.first=i),n.last==r&&(n.last=a),f?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=v(this),r=o(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!x(this,t)}}),a(d,n?{get:function(t){var e=x(this,t);return e&&e.value},set:function(t,e){return y(this,0===t?0:t,e)}}:{add:function(t){return y(this,t=0===t?0:t,t)}}),f&&r(d,"size",{get:function(){return v(this).size}}),l},setStrong:function(t,e,n){var r=e+" Iterator",i=p(e),a=p(r);c(t,e,(function(t,e){g(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=a(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(e)}}},function(t,e,n){var r=n(2),i=n(205),a=Math.acosh,o=Math.log,s=Math.sqrt,u=Math.LN2;r({target:"Math",stat:!0,forced:!a||710!=Math.floor(a(Number.MAX_VALUE))||a(1/0)!=1/0},{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?o(t)+u:i(t-1+s(t-1)*s(t+1))}})},function(t){var e=Math.log;t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:e(1+t)}},function(t,e,n){var r=n(2),i=Math.asinh,a=Math.log,o=Math.sqrt;r({target:"Math",stat:!0,forced:!(i&&1/i(0)>0)},{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):a(e+o(e*e+1)):e}})},function(t,e,n){var r=n(2),i=Math.atanh,a=Math.log;r({target:"Math",stat:!0,forced:!(i&&1/i(-0)<0)},{atanh:function(t){return 0==(t=+t)?t:a((1+t)/(1-t))/2}})},function(t,e,n){var r=n(2),i=n(209),a=Math.abs,o=Math.pow;r({target:"Math",stat:!0},{cbrt:function(t){return i(t=+t)*o(a(t),1/3)}})},function(t){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e,n){var r=n(2),i=Math.floor,a=Math.log,o=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(t){return(t>>>=0)?31-i(a(t+.5)*o):32}})},function(t,e,n){var r=n(2),i=n(212),a=Math.cosh,o=Math.abs,s=Math.E;r({target:"Math",stat:!0,forced:!a||a(710)===1/0},{cosh:function(t){var e=i(o(t)-1)+1;return(e+1/(e*s*s))*(s/2)}})},function(t){var e=Math.expm1,n=Math.exp;t.exports=!e||e(10)>22025.465794806718||e(10)<22025.465794806718||-2e-17!=e(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}:e},function(t,e,n){var r=n(2),i=n(212);r({target:"Math",stat:!0,forced:i!=Math.expm1},{expm1:i})},function(t,e,n){n(2)({target:"Math",stat:!0},{fround:n(215)})},function(t,e,n){var r=n(209),i=Math.abs,a=Math.pow,o=a(2,-52),s=a(2,-23),u=a(2,127)*(2-s),c=a(2,-126);t.exports=Math.fround||function(t){var e,n,a=i(t),l=r(t);return a<c?l*(a/c/s+1/o-1/o)*c*s:(n=(e=(1+s/o)*a)-(e-a))>u||n!=n?l*(1/0):l*n}},function(t,e,n){var r=n(2),i=Math.hypot,a=Math.abs,o=Math.sqrt;r({target:"Math",stat:!0,forced:!!i&&i(1/0,NaN)!==1/0},{hypot:function(t,e){for(var n,r,i=0,s=0,u=arguments.length,c=0;s<u;)c<(n=a(arguments[s++]))?(i=i*(r=c/n)*r+1,c=n):i+=n>0?(r=n/c)*r:n;return c===1/0?1/0:c*o(i)}})},function(t,e,n){var r=n(2),i=n(6),a=Math.imul;r({target:"Math",stat:!0,forced:i((function(){return-5!=a(4294967295,5)||2!=a.length}))},{imul:function(t,e){var n=65535,r=+t,i=+e,a=n&r,o=n&i;return 0|a*o+((n&r>>>16)*o+a*(n&i>>>16)<<16>>>0)}})},function(t,e,n){var r=n(2),i=Math.log,a=Math.LOG10E;r({target:"Math",stat:!0},{log10:function(t){return i(t)*a}})},function(t,e,n){n(2)({target:"Math",stat:!0},{log1p:n(205)})},function(t,e,n){var r=n(2),i=Math.log,a=Math.LN2;r({target:"Math",stat:!0},{log2:function(t){return i(t)/a}})},function(t,e,n){n(2)({target:"Math",stat:!0},{sign:n(209)})},function(t,e,n){var r=n(2),i=n(6),a=n(212),o=Math.abs,s=Math.exp,u=Math.E;r({target:"Math",stat:!0,forced:i((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(t){return o(t=+t)<1?(a(t)-a(-t))/2:(s(t-1)-s(-t-1))*(u/2)}})},function(t,e,n){var r=n(2),i=n(212),a=Math.exp;r({target:"Math",stat:!0},{tanh:function(t){var e=i(t=+t),n=i(-t);return e==1/0?1:n==1/0?-1:(e-n)/(a(t)+a(-t))}})},function(t,e,n){n(76)(Math,"Math",!0)},function(t,e,n){var r=n(2),i=Math.ceil,a=Math.floor;r({target:"Math",stat:!0},{trunc:function(t){return(t>0?a:i)(t)}})},function(t,e,n){"use strict";var r=n(5),i=n(3),a=n(12),o=n(61),s=n(43),u=n(35),c=n(202),l=n(21),f=n(19),h=n(16),d=n(6),g=n(52).f,p=n(4).f,v=n(41).f,y=n(227),x=n(228).trim,_="Number",m=i.Number,b=m.prototype,w=i.TypeError,T=a("".slice),A=a("".charCodeAt),S=function(t){var e=h(t,"number");return"bigint"==typeof e?e:k(e)},k=function(t){var e,n,r,i,a,o,s,u,c=h(t,"number");if(f(c))throw w("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=x(c),43===(e=A(c,0))||45===e){if(88===(n=A(c,2))||120===n)return NaN}else if(48===e){switch(A(c,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(o=(a=T(c,2)).length,s=0;s<o;s++)if((u=A(a,s))<48||u>i)return NaN;return parseInt(a,r)}return+c};if(o(_,!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var E,M=function(t){var e=arguments.length<1?0:m(S(t)),n=this;return l(b,n)&&d((function(){y(n)}))?c(Object(e),n,M):e},O=r?g(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),C=0;O.length>C;C++)u(m,E=O[C])&&!u(M,E)&&v(M,E,p(m,E));M.prototype=b,b.constructor=M,s(i,_,M)}},function(t,e,n){var r=n(12);t.exports=r(1..valueOf)},function(t,e,n){var r=n(12),i=n(14),a=n(64),o=n(229),s=r("".replace),u="["+o+"]",c=RegExp("^"+u+u+"*"),l=RegExp(u+u+"*$"),f=function(t){return function(e){var n=a(i(e));return 1&t&&(n=s(n,c,"")),2&t&&(n=s(n,l,"")),n}};t.exports={start:f(1),end:f(2),trim:f(3)}},function(t){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(t,e,n){n(2)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},function(t,e,n){n(2)({target:"Number",stat:!0},{isFinite:n(232)})},function(t,e,n){var r=n(3).isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&r(t)}},function(t,e,n){n(2)({target:"Number",stat:!0},{isInteger:n(234)})},function(t,e,n){var r=n(17),i=Math.floor;t.exports=Number.isInteger||function(t){return!r(t)&&isFinite(t)&&i(t)===t}},function(t,e,n){n(2)({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(2),i=n(234),a=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(t){return i(t)&&a(t)<=9007199254740991}})},function(t,e,n){n(2)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){n(2)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(2),i=n(240);r({target:"Number",stat:!0,forced:Number.parseFloat!=i},{parseFloat:i})},function(t,e,n){var r=n(3),i=n(6),a=n(12),o=n(64),s=n(228).trim,u=n(229),c=a("".charAt),l=r.parseFloat,f=r.Symbol,h=f&&f.iterator,d=1/l(u+"-0")!=-1/0||h&&!i((function(){l(Object(h))}));t.exports=d?function(t){var e=s(o(t)),n=l(e);return 0===n&&"-"==c(e,0)?-0:n}:l},function(t,e,n){var r=n(2),i=n(242);r({target:"Number",stat:!0,forced:Number.parseInt!=i},{parseInt:i})},function(t,e,n){var r=n(3),i=n(6),a=n(12),o=n(64),s=n(228).trim,u=n(229),c=r.parseInt,l=r.Symbol,f=l&&l.iterator,h=/^[+-]?0x/i,d=a(h.exec),g=8!==c(u+"08")||22!==c(u+"0x16")||f&&!i((function(){c(Object(f))}));t.exports=g?function(t,e){var n=s(o(t));return c(n,e>>>0||(d(h,n)?16:10))}:c},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(12),o=n(56),s=n(227),u=n(183),c=n(6),l=i.RangeError,f=i.String,h=Math.floor,d=a(u),g=a("".slice),p=a(1..toFixed),v=function(t,e,n){return 0===e?n:e%2==1?v(t,e-1,n*t):v(t*t,e/2,n)},y=function(t,e,n){for(var r=-1,i=n;++r<6;)i+=e*t[r],t[r]=i%1e7,i=h(i/1e7)},x=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=h(r/e),r=r%e*1e7},_=function(t){for(var e=6,n="";--e>=0;)if(""!==n||0===e||0!==t[e]){var r=f(t[e]);n=""===n?r:n+d("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:c((function(){return"0.000"!==p(8e-5,3)||"1"!==p(.9,0)||"1.25"!==p(1.255,2)||"1000000000000000128"!==p(0xde0b6b3a7640080,0)}))||!c((function(){p({})}))},{toFixed:function(t){var e,n,r,i,a=s(this),u=o(t),c=[0,0,0,0,0,0],h="",p="0";if(u<0||u>20)throw l("Incorrect fraction digits");if(a!=a)return"NaN";if(a<=-1e21||a>=1e21)return f(a);if(a<0&&(h="-",a=-a),a>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(a*v(2,69,1))-69)<0?a*v(2,-e,1):a/v(2,e,1),n*=4503599627370496,(e=52-e)>0){for(y(c,0,n),r=u;r>=7;)y(c,1e7,0),r-=7;for(y(c,v(10,r,1),0),r=e-1;r>=23;)x(c,1<<23),r-=23;x(c,1<<r),y(c,1,1),x(c,2),p=_(c)}else y(c,0,n),y(c,1<<-e,0),p=_(c)+d("0",u);return p=u>0?h+((i=p.length)<=u?"0."+d("0",u-i)+p:g(p,0,i-u)+"."+g(p,i-u)):h+p}})},function(t,e,n){"use strict";var r=n(2),i=n(12),a=n(6),o=n(227),s=i(1..toPrecision);r({target:"Number",proto:!0,forced:a((function(){return"1"!==s(1,void 0)}))||!a((function(){s({})}))},{toPrecision:function(t){return void 0===t?s(o(this)):s(o(this),t)}})},function(t,e,n){var r=n(2),i=n(246);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(t,e,n){"use strict";var r=n(5),i=n(12),a=n(7),o=n(6),s=n(69),u=n(60),c=n(8),l=n(36),f=n(11),h=Object.assign,d=Object.defineProperty,g=i([].concat);t.exports=!h||o((function(){if(r&&1!==h({b:1},h(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=h({},t)[n]||s(h({},e)).join("")!=i}))?function(t,e){for(var n=l(t),i=arguments.length,o=1,h=u.f,d=c.f;i>o;)for(var p,v=f(arguments[o++]),y=h?g(s(v),h(v)):s(v),x=y.length,_=0;x>_;)p=y[_++],r&&!a(d,v,p)||(n[p]=v[p]);return n}:h},function(t,e,n){n(2)({target:"Object",stat:!0,sham:!n(5)},{create:n(67)})},function(t,e,n){"use strict";var r=n(2),i=n(5),a=n(249),o=n(27),s=n(36),u=n(41);i&&r({target:"Object",proto:!0,forced:a},{__defineGetter__:function(t,e){u.f(s(this),t,{get:o(e),enumerable:!0,configurable:!0})}})},function(t,e,n){"use strict";var r=n(32),i=n(3),a=n(6),o=n(157);t.exports=r||!a((function(){if(!(o&&o<535)){var t=Math.random();__defineSetter__.call(null,t,(function(){})),delete i[t]}}))},function(t,e,n){var r=n(2),i=n(5);r({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperties:n(68)})},function(t,e,n){var r=n(2),i=n(5);r({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperty:n(41).f})},function(t,e,n){"use strict";var r=n(2),i=n(5),a=n(249),o=n(27),s=n(36),u=n(41);i&&r({target:"Object",proto:!0,forced:a},{__defineSetter__:function(t,e){u.f(s(this),t,{set:o(e),enumerable:!0,configurable:!0})}})},function(t,e,n){var r=n(2),i=n(254).entries;r({target:"Object",stat:!0},{entries:function(t){return i(t)}})},function(t,e,n){var r=n(5),i=n(12),a=n(69),o=n(10),s=i(n(8).f),u=i([].push),c=function(t){return function(e){for(var n,i=o(e),c=a(i),l=c.length,f=0,h=[];l>f;)n=c[f++],r&&!s(i,n)||u(h,t?[n,i[n]]:i[n]);return h}};t.exports={entries:c(!0),values:c(!1)}},function(t,e,n){var r=n(2),i=n(201),a=n(6),o=n(17),s=n(198).onFreeze,u=Object.freeze;r({target:"Object",stat:!0,forced:a((function(){u(1)})),sham:!i},{freeze:function(t){return u&&o(t)?u(s(t)):t}})},function(t,e,n){var r=n(2),i=n(103),a=n(114);r({target:"Object",stat:!0},{fromEntries:function(t){var e={};return i(t,(function(t,n){a(e,t,n)}),{AS_ENTRIES:!0}),e}})},function(t,e,n){var r=n(2),i=n(6),a=n(10),o=n(4).f,s=n(5),u=i((function(){o(1)}));r({target:"Object",stat:!0,forced:!s||u,sham:!s},{getOwnPropertyDescriptor:function(t,e){return o(a(t),e)}})},function(t,e,n){var r=n(2),i=n(5),a=n(51),o=n(10),s=n(4),u=n(114);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,n,r=o(t),i=s.f,c=a(r),l={},f=0;c.length>f;)void 0!==(n=i(r,e=c[f++]))&&u(l,e,n);return l}})},function(t,e,n){var r=n(2),i=n(6),a=n(71).f;r({target:"Object",stat:!0,forced:i((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:a})},function(t,e,n){var r=n(2),i=n(6),a=n(36),o=n(97),s=n(98);r({target:"Object",stat:!0,forced:i((function(){o(1)})),sham:!s},{getPrototypeOf:function(t){return o(a(t))}})},function(t,e,n){n(2)({target:"Object",stat:!0},{hasOwn:n(35)})},function(t,e,n){n(2)({target:"Object",stat:!0},{is:n(263)})},function(t){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){var r=n(2),i=n(199);r({target:"Object",stat:!0,forced:Object.isExtensible!==i},{isExtensible:i})},function(t,e,n){var r=n(2),i=n(6),a=n(17),o=n(13),s=n(200),u=Object.isFrozen;r({target:"Object",stat:!0,forced:i((function(){u(1)}))||s},{isFrozen:function(t){return!a(t)||(!(!s||"ArrayBuffer"!=o(t))||!!u&&u(t))}})},function(t,e,n){var r=n(2),i=n(6),a=n(17),o=n(13),s=n(200),u=Object.isSealed;r({target:"Object",stat:!0,forced:i((function(){u(1)}))||s},{isSealed:function(t){return!a(t)||(!(!s||"ArrayBuffer"!=o(t))||!!u&&u(t))}})},function(t,e,n){var r=n(2),i=n(36),a=n(69);r({target:"Object",stat:!0,forced:n(6)((function(){a(1)}))},{keys:function(t){return a(i(t))}})},function(t,e,n){"use strict";var r=n(2),i=n(5),a=n(249),o=n(36),s=n(15),u=n(97),c=n(4).f;i&&r({target:"Object",proto:!0,forced:a},{__lookupGetter__:function(t){var e,n=o(this),r=s(t);do{if(e=c(n,r))return e.get}while(n=u(n))}})},function(t,e,n){"use strict";var r=n(2),i=n(5),a=n(249),o=n(36),s=n(15),u=n(97),c=n(4).f;i&&r({target:"Object",proto:!0,forced:a},{__lookupSetter__:function(t){var e,n=o(this),r=s(t);do{if(e=c(n,r))return e.set}while(n=u(n))}})},function(t,e,n){var r=n(2),i=n(17),a=n(198).onFreeze,o=n(201),s=n(6),u=Object.preventExtensions;r({target:"Object",stat:!0,forced:s((function(){u(1)})),sham:!o},{preventExtensions:function(t){return u&&i(t)?u(a(t)):t}})},function(t,e,n){var r=n(2),i=n(17),a=n(198).onFreeze,o=n(201),s=n(6),u=Object.seal;r({target:"Object",stat:!0,forced:s((function(){u(1)})),sham:!o},{seal:function(t){return u&&i(t)?u(a(t)):t}})},function(t,e,n){n(2)({target:"Object",stat:!0},{setPrototypeOf:n(99)})},function(t,e,n){var r=n(66),i=n(43),a=n(274);r||i(Object.prototype,"toString",a,{unsafe:!0})},function(t,e,n){"use strict";var r=n(66),i=n(65);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(t,e,n){var r=n(2),i=n(254).values;r({target:"Object",stat:!0},{values:function(t){return i(t)}})},function(t,e,n){var r=n(2),i=n(240);r({global:!0,forced:parseFloat!=i},{parseFloat:i})},function(t,e,n){var r=n(2),i=n(242);r({global:!0,forced:parseInt!=i},{parseInt:i})},function(t,e,n){"use strict";var r,i,a,o,s=n(2),u=n(32),c=n(3),l=n(20),f=n(7),h=n(279),d=n(43),g=n(166),p=n(99),v=n(76),y=n(159),x=n(27),_=n(18),m=n(17),b=n(167),w=n(44),T=n(103),A=n(133),S=n(173),k=n(280).set,E=n(282),M=n(285),O=n(287),C=n(286),R=n(288),L=n(45),I=n(61),P=n(30),D=n(289),z=n(148),N=n(24),F=P("species"),j="Promise",X=L.get,B=L.set,$=L.getterFor(j),U=h&&h.prototype,Y=h,V=U,G=c.TypeError,H=c.document,W=c.process,q=C.f,Z=q,K=!!(H&&H.createEvent&&c.dispatchEvent),J=_(c.PromiseRejectionEvent),Q="unhandledrejection",tt=!1,et=I(j,(function(){var t=w(Y),e=t!==String(Y);if(!e&&66===N)return!0;if(u&&!V.finally)return!0;if(N>=51&&/native code/.test(t))return!1;var n=new Y((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[F]=r,!(tt=n.then((function(){}))instanceof r)||!e&&D&&!J})),nt=et||!A((function(t){Y.all(t).catch((function(){}))})),rt=function(t){var e;return!(!m(t)||!_(e=t.then))&&e},it=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;E((function(){for(var r=t.value,i=1==t.state,a=0;n.length>a;){var o,s,u,c=n[a++],l=i?c.ok:c.fail,h=c.resolve,d=c.reject,g=c.domain;try{l?(i||(2===t.rejection&&ut(t),t.rejection=1),!0===l?o=r:(g&&g.enter(),o=l(r),g&&(g.exit(),u=!0)),o===c.promise?d(G("Promise-chain cycle")):(s=rt(o))?f(s,o,h,d):h(o)):d(r)}catch(t){g&&!u&&g.exit(),d(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&ot(t)}))}},at=function(t,e,n){var r,i;K?((r=H.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),c.dispatchEvent(r)):r={promise:e,reason:n},!J&&(i=c["on"+t])?i(r):t===Q&&O("Unhandled promise rejection",n)},ot=function(t){f(k,c,(function(){var e,n=t.facade,r=t.value;if(st(t)&&(e=R((function(){z?W.emit("unhandledRejection",r,n):at(Q,n,r)})),t.rejection=z||st(t)?2:1,e.error))throw e.value}))},st=function(t){return 1!==t.rejection&&!t.parent},ut=function(t){f(k,c,(function(){var e=t.facade;z?W.emit("rejectionHandled",e):at("rejectionhandled",e,t.value)}))},ct=function(t,e,n){return function(r){t(e,r,n)}},lt=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,it(t,!0))},ft=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw G("Promise can't be resolved itself");var r=rt(e);r?E((function(){var n={done:!1};try{f(r,e,ct(ft,n,t),ct(lt,n,t))}catch(e){lt(n,e,t)}})):(t.value=e,t.state=1,it(t,!1))}catch(e){lt({done:!1},e,t)}}};if(et&&(V=(Y=function(t){b(this,V),x(t),f(r,this);var e=X(this);try{t(ct(ft,e),ct(lt,e))}catch(t){lt(e,t)}}).prototype,(r=function(t){B(this,{type:j,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=g(V,{then:function(t,e){var n=$(this),r=n.reactions,i=q(S(this,Y));return i.ok=!_(t)||t,i.fail=_(e)&&e,i.domain=z?W.domain:void 0,n.parent=!0,r[r.length]=i,0!=n.state&&it(n,!1),i.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r,e=X(t);this.promise=t,this.resolve=ct(ft,e),this.reject=ct(lt,e)},C.f=q=function(t){return t===Y||t===a?new i(t):Z(t)},!u&&_(h)&&U!==Object.prototype)){o=U.then,tt||(d(U,"then",(function(t,e){var n=this;return new Y((function(t,e){f(o,n,t,e)})).then(t,e)}),{unsafe:!0}),d(U,"catch",V.catch,{unsafe:!0}));try{delete U.constructor}catch(t){}p&&p(U,V)}s({global:!0,wrap:!0,forced:et},{Promise:Y}),v(Y,j,!1,!0),y(j),a=l(j),s({target:j,stat:!0,forced:et},{reject:function(t){var e=q(this);return f(e.reject,void 0,t),e.promise}}),s({target:j,stat:!0,forced:u||et},{resolve:function(t){return M(u&&this===a?Y:this,t)}}),s({target:j,stat:!0,forced:nt},{all:function(t){var e=this,n=q(e),r=n.resolve,i=n.reject,a=R((function(){var n=x(e.resolve),a=[],o=0,s=1;T(t,(function(t){var u=o++,c=!1;s++,f(n,e,t).then((function(t){c||(c=!0,a[u]=t,--s||r(a))}),i)})),--s||r(a)}));return a.error&&i(a.value),n.promise},race:function(t){var e=this,n=q(e),r=n.reject,i=R((function(){var i=x(e.resolve);T(t,(function(t){f(i,e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},function(t,e,n){var r=n(3);t.exports=r.Promise},function(t,e,n){var r,i,a,o,s=n(3),u=n(62),c=n(78),l=n(18),f=n(35),h=n(6),d=n(70),g=n(72),p=n(39),v=n(281),y=n(148),x=s.setImmediate,_=s.clearImmediate,m=s.process,b=s.Dispatch,w=s.Function,T=s.MessageChannel,A=s.String,S=0,k={},E="onreadystatechange";try{r=s.location}catch(t){}var M=function(t){if(f(k,t)){var e=k[t];delete k[t],e()}},O=function(t){return function(){M(t)}},C=function(t){M(t.data)},R=function(t){s.postMessage(A(t),r.protocol+"//"+r.host)};x&&_||(x=function(t){var e=g(arguments,1);return k[++S]=function(){u(l(t)?t:w(t),void 0,e)},i(S),S},_=function(t){delete k[t]},y?i=function(t){m.nextTick(O(t))}:b&&b.now?i=function(t){b.now(O(t))}:T&&!v?(o=(a=new T).port2,a.port1.onmessage=C,i=c(o.postMessage,o)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!h(R)?(i=R,s.addEventListener("message",C,!1)):i=E in p("script")?function(t){d.appendChild(p("script")).onreadystatechange=function(){d.removeChild(this),M(t)}}:function(t){setTimeout(O(t),0)}),t.exports={set:x,clear:_}},function(t,e,n){var r=n(25);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},function(t,e,n){var r,i,a,o,s,u,c,l,f=n(3),h=n(78),d=n(4).f,g=n(280).set,p=n(281),v=n(283),y=n(284),x=n(148),_=f.MutationObserver||f.WebKitMutationObserver,m=f.document,b=f.process,w=f.Promise,T=d(f,"queueMicrotask"),A=T&&T.value;A||(r=function(){var t,e;for(x&&(t=b.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(t){throw i?o():a=void 0,t}}a=void 0,t&&t.enter()},p||x||y||!_||!m?!v&&w&&w.resolve?((c=w.resolve(void 0)).constructor=w,l=h(c.then,c),o=function(){l(r)}):x?o=function(){b.nextTick(r)}:(g=h(g,f),o=function(){g(r)}):(s=!0,u=m.createTextNode(""),new _(r).observe(u,{characterData:!0}),o=function(){u.data=s=!s})),t.exports=A||function(t){var e={fn:t,next:void 0};a&&(a.next=e),i||(i=e,o()),a=e}},function(t,e,n){var r=n(25),i=n(3);t.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==i.Pebble},function(t,e,n){var r=n(25);t.exports=/web0s(?!.*chrome)/i.test(r)},function(t,e,n){var r=n(42),i=n(17),a=n(286);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=a.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(27),i=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new i(t)}},function(t,e,n){var r=n(3);t.exports=function(t,e){var n=r.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}},function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t){t.exports="object"==typeof window},function(t,e,n){"use strict";var r=n(2),i=n(7),a=n(27),o=n(286),s=n(288),u=n(103);r({target:"Promise",stat:!0},{allSettled:function(t){var e=this,n=o.f(e),r=n.resolve,c=n.reject,l=s((function(){var n=a(e.resolve),o=[],s=0,c=1;u(t,(function(t){var a=s++,u=!1;c++,i(n,e,t).then((function(t){u||(u=!0,o[a]={status:"fulfilled",value:t},--c||r(o))}),(function(t){u||(u=!0,o[a]={status:"rejected",reason:t},--c||r(o))}))})),--c||r(o)}));return l.error&&c(l.value),n.promise}})},function(t,e,n){"use strict";var r=n(2),i=n(27),a=n(20),o=n(7),s=n(286),u=n(288),c=n(103),l="No one promise resolved";r({target:"Promise",stat:!0},{any:function(t){var e=this,n=a("AggregateError"),r=s.f(e),f=r.resolve,h=r.reject,d=u((function(){var r=i(e.resolve),a=[],s=0,u=1,d=!1;c(t,(function(t){var i=s++,c=!1;u++,o(r,e,t).then((function(t){c||d||(d=!0,f(t))}),(function(t){c||d||(c=!0,a[i]=t,--u||h(new n(a,l)))}))})),--u||h(new n(a,l))}));return d.error&&h(d.value),r.promise}})},function(t,e,n){"use strict";var r=n(2),i=n(32),a=n(279),o=n(6),s=n(20),u=n(18),c=n(173),l=n(285),f=n(43);if(r({target:"Promise",proto:!0,real:!0,forced:!!a&&o((function(){a.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=c(this,s("Promise")),n=u(t);return this.then(n?function(n){return l(e,t()).then((function(){return n}))}:t,n?function(n){return l(e,t()).then((function(){throw n}))}:t)}}),!i&&u(a)){var h=s("Promise").prototype.finally;a.prototype.finally!==h&&f(a.prototype,"finally",h,{unsafe:!0})}},function(t,e,n){var r=n(2),i=n(62),a=n(27),o=n(42);r({target:"Reflect",stat:!0,forced:!n(6)((function(){Reflect.apply((function(){}))}))},{apply:function(t,e,n){return i(a(t),e,o(n))}})},function(t,e,n){var r=n(2),i=n(20),a=n(62),o=n(190),s=n(174),u=n(42),c=n(17),l=n(67),f=n(6),h=i("Reflect","construct"),d=Object.prototype,g=[].push,p=f((function(){function t(){}return!(h((function(){}),[],t)instanceof t)})),v=!f((function(){h((function(){}))})),y=p||v;r({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(t,e){s(t),u(e);var n=arguments.length<3?t:s(arguments[2]);if(v&&!p)return h(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return a(g,r,e),new(a(o,t,r))}var i=n.prototype,f=l(c(i)?i:d),y=a(t,f,e);return c(y)?y:f}})},function(t,e,n){var r=n(2),i=n(5),a=n(42),o=n(15),s=n(41);r({target:"Reflect",stat:!0,forced:n(6)((function(){Reflect.defineProperty(s.f({},1,{value:1}),1,{value:2})})),sham:!i},{defineProperty:function(t,e,n){a(t);var r=o(e);a(n);try{return s.f(t,r,n),!0}catch(t){return!1}}})},function(t,e,n){var r=n(2),i=n(42),a=n(4).f;r({target:"Reflect",stat:!0},{deleteProperty:function(t,e){var n=a(i(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){var r=n(2),i=n(7),a=n(17),o=n(42),s=n(298),u=n(4),c=n(97);r({target:"Reflect",stat:!0},{get:function t(e,n){var r,l,f=arguments.length<3?e:arguments[2];return o(e)===f?e[n]:(r=u.f(e,n))?s(r)?r.value:void 0===r.get?void 0:i(r.get,f):a(l=c(e))?t(l,n,f):void 0}})},function(t,e,n){var r=n(35);t.exports=function(t){return void 0!==t&&(r(t,"value")||r(t,"writable"))}},function(t,e,n){var r=n(2),i=n(5),a=n(42),o=n(4);r({target:"Reflect",stat:!0,sham:!i},{getOwnPropertyDescriptor:function(t,e){return o.f(a(t),e)}})},function(t,e,n){var r=n(2),i=n(42),a=n(97);r({target:"Reflect",stat:!0,sham:!n(98)},{getPrototypeOf:function(t){return a(i(t))}})},function(t,e,n){n(2)({target:"Reflect",stat:!0},{has:function(t,e){return e in t}})},function(t,e,n){var r=n(2),i=n(42),a=n(199);r({target:"Reflect",stat:!0},{isExtensible:function(t){return i(t),a(t)}})},function(t,e,n){n(2)({target:"Reflect",stat:!0},{ownKeys:n(51)})},function(t,e,n){var r=n(2),i=n(20),a=n(42);r({target:"Reflect",stat:!0,sham:!n(201)},{preventExtensions:function(t){a(t);try{var e=i("Object","preventExtensions");return e&&e(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(2),i=n(7),a=n(42),o=n(17),s=n(298),u=n(6),c=n(41),l=n(4),f=n(97),h=n(9);r({target:"Reflect",stat:!0,forced:u((function(){var t=function(){},e=c.f(new t,"a",{configurable:!0});return!1!==Reflect.set(t.prototype,"a",1,e)}))},{set:function t(e,n,r){var u,d,g,p=arguments.length<4?e:arguments[3],v=l.f(a(e),n);if(!v){if(o(d=f(e)))return t(d,n,r,p);v=h(0)}if(s(v)){if(!1===v.writable||!o(p))return!1;if(u=l.f(p,n)){if(u.get||u.set||!1===u.writable)return!1;u.value=r,c.f(p,n,u)}else c.f(p,n,h(0,r))}else{if(void 0===(g=v.set))return!1;i(g,p,r)}return!0}})},function(t,e,n){var r=n(2),i=n(42),a=n(100),o=n(99);o&&r({target:"Reflect",stat:!0},{setPrototypeOf:function(t,e){i(t),a(e);try{return o(t,e),!0}catch(t){return!1}}})},function(t,e,n){var r=n(2),i=n(3),a=n(76);r({global:!0},{Reflect:{}}),a(i.Reflect,"Reflect",!0)},function(t,e,n){var r=n(5),i=n(3),a=n(12),o=n(61),s=n(202),u=n(40),c=n(41).f,l=n(52).f,f=n(21),h=n(309),d=n(64),g=n(310),p=n(311),v=n(43),y=n(6),x=n(35),_=n(45).enforce,m=n(159),b=n(30),w=n(312),T=n(313),A=b("match"),S=i.RegExp,k=S.prototype,E=i.SyntaxError,M=a(g),O=a(k.exec),C=a("".charAt),R=a("".replace),L=a("".indexOf),I=a("".slice),P=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,D=/a/g,z=/a/g,N=new S(D)!==D,F=p.UNSUPPORTED_Y,j=r&&(!N||F||w||T||y((function(){return z[A]=!1,S(D)!=D||S(z)==z||"/a/i"!=S(D,"i")})));if(o("RegExp",j)){for(var X=function(t,e){var n,r,i,a,o,c,l=f(k,this),g=h(t),p=void 0===e,v=[],y=t;if(!l&&g&&p&&t.constructor===X)return t;if((g||f(k,t))&&(t=t.source,p&&(e="flags"in y?y.flags:M(y))),t=void 0===t?"":d(t),e=void 0===e?"":d(e),y=t,w&&"dotAll"in D&&(r=!!e&&L(e,"s")>-1)&&(e=R(e,/s/g,"")),n=e,F&&"sticky"in D&&(i=!!e&&L(e,"y")>-1)&&(e=R(e,/y/g,"")),T&&(a=function(t){for(var e,n=t.length,r=0,i="",a=[],o={},s=!1,u=!1,c=0,l="";r<=n;r++){if("\\"===(e=C(t,r)))e+=C(t,++r);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:O(P,I(t,r+1))&&(r+=2,u=!0),i+=e,c++;continue;case">"===e&&u:if(""===l||x(o,l))throw new E("Invalid capture group name");o[l]=!0,a[a.length]=[l,c],u=!1,l="";continue}u?l+=e:i+=e}return[i,a]}(t),t=a[0],v=a[1]),o=s(S(t,e),l?this:k,X),(r||i||v.length)&&(c=_(o),r&&(c.dotAll=!0,c.raw=X(function(t){for(var e,n=t.length,r=0,i="",a=!1;r<=n;r++)"\\"!==(e=C(t,r))?a||"."!==e?("["===e?a=!0:"]"===e&&(a=!1),i+=e):i+="[\\s\\S]":i+=e+C(t,++r);return i}(t),n)),i&&(c.sticky=!0),v.length&&(c.groups=v)),t!==y)try{u(o,"source",""===y?"(?:)":y)}catch(t){}return o},B=function(t){t in X||c(X,t,{configurable:!0,get:function(){return S[t]},set:function(e){S[t]=e}})},$=l(S),U=0;$.length>U;)B($[U++]);k.constructor=X,X.prototype=k,v(i,"RegExp",X)}m("RegExp")},function(t,e,n){var r=n(17),i=n(13),a=n(30)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==i(t))}},function(t,e,n){"use strict";var r=n(42);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){var r=n(6),i=n(3).RegExp;e.UNSUPPORTED_Y=r((function(){var t=i("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=r((function(){var t=i("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},function(t,e,n){var r=n(6),i=n(3).RegExp;t.exports=r((function(){var t=i(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},function(t,e,n){var r=n(6),i=n(3).RegExp;t.exports=r((function(){var t=i("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},function(t,e,n){var r=n(3),i=n(5),a=n(312),o=n(13),s=n(41).f,u=n(45).get,c=RegExp.prototype,l=r.TypeError;i&&a&&s(c,"dotAll",{configurable:!0,get:function(){if(this!==c){if("RegExp"===o(this))return!!u(this).dotAll;throw l("Incompatible receiver, RegExp required")}}})},function(t,e,n){"use strict";var r=n(2),i=n(316);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(t,e,n){"use strict";var r,i,a=n(7),o=n(12),s=n(64),u=n(310),c=n(311),l=n(31),f=n(67),h=n(45).get,d=n(312),g=n(313),p=l("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,y=v,x=o("".charAt),_=o("".indexOf),m=o("".replace),b=o("".slice),w=(i=/b*/g,a(v,r=/a/,"a"),a(v,i,"a"),0!==r.lastIndex||0!==i.lastIndex),T=c.UNSUPPORTED_Y||c.BROKEN_CARET,A=void 0!==/()??/.exec("")[1];(w||A||T||d||g)&&(y=function(t){var e,n,r,i,o,c,l,d=this,g=h(d),S=s(t),k=g.raw;if(k)return k.lastIndex=d.lastIndex,e=a(y,k,S),d.lastIndex=k.lastIndex,e;var E=g.groups,M=T&&d.sticky,O=a(u,d),C=d.source,R=0,L=S;if(M&&(O=m(O,"y",""),-1===_(O,"g")&&(O+="g"),L=b(S,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==x(S,d.lastIndex-1))&&(C="(?: "+C+")",L=" "+L,R++),n=new RegExp("^(?:"+C+")",O)),A&&(n=new RegExp("^"+C+"$(?!\\s)",O)),w&&(r=d.lastIndex),i=a(v,M?n:d,L),M?i?(i.input=b(i.input,R),i[0]=b(i[0],R),i.index=d.lastIndex,d.lastIndex+=i[0].length):d.lastIndex=0:w&&i&&(d.lastIndex=d.global?i.index+i[0].length:r),A&&i&&i.length>1&&a(p,i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&E)for(i.groups=c=f(null),o=0;o<E.length;o++)c[(l=E[o])[0]]=i[l[1]];return i}),t.exports=y},function(t,e,n){var r=n(5),i=n(41),a=n(310),o=n(6),s=RegExp.prototype;r&&o((function(){return"sy"!==Object.getOwnPropertyDescriptor(s,"flags").get.call({dotAll:!0,sticky:!0})}))&&i.f(s,"flags",{configurable:!0,get:a})},function(t,e,n){var r=n(3),i=n(5),a=n(311).UNSUPPORTED_Y,o=n(13),s=n(41).f,u=n(45).get,c=RegExp.prototype,l=r.TypeError;i&&a&&s(c,"sticky",{configurable:!0,get:function(){if(this!==c){if("RegExp"===o(this))return!!u(this).sticky;throw l("Incompatible receiver, RegExp required")}}})},function(t,e,n){"use strict";n(315);var r,i,a=n(2),o=n(3),s=n(7),u=n(12),c=n(18),l=n(17),f=(r=!1,(i=/[ac]/).exec=function(){return r=!0,/./.exec.apply(this,arguments)},!0===i.test("abc")&&r),h=o.Error,d=u(/./.test);a({target:"RegExp",proto:!0,forced:!f},{test:function(t){var e=this.exec;if(!c(e))return d(this,t);var n=s(e,this,t);if(null!==n&&!l(n))throw new h("RegExp exec method returned something other than an Object or null");return!!n}})},function(t,e,n){"use strict";var r=n(12),i=n(49).PROPER,a=n(43),o=n(42),s=n(21),u=n(64),c=n(6),l=n(310),f="toString",h=RegExp.prototype,d=h.toString,g=r(l),p=c((function(){return"/a/b"!=d.call({source:"a",flags:"b"})})),v=i&&d.name!=f;(p||v)&&a(RegExp.prototype,f,(function(){var t=o(this),e=u(t.source),n=t.flags;return"/"+e+"/"+u(void 0===n&&s(h,t)&&!("flags"in h)?g(t):n)}),{unsafe:!0})},function(t,e,n){"use strict";n(197)("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(203))},function(t,e,n){"use strict";var r=n(2),i=n(12),a=n(14),o=n(56),s=n(64),u=n(6),c=i("".charAt);r({target:"String",proto:!0,forced:u((function(){return"\ud842"!=="𠮷".at(0)}))},{at:function(t){var e=s(a(this)),n=e.length,r=o(t),i=r>=0?r:n+r;return i<0||i>=n?void 0:c(e,i)}})},function(t,e,n){"use strict";var r=n(2),i=n(324).codeAt;r({target:"String",proto:!0},{codePointAt:function(t){return i(this,t)}})},function(t,e,n){var r=n(12),i=n(56),a=n(64),o=n(14),s=r("".charAt),u=r("".charCodeAt),c=r("".slice),l=function(t){return function(e,n){var r,l,f=a(o(e)),h=i(n),d=f.length;return h<0||h>=d?t?"":void 0:(r=u(f,h))<55296||r>56319||h+1===d||(l=u(f,h+1))<56320||l>57343?t?s(f,h):r:t?c(f,h,h+2):l-56320+(r-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},function(t,e,n){"use strict";var r,i=n(2),a=n(12),o=n(4).f,s=n(58),u=n(64),c=n(326),l=n(14),f=n(327),h=n(32),d=a("".endsWith),g=a("".slice),p=Math.min,v=f("endsWith");i({target:"String",proto:!0,forced:!!(h||v||(r=o(String.prototype,"endsWith"),!r||r.writable))&&!v},{endsWith:function(t){var e=u(l(this));c(t);var n=arguments.length>1?arguments[1]:void 0,r=e.length,i=void 0===n?r:p(s(n),r),a=u(t);return d?d(e,a,i):g(e,i-a.length,i)===a}})},function(t,e,n){var r=n(3),i=n(309),a=r.TypeError;t.exports=function(t){if(i(t))throw a("The method doesn't accept regular expressions");return t}},function(t,e,n){var r=n(30)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},function(t,e,n){var r=n(2),i=n(3),a=n(12),o=n(55),s=i.RangeError,u=String.fromCharCode,c=String.fromCodePoint,l=a([].join);r({target:"String",stat:!0,forced:!!c&&1!=c.length},{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,i=0;r>i;){if(e=+arguments[i++],o(e,1114111)!==e)throw s(e+" is not a valid code point");n[i]=e<65536?u(e):u(55296+((e-=65536)>>10),e%1024+56320)}return l(n,"")}})},function(t,e,n){"use strict";var r=n(2),i=n(12),a=n(326),o=n(14),s=n(64),u=n(327),c=i("".indexOf);r({target:"String",proto:!0,forced:!u("includes")},{includes:function(t){return!!~c(s(o(this)),s(a(t)),arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(324).charAt,i=n(64),a=n(45),o=n(138),s="String Iterator",u=a.set,c=a.getterFor(s);o(String,"String",(function(t){u(this,{type:s,string:i(t),index:0})}),(function(){var t,e=c(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";var r=n(7),i=n(332),a=n(42),o=n(58),s=n(64),u=n(14),c=n(26),l=n(333),f=n(334);i("match",(function(t,e,n){return[function(e){var n=u(this),i=null==e?void 0:c(e,t);return i?r(i,e,n):new RegExp(e)[t](s(n))},function(t){var r=a(this),i=s(t),u=n(e,r,i);if(u.done)return u.value;if(!r.global)return f(r,i);var c=r.unicode;r.lastIndex=0;for(var h,d=[],g=0;null!==(h=f(r,i));){var p=s(h[0]);d[g]=p,""===p&&(r.lastIndex=l(i,o(r.lastIndex),c)),g++}return 0===g?null:d}]}))},function(t,e,n){"use strict";n(315);var r=n(12),i=n(43),a=n(316),o=n(6),s=n(30),u=n(40),c=s("species"),l=RegExp.prototype;t.exports=function(t,e,n,f){var h=s(t),d=!o((function(){var e={};return e[h]=function(){return 7},7!=""[t](e)})),g=d&&!o((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return e=!0,null},n[h](""),!e}));if(!d||!g||n){var p=r(/./[h]),v=e(h,""[t],(function(t,e,n,i,o){var s=r(t),u=e.exec;return u===a||u===l.exec?d&&!o?{done:!0,value:p(e,n,i)}:{done:!0,value:s(n,e,i)}:{done:!1}}));i(String.prototype,t,v[0]),i(l,h,v[1])}f&&u(l[h],"sham",!0)}},function(t,e,n){"use strict";var r=n(324).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){var r=n(3),i=n(7),a=n(42),o=n(18),s=n(13),u=n(316),c=r.TypeError;t.exports=function(t,e){var n=t.exec;if(o(n)){var r=i(n,t,e);return null!==r&&a(r),r}if("RegExp"===s(t))return i(u,t,e);throw c("RegExp#exec called on incompatible receiver")}},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(7),o=n(12),s=n(139),u=n(14),c=n(58),l=n(64),f=n(42),h=n(13),d=n(21),g=n(309),p=n(310),v=n(26),y=n(43),x=n(6),_=n(30),m=n(173),b=n(333),w=n(334),T=n(45),A=n(32),S=_("matchAll"),k="RegExp String",E="RegExp String Iterator",M=T.set,O=T.getterFor(E),C=RegExp.prototype,R=i.TypeError,L=o(p),I=o("".indexOf),P=o("".matchAll),D=!!P&&!x((function(){P("a",/./)})),z=s((function(t,e,n,r){M(this,{type:E,regexp:t,string:e,global:n,unicode:r,done:!1})}),k,(function(){var t=O(this);if(t.done)return{value:void 0,done:!0};var e=t.regexp,n=t.string,r=w(e,n);return null===r?{value:void 0,done:t.done=!0}:t.global?(""===l(r[0])&&(e.lastIndex=b(n,c(e.lastIndex),t.unicode)),{value:r,done:!1}):(t.done=!0,{value:r,done:!1})})),N=function(t){var e,n,r,i,a,o,s=f(this),u=l(t);return e=m(s,RegExp),void 0===(n=s.flags)&&d(C,s)&&!("flags"in C)&&(n=L(s)),r=void 0===n?"":l(n),i=new e(e===RegExp?s.source:s,r),a=!!~I(r,"g"),o=!!~I(r,"u"),i.lastIndex=c(s.lastIndex),new z(i,u,a,o)};r({target:"String",proto:!0,forced:D},{matchAll:function(t){var e,n,r,i,o=u(this);if(null!=t){if(g(t)&&(e=l(u("flags"in C?t.flags:L(t))),!~I(e,"g")))throw R("`.matchAll` does not allow non-global regexes");if(D)return P(o,t);if(void 0===(r=v(t,S))&&A&&"RegExp"==h(t)&&(r=N),r)return a(r,t,o)}else if(D)return P(o,t);return n=l(o),i=new RegExp(t,"g"),A?a(N,i,n):i[S](n)}}),A||S in C||y(C,S,N)},function(t,e,n){"use strict";var r=n(2),i=n(182).end;r({target:"String",proto:!0,forced:n(337)},{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(25);t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},function(t,e,n){"use strict";var r=n(2),i=n(182).start;r({target:"String",proto:!0,forced:n(337)},{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(2),i=n(12),a=n(10),o=n(36),s=n(64),u=n(57),c=i([].push),l=i([].join);r({target:"String",stat:!0},{raw:function(t){for(var e=a(o(t).raw),n=u(e),r=arguments.length,i=[],f=0;n>f;){if(c(i,s(e[f++])),f===n)return l(i,"");f<r&&c(i,s(arguments[f]))}}})},function(t,e,n){n(2)({target:"String",proto:!0},{repeat:n(183)})},function(t,e,n){"use strict";var r=n(62),i=n(7),a=n(12),o=n(332),s=n(6),u=n(42),c=n(18),l=n(56),f=n(58),h=n(64),d=n(14),g=n(333),p=n(26),v=n(342),y=n(334),x=n(30)("replace"),_=Math.max,m=Math.min,b=a([].concat),w=a([].push),T=a("".indexOf),A=a("".slice),S="$0"==="a".replace(/./,"$0"),k=!!/./[x]&&""===/./[x]("a","$0");o("replace",(function(t,e,n){var a=k?"$":"$0";return[function(t,n){var r=d(this),a=null==t?void 0:p(t,x);return a?i(a,t,r,n):i(e,h(r),t,n)},function(t,i){var o=u(this),s=h(t);if("string"==typeof i&&-1===T(i,a)&&-1===T(i,"$<")){var d=n(e,o,s,i);if(d.done)return d.value}var p=c(i);p||(i=h(i));var x=o.global;if(x){var S=o.unicode;o.lastIndex=0}for(var k=[];;){var E=y(o,s);if(null===E)break;if(w(k,E),!x)break;""===h(E[0])&&(o.lastIndex=g(s,f(o.lastIndex),S))}for(var M,O="",C=0,R=0;R<k.length;R++){for(var L=h((E=k[R])[0]),I=_(m(l(E.index),s.length),0),P=[],D=1;D<E.length;D++)w(P,void 0===(M=E[D])?M:String(M));var z=E.groups;if(p){var N=b([L],P,I,s);void 0!==z&&w(N,z);var F=h(r(i,void 0,N))}else F=v(L,s,I,P,z,i);I>=C&&(O+=A(s,C,I)+F,C=I+L.length)}return O+A(s,C)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!S||k)},function(t,e,n){var r=n(12),i=n(36),a=Math.floor,o=r("".charAt),s=r("".replace),u=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,f,h){var d=n+t.length,g=r.length,p=l;return void 0!==f&&(f=i(f),p=c),s(h,p,(function(i,s){var c;switch(o(s,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,n);case"'":return u(e,d);case"<":c=f[u(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>g){var h=a(l/10);return 0===h?i:h<=g?void 0===r[h-1]?o(s,1):r[h-1]+o(s,1):i}c=r[l-1]}return void 0===c?"":c}))}},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(7),o=n(12),s=n(14),u=n(18),c=n(309),l=n(64),f=n(26),h=n(310),d=n(342),g=n(30),p=n(32),v=g("replace"),y=RegExp.prototype,x=i.TypeError,_=o(h),m=o("".indexOf),b=o("".replace),w=o("".slice),T=Math.max,A=function(t,e,n){return n>t.length?-1:""===e?n:m(t,e,n)};r({target:"String",proto:!0},{replaceAll:function(t,e){var n,r,i,o,h,g,S,k,E,M=s(this),O=0,C=0,R="";if(null!=t){if((n=c(t))&&(r=l(s("flags"in y?t.flags:_(t))),!~m(r,"g")))throw x("`.replaceAll` does not allow non-global regexes");if(i=f(t,v))return a(i,t,M,e);if(p&&n)return b(l(M),t,e)}for(o=l(M),h=l(t),(g=u(e))||(e=l(e)),S=h.length,k=T(1,S),O=A(o,h,0);-1!==O;)E=g?l(e(h,O,o)):d(h,o,O,[],void 0,e),R+=w(o,C,O)+E,C=O+S,O=A(o,h,O+k);return C<o.length&&(R+=w(o,C)),R}})},function(t,e,n){"use strict";var r=n(7),i=n(332),a=n(42),o=n(14),s=n(263),u=n(64),c=n(26),l=n(334);i("search",(function(t,e,n){return[function(e){var n=o(this),i=null==e?void 0:c(e,t);return i?r(i,e,n):new RegExp(e)[t](u(n))},function(t){var r=a(this),i=u(t),o=n(e,r,i);if(o.done)return o.value;var c=r.lastIndex;s(c,0)||(r.lastIndex=0);var f=l(r,i);return s(r.lastIndex,c)||(r.lastIndex=c),null===f?-1:f.index}]}))},function(t,e,n){"use strict";var r=n(62),i=n(7),a=n(12),o=n(332),s=n(309),u=n(42),c=n(14),l=n(173),f=n(333),h=n(58),d=n(64),g=n(26),p=n(72),v=n(334),y=n(316),x=n(311),_=n(6),m=x.UNSUPPORTED_Y,b=4294967295,w=Math.min,T=[].push,A=a(/./.exec),S=a(T),k=a("".slice),E=!_((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));o("split",(function(t,e,n){var a;return a="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var a=d(c(this)),o=void 0===n?b:n>>>0;if(0===o)return[];if(void 0===t)return[a];if(!s(t))return i(e,a,t,o);for(var u,l,f,h=[],g=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),v=0,x=new RegExp(t.source,g+"g");(u=i(y,x,a))&&!((l=x.lastIndex)>v&&(S(h,k(a,v,u.index)),u.length>1&&u.index<a.length&&r(T,h,p(u,1)),f=u[0].length,v=l,h.length>=o));)x.lastIndex===u.index&&x.lastIndex++;return v===a.length?!f&&A(x,"")||S(h,""):S(h,k(a,v)),h.length>o?p(h,0,o):h}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:i(e,this,t,n)}:e,[function(e,n){var r=c(this),o=null==e?void 0:g(e,t);return o?i(o,e,r,n):i(a,d(r),e,n)},function(t,r){var i=u(this),o=d(t),s=n(a,i,o,r,a!==e);if(s.done)return s.value;var c=l(i,RegExp),g=i.unicode,p=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(m?"g":"y"),y=new c(m?"^(?:"+i.source+")":i,p),x=void 0===r?b:r>>>0;if(0===x)return[];if(0===o.length)return null===v(y,o)?[o]:[];for(var _=0,T=0,A=[];T<o.length;){y.lastIndex=m?0:T;var E,M=v(y,m?k(o,T):o);if(null===M||(E=w(h(y.lastIndex+(m?T:0)),o.length))===_)T=f(o,T,g);else{if(S(A,k(o,_,T)),A.length===x)return A;for(var O=1;O<=M.length-1;O++)if(S(A,M[O]),A.length===x)return A;T=_=E}}return S(A,k(o,_)),A}]}),!E,m)},function(t,e,n){"use strict";var r,i=n(2),a=n(12),o=n(4).f,s=n(58),u=n(64),c=n(326),l=n(14),f=n(327),h=n(32),d=a("".startsWith),g=a("".slice),p=Math.min,v=f("startsWith");i({target:"String",proto:!0,forced:!!(h||v||(r=o(String.prototype,"startsWith"),!r||r.writable))&&!v},{startsWith:function(t){var e=u(l(this));c(t);var n=s(p(arguments.length>1?arguments[1]:void 0,e.length)),r=u(t);return d?d(e,r,n):g(e,n,n+r.length)===r}})},function(t,e,n){"use strict";var r=n(2),i=n(12),a=n(14),o=n(56),s=n(64),u=i("".slice),c=Math.max,l=Math.min;r({target:"String",proto:!0,forced:!"".substr||"b"!=="ab".substr(-1)},{substr:function(t,e){var n,r,i=s(a(this)),f=i.length,h=o(t);return h===1/0&&(h=0),h<0&&(h=c(f+h,0)),(n=void 0===e?f:o(e))<=0||n===1/0||h>=(r=l(h+n,f))?"":u(i,h,r)}})},function(t,e,n){"use strict";var r=n(2),i=n(228).trim;r({target:"String",proto:!0,forced:n(349)("trim")},{trim:function(){return i(this)}})},function(t,e,n){var r=n(49).PROPER,i=n(6),a=n(229);t.exports=function(t){return i((function(){return!!a[t]()||"​…᠎"!=="​…᠎"[t]()||r&&a[t].name!==t}))}},function(t,e,n){"use strict";var r=n(2),i=n(228).end,a=n(349)("trimEnd"),o=a?function(){return i(this)}:"".trimEnd;r({target:"String",proto:!0,name:"trimEnd",forced:a},{trimEnd:o,trimRight:o})},function(t,e,n){"use strict";var r=n(2),i=n(228).start,a=n(349)("trimStart"),o=a?function(){return i(this)}:"".trimStart;r({target:"String",proto:!0,name:"trimStart",forced:a},{trimStart:o,trimLeft:o})},function(t,e,n){"use strict";var r=n(2),i=n(353);r({target:"String",proto:!0,forced:n(354)("anchor")},{anchor:function(t){return i(this,"a","name",t)}})},function(t,e,n){var r=n(12),i=n(14),a=n(64),o=/"/g,s=r("".replace);t.exports=function(t,e,n,r){var u=a(i(t)),c="<"+e;return""!==n&&(c+=" "+n+'="'+s(a(r),o,"&quot;")+'"'),c+">"+u+"</"+e+">"}},function(t,e,n){var r=n(6);t.exports=function(t){return r((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},function(t,e,n){"use strict";var r=n(2),i=n(353);r({target:"String",proto:!0,forced:n(354)("big")},{big:function(){return i(this,"big","","")}})},function(t,e,n){"use strict";var r=n(2),i=n(353);r({target:"String",proto:!0,forced:n(354)("blink")},{blink:function(){return i(this,"blink","","")}})},function(t,e,n){"use strict";var r=n(2),i=n(353);r({target:"String",proto:!0,forced:n(354)("bold")},{bold:function(){return i(this,"b","","")}})},function(t,e,n){"use strict";var r=n(2),i=n(353);r({target:"String",proto:!0,forced:n(354)("fixed")},{fixed:function(){return i(this,"tt","","")}})},function(t,e,n){"use strict";var r=n(2),i=n(353);r({target:"String",proto:!0,forced:n(354)("fontcolor")},{fontcolor:function(t){return i(this,"font","color",t)}})},function(t,e,n){"use strict";var r=n(2),i=n(353);r({target:"String",proto:!0,forced:n(354)("fontsize")},{fontsize:function(t){return i(this,"font","size",t)}})},function(t,e,n){"use strict";var r=n(2),i=n(353);r({target:"String",proto:!0,forced:n(354)("italics")},{italics:function(){return i(this,"i","","")}})},function(t,e,n){"use strict";var r=n(2),i=n(353);r({target:"String",proto:!0,forced:n(354)("link")},{link:function(t){return i(this,"a","href",t)}})},function(t,e,n){"use strict";var r=n(2),i=n(353);r({target:"String",proto:!0,forced:n(354)("small")},{small:function(){return i(this,"small","","")}})},function(t,e,n){"use strict";var r=n(2),i=n(353);r({target:"String",proto:!0,forced:n(354)("strike")},{strike:function(){return i(this,"strike","","")}})},function(t,e,n){"use strict";var r=n(2),i=n(353);r({target:"String",proto:!0,forced:n(354)("sub")},{sub:function(){return i(this,"sub","","")}})},function(t,e,n){"use strict";var r=n(2),i=n(353);r({target:"String",proto:!0,forced:n(354)("sup")},{sup:function(){return i(this,"sup","","")}})},function(t,e,n){n(368)("Float32",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(7),o=n(5),s=n(369),u=n(171),c=n(164),l=n(167),f=n(9),h=n(40),d=n(234),g=n(58),p=n(168),v=n(370),y=n(15),x=n(35),_=n(65),m=n(17),b=n(19),w=n(67),T=n(21),A=n(99),S=n(52).f,k=n(372),E=n(77).forEach,M=n(159),O=n(41),C=n(4),R=n(45),L=n(202),I=R.get,P=R.set,D=O.f,z=C.f,N=Math.round,F=i.RangeError,j=c.ArrayBuffer,X=j.prototype,B=c.DataView,$=u.NATIVE_ARRAY_BUFFER_VIEWS,U=u.TYPED_ARRAY_CONSTRUCTOR,Y=u.TYPED_ARRAY_TAG,V=u.TypedArray,G=u.TypedArrayPrototype,H=u.aTypedArrayConstructor,W=u.isTypedArray,q="BYTES_PER_ELEMENT",Z="Wrong length",K=function(t,e){H(t);for(var n=0,r=e.length,i=new t(r);r>n;)i[n]=e[n++];return i},J=function(t,e){D(t,e,{get:function(){return I(this)[e]}})},Q=function(t){var e;return T(X,t)||"ArrayBuffer"==(e=_(t))||"SharedArrayBuffer"==e},tt=function(t,e){return W(t)&&!b(e)&&e in t&&d(+e)&&e>=0},et=function(t,e){return e=y(e),tt(t,e)?f(2,t[e]):z(t,e)},nt=function(t,e,n){return e=y(e),!(tt(t,e)&&m(n)&&x(n,"value"))||x(n,"get")||x(n,"set")||n.configurable||x(n,"writable")&&!n.writable||x(n,"enumerable")&&!n.enumerable?D(t,e,n):(t[e]=n.value,t)};o?($||(C.f=et,O.f=nt,J(G,"buffer"),J(G,"byteOffset"),J(G,"byteLength"),J(G,"length")),r({target:"Object",stat:!0,forced:!$},{getOwnPropertyDescriptor:et,defineProperty:nt}),t.exports=function(t,e,n){var o=t.match(/\d+$/)[0]/8,u=t+(n?"Clamped":"")+"Array",c="get"+t,f="set"+t,d=i[u],y=d,x=y&&y.prototype,_={},b=function(t,e){D(t,e,{get:function(){return function(t,e){var n=I(t);return n.view[c](e*o+n.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,r){var i=I(t);n&&(r=(r=N(r))<0?0:r>255?255:255&r),i.view[f](e*o+i.byteOffset,r,!0)}(this,e,t)},enumerable:!0})};$?s&&(y=e((function(t,e,n,r){return l(t,x),L(m(e)?Q(e)?void 0!==r?new d(e,v(n,o),r):void 0!==n?new d(e,v(n,o)):new d(e):W(e)?K(y,e):a(k,y,e):new d(p(e)),t,y)})),A&&A(y,V),E(S(d),(function(t){t in y||h(y,t,d[t])})),y.prototype=x):(y=e((function(t,e,n,r){l(t,x);var i,s,u,c=0,f=0;if(m(e)){if(!Q(e))return W(e)?K(y,e):a(k,y,e);i=e,f=v(n,o);var h=e.byteLength;if(void 0===r){if(h%o)throw F(Z);if((s=h-f)<0)throw F(Z)}else if((s=g(r)*o)+f>h)throw F(Z);u=s/o}else u=p(e),i=new j(s=u*o);for(P(t,{buffer:i,byteOffset:f,byteLength:s,length:u,view:new B(i)});c<u;)b(t,c++)})),A&&A(y,V),x=y.prototype=w(G)),x.constructor!==y&&h(x,"constructor",y),h(x,U,y),Y&&h(x,Y,u),_[u]=y,r({global:!0,forced:y!=d,sham:!$},_),q in y||h(y,q,o),q in x||h(x,q,o),M(u)}):t.exports=function(){}},function(t,e,n){var r=n(3),i=n(6),a=n(133),o=n(171).NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,u=r.Int8Array;t.exports=!o||!i((function(){u(1)}))||!i((function(){new u(-1)}))||!a((function(t){new u,new u(null),new u(1.5),new u(t)}),!0)||i((function(){return 1!==new u(new s(2),1,void 0).length}))},function(t,e,n){var r=n(3),i=n(371),a=r.RangeError;t.exports=function(t,e){var n=i(t);if(n%e)throw a("Wrong offset");return n}},function(t,e,n){var r=n(3),i=n(56),a=r.RangeError;t.exports=function(t){var e=i(t);if(e<0)throw a("The argument can't be less than 0");return e}},function(t,e,n){var r=n(78),i=n(7),a=n(174),o=n(36),s=n(57),u=n(106),c=n(107),l=n(104),f=n(171).aTypedArrayConstructor;t.exports=function(t){var e,n,h,d,g,p,v=a(this),y=o(t),x=arguments.length,_=x>1?arguments[1]:void 0,m=void 0!==_,b=c(y);if(b&&!l(b))for(p=(g=u(y,b)).next,y=[];!(d=i(p,g)).done;)y.push(d.value);for(m&&x>2&&(_=r(_,arguments[2])),n=s(y),h=new(f(v))(n),e=0;n>e;e++)h[e]=m?_(y[e],e):y[e];return h}},function(t,e,n){n(368)("Float64",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(368)("Int8",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(368)("Int16",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(368)("Int32",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(368)("Uint8",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(368)("Uint8",(function(t){return function(e,n,r){return t(this,e,n,r)}}),!0)},function(t,e,n){n(368)("Uint16",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(368)("Uint32",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){"use strict";var r=n(171),i=n(57),a=n(56),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("at",(function(t){var e=o(this),n=i(e),r=a(t),s=r>=0?r:n+r;return s<0||s>=n?void 0:e[s]}))},function(t,e,n){"use strict";var r=n(12),i=n(171),a=r(n(117)),o=i.aTypedArray;(0,i.exportTypedArrayMethod)("copyWithin",(function(t,e){return a(o(this),t,e,arguments.length>2?arguments[2]:void 0)}))},function(t,e,n){"use strict";var r=n(171),i=n(77).every,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(171),i=n(7),a=n(121),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("fill",(function(t){var e=arguments.length;return i(a,o(this),t,e>1?arguments[1]:void 0,e>2?arguments[2]:void 0)}))},function(t,e,n){"use strict";var r=n(171),i=n(77).filter,a=n(386),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",(function(t){var e=i(o(this),t,arguments.length>1?arguments[1]:void 0);return a(this,e)}))},function(t,e,n){var r=n(387),i=n(388);t.exports=function(t,e){return r(i(t),e)}},function(t){t.exports=function(t,e){for(var n=0,r=e.length,i=new t(r);r>n;)i[n]=e[n++];return i}},function(t,e,n){var r=n(171),i=n(173),a=r.TYPED_ARRAY_CONSTRUCTOR,o=r.aTypedArrayConstructor;t.exports=function(t){return o(i(t,t[a]))}},function(t,e,n){"use strict";var r=n(171),i=n(77).find,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(171),i=n(77).findIndex,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(171),i=n(77).forEach,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",(function(t){i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(369);(0,n(171).exportTypedArrayStaticMethod)("from",n(372),r)},function(t,e,n){"use strict";var r=n(171),i=n(54).includes,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(171),i=n(54).indexOf,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(3),i=n(12),a=n(49).PROPER,o=n(171),s=n(137),u=n(30)("iterator"),c=r.Uint8Array,l=i(s.values),f=i(s.keys),h=i(s.entries),d=o.aTypedArray,g=o.exportTypedArrayMethod,p=c&&c.prototype[u],v=!!p&&"values"===p.name,y=function(){return l(d(this))};g("entries",(function(){return h(d(this))})),g("keys",(function(){return f(d(this))})),g("values",y,a&&!v),g(u,y,a&&!v)},function(t,e,n){"use strict";var r=n(171),i=n(12),a=r.aTypedArray,o=r.exportTypedArrayMethod,s=i([].join);o("join",(function(t){return s(a(this),t)}))},function(t,e,n){"use strict";var r=n(171),i=n(62),a=n(143),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(t){var e=arguments.length;return i(a,o(this),e>1?[t,arguments[1]]:[t])}))},function(t,e,n){"use strict";var r=n(171),i=n(77).map,a=n(388),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("map",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(a(t))(e)}))}))},function(t,e,n){"use strict";var r=n(171),i=n(369),a=r.aTypedArrayConstructor;(0,r.exportTypedArrayStaticMethod)("of",(function(){for(var t=0,e=arguments.length,n=new(a(this))(e);e>t;)n[t]=arguments[t++];return n}),i)},function(t,e,n){"use strict";var r=n(171),i=n(147).left,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",(function(t){var e=arguments.length;return i(a(this),t,e,e>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(171),i=n(147).right,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",(function(t){var e=arguments.length;return i(a(this),t,e,e>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(171),i=r.aTypedArray,a=r.exportTypedArrayMethod,o=Math.floor;a("reverse",(function(){for(var t,e=this,n=i(e).length,r=o(n/2),a=0;a<r;)t=e[a],e[a++]=e[--n],e[n]=t;return e}))},function(t,e,n){"use strict";var r=n(3),i=n(171),a=n(57),o=n(370),s=n(36),u=n(6),c=r.RangeError,l=i.aTypedArray;(0,i.exportTypedArrayMethod)("set",(function(t){l(this);var e=o(arguments.length>1?arguments[1]:void 0,1),n=this.length,r=s(t),i=a(r),u=0;if(i+e>n)throw c("Wrong length");for(;u<i;)this[e+u]=r[u++]}),u((function(){new Int8Array(1).set({})})))},function(t,e,n){"use strict";var r=n(171),i=n(388),a=n(6),o=n(72),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("slice",(function(t,e){for(var n=o(s(this),t,e),r=i(this),a=0,u=n.length,c=new r(u);u>a;)c[a]=n[a++];return c}),a((function(){new Int8Array(1).slice()})))},function(t,e,n){"use strict";var r=n(171),i=n(77).some,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(3),i=n(12),a=n(6),o=n(27),s=n(154),u=n(171),c=n(155),l=n(156),f=n(24),h=n(157),d=r.Array,g=u.aTypedArray,p=u.exportTypedArrayMethod,v=r.Uint16Array,y=v&&i(v.prototype.sort),x=!(!y||a((function(){y(new v(2),null)}))&&a((function(){y(new v(2),{})}))),_=!!y&&!a((function(){if(f)return f<74;if(c)return c<67;if(l)return!0;if(h)return h<602;var t,e,n=new v(516),r=d(516);for(t=0;t<516;t++)e=t%4,n[t]=515-t,r[t]=t-2*e+3;for(y(n,(function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(n[t]!==r[t])return!0}));p("sort",(function(t){return void 0!==t&&o(t),_?y(this,t):s(g(this),function(t){return function(e,n){return void 0!==t?+t(e,n)||0:n!=n?-1:e!=e?1:0===e&&0===n?1/e>0&&1/n<0?1:-1:e>n}}(t))}),!_||x)},function(t,e,n){"use strict";var r=n(171),i=n(58),a=n(55),o=n(388),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("subarray",(function(t,e){var n=s(this),r=n.length,u=a(t,r);return new(o(n))(n.buffer,n.byteOffset+u*n.BYTES_PER_ELEMENT,i((void 0===e?r:a(e,r))-u))}))},function(t,e,n){"use strict";var r=n(3),i=n(62),a=n(171),o=n(6),s=n(72),u=r.Int8Array,c=a.aTypedArray,l=a.exportTypedArrayMethod,f=[].toLocaleString,h=!!u&&o((function(){f.call(new u(1))}));l("toLocaleString",(function(){return i(f,h?s(c(this)):c(this),s(arguments))}),o((function(){return[1,2].toLocaleString()!=new u([1,2]).toLocaleString()}))||!o((function(){u.prototype.toLocaleString.call([1,2])})))},function(t,e,n){"use strict";var r=n(171).exportTypedArrayMethod,i=n(6),a=n(3),o=n(12),s=a.Uint8Array,u=s&&s.prototype||{},c=[].toString,l=o([].join);i((function(){c.call({})}))&&(c=function(){return l(this)});var f=u.toString!=c;r("toString",c,f)},function(t,e,n){"use strict";var r=n(2),i=n(12),a=n(64),o=String.fromCharCode,s=i("".charAt),u=i(/./.exec),c=i("".slice),l=/^[\da-f]{2}$/i,f=/^[\da-f]{4}$/i;r({global:!0},{unescape:function(t){for(var e,n,r=a(t),i="",h=r.length,d=0;d<h;){if("%"===(e=s(r,d++)))if("u"===s(r,d)){if(n=c(r,d+1,d+5),u(f,n)){i+=o(parseInt(n,16)),d+=5;continue}}else if(n=c(r,d,d+2),u(l,n)){i+=o(parseInt(n,16)),d+=2;continue}i+=e}return i}})},function(t,e,n){"use strict";var r,i=n(3),a=n(12),o=n(166),s=n(198),u=n(197),c=n(412),l=n(17),f=n(199),h=n(45).enforce,d=n(46),g=!i.ActiveXObject&&"ActiveXObject"in i,p=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},v=u("WeakMap",p,c);if(d&&g){r=c.getConstructor(p,"WeakMap",!0),s.enable();var y=v.prototype,x=a(y.delete),_=a(y.has),m=a(y.get),b=a(y.set);o(y,{delete:function(t){if(l(t)&&!f(t)){var e=h(this);return e.frozen||(e.frozen=new r),x(this,t)||e.frozen.delete(t)}return x(this,t)},has:function(t){if(l(t)&&!f(t)){var e=h(this);return e.frozen||(e.frozen=new r),_(this,t)||e.frozen.has(t)}return _(this,t)},get:function(t){if(l(t)&&!f(t)){var e=h(this);return e.frozen||(e.frozen=new r),_(this,t)?m(this,t):e.frozen.get(t)}return m(this,t)},set:function(t,e){if(l(t)&&!f(t)){var n=h(this);n.frozen||(n.frozen=new r),_(this,t)?b(this,t,e):n.frozen.set(t,e)}else b(this,t,e);return this}})}},function(t,e,n){"use strict";var r=n(12),i=n(166),a=n(198).getWeakData,o=n(42),s=n(17),u=n(167),c=n(103),l=n(77),f=n(35),h=n(45),d=h.set,g=h.getterFor,p=l.find,v=l.findIndex,y=r([].splice),x=0,_=function(t){return t.frozen||(t.frozen=new m)},m=function(){this.entries=[]},b=function(t,e){return p(t.entries,(function(t){return t[0]===e}))};m.prototype={get:function(t){var e=b(this,t);if(e)return e[1]},has:function(t){return!!b(this,t)},set:function(t,e){var n=b(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=v(this.entries,(function(e){return e[0]===t}));return~e&&y(this.entries,e,1),!!~e}},t.exports={getConstructor:function(t,e,n,r){var l=t((function(t,i){u(t,h),d(t,{type:e,id:x++,frozen:void 0}),null!=i&&c(i,t[r],{that:t,AS_ENTRIES:n})})),h=l.prototype,p=g(e),v=function(t,e,n){var r=p(t),i=a(o(e),!0);return!0===i?_(r).set(e,n):i[r.id]=n,t};return i(h,{delete:function(t){var e=p(this);if(!s(t))return!1;var n=a(t);return!0===n?_(e).delete(t):n&&f(n,e.id)&&delete n[e.id]},has:function(t){var e=p(this);if(!s(t))return!1;var n=a(t);return!0===n?_(e).has(t):n&&f(n,e.id)}}),i(h,n?{get:function(t){var e=p(this);if(s(t)){var n=a(t);return!0===n?_(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return v(this,t,e)}}:{add:function(t){return v(this,t,!0)}}),l}}},function(t,e,n){"use strict";n(197)("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(412))},function(t,e,n){var r=n(3),i=n(415),a=n(416),o=n(129),s=n(40),u=function(t){if(t&&t.forEach!==o)try{s(t,"forEach",o)}catch(e){t.forEach=o}};for(var c in i)i[c]&&u(r[c]&&r[c].prototype);u(a)},function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){var r=n(39)("span").classList,i=r&&r.constructor&&r.constructor.prototype;t.exports=i===Object.prototype?void 0:i},function(t,e,n){var r=n(3),i=n(415),a=n(416),o=n(137),s=n(40),u=n(30),c=u("iterator"),l=u("toStringTag"),f=o.values,h=function(t,e){if(t){if(t[c]!==f)try{s(t,c,f)}catch(e){t[c]=f}if(t[l]||s(t,l,e),i[e])for(var n in o)if(t[n]!==o[n])try{s(t,n,o[n])}catch(e){t[n]=o[n]}}};for(var d in i)h(r[d]&&r[d].prototype,d);h(a,"DOMTokenList")},function(t,e,n){var r=n(2),i=n(3),a=n(280);r({global:!0,bind:!0,enumerable:!0,forced:!i.setImmediate||!i.clearImmediate},{setImmediate:a.set,clearImmediate:a.clear})},function(t,e,n){var r=n(2),i=n(3),a=n(282),o=n(148),s=i.process;r({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(t){var e=o&&s.domain;a(e?e.bind(t):t)}})},function(t,e,n){var r=n(2),i=n(3),a=n(62),o=n(18),s=n(25),u=n(72),c=/MSIE .\./.test(s),l=i.Function,f=function(t){return function(e,n){var r=arguments.length>2,i=r?u(arguments,2):void 0;return t(r?function(){a(o(e)?e:l(e),this,i)}:e,n)}};r({global:!0,bind:!0,forced:c},{setTimeout:f(i.setTimeout),setInterval:f(i.setInterval)})},function(t,e,n){"use strict";n(330);var r,i=n(2),a=n(5),o=n(422),s=n(3),u=n(78),c=n(7),l=n(12),f=n(68),h=n(43),d=n(167),g=n(35),p=n(246),v=n(131),y=n(72),x=n(324).codeAt,_=n(423),m=n(64),b=n(76),w=n(424),T=n(45),A=T.set,S=T.getterFor("URL"),k=w.URLSearchParams,E=w.getState,M=s.URL,O=s.TypeError,C=s.parseInt,R=Math.floor,L=Math.pow,I=l("".charAt),P=l(/./.exec),D=l([].join),z=l(1..toString),N=l([].pop),F=l([].push),j=l("".replace),X=l([].shift),B=l("".split),$=l("".slice),U=l("".toLowerCase),Y=l([].unshift),V="Invalid scheme",G="Invalid host",H="Invalid port",W=/[a-z]/i,q=/[\d+-.a-z]/i,Z=/\d/,K=/^0x/i,J=/^[0-7]+$/,Q=/^\d+$/,tt=/^[\da-f]+$/i,et=/[\0\t\n\r #%/:<>?@[\\\]^|]/,nt=/[\0\t\n\r #/:<>?@[\\\]^|]/,rt=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,it=/[\t\n\r]/g,at=function(t,e){var n,r,i;if("["==I(e,0)){if("]"!=I(e,e.length-1))return G;if(!(n=st($(e,1,-1))))return G;t.host=n}else if(pt(t)){if(e=_(e),P(et,e))return G;if(null===(n=ot(e)))return G;t.host=n}else{if(P(nt,e))return G;for(n="",r=v(e),i=0;i<r.length;i++)n+=dt(r[i],ct);t.host=n}},ot=function(t){var e,n,r,i,a,o,s,u=B(t,".");if(u.length&&""==u[u.length-1]&&u.length--,(e=u.length)>4)return t;for(n=[],r=0;r<e;r++){if(""==(i=u[r]))return t;if(a=10,i.length>1&&"0"==I(i,0)&&(a=P(K,i)?16:8,i=$(i,8==a?1:2)),""===i)o=0;else{if(!P(10==a?Q:8==a?J:tt,i))return t;o=C(i,a)}F(n,o)}for(r=0;r<e;r++)if(o=n[r],r==e-1){if(o>=L(256,5-e))return null}else if(o>255)return null;for(s=N(n),r=0;r<n.length;r++)s+=n[r]*L(256,3-r);return s},st=function(t){var e,n,r,i,a,o,s,u=[0,0,0,0,0,0,0,0],c=0,l=null,f=0,h=function(){return I(t,f)};if(":"==h()){if(":"!=I(t,1))return;f+=2,l=++c}for(;h();){if(8==c)return;if(":"!=h()){for(e=n=0;n<4&&P(tt,h());)e=16*e+C(h(),16),f++,n++;if("."==h()){if(0==n)return;if(f-=n,c>6)return;for(r=0;h();){if(i=null,r>0){if(!("."==h()&&r<4))return;f++}if(!P(Z,h()))return;for(;P(Z,h());){if(a=C(h(),10),null===i)i=a;else{if(0==i)return;i=10*i+a}if(i>255)return;f++}u[c]=256*u[c]+i,2!=++r&&4!=r||c++}if(4!=r)return;break}if(":"==h()){if(f++,!h())return}else if(h())return;u[c++]=e}else{if(null!==l)return;f++,l=++c}}if(null!==l)for(o=c-l,c=7;0!=c&&o>0;)s=u[c],u[c--]=u[l+o-1],u[l+--o]=s;else if(8!=c)return;return u},ut=function(t){var e,n,r,i;if("number"==typeof t){for(e=[],n=0;n<4;n++)Y(e,t%256),t=R(t/256);return D(e,".")}if("object"==typeof t){for(e="",r=function(t){for(var e=null,n=1,r=null,i=0,a=0;a<8;a++)0!==t[a]?(i>n&&(e=r,n=i),r=null,i=0):(null===r&&(r=a),++i);return i>n&&(e=r,n=i),e}(t),n=0;n<8;n++)i&&0===t[n]||(i&&(i=!1),r===n?(e+=n?":":"::",i=!0):(e+=z(t[n],16),n<7&&(e+=":")));return"["+e+"]"}return t},ct={},lt=p({},ct,{" ":1,'"':1,"<":1,">":1,"`":1}),ft=p({},lt,{"#":1,"?":1,"{":1,"}":1}),ht=p({},ft,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),dt=function(t,e){var n=x(t,0);return n>32&&n<127&&!g(e,t)?t:encodeURIComponent(t)},gt={ftp:21,file:null,http:80,https:443,ws:80,wss:443},pt=function(t){return g(gt,t.scheme)},vt=function(t){return""!=t.username||""!=t.password},yt=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},xt=function(t,e){var n;return 2==t.length&&P(W,I(t,0))&&(":"==(n=I(t,1))||!e&&"|"==n)},_t=function(t){var e;return t.length>1&&xt($(t,0,2))&&(2==t.length||"/"===(e=I(t,2))||"\\"===e||"?"===e||"#"===e)},mt=function(t){var e=t.path,n=e.length;!n||"file"==t.scheme&&1==n&&xt(e[0],!0)||e.length--},bt=function(t){return"."===t||"%2e"===U(t)},wt={},Tt={},At={},St={},kt={},Et={},Mt={},Ot={},Ct={},Rt={},Lt={},It={},Pt={},Dt={},zt={},Nt={},Ft={},jt={},Xt={},Bt={},$t={},Ut=function(t,e,n,i){var a,o,s,u,c,l=n||wt,f=0,h="",d=!1,p=!1,x=!1;for(n||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=j(e,rt,"")),e=j(e,it,""),a=v(e);f<=a.length;){switch(o=a[f],l){case wt:if(!o||!P(W,o)){if(n)return V;l=At;continue}h+=U(o),l=Tt;break;case Tt:if(o&&(P(q,o)||"+"==o||"-"==o||"."==o))h+=U(o);else{if(":"!=o){if(n)return V;h="",l=At,f=0;continue}if(n&&(pt(t)!=g(gt,h)||"file"==h&&(vt(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=h,n)return void(pt(t)&&gt[t.scheme]==t.port&&(t.port=null));h="","file"==t.scheme?l=Dt:pt(t)&&i&&i.scheme==t.scheme?l=St:pt(t)?l=Ot:"/"==a[f+1]?(l=kt,f++):(t.cannotBeABaseURL=!0,F(t.path,""),l=Xt)}break;case At:if(!i||i.cannotBeABaseURL&&"#"!=o)return V;if(i.cannotBeABaseURL&&"#"==o){t.scheme=i.scheme,t.path=y(i.path),t.query=i.query,t.fragment="",t.cannotBeABaseURL=!0,l=$t;break}l="file"==i.scheme?Dt:Et;continue;case St:if("/"!=o||"/"!=a[f+1]){l=Et;continue}l=Ct,f++;break;case kt:if("/"==o){l=Rt;break}l=jt;continue;case Et:if(t.scheme=i.scheme,o==r)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=y(i.path),t.query=i.query;else if("/"==o||"\\"==o&&pt(t))l=Mt;else if("?"==o)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=y(i.path),t.query="",l=Bt;else{if("#"!=o){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=y(i.path),t.path.length--,l=jt;continue}t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=y(i.path),t.query=i.query,t.fragment="",l=$t}break;case Mt:if(!pt(t)||"/"!=o&&"\\"!=o){if("/"!=o){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,l=jt;continue}l=Rt}else l=Ct;break;case Ot:if(l=Ct,"/"!=o||"/"!=I(h,f+1))continue;f++;break;case Ct:if("/"!=o&&"\\"!=o){l=Rt;continue}break;case Rt:if("@"==o){d&&(h="%40"+h),d=!0,s=v(h);for(var _=0;_<s.length;_++){var m=s[_];if(":"!=m||x){var b=dt(m,ht);x?t.password+=b:t.username+=b}else x=!0}h=""}else if(o==r||"/"==o||"?"==o||"#"==o||"\\"==o&&pt(t)){if(d&&""==h)return"Invalid authority";f-=v(h).length+1,h="",l=Lt}else h+=o;break;case Lt:case It:if(n&&"file"==t.scheme){l=Nt;continue}if(":"!=o||p){if(o==r||"/"==o||"?"==o||"#"==o||"\\"==o&&pt(t)){if(pt(t)&&""==h)return G;if(n&&""==h&&(vt(t)||null!==t.port))return;if(u=at(t,h))return u;if(h="",l=Ft,n)return;continue}"["==o?p=!0:"]"==o&&(p=!1),h+=o}else{if(""==h)return G;if(u=at(t,h))return u;if(h="",l=Pt,n==It)return}break;case Pt:if(!P(Z,o)){if(o==r||"/"==o||"?"==o||"#"==o||"\\"==o&&pt(t)||n){if(""!=h){var w=C(h,10);if(w>65535)return H;t.port=pt(t)&&w===gt[t.scheme]?null:w,h=""}if(n)return;l=Ft;continue}return H}h+=o;break;case Dt:if(t.scheme="file","/"==o||"\\"==o)l=zt;else{if(!i||"file"!=i.scheme){l=jt;continue}if(o==r)t.host=i.host,t.path=y(i.path),t.query=i.query;else if("?"==o)t.host=i.host,t.path=y(i.path),t.query="",l=Bt;else{if("#"!=o){_t(D(y(a,f),""))||(t.host=i.host,t.path=y(i.path),mt(t)),l=jt;continue}t.host=i.host,t.path=y(i.path),t.query=i.query,t.fragment="",l=$t}}break;case zt:if("/"==o||"\\"==o){l=Nt;break}i&&"file"==i.scheme&&!_t(D(y(a,f),""))&&(xt(i.path[0],!0)?F(t.path,i.path[0]):t.host=i.host),l=jt;continue;case Nt:if(o==r||"/"==o||"\\"==o||"?"==o||"#"==o){if(!n&&xt(h))l=jt;else if(""==h){if(t.host="",n)return;l=Ft}else{if(u=at(t,h))return u;if("localhost"==t.host&&(t.host=""),n)return;h="",l=Ft}continue}h+=o;break;case Ft:if(pt(t)){if(l=jt,"/"!=o&&"\\"!=o)continue}else if(n||"?"!=o)if(n||"#"!=o){if(o!=r&&(l=jt,"/"!=o))continue}else t.fragment="",l=$t;else t.query="",l=Bt;break;case jt:if(o==r||"/"==o||"\\"==o&&pt(t)||!n&&("?"==o||"#"==o)){if(".."===(c=U(c=h))||"%2e."===c||".%2e"===c||"%2e%2e"===c?(mt(t),"/"==o||"\\"==o&&pt(t)||F(t.path,"")):bt(h)?"/"==o||"\\"==o&&pt(t)||F(t.path,""):("file"==t.scheme&&!t.path.length&&xt(h)&&(t.host&&(t.host=""),h=I(h,0)+":"),F(t.path,h)),h="","file"==t.scheme&&(o==r||"?"==o||"#"==o))for(;t.path.length>1&&""===t.path[0];)X(t.path);"?"==o?(t.query="",l=Bt):"#"==o&&(t.fragment="",l=$t)}else h+=dt(o,ft);break;case Xt:"?"==o?(t.query="",l=Bt):"#"==o?(t.fragment="",l=$t):o!=r&&(t.path[0]+=dt(o,ct));break;case Bt:n||"#"!=o?o!=r&&("'"==o&&pt(t)?t.query+="%27":t.query+="#"==o?"%23":dt(o,ct)):(t.fragment="",l=$t);break;case $t:o!=r&&(t.fragment+=dt(o,lt))}f++}},Yt=function(t){var e,n,r=d(this,Vt),i=arguments.length>1?arguments[1]:void 0,o=m(t),s=A(r,{type:"URL"});if(void 0!==i)try{e=S(i)}catch(t){if(n=Ut(e={},m(i)))throw O(n)}if(n=Ut(s,o,null,e))throw O(n);var u=s.searchParams=new k,l=E(u);l.updateSearchParams(s.query),l.updateURL=function(){s.query=m(u)||null},a||(r.href=c(Gt,r),r.origin=c(Ht,r),r.protocol=c(Wt,r),r.username=c(qt,r),r.password=c(Zt,r),r.host=c(Kt,r),r.hostname=c(Jt,r),r.port=c(Qt,r),r.pathname=c(te,r),r.search=c(ee,r),r.searchParams=c(ne,r),r.hash=c(re,r))},Vt=Yt.prototype,Gt=function(){var t=S(this),e=t.scheme,n=t.username,r=t.password,i=t.host,a=t.port,o=t.path,s=t.query,u=t.fragment,c=e+":";return null!==i?(c+="//",vt(t)&&(c+=n+(r?":"+r:"")+"@"),c+=ut(i),null!==a&&(c+=":"+a)):"file"==e&&(c+="//"),c+=t.cannotBeABaseURL?o[0]:o.length?"/"+D(o,"/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},Ht=function(){var t=S(this),e=t.scheme,n=t.port;if("blob"==e)try{return new Yt(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&pt(t)?e+"://"+ut(t.host)+(null!==n?":"+n:""):"null"},Wt=function(){return S(this).scheme+":"},qt=function(){return S(this).username},Zt=function(){return S(this).password},Kt=function(){var t=S(this),e=t.host,n=t.port;return null===e?"":null===n?ut(e):ut(e)+":"+n},Jt=function(){var t=S(this).host;return null===t?"":ut(t)},Qt=function(){var t=S(this).port;return null===t?"":m(t)},te=function(){var t=S(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+D(e,"/"):""},ee=function(){var t=S(this).query;return t?"?"+t:""},ne=function(){return S(this).searchParams},re=function(){var t=S(this).fragment;return t?"#"+t:""},ie=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(a&&f(Vt,{href:ie(Gt,(function(t){var e=S(this),n=m(t),r=Ut(e,n);if(r)throw O(r);E(e.searchParams).updateSearchParams(e.query)})),origin:ie(Ht),protocol:ie(Wt,(function(t){var e=S(this);Ut(e,m(t)+":",wt)})),username:ie(qt,(function(t){var e=S(this),n=v(m(t));if(!yt(e)){e.username="";for(var r=0;r<n.length;r++)e.username+=dt(n[r],ht)}})),password:ie(Zt,(function(t){var e=S(this),n=v(m(t));if(!yt(e)){e.password="";for(var r=0;r<n.length;r++)e.password+=dt(n[r],ht)}})),host:ie(Kt,(function(t){var e=S(this);e.cannotBeABaseURL||Ut(e,m(t),Lt)})),hostname:ie(Jt,(function(t){var e=S(this);e.cannotBeABaseURL||Ut(e,m(t),It)})),port:ie(Qt,(function(t){var e=S(this);yt(e)||(""==(t=m(t))?e.port=null:Ut(e,t,Pt))})),pathname:ie(te,(function(t){var e=S(this);e.cannotBeABaseURL||(e.path=[],Ut(e,m(t),Ft))})),search:ie(ee,(function(t){var e=S(this);""==(t=m(t))?e.query=null:("?"==I(t,0)&&(t=$(t,1)),e.query="",Ut(e,t,Bt)),E(e.searchParams).updateSearchParams(e.query)})),searchParams:ie(ne),hash:ie(re,(function(t){var e=S(this);""!=(t=m(t))?("#"==I(t,0)&&(t=$(t,1)),e.fragment="",Ut(e,t,$t)):e.fragment=null}))}),h(Vt,"toJSON",(function(){return c(Gt,this)}),{enumerable:!0}),h(Vt,"toString",(function(){return c(Gt,this)}),{enumerable:!0}),M){var ae=M.createObjectURL,oe=M.revokeObjectURL;ae&&h(Yt,"createObjectURL",u(ae,M)),oe&&h(Yt,"revokeObjectURL",u(oe,M))}b(Yt,"URL"),i({global:!0,forced:!o,sham:!a},{URL:Yt})},function(t,e,n){var r=n(6),i=n(30),a=n(32),o=i("iterator");t.exports=!r((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n="";return t.pathname="c%20d",e.forEach((function(t,r){e.delete("b"),n+=r+t})),a&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},function(t,e,n){"use strict";var r=n(3),i=n(12),a=2147483647,o=/[^\0-\u007E]/,s=/[.\u3002\uFF0E\uFF61]/g,u="Overflow: input needs wider integers to process",c=r.RangeError,l=i(s.exec),f=Math.floor,h=String.fromCharCode,d=i("".charCodeAt),g=i([].join),p=i([].push),v=i("".replace),y=i("".split),x=i("".toLowerCase),_=function(t){return t+22+75*(t<26)},m=function(t,e,n){var r=0;for(t=n?f(t/700):t>>1,t+=f(t/e);t>455;r+=36)t=f(t/35);return f(r+36*t/(t+38))},b=function(t){var e=[];t=function(t){for(var e=[],n=0,r=t.length;n<r;){var i=d(t,n++);if(i>=55296&&i<=56319&&n<r){var a=d(t,n++);56320==(64512&a)?p(e,((1023&i)<<10)+(1023&a)+65536):(p(e,i),n--)}else p(e,i)}return e}(t);var n,r,i=t.length,o=128,s=0,l=72;for(n=0;n<t.length;n++)(r=t[n])<128&&p(e,h(r));var v=e.length,y=v;for(v&&p(e,"-");y<i;){var x=a;for(n=0;n<t.length;n++)(r=t[n])>=o&&r<x&&(x=r);var b=y+1;if(x-o>f((a-s)/b))throw c(u);for(s+=(x-o)*b,o=x,n=0;n<t.length;n++){if((r=t[n])<o&&++s>a)throw c(u);if(r==o){for(var w=s,T=36;;T+=36){var A=T<=l?1:T>=l+26?26:T-l;if(w<A)break;var S=w-A,k=36-A;p(e,h(_(A+S%k))),w=f(S/k)}p(e,h(_(w))),l=m(s,b,y==v),s=0,++y}}++s,++o}return g(e,"")};t.exports=function(t){var e,n,r=[],i=y(v(x(t),s,"."),".");for(e=0;e<i.length;e++)n=i[e],p(r,l(o,n)?"xn--"+b(n):n);return g(r,".")}},function(t,e,n){"use strict";n(137);var r=n(2),i=n(3),a=n(20),o=n(7),s=n(12),u=n(422),c=n(43),l=n(166),f=n(76),h=n(139),d=n(45),g=n(167),p=n(18),v=n(35),y=n(78),x=n(65),_=n(42),m=n(17),b=n(64),w=n(67),T=n(9),A=n(106),S=n(107),k=n(30),E=n(154),M=k("iterator"),O="URLSearchParams",C="URLSearchParamsIterator",R=d.set,L=d.getterFor(O),I=d.getterFor(C),P=a("fetch"),D=a("Request"),z=a("Headers"),N=D&&D.prototype,F=z&&z.prototype,j=i.RegExp,X=i.TypeError,B=i.decodeURIComponent,$=i.encodeURIComponent,U=s("".charAt),Y=s([].join),V=s([].push),G=s("".replace),H=s([].shift),W=s([].splice),q=s("".split),Z=s("".slice),K=/\+/g,J=Array(4),Q=function(t){return J[t-1]||(J[t-1]=j("((?:%[\\da-f]{2}){"+t+"})","gi"))},tt=function(t){try{return B(t)}catch(e){return t}},et=function(t){var e=G(t,K," "),n=4;try{return B(e)}catch(t){for(;n;)e=G(e,Q(n--),tt);return e}},nt=/[!'()~]|%20/g,rt={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},it=function(t){return rt[t]},at=function(t){return G($(t),nt,it)},ot=function(t,e){if(e)for(var n,r,i=q(e,"&"),a=0;a<i.length;)(n=i[a++]).length&&(r=q(n,"="),V(t,{key:et(H(r)),value:et(Y(r,"="))}))},st=function(t){this.entries.length=0,ot(this.entries,t)},ut=function(t,e){if(t<e)throw X("Not enough arguments")},ct=h((function(t,e){R(this,{type:C,iterator:A(L(t).entries),kind:e})}),"Iterator",(function(){var t=I(this),e=t.kind,n=t.iterator.next(),r=n.value;return n.done||(n.value="keys"===e?r.key:"values"===e?r.value:[r.key,r.value]),n})),lt=function(){g(this,ft);var t,e,n,r,i,a,s,u,c,l=arguments.length>0?arguments[0]:void 0,f=this,h=[];if(R(f,{type:O,entries:h,updateURL:function(){},updateSearchParams:st}),void 0!==l)if(m(l))if(t=S(l))for(n=(e=A(l,t)).next;!(r=o(n,e)).done;){if(a=(i=A(_(r.value))).next,(s=o(a,i)).done||(u=o(a,i)).done||!o(a,i).done)throw X("Expected sequence with length 2");V(h,{key:b(s.value),value:b(u.value)})}else for(c in l)v(l,c)&&V(h,{key:c,value:b(l[c])});else ot(h,"string"==typeof l?"?"===U(l,0)?Z(l,1):l:b(l))},ft=lt.prototype;if(l(ft,{append:function(t,e){ut(arguments.length,2);var n=L(this);V(n.entries,{key:b(t),value:b(e)}),n.updateURL()},delete:function(t){ut(arguments.length,1);for(var e=L(this),n=e.entries,r=b(t),i=0;i<n.length;)n[i].key===r?W(n,i,1):i++;e.updateURL()},get:function(t){ut(arguments.length,1);for(var e=L(this).entries,n=b(t),r=0;r<e.length;r++)if(e[r].key===n)return e[r].value;return null},getAll:function(t){ut(arguments.length,1);for(var e=L(this).entries,n=b(t),r=[],i=0;i<e.length;i++)e[i].key===n&&V(r,e[i].value);return r},has:function(t){ut(arguments.length,1);for(var e=L(this).entries,n=b(t),r=0;r<e.length;)if(e[r++].key===n)return!0;return!1},set:function(t,e){ut(arguments.length,1);for(var n,r=L(this),i=r.entries,a=!1,o=b(t),s=b(e),u=0;u<i.length;u++)(n=i[u]).key===o&&(a?W(i,u--,1):(a=!0,n.value=s));a||V(i,{key:o,value:s}),r.updateURL()},sort:function(){var t=L(this);E(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,n=L(this).entries,r=y(t,arguments.length>1?arguments[1]:void 0),i=0;i<n.length;)r((e=n[i++]).value,e.key,this)},keys:function(){return new ct(this,"keys")},values:function(){return new ct(this,"values")},entries:function(){return new ct(this,"entries")}},{enumerable:!0}),c(ft,M,ft.entries,{name:"entries"}),c(ft,"toString",(function(){for(var t,e=L(this).entries,n=[],r=0;r<e.length;)t=e[r++],V(n,at(t.key)+"="+at(t.value));return Y(n,"&")}),{enumerable:!0}),f(lt,O),r({global:!0,forced:!u},{URLSearchParams:lt}),!u&&p(z)){var ht=s(F.has),dt=s(F.set),gt=function(t){if(m(t)){var e,n=t.body;if(x(n)===O)return e=t.headers?new z(t.headers):new z,ht(e,"content-type")||dt(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),w(t,{body:T(0,b(n)),headers:T(0,e)})}return t};if(p(P)&&r({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return P(t,arguments.length>1?gt(arguments[1]):{})}}),p(D)){var pt=function(t){return g(this,N),new D(t,arguments.length>1?gt(arguments[1]):{})};N.constructor=pt,pt.prototype=N,r({global:!0,forced:!0},{Request:pt})}}t.exports={URLSearchParams:lt,getState:L}},function(t,e,n){"use strict";var r=n(2),i=n(7);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},function(t,e,n){"use strict";n.r(e),n.d(e,{bb:function(){return Od},default:function(){return Od}});var r={};n.r(r),n.d(r,{area:function(){return Dh},areaLineRange:function(){return zh},areaSpline:function(){return Nh},areaSplineRange:function(){return Fh},areaStep:function(){return jh},bar:function(){return Hh},bubble:function(){return Wh},candlestick:function(){return qh},donut:function(){return Uh},gauge:function(){return Yh},line:function(){return Xh},pie:function(){return Vh},radar:function(){return Gh},scatter:function(){return Zh},spline:function(){return Bh},step:function(){return $h}});var i={};n.r(i),n.d(i,{selection:function(){return Sd},subchart:function(){return kd},zoom:function(){return Ed}});var a=new Date,o=new Date;function s(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,a){var o,s=[];if(n=i.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return s;do{s.push(o=new Date(+n)),e(n,a),t(n)}while(o<n&&n<r);return s},i.filter=function(n){return s((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return a.setTime(+e),o.setTime(+r),t(a),t(o),Math.floor(n(a,o))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var u=1e3,c=6e4,l=36e5,f=864e5,h=6048e5,d=2592e6,g=31536e6;function p(t){return s((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/h}))}var v=p(0),y=p(1),x=p(2),_=p(3),m=p(4),b=p(5),w=p(6),T=(v.range,y.range,x.range,_.range,m.range,b.range,w.range,s((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/f}),(function(t){return t.getUTCDate()-1}))),A=T;T.range;function S(t){return s((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*c)/h}))}var k=S(0),E=S(1),M=S(2),O=S(3),C=S(4),R=S(5),L=S(6),I=(k.range,E.range,M.range,O.range,C.range,R.range,L.range,s((function(t){return t.setHours(0,0,0,0)}),(function(t,e){return t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*c)/f}),(function(t){return t.getDate()-1}))),P=I,D=(I.range,s((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()})));D.every=function(t){return isFinite(t=Math.floor(t))&&t>0?s((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var z=D,N=(D.range,s((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));N.every=function(t){return isFinite(t=Math.floor(t))&&t>0?s((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var F=N;N.range;function j(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function X(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function B(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var $,U,Y,V,G,H={"-":"",_:" ",0:"0"},W=/^\s*\d+/,q=/^%/,Z=/[\\^$*+?|[\]().{}]/g;function K(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a<n?Array(n-a+1).join(e)+i:i)}function J(t){return t.replace(Z,"\\$&")}function Q(t){return new RegExp("^(?:"+t.map(J).join("|")+")","i")}function tt(t){return new Map(t.map((function(t,e){return[t.toLowerCase(),e]})))}function et(t,e,n){var r=W.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function nt(t,e,n){var r=W.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function rt(t,e,n){var r=W.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function it(t,e,n){var r=W.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function at(t,e,n){var r=W.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function ot(t,e,n){var r=W.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function st(t,e,n){var r=W.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ut(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function ct(t,e,n){var r=W.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function lt(t,e,n){var r=W.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ft(t,e,n){var r=W.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function ht(t,e,n){var r=W.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function dt(t,e,n){var r=W.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function gt(t,e,n){var r=W.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function pt(t,e,n){var r=W.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function vt(t,e,n){var r=W.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function yt(t,e,n){var r=W.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function xt(t,e,n){var r=q.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function _t(t,e,n){var r=W.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function mt(t,e,n){var r=W.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function bt(t,e){return K(t.getDate(),e,2)}function wt(t,e){return K(t.getHours(),e,2)}function Tt(t,e){return K(t.getHours()%12||12,e,2)}function At(t,e){return K(1+P.count(z(t),t),e,3)}function St(t,e){return K(t.getMilliseconds(),e,3)}function kt(t,e){return St(t,e)+"000"}function Et(t,e){return K(t.getMonth()+1,e,2)}function Mt(t,e){return K(t.getMinutes(),e,2)}function Ot(t,e){return K(t.getSeconds(),e,2)}function Ct(t){var e=t.getDay();return 0===e?7:e}function Rt(t,e){return K(k.count(z(t)-1,t),e,2)}function Lt(t){var e=t.getDay();return e>=4||0===e?C(t):C.ceil(t)}function It(t,e){return t=Lt(t),K(C.count(z(t),t)+(4===z(t).getDay()),e,2)}function Pt(t){return t.getDay()}function Dt(t,e){return K(E.count(z(t)-1,t),e,2)}function zt(t,e){return K(t.getFullYear()%100,e,2)}function Nt(t,e){return K((t=Lt(t)).getFullYear()%100,e,2)}function Ft(t,e){return K(t.getFullYear()%1e4,e,4)}function jt(t,e){var n=t.getDay();return K((t=n>=4||0===n?C(t):C.ceil(t)).getFullYear()%1e4,e,4)}function Xt(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+K(e/60|0,"0",2)+K(e%60,"0",2)}function Bt(t,e){return K(t.getUTCDate(),e,2)}function $t(t,e){return K(t.getUTCHours(),e,2)}function Ut(t,e){return K(t.getUTCHours()%12||12,e,2)}function Yt(t,e){return K(1+A.count(F(t),t),e,3)}function Vt(t,e){return K(t.getUTCMilliseconds(),e,3)}function Gt(t,e){return Vt(t,e)+"000"}function Ht(t,e){return K(t.getUTCMonth()+1,e,2)}function Wt(t,e){return K(t.getUTCMinutes(),e,2)}function qt(t,e){return K(t.getUTCSeconds(),e,2)}function Zt(t){var e=t.getUTCDay();return 0===e?7:e}function Kt(t,e){return K(v.count(F(t)-1,t),e,2)}function Jt(t){var e=t.getUTCDay();return e>=4||0===e?m(t):m.ceil(t)}function Qt(t,e){return t=Jt(t),K(m.count(F(t),t)+(4===F(t).getUTCDay()),e,2)}function te(t){return t.getUTCDay()}function ee(t,e){return K(y.count(F(t)-1,t),e,2)}function ne(t,e){return K(t.getUTCFullYear()%100,e,2)}function re(t,e){return K((t=Jt(t)).getUTCFullYear()%100,e,2)}function ie(t,e){return K(t.getUTCFullYear()%1e4,e,4)}function ae(t,e){var n=t.getUTCDay();return K((t=n>=4||0===n?m(t):m.ceil(t)).getUTCFullYear()%1e4,e,4)}function oe(){return"+0000"}function se(){return"%"}function ue(t){return+t}function ce(t){return Math.floor(+t/1e3)}function le(){}function fe(t){return null==t?le:function(){return this.querySelector(t)}}function he(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function de(){return[]}function ge(t){return null==t?de:function(){return this.querySelectorAll(t)}}function pe(t){return function(){return this.matches(t)}}function ve(t){return function(e){return e.matches(t)}}$=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,a=t.days,o=t.shortDays,s=t.months,u=t.shortMonths,c=Q(i),l=tt(i),f=Q(a),h=tt(a),d=Q(o),g=tt(o),p=Q(s),v=tt(s),x=Q(u),_=tt(u),m={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:bt,e:bt,f:kt,g:Nt,G:jt,H:wt,I:Tt,j:At,L:St,m:Et,M:Mt,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:ue,s:ce,S:Ot,u:Ct,U:Rt,V:It,w:Pt,W:Dt,x:null,X:null,y:zt,Y:Ft,Z:Xt,"%":se},b={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:Bt,e:Bt,f:Gt,g:re,G:ae,H:$t,I:Ut,j:Yt,L:Vt,m:Ht,M:Wt,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:ue,s:ce,S:qt,u:Zt,U:Kt,V:Qt,w:te,W:ee,x:null,X:null,y:ne,Y:ie,Z:oe,"%":se},w={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=g.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=x.exec(e.slice(n));return r?(t.m=_.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=p.exec(e.slice(n));return r?(t.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return k(t,e,n,r)},d:ft,e:ft,f:yt,g:st,G:ot,H:dt,I:dt,j:ht,L:vt,m:lt,M:gt,p:function(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=l.get(r[0].toLowerCase()),n+r[0].length):-1},q:ct,Q:_t,s:mt,S:pt,u:nt,U:rt,V:it,w:et,W:at,x:function(t,e,r){return k(t,n,e,r)},X:function(t,e,n){return k(t,r,e,n)},y:st,Y:ot,Z:ut,"%":xt};function T(t,e){return function(n){var r,i,a,o=[],s=-1,u=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===t.charCodeAt(s)&&(o.push(t.slice(u,s)),null!=(i=H[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(a=e[r])&&(r=a(n,i)),o.push(r),u=s+1);return o.push(t.slice(u,s)),o.join("")}}function S(t,e){return function(n){var r,i,a=B(1900,void 0,1);if(k(a,t,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(e&&!("Z"in a)&&(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=X(B(a.y,0,1))).getUTCDay(),r=i>4||0===i?y.ceil(r):y(r),r=A.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=j(B(a.y,0,1))).getDay(),r=i>4||0===i?E.ceil(r):E(r),r=P.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?X(B(a.y,0,1)).getUTCDay():j(B(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,X(a)):j(a)}}function k(t,e,n,r){for(var i,a,o=0,s=e.length,u=n.length;o<s;){if(r>=u)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=w[i in H?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return m.x=T(n,m),m.X=T(r,m),m.c=T(e,m),b.x=T(n,b),b.X=T(r,b),b.c=T(e,b),{format:function(t){var e=T(t+="",m);return e.toString=function(){return t},e},parse:function(t){var e=S(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=T(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=S(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),U=$.format,Y=$.parse,V=$.utcFormat,G=$.utcParse;var ye=Array.prototype.find;function xe(){return this.firstElementChild}var _e=Array.prototype.filter;function me(){return Array.from(this.children)}function be(t){return Array(t.length)}function we(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function Te(t){return function(){return t}}function Ae(t,e,n,r,i,a){for(var o,s=0,u=e.length,c=a.length;s<c;++s)(o=e[s])?(o.__data__=a[s],r[s]=o):n[s]=new we(t,a[s]);for(;s<u;++s)(o=e[s])&&(i[s]=o)}function Se(t,e,n,r,i,a,o){var s,u,c,l=new Map,f=e.length,h=a.length,d=Array(f);for(s=0;s<f;++s)(u=e[s])&&(d[s]=c=o.call(u,u.__data__,s,e)+"",l.has(c)?i[s]=u:l.set(c,u));for(s=0;s<h;++s)c=o.call(t,a[s],s,a)+"",(u=l.get(c))?(r[s]=u,u.__data__=a[s],l.delete(c)):n[s]=new we(t,a[s]);for(s=0;s<f;++s)(u=e[s])&&l.get(d[s])===u&&(i[s]=u)}function ke(t){return t.__data__}function Ee(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Me(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Oe(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Ce(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ce(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ce(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}we.prototype={constructor:we,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Re="http://www.w3.org/1999/xhtml",Le={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ie(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Le.hasOwnProperty(e)?{space:Le[e],local:t}:t}function Pe(t){return function(){this.removeAttribute(t)}}function De(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ze(t,e){return function(){this.setAttribute(t,e)}}function Ne(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Fe(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function je(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Xe(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Be(t){return function(){this.style.removeProperty(t)}}function $e(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ue(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Ye(t,e){return t.style.getPropertyValue(e)||Xe(t).getComputedStyle(t,null).getPropertyValue(e)}function Ve(t){return function(){delete this[t]}}function Ge(t,e){return function(){this[t]=e}}function He(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function We(t){return t.trim().split(/^|\s+/)}function qe(t){return t.classList||new Ze(t)}function Ze(t){this._node=t,this._names=We(t.getAttribute("class")||"")}function Ke(t,e){for(var n=qe(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function Je(t,e){for(var n=qe(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function Qe(t){return function(){Ke(this,t)}}function tn(t){return function(){Je(this,t)}}function en(t,e){return function(){(e.apply(this,arguments)?Ke:Je)(this,t)}}function nn(){this.textContent=""}function rn(t){return function(){this.textContent=t}}function an(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function on(){this.innerHTML=""}function sn(t){return function(){this.innerHTML=t}}function un(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function cn(){this.nextSibling&&this.parentNode.appendChild(this)}function ln(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function fn(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Re&&e.documentElement.namespaceURI===Re?e.createElement(t):e.createElementNS(n,t)}}function hn(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function dn(t){var e=Ie(t);return(e.local?hn:fn)(e)}function gn(){return null}function pn(){var t=this.parentNode;t&&t.removeChild(this)}function vn(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function yn(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function xn(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function _n(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r<a;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function mn(t,e,n){return function(){var r,i=this.__on,a=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(i)for(var o=0,s=i.length;o<s;++o)if((r=i[o]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=a,r.options=n),void(r.value=e);this.addEventListener(t.type,a,n),r={type:t.type,name:t.name,value:e,listener:a,options:n},i?i.push(r):this.__on=[r]}}function bn(t,e,n){var r=Xe(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function wn(t,e){return function(){return bn(this,t,e)}}function Tn(t,e){return function(){return bn(this,t,e.apply(this,arguments))}}Ze.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var An,Sn=n(427),kn=Sn.mark(En);function En(){var t,e,n,r,i,a,o;return Sn.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:t=this._groups,e=0,n=t.length;case 1:if(!(e<n)){s.next=13;break}r=t[e],i=0,a=r.length;case 3:if(!(i<a)){s.next=10;break}if(!(o=r[i])){s.next=7;break}return s.next=7,o;case 7:++i,s.next=3;break;case 10:++e,s.next=1;break;case 13:case"end":return s.stop()}}),kn,this)}var Mn=[null];function On(t,e){this._groups=t,this._parents=e}function Cn(){return new On([[document.documentElement]],Mn)}On.prototype=Cn.prototype=(An={constructor:On,select:function(t){"function"!=typeof t&&(t=fe(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var a,o,s=e[i],u=s.length,c=r[i]=Array(u),l=0;l<u;++l)(a=s[l])&&(o=t.call(a,a.__data__,l,s))&&("__data__"in a&&(o.__data__=a.__data__),c[l]=o);return new On(r,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return he(t.apply(this,arguments))}}(t):ge(t);for(var e=this._groups,n=e.length,r=[],i=[],a=0;a<n;++a)for(var o,s=e[a],u=s.length,c=0;c<u;++c)(o=s[c])&&(r.push(t.call(o,o.__data__,c,s)),i.push(o));return new On(r,i)},selectChild:function(t){return this.select(null==t?xe:function(t){return function(){return ye.call(this.children,t)}}("function"==typeof t?t:ve(t)))},selectChildren:function(t){return this.selectAll(null==t?me:function(t){return function(){return _e.call(this.children,t)}}("function"==typeof t?t:ve(t)))},filter:function(t){"function"!=typeof t&&(t=pe(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,u=r[i]=[],c=0;c<s;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&u.push(a);return new On(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,ke);var n=e?Se:Ae,r=this._parents,i=this._groups;"function"!=typeof t&&(t=Te(t));for(var a=i.length,o=Array(a),s=Array(a),u=Array(a),c=0;c<a;++c){var l=r[c],f=i[c],h=f.length,d=Ee(t.call(l,l&&l.__data__,c,r)),g=d.length,p=s[c]=Array(g),v=o[c]=Array(g),y=u[c]=Array(h);n(l,f,p,v,y,d,e);for(var x,_,m=0,b=0;m<g;++m)if(x=p[m]){for(m>=b&&(b=m+1);!(_=v[b])&&++b<g;);x._next=_||null}}return(o=new On(o,r))._enter=s,o._exit=u,o},enter:function(){return new On(this._enter||this._groups.map(be),this._parents)},exit:function(){return new On(this._exit||this._groups.map(be),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,a=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?a.remove():n(a),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),u=0;u<o;++u)for(var c,l=n[u],f=r[u],h=l.length,d=s[u]=Array(h),g=0;g<h;++g)(c=l[g]||f[g])&&(d[g]=c);for(;u<i;++u)s[u]=n[u];return new On(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],a=i.length-1,o=i[a];--a>=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Me);for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o,s=n[a],u=s.length,c=i[a]=Array(u),l=0;l<u;++l)(o=s[l])&&(c[l]=o);c.sort(e)}return new On(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],a=0,o=i.length;a<o;++a)if(r=i[a])return r;return null},size:function(){for(var t,e=0,n=Oe(this);!(t=n()).done;)t.value,++e;return e},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,a=e[n],o=0,s=a.length;o<s;++o)(i=a[o])&&t.call(i,i.__data__,o,a);return this},attr:function(t,e){var n=Ie(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?De:Pe:"function"==typeof e?n.local?je:Fe:n.local?Ne:ze)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?Be:"function"==typeof e?Ue:$e)(t,e,null==n?"":n)):Ye(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Ve:"function"==typeof e?He:Ge)(t,e)):this.node()[t]},classed:function(t,e){var n=We(t+"");if(arguments.length<2){for(var r=qe(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?en:e?Qe:tn)(n,e))},text:function(t){return arguments.length?this.each(null==t?nn:("function"==typeof t?an:rn)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?on:("function"==typeof t?un:sn)(t)):this.node().innerHTML},raise:function(){return this.each(cn)},lower:function(){return this.each(ln)},append:function(t){var e="function"==typeof t?t:dn(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:dn(t),r=null==e?gn:"function"==typeof e?e:fe(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(pn)},clone:function(t){return this.select(t?yn:vn)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,a=xn(t+""),o=a.length;if(!(arguments.length<2)){for(s=e?mn:_n,r=0;r<o;++r)this.each(s(a[r],e,n));return this}var s=this.node().__on;if(s)for(var u,c=0,l=s.length;c<l;++c)for(r=0,u=s[c];r<o;++r)if((i=a[r]).type===u.type&&i.name===u.name)return u.value},dispatch:function(t,e){return this.each(("function"==typeof e?Tn:wn)(t,e))}},An[Symbol.iterator]=En,An);var Rn=Cn;function Ln(t){return"string"==typeof t?new On([[document.querySelector(t)]],[document.documentElement]):new On([[t]],Mn)}var In="object"==typeof globalThis&&null!==globalThis&&globalThis.Object===Object&&globalThis||"object"==typeof global&&null!==global&&global.Object===Object&&global||"object"==typeof self&&null!==self&&self.Object===Object&&self||Function("return this")();In.requestIdleCallback=In.requestIdleCallback||function(t){return setTimeout(t,1)},In.cancelIdleCallback=In.cancelIdleCallback||function(t){return clearTimeout(t)};var Pn=null==In?void 0:In.document,Dn={AREA:"area",AREA_LINE_RANGE:"area-line-range",AREA_SPLINE:"area-spline",AREA_SPLINE_RANGE:"area-spline-range",AREA_STEP:"area-step",BAR:"bar",BUBBLE:"bubble",CANDLESTICK:"candlestick",DONUT:"donut",GAUGE:"gauge",LINE:"line",PIE:"pie",RADAR:"radar",SCATTER:"scatter",SPLINE:"spline",STEP:"step"},zn={AREA:"initArea",AREA_LINE_RANGE:"initArea",AREA_SPLINE:"initArea",AREA_SPLINE_RANGE:"initArea",AREA_STEP:"initArea",BAR:"initBar",BUBBLE:"initCircle",CANDLESTICK:"initCandlestick",DONUT:"initArc",GAUGE:"initArc",LINE:"initLine",PIE:"initArc",RADAR:"initCircle",SCATTER:"initCircle",SPLINE:"initLine",STEP:"initLine"},Nn={Area:[Dn.AREA,Dn.AREA_SPLINE,Dn.AREA_SPLINE_RANGE,Dn.AREA_LINE_RANGE,Dn.AREA_STEP],AreaRange:[Dn.AREA_SPLINE_RANGE,Dn.AREA_LINE_RANGE],Arc:[Dn.PIE,Dn.DONUT,Dn.GAUGE,Dn.RADAR],Line:[Dn.LINE,Dn.SPLINE,Dn.AREA,Dn.AREA_SPLINE,Dn.AREA_SPLINE_RANGE,Dn.AREA_LINE_RANGE,Dn.STEP,Dn.AREA_STEP],Step:[Dn.STEP,Dn.AREA_STEP],Spline:[Dn.SPLINE,Dn.AREA_SPLINE,Dn.AREA_SPLINE_RANGE]};function Fn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jn(t,e){if(t=function(t){for(var e;e=t.sourceEvent;)t=e;return t}(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}var Xn={value:function(){}};function Bn(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new $n(r)}function $n(t){this._=t}function Un(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function Yn(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function Vn(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=Xn,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}$n.prototype=Bn.prototype={constructor:$n,on:function(t,e){var n,r=this._,i=Un(t+"",r),a=-1,o=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<o;)if(n=(t=i[a]).type)r[n]=Vn(r[n],t.name,e);else if(null==e)for(n in r)r[n]=Vn(r[n],t.name,null);return this}for(;++a<o;)if((n=(t=i[a]).type)&&(n=Yn(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new $n(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=0,n=(r=this._[t]).length;a<n;++a)r[a].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,a=r.length;i<a;++i)r[i].value.apply(e,n)}};var Gn=Bn,Hn={passive:!1},Wn={capture:!0,passive:!1};function qn(t){t.stopImmediatePropagation()}function Zn(t){t.preventDefault(),t.stopImmediatePropagation()}function Kn(t){var e=t.document.documentElement,n=Ln(t).on("dragstart.drag",Zn,Wn);"onselectstart"in e?n.on("selectstart.drag",Zn,Wn):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function Jn(t,e){var n=t.document.documentElement,r=Ln(t).on("dragstart.drag",null);e&&(r.on("click.drag",Zn,Wn),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function Qn(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function tr(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function er(){}var nr=.7,rr=1/nr,ir=/^#([0-9a-f]{3,8})$/,ar=new RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),or=new RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),sr=new RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),ur=new RegExp("^rgba\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),cr=new RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),lr=new RegExp("^hsla\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),fr={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 hr(){return this.rgb().formatHex()}function dr(){return this.rgb().formatRgb()}function gr(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=ir.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?pr(e):3===n?new _r(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?vr(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?vr(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=ar.exec(t))?new _r(e[1],e[2],e[3],1):(e=or.exec(t))?new _r(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=sr.exec(t))?vr(e[1],e[2],e[3],e[4]):(e=ur.exec(t))?vr(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=cr.exec(t))?Tr(e[1],e[2]/100,e[3]/100,1):(e=lr.exec(t))?Tr(e[1],e[2]/100,e[3]/100,e[4]):fr.hasOwnProperty(t)?pr(fr[t]):"transparent"===t?new _r(NaN,NaN,NaN,0):null}function pr(t){return new _r(t>>16&255,t>>8&255,255&t,1)}function vr(t,e,n,r){return r<=0&&(t=e=n=NaN),new _r(t,e,n,r)}function yr(t){return t instanceof er||(t=gr(t)),t?new _r((t=t.rgb()).r,t.g,t.b,t.opacity):new _r}function xr(t,e,n,r){return 1===arguments.length?yr(t):new _r(t,e,n,null==r?1:r)}function _r(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function mr(){return"#"+wr(this.r)+wr(this.g)+wr(this.b)}function br(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function wr(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Tr(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Sr(t,e,n,r)}function Ar(t){if(t instanceof Sr)return new Sr(t.h,t.s,t.l,t.opacity);if(t instanceof er||(t=gr(t)),!t)return new Sr;if(t instanceof Sr)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,u=(a+i)/2;return s?(o=e===a?(n-r)/s+6*(n<r):n===a?(r-e)/s+2:(e-n)/s+4,s/=u<.5?a+i:2-a-i,o*=60):s=u>0&&u<1?0:o,new Sr(o,s,u,t.opacity)}function Sr(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function kr(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 Er(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}Qn(er,gr,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:hr,formatHex:hr,formatHsl:function(){return Ar(this).formatHsl()},formatRgb:dr,toString:dr}),Qn(_r,xr,tr(er,{brighter:function(t){return t=null==t?rr:Math.pow(rr,t),new _r(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?nr:Math.pow(nr,t),new _r(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:mr,formatHex:mr,formatRgb:br,toString:br})),Qn(Sr,(function(t,e,n,r){return 1===arguments.length?Ar(t):new Sr(t,e,n,null==r?1:r)}),tr(er,{brighter:function(t){return t=null==t?rr:Math.pow(rr,t),new Sr(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?nr:Math.pow(nr,t),new Sr(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new _r(kr(t>=240?t-240:t+120,i,r),kr(t,i,r),kr(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Mr=function(t){return function(){return t}};function Or(t,e){return function(n){return t+n*e}}function Cr(t){return 1==(t=+t)?Rr:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Mr(isNaN(e)?n:e)}}function Rr(t,e){var n=e-t;return n?Or(t,n):Mr(isNaN(t)?e:t)}var Lr=function t(e){var n=Cr(e);function r(t,e){var r=n((t=xr(t)).r,(e=xr(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=Rr(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function Ir(t){return function(e){var n,r,i=e.length,a=Array(i),o=Array(i),s=Array(i);for(n=0;n<i;++n)r=xr(e[n]),a[n]=r.r||0,o[n]=r.g||0,s[n]=r.b||0;return a=t(a),o=t(o),s=t(s),r.opacity=1,function(t){return r.r=a(t),r.g=o(t),r.b=s(t),r+""}}}Ir((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],a=t[r+1],o=r>0?t[r-1]:2*i-a,s=r<e-1?t[r+2]:2*a-i;return Er((n-r/e)*e,o,i,a,s)}})),Ir((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],a=t[r%e],o=t[(r+1)%e],s=t[(r+2)%e];return Er((n-r/e)*e,i,a,o,s)}}));function Pr(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(n=0;n<r;++n)i[n]=t[n]*(1-a)+e[n]*a;return i}}function Dr(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function zr(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,a=Array(i),o=Array(r);for(n=0;n<i;++n)a[n]=Ur(t[n],e[n]);for(;n<r;++n)o[n]=e[n];return function(t){for(n=0;n<i;++n)o[n]=a[n](t);return o}}function Nr(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Fr(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function jr(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=Ur(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}var Xr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Br=new RegExp(Xr.source,"g");function $r(t,e){var n,r,i,a=Xr.lastIndex=Br.lastIndex=0,o=-1,s=[],u=[];for(t+="",e+="";(n=Xr.exec(t))&&(r=Br.exec(e));)(i=r.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,u.push({i:o,x:Fr(n,r)})),a=Br.lastIndex;return a<e.length&&(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var n,r=0;r<e;++r)s[(n=u[r]).i]=n.x(t);return s.join("")})}function Ur(t,e){var n,r=typeof e;return null==e||"boolean"===r?Mr(e):("number"===r?Fr:"string"===r?(n=gr(e))?(e=n,Lr):$r:e instanceof gr?Lr:e instanceof Date?Nr:Dr(e)?Pr:Array.isArray(e)?zr:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?jr:Fr)(t,e)}var Yr,Vr,Gr=0,Hr=0,Wr=0,qr=0,Zr=0,Kr=0,Jr="object"==typeof performance&&performance.now?performance:Date,Qr="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ti(){return Zr||(Qr(ei),Zr=Jr.now()+Kr)}function ei(){Zr=0}function ni(){this._call=this._time=this._next=null}function ri(t,e,n){var r=new ni;return r.restart(t,e,n),r}function ii(){Zr=(qr=Jr.now())+Kr,Gr=Hr=0;try{!function(){ti(),++Gr;for(var t,e=Yr;e;)(t=Zr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Gr}()}finally{Gr=0,function(){var t,e,n=Yr,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Yr=e);Vr=t,oi(r)}(),Zr=0}}function ai(){var t=Jr.now(),e=t-qr;e>1e3&&(Kr-=e,qr=t)}function oi(t){Gr||(Hr&&(Hr=clearTimeout(Hr)),t-Zr>24?(t<1/0&&(Hr=setTimeout(ii,t-Jr.now()-Kr)),Wr&&(Wr=clearInterval(Wr))):(Wr||(qr=Jr.now(),Wr=setInterval(ai,1e3)),Gr=1,Qr(ii)))}function si(t,e,n){var r=new ni;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r}ni.prototype=ri.prototype={constructor:ni,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?ti():+n)+(null==e?0:+e),this._next||Vr===this||(Vr?Vr._next=this:Yr=this,Vr=this),this._call=t,this._time=n,oi()},stop:function(){this._call&&(this._call=null,this._time=1/0,oi())}};var ui=Gn("start","end","cancel","interrupt"),ci=[];function li(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(u){var c,l,f,h;if(1!==n.state)return s();for(c in i)if((h=i[c]).name===n.name){if(3===h.state)return si(a);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[c]):+c<e&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete i[c])}if(si((function(){3===n.state&&(n.state=4,n.timer.restart(o,n.delay,n.time),o(u))})),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,r=Array(f=n.tween.length),c=0,l=-1;c<f;++c)(h=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(r[++l]=h);r.length=l+1}}function o(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(s),n.state=5,1),a=-1,o=r.length;++a<o;)r[a].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=ri((function(t){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}),0,n.time)}(t,n,{name:e,index:r,group:i,on:ui,tween:ci,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function fi(t,e){var n=di(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function hi(t,e){var n=di(t,e);if(n.state>3)throw new Error("too late; already running");return n}function di(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function gi(t,e){var n,r,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+"",a)(n=a[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete a[i]):o=!1;o&&delete t.__transition}}var pi,vi=180/Math.PI,yi={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function xi(t,e,n,r,i,a){var o,s,u;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),t*r<e*n&&(t=-t,e=-e,u=-u,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*vi,skewX:Math.atan(u)*vi,scaleX:o,scaleY:s}}function _i(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(a,o){var s=[],u=[];return a=t(a),o=t(o),function(t,r,i,a,o,s){if(t!==i||r!==a){var u=o.push("translate(",null,e,null,n);s.push({i:u-4,x:Fr(t,i)},{i:u-2,x:Fr(r,a)})}else(i||a)&&o.push("translate("+i+e+a+n)}(a.translateX,a.translateY,o.translateX,o.translateY,s,u),function(t,e,n,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Fr(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,s,u),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Fr(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,s,u),function(t,e,n,r,a,o){if(t!==n||e!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:Fr(t,n)},{i:s-2,x:Fr(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,u),a=o=null,function(t){for(var e,n=-1,r=u.length;++n<r;)s[(e=u[n]).i]=e.x(t);return s.join("")}}}var mi=_i((function(t){var e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?yi:xi(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),bi=_i((function(t){return null==t?yi:(pi||(pi=document.createElementNS("http://www.w3.org/2000/svg","g")),pi.setAttribute("transform",t),(t=pi.transform.baseVal.consolidate())?xi((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):yi)}),", ",")",")");function wi(t,e){var n,r;return function(){var i=hi(this,t),a=i.tween;if(a!==n)for(var o=0,s=(r=n=a).length;o<s;++o)if(r[o].name===e){(r=r.slice()).splice(o,1);break}i.tween=r}}function Ti(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var a=hi(this,t),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:e,value:n},u=0,c=i.length;u<c;++u)if(i[u].name===e){i[u]=s;break}u===c&&i.push(s)}a.tween=i}}function Ai(t,e,n){var r=t._id;return t.each((function(){var t=hi(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return di(t,r).value[e]}}function Si(t,e){var n;return("number"==typeof e?Fr:e instanceof gr?Lr:(n=gr(e))?(e=n,Lr):$r)(t,e)}function ki(t){return function(){this.removeAttribute(t)}}function Ei(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Mi(t,e,n){var r,i;return function(){var a=this.getAttribute(t);return a===n+""?null:a===r?i:i=e(r=a,n)}}function Oi(t,e,n){var r,i;return function(){var a=this.getAttributeNS(t.space,t.local);return a===n+""?null:a===r?i:i=e(r=a,n)}}function Ci(t,e,n){var r,i,a;return function(){var o,s,u=n(this);if(null!=u)return(o=this.getAttribute(t))===(s=u+"")?null:o===r&&s===i?a:(i=s,a=e(r=o,u));this.removeAttribute(t)}}function Ri(t,e,n){var r,i,a;return function(){var o,s,u=n(this);if(null!=u)return(o=this.getAttributeNS(t.space,t.local))===(s=u+"")?null:o===r&&s===i?a:(i=s,a=e(r=o,u));this.removeAttributeNS(t.space,t.local)}}function Li(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Ii(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Pi(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&Ii(t,i)),n}return i._value=e,i}function Di(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&Li(t,i)),n}return i._value=e,i}function zi(t,e){return function(){fi(this,t).delay=+e.apply(this,arguments)}}function Ni(t,e){return e=+e,function(){fi(this,t).delay=e}}function Fi(t,e){return function(){hi(this,t).duration=+e.apply(this,arguments)}}function ji(t,e){return e=+e,function(){hi(this,t).duration=e}}function Xi(t,e){if("function"!=typeof e)throw new Error;return function(){hi(this,t).ease=e}}function Bi(t,e,n){var r,i,a=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?fi:hi;return function(){var o=a(this,t),s=o.on;s!==r&&(i=(r=s).copy()).on(e,n),o.on=i}}var $i,Ui=Rn.prototype.constructor;function Yi(t){return function(){this.style.removeProperty(t)}}function Vi(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Gi(t,e,n){var r,i;function a(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&Vi(t,a,n)),r}return a._value=e,a}function Hi(t){return function(e){this.textContent=t.call(this,e)}}function Wi(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Hi(r)),e}return r._value=t,r}var qi=0;function Zi(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Ki(t){return Rn().transition(t)}function Ji(){return++qi}var Qi=Rn.prototype;Zi.prototype=Ki.prototype=($i={constructor:Zi,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=fe(t));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s,u,c=r[o],l=c.length,f=a[o]=Array(l),h=0;h<l;++h)(s=c[h])&&(u=t.call(s,s.__data__,h,c))&&("__data__"in s&&(u.__data__=s.__data__),f[h]=u,li(f[h],e,n,h,f,di(s,n)));return new Zi(a,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=ge(t));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var u,c=r[s],l=c.length,f=0;f<l;++f)if(u=c[f]){for(var h,d=t.call(u,u.__data__,f,c),g=di(u,n),p=0,v=d.length;p<v;++p)(h=d[p])&&li(h,e,n,p,d,g);a.push(d),o.push(u)}return new Zi(a,o,e,n)},selectChild:Qi.selectChild,selectChildren:Qi.selectChildren,filter:function(t){"function"!=typeof t&&(t=pe(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,u=r[i]=[],c=0;c<s;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&u.push(a);return new Zi(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var u,c=e[s],l=n[s],f=c.length,h=o[s]=Array(f),d=0;d<f;++d)(u=c[d]||l[d])&&(h[d]=u);for(;s<r;++s)o[s]=e[s];return new Zi(o,this._parents,this._name,this._id)},selection:function(){return new Ui(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=Ji(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],u=s.length,c=0;c<u;++c)if(o=s[c]){var l=di(o,e);li(o,t,n,c,s,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new Zi(r,this._parents,t,n)},call:Qi.call,nodes:Qi.nodes,node:Qi.node,size:Qi.size,empty:Qi.empty,each:Qi.each,on:function(t,e){var n=this._id;return arguments.length<2?di(this.node(),n).on.on(t):this.each(Bi(n,t,e))},attr:function(t,e){var n=Ie(t),r="transform"===n?bi:Si;return this.attrTween(t,"function"==typeof e?(n.local?Ri:Ci)(n,r,Ai(this,"attr."+t,e)):null==e?(n.local?Ei:ki)(n):(n.local?Oi:Mi)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=Ie(t);return this.tween(n,(r.local?Pi:Di)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?mi:Si;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var a=Ye(this,t),o=(this.style.removeProperty(t),Ye(this,t));return a===o?null:a===n&&o===r?i:i=e(n=a,r=o)}}(t,r)).on("end.style."+t,Yi(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,a;return function(){var o=Ye(this,t),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(t),u=s=Ye(this,t)),o===u?null:o===r&&u===i?a:(i=u,a=e(r=o,s))}}(t,r,Ai(this,"style."+t,e))).each(function(t,e){var n,r,i,a,o="style."+e;return function(){var s=hi(this,t),u=s.on,c=null==s.value[o]?a||(a=Yi(e)):void 0;u===n&&i===c||(r=(n=u).copy()).on("end."+o,i=c),s.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i;return function(){var a=Ye(this,t);return a===n+""?null:a===r?i:i=e(r=a,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,Gi(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Ai(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,Wi(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=di(this.node(),n).tween,a=0,o=i.length;a<o;++a)if((r=i[a]).name===t)return r.value;return null}return this.each((null==e?wi:Ti)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?zi:Ni)(e,t)):di(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Fi:ji)(e,t)):di(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(Xi(e,t)):di(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;hi(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(a,o){var s={value:o},u={value:function(){0==--i&&a()}};n.each((function(){var n=hi(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(u)),n.on=e})),0===i&&a()}))}},$i[Symbol.iterator]=Qi[Symbol.iterator],$i);var ta={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function ea(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error("transition "+e+" not found");return n}Rn.prototype.interrupt=function(t){return this.each((function(){gi(this,t)}))},Rn.prototype.transition=function(t){var e,n;t instanceof Zi?(e=t._id,t=t._name):(e=Ji(),(n=ta).time=ti(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],u=s.length,c=0;c<u;++c)(o=s[c])&&li(o,t,e,c,s,n||ea(o,e));return new Zi(r,this._parents,t,e)};var na=function(t){return function(){return t}};function ra(t,e){var n=e.sourceEvent,r=e.target,i=e.selection,a=e.mode,o=e.dispatch;Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},selection:{value:i,enumerable:!0,configurable:!0},mode:{value:a,enumerable:!0,configurable:!0},_:{value:o}})}function ia(t){t.stopImmediatePropagation()}function aa(t){t.preventDefault(),t.stopImmediatePropagation()}function oa(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return sa(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sa(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function sa(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var ua={name:"drag"},ca={name:"space"},la={name:"handle"},fa={name:"center"},ha=Math.abs,da=Math.max,ga=Math.min;function pa(t){return[+t[0],+t[1]]}function va(t){return[pa(t[0]),pa(t[1])]}var ya={name:"x",handles:["w","e"].map(Aa),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},xa={name:"y",handles:["n","s"].map(Aa),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},_a=(["n","w","e","s","nw","ne","sw","se"].map(Aa),{overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"}),ma={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},ba={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},wa={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Ta={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Aa(t){return{type:t}}function Sa(t){return!t.ctrlKey&&!t.button}function ka(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function Ea(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ma(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Oa(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function Ca(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function Ra(t){var e,n=ka,r=Sa,i=Ea,a=!0,o=Gn("start","brush","end"),s=6;function u(e){var n=e.property("__brush",p).selectAll(".overlay").data([Aa("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",_a.overlay).merge(n).each((function(){var t=Ma(this).extent;Ln(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),e.selectAll(".selection").data([Aa("selection")]).enter().append("rect").attr("class","selection").attr("cursor",_a.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=e.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return _a[t.type]})),e.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(i).on("touchstart.brush",h).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",g).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function c(){var t=Ln(this),e=Ma(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?e[1][0]-s/2:e[0][0]-s/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-s/2:e[0][1]-s/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+s:s})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+s:s}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function l(t,e,n){var r=t.__brush.emitter;return!r||n&&r.clean?new f(t,e,n):r}function f(t,e,n){this.that=t,this.args=e,this.state=t.__brush,this.active=0,this.clean=n}function h(n){if((!e||n.touches)&&r.apply(this,arguments)){var i,o,s,u,f,h,d,g,p,v,y,x=this,_=n.target.__data__.type,m="selection"===(a&&n.metaKey?_="overlay":_)?ua:a&&n.altKey?fa:la,b=t===xa?null:wa[_],w=t===ya?null:Ta[_],T=Ma(x),A=T.extent,S=T.selection,k=A[0][0],E=A[0][1],M=A[1][0],O=A[1][1],C=0,R=0,L=b&&w&&a&&n.shiftKey,I=Array.from(n.touches||[n],(function(t){var e=t.identifier;return(t=jn(t,x)).point0=t.slice(),t.identifier=e,t}));gi(x);var P=l(x,arguments,!0).beforestart();if("overlay"===_){S&&(p=!0);var D=[I[0],I[1]||I[0]];T.selection=S=[[i=t===xa?k:ga(D[0][0],D[1][0]),s=t===ya?E:ga(D[0][1],D[1][1])],[f=t===xa?M:da(D[0][0],D[1][0]),d=t===ya?O:da(D[0][1],D[1][1])]],I.length>1&&X(n)}else i=S[0][0],s=S[0][1],f=S[1][0],d=S[1][1];o=i,u=s,h=f,g=d;var z=Ln(x).attr("pointer-events","none"),N=z.selectAll(".overlay").attr("cursor",_a[_]);if(n.touches)P.moved=j,P.ended=B;else{var F=Ln(n.view).on("mousemove.brush",j,!0).on("mouseup.brush",B,!0);a&&F.on("keydown.brush",$,!0).on("keyup.brush",U,!0),Kn(n.view)}c.call(x),P.start(n,m.name)}function j(t){for(var e,n=oa(t.changedTouches||[t]);!(e=n()).done;)for(var r,i=e.value,a=oa(I);!(r=a()).done;){var o=r.value;o.identifier===i.identifier&&(o.cur=jn(i,x))}if(L&&!v&&!y&&1===I.length){var s=I[0];ha(s.cur[0]-s[0])>ha(s.cur[1]-s[1])?y=!0:v=!0}for(var u,c=oa(I);!(u=c()).done;){var l=u.value;l.cur&&(l[0]=l.cur[0],l[1]=l.cur[1])}p=!0,aa(t),X(t)}function X(t){var e,n=I[0],r=n.point0;switch(C=n[0]-r[0],R=n[1]-r[1],m){case ca:case ua:b&&(C=da(k-i,ga(M-f,C)),o=i+C,h=f+C),w&&(R=da(E-s,ga(O-d,R)),u=s+R,g=d+R);break;case la:I[1]?(b&&(o=da(k,ga(M,I[0][0])),h=da(k,ga(M,I[1][0])),b=1),w&&(u=da(E,ga(O,I[0][1])),g=da(E,ga(O,I[1][1])),w=1)):(b<0?(C=da(k-i,ga(M-i,C)),o=i+C,h=f):b>0&&(C=da(k-f,ga(M-f,C)),o=i,h=f+C),w<0?(R=da(E-s,ga(O-s,R)),u=s+R,g=d):w>0&&(R=da(E-d,ga(O-d,R)),u=s,g=d+R));break;case fa:b&&(o=da(k,ga(M,i-C*b)),h=da(k,ga(M,f+C*b))),w&&(u=da(E,ga(O,s-R*w)),g=da(E,ga(O,d+R*w)))}h<o&&(b*=-1,e=i,i=f,f=e,e=o,o=h,h=e,_ in ma&&N.attr("cursor",_a[_=ma[_]])),g<u&&(w*=-1,e=s,s=d,d=e,e=u,u=g,g=e,_ in ba&&N.attr("cursor",_a[_=ba[_]])),T.selection&&(S=T.selection),v&&(o=S[0][0],h=S[1][0]),y&&(u=S[0][1],g=S[1][1]),S[0][0]===o&&S[0][1]===u&&S[1][0]===h&&S[1][1]===g||(T.selection=[[o,u],[h,g]],c.call(x),P.brush(t,m.name))}function B(t){if(ia(t),t.touches){if(t.touches.length)return;e&&clearTimeout(e),e=setTimeout((function(){e=null}),500)}else Jn(t.view,p),F.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);z.attr("pointer-events","all"),N.attr("cursor",_a.overlay),T.selection&&(S=T.selection),Oa(S)&&(T.selection=null,c.call(x)),P.end(t,m.name)}function $(t){switch(t.keyCode){case 16:L=b&&w;break;case 18:m===la&&(b&&(f=h-C*b,i=o+C*b),w&&(d=g-R*w,s=u+R*w),m=fa,X(t));break;case 32:m!==la&&m!==fa||(b<0?f=h-C:b>0&&(i=o-C),w<0?d=g-R:w>0&&(s=u-R),m=ca,N.attr("cursor",_a.selection),X(t));break;default:return}aa(t)}function U(t){switch(t.keyCode){case 16:L&&(v=y=L=!1,X(t));break;case 18:m===fa&&(b<0?f=h:b>0&&(i=o),w<0?d=g:w>0&&(s=u),m=la,X(t));break;case 32:m===ca&&(t.altKey?(b&&(f=h-C*b,i=o+C*b),w&&(d=g-R*w,s=u+R*w),m=fa):(b<0?f=h:b>0&&(i=o),w<0?d=g:w>0&&(s=u),m=la),N.attr("cursor",_a[_]),X(t));break;default:return}aa(t)}}function d(t){l(this,arguments).moved(t)}function g(t){l(this,arguments).ended(t)}function p(){var e=this.__brush||{selection:null};return e.extent=va(n.apply(this,arguments)),e.dim=t,e}return u.move=function(e,n,r){e.tween?e.on("start.brush",(function(t){l(this,arguments).beforestart().start(t)})).on("interrupt.brush end.brush",(function(t){l(this,arguments).end(t)})).tween("brush",(function(){var e=this,r=e.__brush,i=l(e,arguments),a=r.selection,o=t.input("function"==typeof n?n.apply(this,arguments):n,r.extent),s=Ur(a,o);function u(t){r.selection=1===t&&null===o?null:s(t),c.call(e),i.brush()}return null!==a&&null!==o?u:u(1)})):e.each((function(){var e=this,i=arguments,a=e.__brush,o=t.input("function"==typeof n?n.apply(e,i):n,a.extent),s=l(e,i).beforestart();gi(e),a.selection=null===o?null:o,c.call(e),s.start(r).brush(r).end(r)}))},u.clear=function(t,e){u.move(t,null,e)},f.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(t,e){return this.starting?(this.starting=!1,this.emit("start",t,e)):this.emit("brush",t),this},brush:function(t,e){return this.emit("brush",t,e),this},end:function(t,e){return 0==--this.active&&(delete this.state.emitter,this.emit("end",t,e)),this},emit:function(e,n,r){var i=Ln(this.that).datum();o.call(e,this.that,new ra(e,{sourceEvent:n,target:u,selection:t.output(this.state.selection),mode:r,dispatch:o}),i)}},u.extent=function(t){return arguments.length?(n="function"==typeof t?t:na(va(t)),u):n},u.filter=function(t){return arguments.length?(r="function"==typeof t?t:na(!!t),u):r},u.touchable=function(t){return arguments.length?(i="function"==typeof t?t:na(!!t),u):i},u.handleSize=function(t){return arguments.length?(s=+t,u):s},u.keyModifiers=function(t){return arguments.length?(a=!!t,u):a},u.on=function(){var t=o.on.apply(o,arguments);return t===o?u:t},u}var La={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcs:"bb-arcs",area:"bb-area",areas:"bb-areas",axis:"bb-axis",axisX:"bb-axis-x",axisXLabel:"bb-axis-x-label",axisY:"bb-axis-y",axisY2:"bb-axis-y2",axisY2Label:"bb-axis-y2-label",axisYLabel:"bb-axis-y-label",bar:"bb-bar",bars:"bb-bars",brush:"bb-brush",button:"bb-button",buttonZoomReset:"bb-zoom-reset",candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chart:"bb-chart",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsGaugeMax:"bb-chart-arcs-gauge-max",chartArcsGaugeMin:"bb-chart-arcs-gauge-min",chartArcsGaugeUnit:"bb-chart-arcs-gauge-unit",chartArcsTitle:"bb-chart-arcs-title",chartArcsGaugeTitle:"bb-chart-arcs-gauge-title",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",chartCircles:"bb-chart-circles",chartLine:"bb-chart-line",chartLines:"bb-chart-lines",chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars",chartText:"bb-chart-text",chartTexts:"bb-chart-texts",circle:"bb-circle",circles:"bb-circles",colorPattern:"bb-color-pattern",colorScale:"bb-colorscale",defocused:"bb-defocused",dragarea:"bb-dragarea",empty:"bb-empty",eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single",focused:"bb-focused",gaugeValue:"bb-gauge-value",grid:"bb-grid",gridLines:"bb-grid-lines",legend:"bb-legend",legendBackground:"bb-legend-background",legendItem:"bb-legend-item",legendItemEvent:"bb-legend-item-event",legendItemFocused:"bb-legend-item-focused",legendItemHidden:"bb-legend-item-hidden",legendItemPoint:"bb-legend-item-point",legendItemTile:"bb-legend-item-tile",level:"bb-level",levels:"bb-levels",line:"bb-line",lines:"bb-lines",main:"bb-main",region:"bb-region",regions:"bb-regions",selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",shape:"bb-shape",shapes:"bb-shapes",stanfordElements:"bb-stanford-elements",stanfordLine:"bb-stanford-line",stanfordLines:"bb-stanford-lines",stanfordRegion:"bb-stanford-region",stanfordRegions:"bb-stanford-regions",subchart:"bb-subchart",target:"bb-target",text:"bb-text",texts:"bb-texts",title:"bb-title",tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name",valueDown:"bb-value-down",valueUp:"bb-value-up",xgrid:"bb-xgrid",xgridFocus:"bb-xgrid-focus",xgridLine:"bb-xgrid-line",xgridLines:"bb-xgrid-lines",xgrids:"bb-xgrids",ygrid:"bb-ygrid",ygridFocus:"bb-ygrid-focus",ygridLine:"bb-ygrid-line",ygridLines:"bb-ygrid-lines",ygrids:"bb-ygrids",zoomBrush:"bb-zoom-brush",EXPANDED:"_expanded_",SELECTED:"_selected_",INCLUDED:"_included_",TextOverlapping:"text-overlapping"};function Ia(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 Pa(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?Ia(Object(e),!0).forEach((function(n){Fn(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Ia(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var Da=function(t){return t||0===t},za=function(t){return"function"==typeof t},Na=function(t){return"string"==typeof t},Fa=function(t){return"number"==typeof t},ja=function(t){return void 0===t},Xa=function(t){return void 0!==t},Ba=function(t){return"boolean"==typeof t},$a=function(t){return 10*Math.ceil(t/10)},Ua=function(t){return Math.ceil(t)+.5},Ya=function(t){return t[1]-t[0]},Va=function(t){return"object"==typeof t},Ga=function(t){return ja(t)||null===t||Na(t)&&0===t.length||Va(t)&&!(t instanceof Date)&&0===Object.keys(t).length||Fa(t)&&isNaN(t)},Ha=function(t){return!Ga(t)},Wa=function(t){return Array.isArray(t)},qa=function(t){return t&&!(null!=t&&t.nodeType)&&Va(t)&&!Wa(t)};function Za(t,e,n){return Xa(t[e])?t[e]:n}function Ka(t){for(var e=za(t),n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return e&&t.call.apply(t,r),e}function Ja(t,e){var n=0,r=function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];--n||e.apply.apply(e,[this].concat(r))};"duration"in t?t.each((function(){return++n})).on("end",r):(++n,t.call(r))}function Qa(t){return Na(t)?t.replace(/</g,"&lt;").replace(/>/g,"&gt;"):t}function to(t,e,n,r){if(void 0===n&&(n=[-1,1]),void 0===r&&(r=!1),t&&Na(e))if(-1===e.indexOf("\n"))t.text(e);else{var i=[t.text(),e].map((function(t){return t.replace(/[\s\n]/g,"")}));if(i[0]!==i[1]){var a=e.split("\n"),o=r?a.length-1:1;t.html(""),a.forEach((function(e,r){t.append("tspan").attr("x",0).attr("dy",(0===r?n[0]*o:n[1])+"em").text(e)}))}}}function eo(t){var e=t.getBBox(),n=e.x,r=e.y,i=e.width,a=e.height;return[{x:n,y:r+a},{x:n,y:r},{x:n+i,y:r},{x:n+i,y:r+a}]}function no(t,e){var n;return jn(t&&(null==(n=t.touches||t.sourceEvent&&t.sourceEvent.touches)?void 0:n[0])||t,e).map((function(t){return isNaN(t)?0:t}))}function ro(t){var e,n=t.event,r=t.$el,i=r.subchart.main||r.main;return n&&"brush"===n.type?e=n.selection:i&&(e=i.select("."+La.brush).node())&&(e=Ca(e)),e}function io(t){return!("rect"in t)||"rect"in t&&t.hasAttribute("width")&&t.rect.width!==+t.getAttribute("width")?t.rect=t.getBoundingClientRect():t.rect}function ao(t){void 0===t&&(t=!0);var e=Math.random();return t?e+"":e}function oo(t,e,n,r,i){if(n>r)return-1;var a=Math.floor((n+r)/2),o=t[a],s=o.x,u=o.w,c=void 0===u?0:u;return i&&(s=t[a].y,c=t[a].h),e>=s&&e<=s+c?a:e<s?oo(t,e,n,a-1,i):oo(t,e,a+1,r,i)}function so(t){var e=ro(t);return!e||e[0]===e[1]}function uo(t,e){for(var n in void 0===t&&(t={}),Wa(e)&&e.forEach((function(e){return uo(t,e)})),e)/^\d+$/.test(n)||n in t||(t[n]=e[n]);return t}var co=function(t){return t.charAt(0).toUpperCase()+t.slice(1)};var lo=function(t){return[].slice.call(t)};function fo(t){var e=t?t.transform:null,n=e&&e.baseVal;return n&&n.numberOfItems?n.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function ho(t){var e=t[0]instanceof Date,n=(e?t.map(Number):t).filter((function(t,e,n){return n.indexOf(t)===e}));return e?n.map((function(t){return new Date(t)})):n}function go(t){return t&&t.length?t.reduce((function(t,e){return t.concat(e)})):[]}function po(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length||1===n.length&&!n[0])return t;var i=n.shift();return qa(t)&&qa(i)&&Object.keys(i).forEach((function(e){var n=i[e];qa(n)?(t[e]||(t[e]={}),t[e]=po(t[e],n)):t[e]=Wa(n)?n.concat():n})),po.apply(void 0,[t].concat(n))}function vo(t,e){var n;return void 0===e&&(e=!0),t[0]instanceof Date?n=e?function(t,e){return t-e}:function(t,e){return e-t}:e&&!t.every(isNaN)?n=function(t,e){return t-e}:e||(n=function(t,e){return(t>e?-1:t<e&&1)||t===e&&0}),t.concat().sort(n)}function yo(t,e){var n=e.filter((function(t){return Ha(t)}));return n.length?Fa(n[0])?n=Math[t].apply(Math,n):n[0]instanceof Date&&(n=vo(n,"min"===t)[0]):n=void 0,n}var xo=function(t,e,n){void 0===n&&(n=1);for(var r=[],i=0|Math.max(0,Math.ceil((e-t)/n)),a=t;a<i;a++)r.push(t+a*n);return r},_o={mouse:function(){try{return new MouseEvent("t"),function(t,e,n){void 0===n&&(n={bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0}),t.dispatchEvent(new MouseEvent(e,n))}}catch(t){return function(t,e,n){void 0===n&&(n={bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});var r=Pn.createEvent("MouseEvent");r.initMouseEvent(e,n.bubbles,n.cancelable,In,0,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),t.dispatchEvent(r)}}}(),touch:function(t,e,n){var r=new Touch(po({identifier:Date.now(),target:t,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},n));t.dispatchEvent(new TouchEvent(e,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[r],targetTouches:[],changedTouches:[r]}))}};function mo(t,e){var n=t;for(var r in e)n=n.replace(new RegExp("{="+r+"}","g"),e[r]);return n}function bo(t){var e;if(t instanceof Date)e=t;else if(Na(t)){var n=this.config;e=this.format.dataTime(n.data_xFormat)(t)}else Fa(t)&&!isNaN(t)&&(e=new Date(+t));return e&&!isNaN(+e)||console&&console.error&&console.error("Failed to parse x '"+t+"' to Date object"),e}function wo(){return!Pn.hidden}function To(t){var e,n=t,r=n.config,i="";if(Ga(r.data_type||r.data_types)&&!n[zn.LINE])i="line";else for(var a in zn){var o=Dn[a];if(n.hasType(o)&&!n[zn[a]]){i=o;break}}i&&function(t,e){var n,r="[billboard.js]";(null==(n=In.console)?void 0:n.error)&&(console.error("❌ "+r+" "+t,"background:red;color:white;display:block;font-size:15px",e),console.info("%cℹ️","font-size:15px","https://github.com/naver/billboard.js/wiki/CHANGELOG-v2#modularization-by-its-functionality"));throw Error(r+" "+t.replace(/\%c([a-z-]+)/i,"'$1' ")+" "+e)}("Please, make sure if %c"+(void 0===e&&(e="-"),i.split(e).map((function(t,e){return e?t.charAt(0).toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()})).join("")),"module has been imported and specified correctly.")}var Ao={element:function(){return{chart:null,main:null,svg:null,axis:{x:null,y:null,y2:null,subX:null},defs:null,tooltip:null,legend:null,title:null,subchart:{main:null,bar:null,line:null,area:null},arcs:null,bar:null,candlestick:null,line:null,area:null,circle:null,radar:null,text:null,grid:{main:null,x:null,y:null},gridLines:{main:null,x:null,y:null},region:{main:null,list:null},eventRect:null,zoomResetBtn:null}},state:function(){return{width:0,width2:0,height:0,height2:0,margin:{top:0,bottom:0,left:0,right:0},margin2:{top:0,bottom:0,left:0,right:0},margin3:{top:0,bottom:0,left:0,right:0},arcWidth:0,arcHeight:0,xAxisHeight:0,hasAxis:!1,hasRadar:!1,current:{width:0,height:0,dataMax:0,maxTickWidths:{x:{size:0,ticks:[],clipPath:0,domain:""},y:{size:0,domain:""},y2:{size:0,domain:""}},types:[]},isLegendRight:!1,isLegendInset:!1,isLegendTop:!1,isLegendLeft:!1,legendStep:0,legendItemWidth:0,legendItemHeight:0,legendHasRendered:!1,eventReceiver:{currentIdx:-1,rect:{},data:[],coords:[]},axis:{x:{padding:{left:0,right:0},tickCount:0}},rotatedPadding:{left:30,right:0,top:5},withoutFadeIn:{},inputType:"",datetimeId:"",clip:{id:"",idXAxis:"",idYAxis:"",idXAxisTickTexts:"",idGrid:"",idSubchart:"",path:"",pathXAxis:"",pathYAxis:"",pathXAxisTickTexts:"",pathGrid:""},event:null,dragStart:null,dragging:!1,flowing:!1,cancelClick:!1,mouseover:!1,rendered:!1,transiting:!1,redrawing:!1,resizing:!1,toggling:!1,zooming:!1,hasNegativeValue:!1,hasPositiveValue:!0,orgAreaOpacity:"0.2",hiddenTargetIds:[],hiddenLegendIds:[],focusedTargetIds:[],defocusedTargetIds:[],radius:0,innerRadius:0,outerRadius:void 0,innerRadiusRatio:0,gaugeArcWidth:0,radiusExpanded:0,xgridAttr:{x1:null,x2:null,y1:null,y2:null}}}},So=function(){function t(){var t=this;Object.keys(Ao).forEach((function(e){t[e]=new Ao[e]}))}return t.prototype.getStore=function(t){return this[t]},t}(),ko={bindto:"#chart",background:{},clipPath:!0,svg_classname:void 0,size_width:void 0,size_height:void 0,padding_left:void 0,padding_right:void 0,padding_top:void 0,padding_bottom:void 0,resize_auto:!0,onover:void 0,onout:void 0,onresize:void 0,onresized:void 0,onbeforeinit:void 0,oninit:void 0,onafterinit:void 0,onrendered:void 0,transition_duration:250,plugins:[],render:{},regions:[]},Eo={data_x:void 0,data_idConverter:function(t){return t},data_names:{},data_classes:{},data_type:void 0,data_types:{},data_order:"desc",data_groups:[],data_color:void 0,data_colors:{},data_labels:{},data_labels_backgroundColors:void 0,data_labels_colors:void 0,data_labels_position:{},data_hide:!1,data_filter:void 0,data_onclick:function(){},data_onover:function(){},data_onout:function(){},data_onshown:void 0,data_onhidden:void 0,data_onmin:void 0,data_onmax:void 0,data_url:void 0,data_headers:void 0,data_json:void 0,data_rows:void 0,data_columns:void 0,data_mimeType:"csv",data_keys:void 0,data_empty_label_text:""},Mo={color_pattern:[],color_tiles:void 0,color_threshold:{},color_onover:void 0},Oo={interaction_enabled:!0,interaction_brighten:!0,interaction_inputType_mouse:!0,interaction_inputType_touch:{}},Co={legend_show:!0,legend_hide:!1,legend_contents_bindto:void 0,legend_contents_template:void 0,legend_position:"bottom",legend_inset_anchor:"top-left",legend_inset_x:10,legend_inset_y:0,legend_inset_step:void 0,legend_item_onclick:void 0,legend_item_onover:void 0,legend_item_onout:void 0,legend_equally:!1,legend_padding:0,legend_item_tile_width:10,legend_item_tile_height:10,legend_usePoint:!1},Ro={title_text:void 0,title_padding:{top:0,right:0,bottom:0,left:0},title_position:"center"},Lo={tooltip_show:!0,tooltip_doNotHide:!1,tooltip_grouped:!0,tooltip_format_title:void 0,tooltip_format_name:void 0,tooltip_format_value:void 0,tooltip_position:void 0,tooltip_contents:{},tooltip_init_show:!1,tooltip_init_x:0,tooltip_init_position:{top:"0px",left:"50px"},tooltip_linked:!1,tooltip_linked_name:"",tooltip_onshow:function(){},tooltip_onhide:function(){},tooltip_onshown:function(){},tooltip_onhidden:function(){},tooltip_order:null};function Io(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 Po(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?Io(Object(e),!0).forEach((function(n){Fn(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Io(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var Do=function(){function t(){return function(){for(var t=function(e){if(qa(e)&&e.constructor){var n=new e.constructor;for(var r in e)n[r]=t(e[r]);return n}return e},e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.map((function(e){return t(e)})).reduce((function(t,e){return Pa(Pa({},t),e)}))}(ko,Eo,Mo,Oo,Co,Ro,Lo,t.data)}return t.setOptions=function(t){this.data=t.reduce((function(t,e){return Po(Po({},t),e)}),this.data)},t}();Do.data={};var zo="$baseLength",No="__colorPattern__",Fo="$dataMinMax",jo="$dataTotalSum",Xo="$totalPerIndex",Bo="legendItemTextBox",$o="$radarPoints",Uo="setOverOut",Yo="callOverOutForTouch",Vo="textRect",Go=function(){function t(){this.cache={}}var e=t.prototype;return e.add=function(t,e,n){return void 0===n&&(n=!1),this.cache[t]=n?this.cloneTarget(e):e,this.cache[t]},e.remove=function(t){var e=this;lo(t).forEach((function(t){return delete e.cache[t]}))},e.get=function(t,e){if(void 0===e&&(e=!1),e){for(var n,r=[],i=0;n=t[i];i++)n in this.cache&&r.push(this.cloneTarget(this.cache[n]));return r}var a=this.cache[t];return Da(a)?a:null},e.reset=function(t){for(var e in this.cache)(t||/^\$/.test(e))&&(this.cache[e]=null)},e.cloneTarget=function(t){return{id:t.id,id_org:t.id_org,values:t.values.map((function(t){return{x:t.x,value:t.value,id:t.id}}))}},t}(),Ho=In.setTimeout,Wo=In.clearTimeout;function qo(){var t=[],e=function(e,n){var r;!function e(){for(var i,a=0,o=0;i=t[o];o++)if(!0===i||null!=i.empty&&i.empty())a++;else try{i.transition()}catch(t){a++}r&&Wo(r),a===t.length?null==n||n():r=Ho(e,50)}()};return e.add=function(e){Wa(e)?t=t.concat(e):t.push(e)},e}var Zo={},Ko={};function Jo(t){return new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'})).join(",")+"}")}function Qo(t){var e=Object.create(null),n=[];return t.forEach((function(t){for(var r in t)r in e||n.push(e[r]=r)})),n}function ts(t,e){var n=t+"",r=n.length;return r<e?Array(e-r+1).join(0)+n:n}function es(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),r=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":function(t){return t<0?"-"+ts(-t,6):t>9999?"+"+ts(t,6):ts(t,4)}(t.getUTCFullYear())+"-"+ts(t.getUTCMonth()+1,2)+"-"+ts(t.getUTCDate(),2)+(i?"T"+ts(e,2)+":"+ts(n,2)+":"+ts(r,2)+"."+ts(i,3)+"Z":r?"T"+ts(e,2)+":"+ts(n,2)+":"+ts(r,2)+"Z":n||e?"T"+ts(e,2)+":"+ts(n,2)+"Z":"")}function ns(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function r(t,e){var r,i=[],a=t.length,o=0,s=0,u=a<=0,c=!1;function l(){if(u)return Ko;if(c)return c=!1,Zo;var e,r,i=o;if(34===t.charCodeAt(i)){for(;o++<a&&34!==t.charCodeAt(o)||34===t.charCodeAt(++o););return(e=o)>=a?u=!0:10===(r=t.charCodeAt(o++))?c=!0:13===r&&(c=!0,10===t.charCodeAt(o)&&++o),t.slice(i+1,e-1).replace(/""/g,'"')}for(;o<a;){if(10===(r=t.charCodeAt(e=o++)))c=!0;else if(13===r)c=!0,10===t.charCodeAt(o)&&++o;else if(r!==n)continue;return t.slice(i,e)}return u=!0,t.slice(i,a)}for(10===t.charCodeAt(a-1)&&--a,13===t.charCodeAt(a-1)&&--a;(r=l())!==Ko;){for(var f=[];r!==Zo&&r!==Ko;)f.push(r),r=l();e&&null==(f=e(f,s++))||i.push(f)}return i}function i(e,n){return e.map((function(e){return n.map((function(t){return o(e[t])})).join(t)}))}function a(e){return e.map(o).join(t)}function o(t){return null==t?"":t instanceof Date?es(t):e.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,e){var n,i,a=r(t,(function(t,r){if(n)return n(t,r-1);i=t,n=e?function(t,e){var n=Jo(t);return function(r,i){return e(n(r),i,t)}}(t,e):Jo(t)}));return a.columns=i||[],a},parseRows:r,format:function(e,n){return null==n&&(n=Qo(e)),[n.map(o).join(t)].concat(i(e,n)).join("\n")},formatBody:function(t,e){return null==e&&(e=Qo(t)),i(t,e).join("\n")},formatRows:function(t){return t.map(a).join("\n")},formatRow:a,formatValue:o}}var rs=ns(","),is=rs.parse,as=rs.parseRows,os=(rs.format,rs.formatBody,rs.formatRows,rs.formatRow,rs.formatValue,ns("\t")),ss=os.parse,us=os.parseRows,cs=(os.format,os.formatBody,os.formatRows,os.formatRow,os.formatValue,{convertData:function(t,e){var n;if(t.bindto?(n={},["url","mimeType","headers","keys","json","keys","rows","columns"].forEach((function(e){var r="data_"+e;r in t&&(n[e]=t[r])}))):n=t,n.url&&e)this.convertUrlToData(n.url,n.mimeType,n.headers,n.keys,e);else if(n.json)n=this.convertJsonToData(n.json,n.keys);else if(n.rows)n=this.convertRowsToData(n.rows);else if(n.columns)n=this.convertColumnsToData(n.columns);else if(t.bindto)throw Error("url or json or rows or columns is required.");return Wa(n)&&n},convertUrlToData:function(t,e,n,r,i){var a=this;void 0===e&&(e="csv");var o=new XMLHttpRequest;o.open("GET",t),n&&Object.keys(n).forEach((function(t){o.setRequestHeader(t,n[t])})),o.onreadystatechange=function(){if(4===o.readyState){if(200!==o.status)throw new Error(t+": Something went wrong loading!");var n=o.responseText;n&&i.call(a,a["convert"+co(e)+"ToData"]("json"===e?JSON.parse(n):n,r))}},o.send()},convertCsvTsvToData:function(t,e){var n,r=t.rows(e);return 1===r.length?(n=[{}],r[0].forEach((function(t){n[0][t]=null}))):n=t.parse(e),n},convertCsvToData:function(t){return this.convertCsvTsvToData({rows:as,parse:is},t)},convertTsvToData:function(t){return this.convertCsvTsvToData({rows:us,parse:ss},t)},convertJsonToData:function(t,e){var n,r,i=this,a=this.config,o=[];if(Wa(t)){var s=e||a.data_keys;s.x?(n=s.value.concat(s.x),a.data_x=s.x):n=s.value,o.push(n),t.forEach((function(t){var e=n.map((function(e){var n=i.findValueInJson(t,e);return ja(n)&&(n=null),n}));o.push(e)})),r=this.convertRowsToData(o)}else Object.keys(t).forEach((function(e){var n=t[e].concat();n.unshift(e),o.push(n)})),r=this.convertColumnsToData(o);return r},findValueInJson:function(t,e){if(void 0!==t[e])return t[e];var n=e.replace(/\[(\w+)\]/g,".$1").replace(/^\./,"").split("."),r=t;return n.some((function(t){return!(r=r&&t in r?r[t]:void 0)})),r},convertRowsToData:function(t){var e=t[0],n=[];return t.forEach((function(t,r){if(r>0){var i={};t.forEach((function(t,n){if(ja(t))throw new Error("Source data is missing a component at ("+r+", "+n+")!");i[e[n]]=t})),n.push(i)}})),n},convertColumnsToData:function(t){var e=[];return t.forEach((function(t,n){var r=t[0];t.forEach((function(t,i){if(i>0){if(ja(e[i-1])&&(e[i-1]={}),ja(t))throw new Error("Source data is missing a component at ("+n+", "+i+")!");e[i-1][r]=t}}))})),e},convertDataToTargets:function(t,e){var n=this,r=this,i=r.axis,a=r.config,o=r.state,s=!1,u=!1,c=!1;i&&(s=i.isCategorized(),u=i.isTimeSeries(),c=i.isCustomX());var l,f=Object.keys(t[0]||{}),h=f.length?f.filter(r.isNotX,r):[],d=f.length?f.filter(r.isX,r):[];h.forEach((function(i){var o=n.getXKey(i);c||u?d.indexOf(o)>=0?l=(e&&r.data.xs[i]||[]).concat(t.map((function(t){return t[o]})).filter(Da).map((function(t,e){return r.generateTargetX(t,i,e)}))):a.data_x?l=n.getOtherTargetXs():Ha(a.data_xs)&&(l=r.getXValuesOfXKey(o,r.data.targets)):l=t.map((function(t,e){return e})),l&&(n.data.xs[i]=l)})),h.forEach((function(t){if(!n.data.xs[t])throw new Error('x is not defined for id = "'+t+'".')}));var g=h.map((function(e,n){var i=a.data_idConverter.bind(r.api)(e),u=r.getXKey(e),l=c&&s,f=l&&t.map((function(t){return t.x})).every((function(t){return a.axis_x_categories.indexOf(t)>-1})),h=t.__append__,d=null===u&&h?r.api.data.values(e).length:0;return{id:i,id_org:e,values:t.map((function(t,s){var c,g=t[u],p=t[e];return p=null===p||isNaN(p)||qa(p)?Wa(p)||qa(p)?p:null:+p,!l&&!o.hasRadar||0!==n||ja(g)?c=r.generateTargetX(g,e,d+s):(f||0!==n||0!==s||h||(a.axis_x_categories=[]),-1===(c=a.axis_x_categories.indexOf(g))&&(c=a.axis_x_categories.length,a.axis_x_categories.push(g))),(ja(p)||r.data.xs[e].length<=s)&&(c=void 0),{x:c,value:p,id:i}})).filter((function(t){return Xa(t.x)}))}}));return g.forEach((function(t){a.data_xSort&&(t.values=t.values.sort((function(t,e){return(t.x||0===t.x?t.x:1/0)-(e.x||0===e.x?e.x:1/0)}))),t.values.forEach((function(t,e){return t.index=e})),r.data.xs[t.id].sort((function(t,e){return t-e}))})),o.hasNegativeValue=r.hasNegativeValueInTargets(g),o.hasPositiveValue=r.hasPositiveValueInTargets(g),a.data_type&&r.setTargetType(r.mapToIds(g).filter((function(t){return!(t in a.data_types)})),a.data_type),g.forEach((function(t){return r.cache.add(t.id_org,t,!0)})),g}}),ls={isX:function(t){var e=this.config,n=e.data_x&&t===e.data_x,r=Ha(e.data_xs)&&function(t,e){var n=!1;return Object.keys(t).forEach((function(r){return t[r]===e&&(n=!0)})),n}(e.data_xs,t);return n||r},isNotX:function(t){return!this.isX(t)},isStackNormalized:function(){var t=this.config;return!(!t.data_stack_normalize||!t.data_groups.length)},isGrouped:function(t){var e=this.config.data_groups;return t?e.some((function(e){return e.indexOf(t)>=0&&e.length>1})):e.length>0},getXKey:function(t){var e=this.config;return e.data_x?e.data_x:Ha(e.data_xs)?e.data_xs[t]:null},getXValuesOfXKey:function(t,e){var n,r=this;return(e&&Ha(e)?r.mapToIds(e):[]).forEach((function(e){r.getXKey(e)===t&&(n=r.data.xs[e])})),n},getIndexByX:function(t,e){return e?e.indexOf(Na(t)?t:+t):(this.filterByX(this.data.targets,t)[0]||{index:null}).index},getXValue:function(t,e){var n=this;return t in n.data.xs&&n.data.xs[t]&&Da(n.data.xs[t][e])?n.data.xs[t][e]:e},getOtherTargetXs:function(){var t=Object.keys(this.data.xs);return t.length?this.data.xs[t[0]]:null},getOtherTargetX:function(t){var e=this.getOtherTargetXs();return e&&t<e.length?e[t]:null},addXs:function(t){var e=this.config;Object.keys(t).forEach((function(n){e.data_xs[n]=t[n]}))},isMultipleX:function(){return Ha(this.config.data_xs)||!this.config.data_xSort||this.hasType("bubble")||this.hasType("scatter")},addName:function(t){var e,n=this.config;return t&&(e=n.data_names[t.id],t.name=void 0!==e?e:t.id),t},getAllValuesOnIndex:function(t,e){void 0===e&&(e=!1);var n=this,r=n.filterTargetsToShow(n.data.targets).map((function(e){return n.addName(n.getValueOnIndex(e.values,t))}));return e&&(r=r.filter((function(t){return Da(t.value)}))),r},getValueOnIndex:function(t,e){var n=t.filter((function(t){return t.index===e}));return n.length?n[0]:null},updateTargetX:function(t,e){var n=this;t.forEach((function(t){t.values.forEach((function(r,i){r.x=n.generateTargetX(e[i],t.id,i)})),n.data.xs[t.id]=e}))},updateTargetXs:function(t,e){var n=this;t.forEach((function(t){e[t.id]&&n.updateTargetX([t],e[t.id])}))},generateTargetX:function(t,e,n){var r,i,a,o,s=this,u=s.axis,c=null!=(r=u)&&r.isCategorized()?n:t||n;if(null!=(i=u)&&i.isTimeSeries()){var l=bo.bind(s);c=l(t||s.getXValue(e,n))}else null==(a=u)||!a.isCustomX()||null!=(o=u)&&o.isCategorized()||(c=Da(t)?+t:s.getXValue(e,n));return c},updateXs:function(t){t.length&&(this.axis.xs=t.map((function(t){return t.x})))},getPrevX:function(t){var e=this.axis.xs[t-1];return Xa(e)?e:null},getNextX:function(t){var e=this.axis.xs[t+1];return Xa(e)?e:null},getBaseValue:function(t){var e=this,n=e.state.hasAxis,r=t.value;return r&&n&&(e.isAreaRangeType(t)?r=e.getRangedData(t,"mid"):e.isBubbleZType(t)&&(r=e.getBubbleZData(r,"y"))),r},getMinMaxValue:function(t){var e,n,r=this.getBaseValue.bind(this);return(t||this.data.targets.map((function(t){return t.values}))).forEach((function(t,i){var a=t.map(r).filter(Fa);e=Math.min.apply(Math,[i?e:1/0].concat(a)),n=Math.max.apply(Math,[i?n:-1/0].concat(a))})),{min:e,max:n}},getMinMaxData:function(){var t=this,e=Fo,n=t.cache.get(e);if(!n){var r=t.data.targets.map((function(t){return t.values})),i=t.getMinMaxValue(r),a=[],o=[];r.forEach((function(e){var n=t.getFilteredDataByValue(e,i.min),r=t.getFilteredDataByValue(e,i.max);n.length&&(a=a.concat(n)),r.length&&(o=o.concat(r))})),t.cache.add(e,n={min:a,max:o})}return n},getTotalPerIndex:function(){var t=this,e=Xo,n=t.cache.get(e);return t.isStackNormalized()&&!n&&(n=[],t.data.targets.forEach((function(t){t.values.forEach((function(t,e){n[e]||(n[e]=0),n[e]+=Fa(t.value)?t.value:0}))}))),n},getTotalDataSum:function(t){var e=this,n=jo,r=e.cache.get(n);if(!Fa(r)){var i=go(e.data.targets.map((function(t){return t.values}))).map((function(t){return t.value})).reduce((function(t,e){return t+e}));e.cache.add(n,r=i)}return t&&(r-=e.getHiddenTotalDataSum()),r},getHiddenTotalDataSum:function(){var t=this.api,e=this.state.hiddenTargetIds,n=0;return e.length&&(n=t.data.values.bind(t)(e).reduce((function(t,e){return t+e}))),n},getFilteredDataByValue:function(t,e){var n=this;return t.filter((function(t){return n.getBaseValue(t)===e}))},getMaxDataCount:function(){return Math.max.apply(Math,this.data.targets.map((function(t){return t.values.length})))},getMaxDataCountTarget:function(){var t=this.filterTargetsToShow()||[],e=t.length;return e>1?t=vo(ho(t=t.map((function(t){return t.values})).reduce((function(t,e){return t.concat(e)})).map((function(t){return t.x})))).map((function(t,e){return{x:t,index:e}})):e&&(t=t[0].values),t},mapToIds:function(t){return t.map((function(t){return t.id}))},mapToTargetIds:function(t){return t?Wa(t)?t.concat():[t]:this.mapToIds(this.data.targets)},hasTarget:function(t,e){for(var n,r=this.mapToIds(t),i=0;n=r[i];i++)if(n===e)return!0;return!1},isTargetToShow:function(t){return this.state.hiddenTargetIds.indexOf(t)<0},isLegendToShow:function(t){return this.state.hiddenLegendIds.indexOf(t)<0},filterTargetsToShow:function(t){var e=this;return(t||e.data.targets).filter((function(t){return e.isTargetToShow(t.id)}))},mapTargetsToUniqueXs:function(t){var e,n=this.axis,r=[];null!=t&&t.length&&(r=ho(go(t.map((function(t){return t.values.map((function(t){return+t.x}))})))),r=null!=(e=n)&&e.isTimeSeries()?r.map((function(t){return new Date(+t)})):r.map(Number));return vo(r)},addTargetIds:function(t,e){var n=this.state;(Wa(e)?e:[e]).forEach((function(e){n[t].indexOf(e)<0&&n[t].push(e)}))},removeTargetIds:function(t,e){var n=this.state;(Wa(e)?e:[e]).forEach((function(e){var r=n[t].indexOf(e);r>=0&&n[t].splice(r,1)}))},addHiddenTargetIds:function(t){this.addTargetIds("hiddenTargetIds",t)},removeHiddenTargetIds:function(t){this.removeTargetIds("hiddenTargetIds",t)},addHiddenLegendIds:function(t){this.addTargetIds("hiddenLegendIds",t)},removeHiddenLegendIds:function(t){this.removeTargetIds("hiddenLegendIds",t)},getValuesAsIdKeyed:function(t){var e=this,n=e.state.hasAxis,r={},i=e.isMultipleX(),a=i?e.mapTargetsToUniqueXs(t).map((function(t){return Na(t)?t:+t})):null;return t.forEach((function(t){var o=[];t.values.filter((function(t){var e=t.value;return Da(e)||null===e})).forEach((function(t){var r=t.value;null!==r&&e.isCandlestickType(t)&&(r=Wa(r)?r.slice(0,4):[r.open,r.high,r.low,r.close]),Wa(r)?o.push.apply(o,r):qa(r)&&"high"in r?o.push.apply(o,Object.values(r)):e.isBubbleZType(t)?o.push(n&&e.getBubbleZData(r,"y")):i?o[e.getIndexByX(t.x,a)]=r:o.push(r)})),r[t.id]=o})),r},checkValueInTargets:function(t,e){for(var n,r=Object.keys(t),i=0;i<r.length;i++){n=t[r[i]].values;for(var a=0;a<n.length;a++)if(e(n[a].value))return!0}return!1},hasMultiTargets:function(){return this.filterTargetsToShow().length>1},hasNegativeValueInTargets:function(t){return this.checkValueInTargets(t,(function(t){return t<0}))},hasPositiveValueInTargets:function(t){return this.checkValueInTargets(t,(function(t){return t>0}))},orderTargets:function(t){var e=[].concat(t),n=this.getSortCompareFn();return n&&e.sort(n),e},getSortCompareFn:function(t){void 0===t&&(t=!1);var e,n=this.config.data_order,r=/asc/i.test(n),i=/desc/i.test(n);if(r||i){var a=function(t,e){return t+Math.abs(e.value)};e=function(e,n){var i=e.values.reduce(a,0),o=n.values.reduce(a,0);return t?r?i-o:o-i:r?o-i:i-o}}else za(n)&&(e=n.bind(this.api));return e||null},filterByX:function(t,e){return go(t.map((function(t){return t.values}))).filter((function(t){return t.x-e==0}))},filterRemoveNull:function(t){var e=this;return t.filter((function(t){return Da(e.getBaseValue(t))}))},filterByXDomain:function(t,e){return t.map((function(t){return{id:t.id,id_org:t.id_org,values:t.values.filter((function(t){return e[0]<=t.x&&t.x<=e[1]}))}}))},hasDataLabel:function(){var t=this.config.data_labels;return Ba(t)&&t||Va(t)&&Ha(t)},getDataIndexFromEvent:function(t){var e=this.config,n=this.state,r=n.inputType,i=n.eventReceiver,a=i.coords,o=i.rect,s=e.axis_rotated,u="touch"===r&&t.changedTouches?t.changedTouches[0]:t;return oo(a,s?u.clientY-o.top:u.clientX-o.left,0,a.length-1,s)},getDataLabelLength:function(t,e,n){var r=this,i=[0,0];return r.$el.chart.select("svg").selectAll(".dummy").data([t,e]).enter().append("text").text((function(t){return r.dataLabelFormat(t.id)(t)})).each((function(t,e){i[e]=1.3*this.getBoundingClientRect()[n]})).remove(),i},isNoneArc:function(t){return this.hasTarget(this.data.targets,t.id)},isArc:function(t){return"data"in t&&this.hasTarget(this.data.targets,t.data.id)},findSameXOfValues:function(t,e){var n,r=t[e].x,i=[];for(n=e-1;n>=0&&r===t[n].x;n--)i.push(t[n]);for(n=e;n<t.length&&r===t[n].x;n++)i.push(t[n]);return i},findClosestFromTargets:function(t,e){var n=this,r=t.map((function(t){return n.findClosest(t.values,e)}));return n.findClosest(r,e)},findClosest:function(t,e){var n,r=this,i=r.config,a=r.$el.main,o=t.filter((function(t){return t&&Da(t.value)})),s=i.point_sensitivity;return o.filter((function(t){return r.isBarType(t.id)})).forEach((function(t){var e=a.select("."+La.bars+r.getTargetSelectorSuffix(t.id)+" ."+La.bar+"-"+t.index).node();!n&&r.isWithinBar(e)&&(n=t)})),o.filter((function(t){return!r.isBarType(t.id)})).forEach((function(t){var i=r.dist(t,e);i<s&&(s=i,n=t)})),n},dist:function(t,e){var n=this,r=n.config.axis_rotated,i=n.scale,a=r?1:0,o=r?0:1,s=n.circleY(t,t.index),u=(i.zoom||i.x)(t.x);return Math.sqrt(Math.pow(u-e[a],2)+Math.pow(s-e[o],2))},convertValuesToStep:function(t){var e=this.axis,n=this.config.line_step_type,r=!!e&&e.isCategorized(),i=Wa(t)?t.concat():[t];if(!r&&!/step\-(after|before)/.test(n))return t;var a=i[0],o=i[i.length-1],s=a.id,u=a.x;return i.unshift({x:--u,value:a.value,id:s}),r&&"step-after"===n&&i.unshift({x:--u,value:a.value,id:s}),u=o.x,i.push({x:++u,value:o.value,id:s}),r&&"step-before"===n&&i.push({x:++u,value:o.value,id:s}),i},convertValuesToRange:function(t){var e=Wa(t)?t.concat():[t],n=[];return e.forEach((function(t){var e=t.x,r=t.id;n.push({x:e,id:r,value:t.value[0]}),n.push({x:e,id:r,value:t.value[2]})})),n},updateDataAttributes:function(t,e){var n=this.config["data_"+t];return ja(e)||(Object.keys(e).forEach((function(t){n[t]=e[t]})),this.redraw({withLegend:!0})),n},getRangedData:function(t,e,n){void 0===e&&(e=""),void 0===n&&(n="areaRange");var r=null==t?void 0:t.value;if(Wa(r)){var i={areaRange:["high","mid","low"],candlestick:["open","high","low","close","volume"]}[n].indexOf(e);return i>=0&&r?r[i]:void 0}return r?r[e]:r},getRatio:function(t,e,n){void 0===n&&(n=!1);var r=this,i=r.config,a=r.state,o=r.api,s=0;if(e&&o.data.shown().length)if(s=e.ratio||e.value,"arc"===t)if(r.pie.padAngle()())s=e.value/r.getTotalDataSum(!0);else{var u=i.gauge_fullCircle?r.getArcLength():-2*r.getStartAngle(),c=r.hasType("gauge")?u:2*Math.PI;s=(e.endAngle-e.startAngle)/c}else if("index"===t){var l=o.data.values.bind(o),f=this.getTotalPerIndex();if(a.hiddenTargetIds.length){var h=l(a.hiddenTargetIds,!1);h.length&&(h=h.reduce((function(t,e){return t.map((function(t,n){return(Fa(t)?t:0)+e[n]}))})),f=f.map((function(t,e){return t-h[e]})))}e.ratio=Fa(e.value)&&f&&f[e.index]>0?e.value/f[e.index]:0,s=e.ratio}else if("radar"===t)s=parseFloat(Math.max(e.value,0)+"")/a.current.dataMax*i.radar_size_ratio;else if("bar"===t){var d=r.getYScaleById.bind(r)(e.id).domain().reduce((function(t,e){return e-t}));s=0===d?0:Math.abs(e.value)/d}return n&&s?100*s:s},updateDataIndexByX:function(t){var e=t.reduce((function(t,e,n){return t[+e.x]=n,t}),{});this.data.targets.forEach((function(t){t.values.forEach((function(t,n){var r=e[+t.x];void 0===r&&(r=n),t.index=r}))}))},isBubbleZType:function(t){return this.isBubbleType(t)&&(qa(t.value)&&("z"in t.value||"y"in t.value)||Wa(t.value)&&2===t.value.length)},getDataById:function(t){var e,n=this.cache.get(t)||this.api.data(t);return null!=(e=null==n?void 0:n[0])?e:n}},fs={load:function(t,e){var n,r=this,i=e.append,a=t;a&&(e.filter&&(a=a.filter(e.filter)),(e.type||e.types)&&a.forEach((function(t){var n,i=(null==(n=e.types)?void 0:n[t.id])||e.type;r.setTargetType(t.id,i)})),r.data.targets.forEach((function(t){for(var e=0;e<a.length;e++)if(t.id===a[e].id){t.values=i?t.values.concat(a[e].values):a[e].values,a.splice(e,1);break}})),r.data.targets=r.data.targets.concat(a)),r.updateTargets(r.data.targets),r.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),r.updateTypesElements(),null==(n=e.done)||n.call(r.api)},loadFromArgs:function(t){var e=this;if(e.config){e.cache.reset();var n=t.data||e.convertData(t,(function(n){return e.load(e.convertDataToTargets(n),t)}));t.append&&(n.__append__=!0),n&&e.load(e.convertDataToTargets(n),t)}},unload:function(t,e){var n=this,r=n.state,i=n.$el,a=n.$T,o=e,s=t;if(n.cache.reset(),o||(o=function(){}),s=s.filter((function(t){return n.hasTarget(n.data.targets,t)})),s&&0!==s.length){var u=i.svg.selectAll(s.map((function(t){return n.selectorTarget(t)})));a(u).style("opacity","0").remove().call(Ja,o),s.forEach((function(t){r.withoutFadeIn[t]=!1,i.legend&&i.legend.selectAll("."+La.legendItem+n.getTargetSelectorSuffix(t)).remove(),n.data.targets=n.data.targets.filter((function(e){return e.id!==t}))})),n.updateTypesElements()}else o()}},hs=function(t){return function(){return t}};function ds(t,e){var n=e.sourceEvent,r=e.subject,i=e.target,a=e.identifier,o=e.active,s=e.x,u=e.y,c=e.dx,l=e.dy,f=e.dispatch;Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:a,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:f}})}function gs(t){return!t.ctrlKey&&!t.button}function ps(){return this.parentNode}function vs(t,e){return null==e?{x:t.x,y:t.y}:e}function ys(){return navigator.maxTouchPoints||"ontouchstart"in this}function xs(){var t,e,n,r,i=gs,a=ps,o=vs,s=ys,u={},c=Gn("start","drag","end"),l=0,f=0;function h(t){t.on("mousedown.drag",d).filter(s).on("touchstart.drag",v).on("touchmove.drag",y,Hn).on("touchend.drag touchcancel.drag",x).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(o,s){if(!r&&i.call(this,o,s)){var u=_(this,a.call(this,o,s),o,s,"mouse");u&&(Ln(o.view).on("mousemove.drag",g,Wn).on("mouseup.drag",p,Wn),Kn(o.view),qn(o),n=!1,t=o.clientX,e=o.clientY,u("start",o))}}function g(r){if(Zn(r),!n){var i=r.clientX-t,a=r.clientY-e;n=i*i+a*a>f}u.mouse("drag",r)}function p(t){Ln(t.view).on("mousemove.drag mouseup.drag",null),Jn(t.view,n),Zn(t),u.mouse("end",t)}function v(t,e){if(i.call(this,t,e)){var n,r,o=t.changedTouches,s=a.call(this,t,e),u=o.length;for(n=0;n<u;++n)(r=_(this,s,t,e,o[n].identifier,o[n]))&&(qn(t),r("start",t,o[n]))}}function y(t){var e,n,r=t.changedTouches,i=r.length;for(e=0;e<i;++e)(n=u[r[e].identifier])&&(Zn(t),n("drag",t,r[e]))}function x(t){var e,n,i=t.changedTouches,a=i.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),e=0;e<a;++e)(n=u[i[e].identifier])&&(qn(t),n("end",t,i[e]))}function _(t,e,n,r,i,a){var s,f,d,g=c.copy(),p=jn(a||n,e);if(null!=(d=o.call(t,new ds("beforestart",{sourceEvent:n,target:h,identifier:i,active:l,x:p[0],y:p[1],dx:0,dy:0,dispatch:g}),r)))return s=d.x-p[0]||0,f=d.y-p[1]||0,function n(a,o,c){var v,y=p;switch(a){case"start":u[i]=n,v=l++;break;case"end":delete u[i],--l;case"drag":p=jn(c||o,e),v=l}g.call(a,t,new ds(a,{sourceEvent:o,subject:d,target:h,identifier:i,active:v,x:p[0]+s,y:p[1]+f,dx:p[0]-y[0],dy:p[1]-y[1],dispatch:g}),r)}}return h.filter=function(t){return arguments.length?(i="function"==typeof t?t:hs(!!t),h):i},h.container=function(t){return arguments.length?(a="function"==typeof t?t:hs(t),h):a},h.subject=function(t){return arguments.length?(o="function"==typeof t?t:hs(t),h):o},h.touchable=function(t){return arguments.length?(s="function"==typeof t?t:hs(!!t),h):s},h.on=function(){var t=c.on.apply(c,arguments);return t===c?h:t},h.clickDistance=function(t){return arguments.length?(f=(t=+t)*t,h):Math.sqrt(f)},h}ds.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var _s={selectRectForSingle:function(t,e,n){var r=this,i=r.config,a=r.$el.main,o=i.data_selection_enabled,s=i.data_selection_grouped,u=i.data_selection_isselectable,c=i.tooltip_grouped,l=r.getAllValuesOnIndex(n);c&&(r.showTooltip(l,t),null==r.showGridFocus||r.showGridFocus(l),!o||s)||a.selectAll("."+La.shape+"-"+n).each((function(){Ln(this).classed(La.EXPANDED,!0),o&&e.style("cursor",s?"pointer":null),c||(null==r.hideGridFocus||r.hideGridFocus(),r.hideTooltip(),s||r.setExpand(n))})).filter((function(t){return r.isWithinShape(this,t)})).call((function(i){var a,l=i.data();o&&(s||null!=(a=u)&&a.bind(r.api)(l))&&e.style("cursor","pointer"),c||(r.showTooltip(l,t),null==r.showGridFocus||r.showGridFocus(l),null==r.unexpandCircles||r.unexpandCircles(),i.each((function(t){return r.setExpand(n,t.id)})))}))},setExpand:function(t,e,n){var r=this,i=r.config;r.$el.circle&&i.point_focus_expand_enabled&&r.expandCircles(t,e,n),r.expandBarTypeShapes(!0,t,e,n)},expandBarTypeShapes:function(t,e,n,r){void 0===t&&(t=!0);var i=this;["bar","candlestick"].filter((function(t){return i.$el[t]})).forEach((function(a){r&&i.$el[a].classed(La.EXPANDED,!1),i.getShapeByIndex(a,e,n).classed(La.EXPANDED,t)}))},setOverOut:function(t,e){var n=this,r=n.config,i=n.state.hasRadar,a=n.$el.main,o=qa(e);if(o||-1!==e){var s=r[t?"data_onover":"data_onout"].bind(n.api);if(r.color_onover&&n.setOverColor(t,e,o),o)s(e,a.select("."+La.arc+n.getTargetSelectorSuffix(e.id)).node());else if(r.tooltip_grouped)t&&(r.point_focus_only&&i?n.showCircleFocus(n.getAllValuesOnIndex(e,!0)):n.setExpand(e,null,!0)),n.isMultipleX()||a.selectAll("."+La.shape+"-"+e).each((function(t){s(t,this)}));else{var u=n.cache.get(Uo)||[],c=a.selectAll("."+La.shape+"-"+e).filter((function(t){return n.isWithinShape(this,t)}));c.each((function(t){var e=this;(0===u.length||u.every((function(t){return t!==e})))&&(s(t,this),u.push(this))})),u.length>0&&c.empty()&&(s=r.data_onout.bind(n.api),u.forEach((function(t){return s(Ln(t).datum(),t)})),u=[]),n.cache.add(Uo,u)}}},callOverOutForTouch:function(t){var e=this,n=e.cache.get(Yo);(qa(t)&&n?t.id!==n.id:t!==n)&&((n||Fa(n))&&e.setOverOut(!1,n),(t||Fa(t))&&e.setOverOut(!0,t),e.cache.add(Yo,t))},getDraggableSelection:function(){var t=this,e=t.config,n=t.state;return e.interaction_enabled&&e.data_selection_draggable&&t.drag?xs().on("drag",(function(e){n.event=e,t.drag(no(e,this))})).on("start",(function(e){n.event=e,t.dragstart(no(e,this))})).on("end",(function(e){n.event=e,t.dragend()})):function(){}},dispatchEvent:function(t,e,n){var r=this,i=r.config,a=r.state,o=a.eventReceiver,s=a.hasAxis,u=a.hasRadar,c=r.$el,l=c.eventRect,f=c.arcs,h=c.radar,d=r.isMultipleX(),g=(u?h.axes.select("."+La.axis+"-"+e+" text"):l||f.selectAll("."+La.target+" path").filter((function(t,n){return n===e}))).node(),p=g.getBoundingClientRect(),v=p.width,y=p.left,x=p.top;if(s&&!u&&!d){var _=o.coords[e];v=_.w,y+=_.x,x+=_.y}var m=y+(n?n[0]:0)+(d||i.axis_rotated?0:v/2),b=x+(n?n[1]:0);_o[/^(mouse|click)/.test(t)?"mouse":"touch"](g,t,{screenX:m,screenY:b,clientX:m,clientY:b})},setDragStatus:function(t){this.state.dragging=t},unbindZoomEvent:function(){var t,e=this.$el,n=e.eventRect,r=e.zoomResetBtn;n.on(".zoom",null).on(".drag",null),null==(t=r)||t.style("display","none")}},ms={generateClass:function(t,e){return" "+t+" "+(t+this.getTargetSelectorSuffix(e))},getClass:function(t,e){var n=this,r=/s$/.test(t),i=/^(area|arc|line)s?$/.test(t),a=r?"id":"index";return function(o){var s=o.data||o;return((e?n.generateClass(La[r?"shapes":"shape"],s[a]):"")+n.generateClass(La[t],s[i?"id":a])).trim()}},getChartClass:function(t){var e=this;return function(n){return La["chart"+t]+e.classTarget((n.data?n.data:n).id)}},generateExtraLineClass:function(){var t=this.config.line_classes||[],e=[];return function(n){var r,i=n.id||(null==(r=n.data)?void 0:r.id)||n;return e.indexOf(i)<0&&e.push(i),t[e.indexOf(i)%t.length]}},classRegion:function(t,e){return this.generateClass(La.region,e)+" "+("class"in t?t.class:"")},classTarget:function(t){var e=this.config.data_classes[t],n="";return e&&(n=" "+La.target+"-"+e),this.generateClass(La.target,t)+n},classFocus:function(t){return this.classFocused(t)+this.classDefocused(t)},classFocused:function(t){return" "+(this.state.focusedTargetIds.indexOf(t.id)>=0?La.focused:"")},classDefocused:function(t){return" "+(this.state.defocusedTargetIds.indexOf(t.id)>=0?La.defocused:"")},getTargetSelectorSuffix:function(t){return(t||0===t?"-"+t:"").replace(/([\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\])/g,"-")},selectorTarget:function(t,e){var n=e||"",r=this.getTargetSelectorSuffix(t);return n+"."+(La.target+r)+", "+n+"."+(La.circles+r)},selectorTargets:function(t,e){var n=this,r=t||[];return r.length?r.map((function(t){return n.selectorTarget(t,e)})):null},selectorLegend:function(t){return"."+(La.legendItem+this.getTargetSelectorSuffix(t))},selectorLegends:function(t){var e=this;return null!=t&&t.length?t.map((function(t){return e.selectorLegend(t)})):null}};function bs(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ws(t,e){return ws=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},ws(t,e)}function Ts(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,ws(t,e)}function As(t){return As=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},As(t)}function Ss(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function ks(t,e,n){return ks=Ss()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&ws(i,n.prototype),i},ks.apply(null,arguments)}function Es(t){var e="function"==typeof Map?new Map:void 0;return Es=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return ks(t,arguments,As(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ws(r,t)},Es(t)}function Ms(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Os(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Os(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Os(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var Cs=function(t){function e(e,n){var r;if(void 0===n&&(n=Ps),r=t.call(this)||this,Object.defineProperties(bs(r),{_intern:{value:new Map},_key:{value:n}}),null!=e)for(var i,a=Ms(e);!(i=a()).done;){var o=i.value,s=o[0],u=o[1];r.set(s,u)}return r}Ts(e,t);var n=e.prototype;return n.get=function(e){return t.prototype.get.call(this,Rs(this,e))},n.has=function(e){return t.prototype.has.call(this,Rs(this,e))},n.set=function(e,n){return t.prototype.set.call(this,Ls(this,e),n)},n.delete=function(e){return t.prototype.delete.call(this,Is(this,e))},e}(Es(Map));Set;function Rs(t,e){var n=t._intern,r=(0,t._key)(e);return n.has(r)?n.get(r):e}function Ls(t,e){var n=t._intern,r=(0,t._key)(e);return n.has(r)?n.get(r):(n.set(r,e),e)}function Is(t,e){var n=t._intern,r=(0,t._key)(e);return n.has(r)&&(e=n.get(r),n.delete(r)),e}function Ps(t){return null!==t&&"object"==typeof t?t.valueOf():t}function Ds(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function zs(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Ns(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ns(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ns(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var Fs=Symbol("implicit");function js(){var t=new Cs,e=[],n=[],r=Fs;function i(i){var a=t.get(i);if(void 0===a){if(r!==Fs)return r;t.set(i,a=e.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new Cs;for(var r,a=zs(n);!(r=a()).done;){var o=r.value;t.has(o)||t.set(o,e.push(o)-1)}return i},i.range=function(t){return arguments.length?(n=Array.from(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return js(e,n).unknown(r)},Ds.apply(i,arguments),i}var Xs=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],Bs={getColorFromCss:function(){var t=No,e=Pn.body,n=e[t];if(!n){var r=Pn.createElement("span");r.className=La.colorPattern,r.style.display="none",e.appendChild(r);var i=In.getComputedStyle(r).backgroundImage;r.parentNode.removeChild(r),i.indexOf(";")>-1&&(n=i.replace(/url[^#]*|["'()]|(\s|%20)/g,"").split(";").map((function(t){return t.trim().replace(/[\"'\s]/g,"")})).filter(Boolean),e[t]=n)}return n},generateColor:function(){var t=this,e=t.config,n=e.data_colors,r=e.data_color,i=[],a=Ha(e.color_pattern)?e.color_pattern:js(t.getColorFromCss()||Xs).range(),o=a;if(za(e.color_tiles)){var s=e.color_tiles.bind(t.api)(),u=a.map((function(e,n){var r=e.replace(/[#\(\)\s,]/g,""),i=t.state.datetimeId+"-pattern-"+r+"-"+n;return function(t,e,n){var r=Ln(t.cloneNode(!0));return r.attr("id",n).insert("rect",":first-child").attr("width",r.attr("width")).attr("height",r.attr("height")).style("fill",e),{id:n,node:r.node()}}(s[n%s.length],e,i)}));a=u.map((function(t){return"url(#"+t.id+")"})),t.patterns=u}return function(s){var u,c,l=s.id||(null==(u=s.data)?void 0:u.id)||s,f=t.isTypeOf(l,["line","spline","step"])||!e.data_types[l];return za(n[l])?c=n[l].bind(t.api)(s):n[l]?c=n[l]:(i.indexOf(l)<0&&i.push(l),c=f?o[i.indexOf(l)%o.length]:a[i.indexOf(l)%a.length],n[l]=c),za(r)?r.bind(t.api)(c,s):c}},generateLevelColor:function(){var t=this.config,e=t.color_pattern,n=t.color_threshold,r="value"===n.unit,i=n.max||100,a=n.values&&n.values.length?n.values:[];return Ha(n)?function(t){for(var n=r?t:100*t/i,o=e[e.length-1],s=0,u=a.length;s<u;s++)if(n<=a[s]){o=e[s];break}return o}:null},generateDataLabelBackgroundColorFilter:function(){var t=this,e=t.$el,n=t.config,r=t.state,i=n.data_labels_backgroundColors;if(i){var a=[];Na(i)?a.push(""):qa(i)&&(a=Object.keys(i)),a.forEach((function(n){var a=r.datetimeId+"-labels-bg"+t.getTargetSelectorSuffix(n);e.defs.append("filter").attr("x","0").attr("y","0").attr("width","1").attr("height","1").attr("id",a).html('<feFlood flood-color="'+(""===n?i:i[n])+'" /><feComposite in="SourceGraphic"/>')}))}},setOverColor:function(t,e){var n=this,r=n.config,i=n.$el.main,a=r.color_onover,o=t?a:n.color;qa(o)?o=function(t){var e=t.id;return e in a?a[e]:n.color(e)}:Na(o)?o=function(){return a}:za(a)&&(o=o.bind(n.api)),i.selectAll(qa(e)?"."+La.arc+n.getTargetSelectorSuffix(e.id):"."+La.shape+"-"+e).style("fill",o)}},$s={getYDomainMinMax:function(t,e){var n=this,r=n.axis,i=n.config,a="min"===e,o=i.data_groups,s=n.mapToIds(t),u=n.getValuesAsIdKeyed(t);if(o.length>0){var c=n["has"+(a?"Negative":"Positive")+"ValueInTargets"](t);o.forEach((function(t){var e=t.filter((function(t){return s.indexOf(t)>=0}));if(e.length){var n=e[0],i=r.getId(n);c&&u[n]&&(u[n]=u[n].map((function(t){return(a?t<0:t>0)?t:0}))),e.filter((function(t,e){return e>0})).forEach((function(t){if(u[t]){var e=r.getId(t);u[t].forEach((function(t,r){var o=+t;e!==i||c&&(a?o>0:o<0)||(u[n][r]+=o)}))}}))}}))}return yo(e,Object.keys(u).map((function(t){return yo(e,u[t])})))},isHiddenTargetWithYDomain:function(t){var e=this;return e.state.hiddenTargetIds.some((function(n){return e.axis.getId(n)===t}))},getYDomain:function(t,e,n){var r,i=this,a=i.axis,o=i.config,s=i.scale,u="axis_"+e;if(i.isStackNormalized())return[0,100];var c=(null==(r=s)?void 0:r[e])&&"log"===s[e].type,l=t.filter((function(t){return a.getId(t.id)===e})),f=n?i.filterByXDomain(l,n):l;if(0===f.length)return i.isHiddenTargetWithYDomain(e)?s[e].domain():"y2"===e?s.y.domain():i.getYDomain(t,"y2",n);var h=o[u+"_min"],d=o[u+"_max"],g=o[u+"_center"],p=o[u+"_inverted"],v=i.hasDataLabel()&&o.axis_rotated,y=i.hasDataLabel()&&!o.axis_rotated,x=i.getYDomainMinMax(f,"min"),_=i.getYDomainMinMax(f,"max"),m=[Dn.BAR,Dn.BUBBLE,Dn.SCATTER].concat(Nn.Line).some((function(t){var e=t.indexOf("area")>-1?"area":t;return i.hasType(t,f)&&o[e+"_zerobased"]}));x=Da(h)?h:Da(d)?x<d?x:d-10:x,_=Da(d)?d:Da(h)?h<_?_:h+10:_,isNaN(x)&&(x=0),isNaN(_)&&(_=x),x===_&&(x<0?_=0:x=0);var b=x>=0&&_>=0,w=x<=0&&_<=0;(Da(h)&&b||Da(d)&&w)&&(m=!1),m&&(b&&(x=0),w&&(_=0));var T=Math.abs(_-x),A={top:.1*T,bottom:.1*T};if(Xa(g)){var S=Math.max(Math.abs(x),Math.abs(_));_=g+S,x=g-S}if(v){var k=Ya(s.y.range()),E=i.getDataLabelLength(x,_,"width").map((function(t){return t/k}));["bottom","top"].forEach((function(t,e){A[t]+=T*(E[e]/(1-E[0]-E[1]))}))}else if(y){var M=i.getDataLabelLength(x,_,"height");["bottom","top"].forEach((function(t,e){A[t]+=i.convertPixelToScale("y",M[e],T)}))}var O=o[u+"_padding"];Ha(O)&&["bottom","top"].forEach((function(t){A[t]=a.getPadding(O,t,A[t],T)})),m&&(b&&(A.bottom=x),w&&(A.top=-_));var C=c?[x,_].map((function(t){return t<0?0:t})):[x-A.bottom,_+A.top];return p?C.reverse():C},getXDomainMinMax:function(t,e){var n,r=this.config["axis_x_"+e],i=yo(e,t.map((function(t){return yo(e,t.values.map((function(t){return t.x})))}))),a=qa(r)?r.value:r;return a=Xa(a)&&null!=(n=this.axis)&&n.isTimeSeries()?bo.bind(this)(a):a,qa(r)&&r.fit&&("min"===e&&a<i||"max"===e&&a>i)&&(a=void 0),Xa(a)?a:i},getXDomainPadding:function(t,e){var n,r=this,i=r.axis,a=r.config.axis_x_padding,o=i.isTimeSeries()&&e,s=Ya(t);if(i.isCategorized()||o)n=0;else if(r.hasType("bar")){var u=r.getMaxDataCount();n=u>1?s/(u-1)/2:.5}else n=.01*s;var c=Fa(a)?{left:a,right:a}:a,l=c.left,f=void 0===l?n:l,h=c.right,d=void 0===h?n:h;if("px"===a.unit){var g=Math.abs(s+.2*s);f=i.getPadding(a,"left",n,g),d=i.getPadding(a,"right",n,g)}else{var p=s+f+d;if(o&&p){var v=s/e/p;f=f/p/v,d=d/p/v}}return{left:f,right:d}},getXDomain:function(t){var e=this,n=e.axis,r=e.scale.x,i=[e.getXDomainMinMax(t,"min"),e.getXDomainMinMax(t,"max")],a=i[0],o=void 0===a?0:a,s=i[1],u=void 0===s?0:s;if("log"!==r.type){var c=n.isCategorized(),l=n.isTimeSeries(),f=e.getXDomainPadding(i),h=i[0],d=i[1];h-d!=0||c||(l?(h=new Date(.5*h.getTime()),d=new Date(1.5*d.getTime())):(h=0===h?1:.5*h,d=0===d?-1:1.5*d)),(h||0===h)&&(o=l?new Date(h.getTime()-f.left):h-f.left),(d||0===d)&&(u=l?new Date(d.getTime()+f.right):d+f.right)}return[o,u]},updateXDomain:function(t,e,n,r,i){var a,o=this,s=o.config,u=o.org,c=o.scale,l=c.x,f=c.subX,h=s.zoom_enabled;n&&(l.domain(i||vo(o.getXDomain(t))),u.xDomain=l.domain(),h&&o.zoom.updateScaleExtent(),f.domain(l.domain()),null==(a=o.brush)||a.scale(f));if(e){var d=i||!o.brush||so(o)?u.xDomain:ro(o).map(f.invert);l.domain(d),h&&o.zoom.updateScaleExtent()}return r&&l.domain(o.trimXDomain(l.orgDomain())),l.domain()},trimXDomain:function(t){var e=this.getZoomDomain(),n=e[0],r=e[1];return t[0]<=n&&(t[1]=+t[1]+(n-t[0]),t[0]=n),r<=t[1]&&(t[0]=+t[0]-(t[1]-r),t[1]=r),t},getZoomDomain:function(){var t=this.config,e=this.org.xDomain,n=e[0],r=e[1];return Xa(t.zoom_x_min)&&(n=yo("min",[n,t.zoom_x_min])),Xa(t.zoom_x_max)&&(r=yo("max",[r,t.zoom_x_max])),[n,r]},convertPixelToScale:function(t,e,n){var r=this.config,i=this.state,a=r.axis_rotated;return n*(e/i["x"===t?a?"height":"width":a?"width":"height"])}};function Us(t,e,n){var r=t.config,i="axis_"+e+"_tick_format";return(r[i]?r[i]:t.defaultValueFormat)(n)}var Ys={yFormat:function(t){return Us(this,"y",t)},y2Format:function(t){return Us(this,"y2",t)},getDefaultValueFormat:function(){var t=this;return t.hasArcType()&&!t.hasType("gauge")?t.defaultArcValueFormat:t.defaultValueFormat},defaultValueFormat:function(t){return Da(t)?+t:""},defaultArcValueFormat:function(t,e){return(100*e).toFixed(1)+"%"},dataLabelFormat:function(t){var e=this.config.data_labels,n=function(t){return Da(t)?+t:""},r=n;return za(e.format)?r=e.format:Va(e.format)&&(r=e.format[t]?!0===e.format[t]?n:e.format[t]:function(){return""}),r.bind(this.api)}},Vs={initLegend:function(){var t=this,e=t.config,n=t.$el;t.legendItemTextBox={},t.state.legendHasRendered=!1,e.legend_show?(e.legend_contents_bindto||(n.legend=t.$el.svg.append("g").classed(La.legend,!0).attr("transform",t.getTranslate("legend"))),t.updateLegend()):t.state.hiddenLegendIds=t.mapToIds(t.data.targets)},updateLegend:function(t,e,n){var r=this,i=r.config,a=r.state,o=r.scale,s=r.$el,u=e||{withTransform:!1,withTransitionForTransform:!1,withTransition:!1};u.withTransition=Za(u,"withTransition",!0),u.withTransitionForTransform=Za(u,"withTransitionForTransform",!0),i.legend_contents_bindto&&i.legend_contents_template?r.updateLegendTemplate():r.updateLegendElement(t||r.mapToIds(r.data.targets),u,n),s.legend.selectAll("."+La.legendItem).classed(La.legendItemHidden,(function(t){var e=!r.isTargetToShow(t);return e&&(this.style.opacity=null),e})),r.updateScales(!1,!o.zoom),r.updateSvgSize(),r.transformAll(u.withTransitionForTransform,n),a.legendHasRendered=!0},updateLegendTemplate:function(){var t=this,e=t.config,n=t.$el,r=Ln(e.legend_contents_bindto),i=e.legend_contents_template;if(!r.empty()){var a=t.mapToIds(t.data.targets),o=[],s="";a.forEach((function(e){var n=za(i)?i.bind(t.api)(e,t.color(e),t.api.data(e)[0].values):mo(i,{COLOR:t.color(e),TITLE:e});n&&(o.push(e),s+=n)}));var u=r.html(s).selectAll((function(){return this.childNodes})).data(o);t.setLegendItem(u),n.legend=r}},updateSizeForLegend:function(t){var e=this,n=e.config,r=e.state,i=r.isLegendTop,a=r.isLegendLeft,o=r.isLegendRight,s=r.isLegendInset,u=r.current,c=t.width,l=t.height,f={top:i?e.getCurrentPaddingTop()+n.legend_inset_y+5.5:u.height-l-e.getCurrentPaddingBottom()-n.legend_inset_y,left:a?e.getCurrentPaddingLeft()+n.legend_inset_x+.5:u.width-c-e.getCurrentPaddingRight()-n.legend_inset_x+.5};e.state.margin3={top:o?0:s?f.top:u.height-l,right:NaN,bottom:0,left:o?u.width-c:s?f.left:0}},transformLegend:function(t){var e=this,n=e.$el.legend;(0,e.$T)(n,t).attr("transform",e.getTranslate("legend"))},updateLegendStep:function(t){this.state.legendStep=t},updateLegendItemWidth:function(t){this.state.legendItemWidth=t},updateLegendItemHeight:function(t){this.state.legendItemHeight=t},updateLegendItemColor:function(t,e){var n=this.$el.legend;n&&n.select("."+La.legendItem+"-"+t+" line").style("stroke",e)},getLegendWidth:function(){var t=this.state,e=t.current.width,n=t.isLegendRight,r=t.isLegendInset,i=t.legendItemWidth,a=t.legendStep;return this.config.legend_show?n||r?i*(a+1):e:0},getLegendHeight:function(){var t=this.state,e=t.current,n=t.isLegendRight,r=t.legendItemHeight,i=t.legendStep;return this.config.legend_show?n?e.height:Math.max(20,r)*(i+1):0},opacityForUnfocusedLegend:function(t){return t.classed(La.legendItemHidden)?null:"0.3"},toggleFocusLegend:function(t,e){var n=this,r=n.$el.legend,i=n.$T,a=n.mapToTargetIds(t);r&&i(r.selectAll("."+La.legendItem).filter((function(t){return a.indexOf(t)>=0})).classed(La.legendItemFocused,e)).style("opacity",(function(){return e?null:n.opacityForUnfocusedLegend.call(n,Ln(this))}))},revertLegend:function(){var t=this.$el.legend,e=this.$T;t&&e(t.selectAll("."+La.legendItem).classed(La.legendItemFocused,!1)).style("opacity",null)},showLegend:function(t){var e=this,n=e.config,r=e.$el,i=e.$T;n.legend_show||(n.legend_show=!0,r.legend?r.legend.style("visibility",null):e.initLegend(),e.state.legendHasRendered||e.updateLegend()),e.removeHiddenLegendIds(t),i(r.legend.selectAll(e.selectorLegends(t)).style("visibility",null)).style("opacity",null)},hideLegend:function(t){var e=this,n=e.config,r=e.$el.legend;n.legend_show&&Ga(t)&&(n.legend_show=!1,r.style("visibility","hidden")),e.addHiddenLegendIds(t),r.selectAll(e.selectorLegends(t)).style("opacity","0").style("visibility","hidden")},getLegendItemTextBox:function(t,e){var n,r=this,i=r.cache,a=r.state,o=Bo;return t&&((n=!a.redrawing&&i.get(o)||{})[t]||(n[t]=r.getTextRect(e,La.legendItem),i.add(o,n)),n=n[t]),n},setLegendItem:function(t){var e=this,n=e.api,r=e.config,i=e.state,a="touch"===i.inputType,o=e.hasType("gauge");t.attr("class",(function(t){var n=Ln(this);return(!n.empty()&&n.attr("class")||"")+e.generateClass(La.legendItem,t)})).style("visibility",(function(t){return e.isLegendToShow(t)?null:"hidden"})),r.interaction_enabled&&(t.style("cursor","pointer").on("click",(function(t,i){Ka(r.legend_item_onclick,n,i)||(t.altKey?(n.hide(),n.show(i)):(n.toggle(i),Ln(this).classed(La.legendItemFocused,!1))),a&&e.hideTooltip()})),a||t.on("mouseout",(function(t,i){Ka(r.legend_item_onout,n,i)||(Ln(this).classed(La.legendItemFocused,!1),o&&e.undoMarkOverlapped(e,"."+La.gaugeValue),e.api.revert())})).on("mouseover",(function(t,a){Ka(r.legend_item_onover,n,a)||(Ln(this).classed(La.legendItemFocused,!0),o&&e.markOverlapped(a,e,"."+La.gaugeValue),!i.transiting&&e.isTargetToShow(a)&&n.focus(a))})))},updateLegendElement:function(t,e){var n,r,i,a=this,o=a.config,s=a.state,u=a.$el.legend,c=a.$T,l=o.legend_item_tile_width+5,f=0,h=0,d=0,g={},p={},v={},y=[0],x={},_=0,m=s.isLegendRight||s.isLegendInset,b=t.filter((function(t){return!Xa(o.data_names[t])||null!==o.data_names[t]})),w=e.withTransition,T=function(t,e,n){var r,i=n===b.length-1,u=a.getLegendItemTextBox(e,t),c=u.width+l+(i&&!m?0:10)+o.legend_padding,w=u.height+4,T=m?w:c,A=m?a.getLegendHeight():a.getLegendWidth(),S=function(t,e){e||(r=(A-d-T)/2)<10&&(r=(A-T)/2,d=0,_++),x[t]=_,y[_]=s.isLegendInset?10:r,g[t]=d,d+=T};if(0===n&&(d=0,_=0,f=0,h=0),o.legend_show&&!a.isLegendToShow(e))return p[e]=0,v[e]=0,x[e]=0,void(g[e]=0);p[e]=c,v[e]=w,(!f||c>=f)&&(f=c),(!h||w>=h)&&(h=w);var k=m?h:f;o.legend_equally?(Object.keys(p).forEach((function(t){return p[t]=f})),Object.keys(v).forEach((function(t){return v[t]=h})),(r=(A-k*b.length)/2)<10?(d=0,_=0,b.forEach((function(t){return S(t)}))):S(e,!0)):S(e)};s.isLegendInset&&(_=o.legend_inset_step?o.legend_inset_step:b.length,a.updateLegendStep(_)),s.isLegendRight?(n=function(t){return f*x[t]},r=function(t){return y[x[t]]+g[t]}):s.isLegendInset?(n=function(t){return f*x[t]+10},r=function(t){return y[x[t]]+g[t]}):(n=function(t){return y[x[t]]+g[t]},r=function(t){return h*x[t]});var A=function(t,e){return n(t,e)+4+o.legend_item_tile_width},S=function(t,e){return n(t,e)},k=function(t,e){return n(t,e)-2},E=function(t,e){return n(t,e)-2+o.legend_item_tile_width},M=function(t,e){return r(t,e)+9},O=function(t,e){return r(t,e)-5},C=function(t,e){return r(t,e)+4},R=-200,L=u.selectAll("."+La.legendItem).data(b).enter().append("g");a.setLegendItem(L),L.append("text").text((function(t){return Xa(o.data_names[t])?o.data_names[t]:t})).each((function(t,e){T(this,t,e)})).style("pointer-events","none").attr("x",m?A:R).attr("y",m?R:M),L.append("rect").attr("class",La.legendItemEvent).style("fill-opacity","0").attr("x",m?S:R).attr("y",m?R:O);var I=function(t){var e=a.getDataById(t);return a.levelColor?a.levelColor(e.values[0].value):a.color(e)},P=o.legend_usePoint;if(P){var D=[];L.append((function(t){var e=Ha(o.point_pattern)?o.point_pattern:[o.point_type];-1===D.indexOf(t)&&D.push(t);var n=e[D.indexOf(t)%e.length];return"rectangle"===n&&(n="rect"),Pn.createElementNS(Le.svg,"hasValidPointType"in a&&a.hasValidPointType(n)?n:"use")})).attr("class",La.legendItemPoint).style("fill",I).style("pointer-events","none").attr("href",(function(t,e,n){var r=n[e].nodeName.toLowerCase(),i=a.getTargetSelectorSuffix(t);return"use"===r?"#"+s.datetimeId+"-point"+i:void 0}))}else L.append("line").attr("class",La.legendItemTile).style("stroke",I).style("pointer-events","none").attr("x1",m?k:R).attr("y1",m?R:C).attr("x2",m?E:R).attr("y2",m?R:C).attr("stroke-width",o.legend_item_tile_height);i=u.select("."+La.legendBackground+" rect"),s.isLegendInset&&f>0&&0===i.size()&&(i=u.insert("g","."+La.legendItem).attr("class",La.legendBackground).append("rect"));var z=u.selectAll("text").data(b).text((function(t){return Xa(o.data_names[t])?o.data_names[t]:t})).each((function(t,e){T(this,t,e)}));(c(z,w).attr("x",A).attr("y",M),c(u.selectAll("rect."+La.legendItemEvent).data(b),w).attr("width",(function(t){return p[t]})).attr("height",(function(t){return v[t]})).attr("x",S).attr("y",O),P)?c(u.selectAll("."+La.legendItemPoint).data(b),w).each((function(){var t,e,n,r=this.nodeName.toLowerCase(),i=o.point_r,a="x",s="y",u=2,c=2.5;if("circle"===r){var l=.2*i;a="cx",s="cy",t=i+l,u=2*i,c=-l}else if("rect"===r){var f=2.5*i;e=f,n=f,c=3}Ln(this).attr(a,(function(t){return k(t)+u})).attr(s,(function(t){return C(t)-c})).attr("r",t).attr("width",e).attr("height",n)})):c(u.selectAll("line."+La.legendItemTile).data(b),w).style("stroke",I).attr("x1",k).attr("y1",C).attr("x2",E).attr("y2",C);i&&c(i,w).attr("height",a.getLegendHeight()-12).attr("width",f*(_+1)+10),a.updateLegendItemWidth(f),a.updateLegendItemHeight(h),a.updateLegendStep(_)}},Gs={redraw:function(t){var e;void 0===t&&(t={});var n=this,r=n.config,i=n.state,a=n.$el,o=a.main;i.redrawing=!0;var s=n.filterTargetsToShow(n.data.targets),u=t,c=u.flow,l=u.initializing,f=n.getWithOption(t),h=f.Transition?r.transition_duration:0,d=f.TransitionForExit?h:0,g=f.TransitionForAxis?h:0,p=null==(e=n.axis)?void 0:e.generateTransitions(g);n.updateSizes(l),f.Legend&&r.legend_show?(t.withTransition=!!h,n.updateLegend(n.mapToIds(n.data.targets),t,p)):f.Dimension&&n.updateDimension(!0),n.hasArcType()&&!i.hasRadar||n.updateCircleY&&(n.circleY=n.updateCircleY()),i.hasAxis?(n.axis.redrawAxis(s,f,p,c,l),r.data_empty_label_text&&o.select("text."+La.text+"."+La.empty).attr("x",i.width/2).attr("y",i.height/2).text(r.data_empty_label_text).style("display",s.length?"none":null),n.hasGrid()&&n.updateGrid(),r.regions.length&&n.updateRegion(),["bar","candlestick","line","area"].forEach((function(t){var e=co(t);(/^(line|area)$/.test(t)&&n.hasTypeOf(e)||n.hasType(t))&&n["update"+e](f.TransitionForExit)})),a.text&&o.selectAll("."+La.selectedCircles).filter(n.isBarType.bind(n)).selectAll("circle").remove(),r.interaction_enabled&&!c&&f.EventRect&&(n.redrawEventRect(),null==n.bindZoomEvent||n.bindZoomEvent())):(a.arcs&&n.redrawArc(h,d,f.Transform),a.radar&&n.redrawRadar()),i.resizing||!n.hasPointType()&&!i.hasRadar||n.updateCircle(),n.hasDataLabel()&&!n.hasArcType(null,["radar"])&&n.updateText(),null==n.redrawTitle||n.redrawTitle(),l&&n.updateTypesElements(),n.generateRedrawList(s,c,h,f.Subchart),n.callPluginHook("$redraw",t,h)},generateRedrawList:function(t,e,n,r){var i=this,a=i.config,o=i.state,s=i.getDrawShape();o.hasAxis&&a.subchart_show&&i.redrawSubchart(r,n,s);var u=e&&i.generateFlow({targets:t,flow:e,duration:e.duration,shape:s,xv:i.xv.bind(i)}),c=(n||u)&&wo(),l=i.getRedrawList(s,e,u,c),f=function(){u&&u(),o.redrawing=!1,Ka(a.onrendered,i.api)};if(f)if(c&&l.length){var h=qo();Ki().duration(n).each((function(){l.reduce((function(t,e){return t.concat(e)}),[]).forEach((function(t){return h.add(t)}))})).call(h,f)}else o.transiting||f();i.mapToIds(i.data.targets).forEach((function(t){o.withoutFadeIn[t]=!0}))},getRedrawList:function(t,e,n,r){var i=this,a=i.config,o=i.state,s=o.hasAxis,u=o.hasRadar,c=i.$el.grid,l=t.pos,f=l.cx,h=l.cy,d=l.xForText,g=l.yForText,p=[];return s&&((a.grid_x_lines.length||a.grid_y_lines.length)&&p.push(i.redrawGrid(r)),a.regions.length&&p.push(i.redrawRegion(r)),Object.keys(t.type).forEach((function(e){var n=co(e),a=t.type[e];(/^(area|line)$/.test(e)&&i.hasTypeOf(n)||i.hasType(e))&&p.push(i["redraw"+n](a,r))})),!e&&c.main&&p.push(i.updateGridFocus())),i.hasArcType()&&!u||Ha(a.data_labels)&&!1!==a.data_labels&&p.push(i.redrawText(d,g,e,r)),!i.hasPointType()&&!u||a.point_focus_only||i.redrawCircle&&p.push(i.redrawCircle(f,h,r,n)),p},updateAndRedraw:function(t){void 0===t&&(t={});var e,n=this,r=n.config,i=n.state;t.withTransition=Za(t,"withTransition",!0),t.withTransform=Za(t,"withTransform",!1),t.withLegend=Za(t,"withLegend",!1),t.withUpdateXDomain=!0,t.withUpdateOrgXDomain=!0,t.withTransitionForExit=!1,t.withTransitionForTransform=Za(t,"withTransitionForTransform",t.withTransition),t.withLegend&&r.legend_show||(i.hasAxis&&(e=n.axis.generateTransitions(t.withTransitionForAxis?r.transition_duration:0)),n.updateScales(),n.updateSvgSize(),n.transformAll(t.withTransitionForTransform,e)),n.redraw(t,e)},redrawWithoutRescale:function(){this.redraw({withY:!1,withLegend:!0,withSubchart:!1,withEventRect:!1,withTransitionForAxis:!1})}},Hs=Math.sqrt(50),Ws=Math.sqrt(10),qs=Math.sqrt(2);function Zs(t,e,n){var r,i,a,o,s=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(o=Ks(t,e,n))||!isFinite(o))return[];if(o>0){var u=Math.round(t/o),c=Math.round(e/o);for(u*o<t&&++u,c*o>e&&--c,a=Array(i=c-u+1);++s<i;)a[s]=(u+s)*o}else{o=-o;var l=Math.round(t*o),f=Math.round(e*o);for(l/o<t&&++l,f/o>e&&--f,a=Array(i=f-l+1);++s<i;)a[s]=(l+s)/o}return r&&a.reverse(),a}function Ks(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=Hs?10:a>=Ws?5:a>=qs?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=Hs?10:a>=Ws?5:a>=qs?2:1)}function Js(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=Hs?i*=10:a>=Ws?i*=5:a>=qs&&(i*=2),e<t?-i:i}function Qs(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function tu(t){var e=t,n=t,r=t;function i(t,e,i,a){if(void 0===i&&(i=0),void 0===a&&(a=t.length),i<a){if(0!==n(e,e))return a;do{var o=i+a>>>1;r(t[o],e)<0?i=o+1:a=o}while(i<a)}return i}return 2!==t.length&&(e=function(e,n){return t(e)-n},n=Qs,r=function(e,n){return Qs(t(e),n)}),{left:i,center:function(t,n,r,a){void 0===r&&(r=0),void 0===a&&(a=t.length);var o=i(t,n,r,a-1);return o>r&&e(t[o-1],n)>-e(t[o],n)?o-1:o},right:function(t,e,i,a){if(void 0===i&&(i=0),void 0===a&&(a=t.length),i<a){if(0!==n(e,e))return a;do{var o=i+a>>>1;r(t[o],e)<=0?i=o+1:a=o}while(i<a)}return i}}}var eu=tu(Qs),nu=eu.right,ru=(eu.left,tu((function(t){return null===t?NaN:+t})).center,nu);function iu(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function au(t){return+t}var ou=[0,1];function su(t){return t}function uu(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function cu(t,e,n){var r=t[0],i=t[1],a=e[0],o=e[1];return i<r?(r=uu(i,r),a=n(o,a)):(r=uu(r,i),a=n(a,o)),function(t){return a(r(t))}}function lu(t,e,n){var r=Math.min(t.length,e.length)-1,i=Array(r),a=Array(r),o=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<r;)i[o]=uu(t[o],t[o+1]),a[o]=n(e[o],e[o+1]);return function(e){var n=ru(t,e,1,r)-1;return a[n](i[n](e))}}function fu(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function hu(){var t,e,n,r,i,a,o=ou,s=ou,u=Ur,c=su;function l(){var t,e,n,u=Math.min(o.length,s.length);return c!==su&&(t=o[0],e=o[u-1],t>e&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),r=u>2?lu:cu,i=a=null,f}function f(e){return null==e||isNaN(e=+e)?n:(i||(i=r(o.map(t),s,u)))(t(c(e)))}return f.invert=function(n){return c(e((a||(a=r(s,o.map(t),Fr)))(n)))},f.domain=function(t){return arguments.length?(o=Array.from(t,au),l()):o.slice()},f.range=function(t){return arguments.length?(s=Array.from(t),l()):s.slice()},f.rangeRound=function(t){return s=Array.from(t),u=iu,l()},f.clamp=function(t){return arguments.length?(c=!!t||su,l()):c!==su},f.interpolate=function(t){return arguments.length?(u=t,l()):u},f.unknown=function(t){return arguments.length?(n=t,f):n},function(n,r){return t=n,e=r,l()}}function du(){return hu()(su,su)}var gu,pu=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function vu(t){if(!(e=pu.exec(t)))throw new Error("invalid format: "+t);var e;return new yu({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function yu(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function xu(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function _u(t){return(t=xu(Math.abs(t)))?t[1]:NaN}function mu(t,e){var n=xu(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}vu.prototype=yu.prototype,yu.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var bu={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return mu(100*t,e)},r:mu,s:function(t,e){var n=xu(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(gu=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+Array(1-a).join("0")+xu(t,Math.max(0,e+a-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function wu(t){return t}var Tu,Au,Su,ku=Array.prototype.map,Eu=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Mu(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?wu:(e=ku.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,a=[],o=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),a.push(t.substring(i-=s,i+s)),!((u+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?wu:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(ku.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"−":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=vu(t)).fill,n=t.align,f=t.sign,h=t.symbol,d=t.zero,g=t.width,p=t.comma,v=t.precision,y=t.trim,x=t.type;"n"===x?(p=!0,x="g"):bu[x]||(void 0===v&&(v=12),y=!0,x="g"),(d||"0"===e&&"="===n)&&(d=!0,e="0",n="=");var _="$"===h?i:"#"===h&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",m="$"===h?a:/[%p]/.test(x)?u:"",b=bu[x],w=/[defgprs%]/.test(x);function T(t){var i,a,u,h=_,T=m;if("c"===x)T=b(t)+T,t="";else{var A=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:b(Math.abs(t),v),y&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),A&&0==+t&&"+"!==f&&(A=!1),h=(A?"("===f?f:c:"-"===f||"("===f?"":f)+h,T=("s"===x?Eu[8+gu/3]:"")+T+(A&&"("===f?")":""),w)for(i=-1,a=t.length;++i<a;)if(48>(u=t.charCodeAt(i))||u>57){T=(46===u?o+t.slice(i+1):t.slice(i))+T,t=t.slice(0,i);break}}p&&!d&&(t=r(t,1/0));var S=h.length+t.length+T.length,k=S<g?Array(g-S+1).join(e):"";switch(p&&d&&(t=r(k+t,k.length?g-T.length:1/0),k=""),n){case"<":t=h+t+T+k;break;case"=":t=h+k+t+T;break;case"^":t=k.slice(0,S=k.length>>1)+h+t+T+k.slice(S);break;default:t=k+h+t+T}return s(t)}return v=void 0===v?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),T.toString=function(){return t+""},T}return{format:f,formatPrefix:function(t,e){var n=f(((t=vu(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(_u(e)/3))),i=Math.pow(10,-r),a=Eu[8+r/3];return function(t){return n(i*t)+a}}}}function Ou(t,e,n,r){var i,a=Js(t,e,n);switch((r=vu(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(_u(e)/3)))-_u(Math.abs(t)))}(a,o))||(r.precision=i),Su(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,_u(e)-_u(t))+1}(a,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-_u(Math.abs(t)))}(a))||(r.precision=i-2*("%"===r.type))}return Au(r)}function Cu(t){var e=t.domain;return t.ticks=function(t){var n=e();return Zs(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return Ou(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,a=e(),o=0,s=a.length-1,u=a[o],c=a[s],l=10;for(c<u&&(i=u,u=c,c=i,i=o,o=s,s=i);l-- >0;){if((i=Ks(u,c,n))===r)return a[o]=u,a[s]=c,e(a);if(i>0)u=Math.floor(u/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;u=Math.ceil(u*i)/i,c=Math.floor(c*i)/i}r=i}return t},t}function Ru(){var t=du();return t.copy=function(){return fu(t,Ru())},Ds.apply(t,arguments),Cu(t)}function Lu(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Iu(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Pu(t){var e=1,n=t(Lu(e),Iu(e));return n.constant=function(n){return arguments.length?t(Lu(e=+n),Iu(e)):e},Cu(n)}function Du(){var t=Pu(hu());return t.copy=function(){return fu(t,Du()).constant(t.constant())},Ds.apply(t,arguments)}function zu(t,e){var n,r=0,i=(t=t.slice()).length-1,a=t[r],o=t[i];return o<a&&(n=r,r=i,i=n,n=a,a=o,o=n),t[r]=e.floor(a),t[i]=e.ceil(o),t}function Nu(t){return Math.log(t)}function Fu(t){return Math.exp(t)}function ju(t){return-Math.log(-t)}function Xu(t){return-Math.exp(-t)}function Bu(t){return isFinite(t)?+("1e"+t):t<0?0:t}function $u(t){return function(e,n){return-t(-e,n)}}function Uu(t){var e,n,r=t(Nu,Fu),i=r.domain,a=10;function o(){return e=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}(a),n=function(t){return 10===t?Bu:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}(a),i()[0]<0?(e=$u(e),n=$u(n),t(ju,Xu)):t(Nu,Fu),r}return r.base=function(t){return arguments.length?(a=+t,o()):a},r.domain=function(t){return arguments.length?(i(t),o()):i()},r.ticks=function(t){var r=i(),o=r[0],s=r[r.length-1],u=s<o;if(u){var c=[s,o];o=c[0],s=c[1]}var l,f,h=e(o),d=e(s),g=null==t?10:+t,p=[];if(!(a%1)&&d-h<g){if(h=Math.floor(h),d=Math.ceil(d),o>0){for(;h<=d;++h)for(l=1;l<a;++l)if(!((f=h<0?l/n(-h):l*n(h))<o)){if(f>s)break;p.push(f)}}else for(;h<=d;++h)for(l=a-1;l>=1;--l)if(!((f=h>0?l/n(-h):l*n(h))<o)){if(f>s)break;p.push(f)}2*p.length<g&&(p=Zs(o,s,g))}else p=Zs(h,d,Math.min(d-h,g)).map(n);return u?p.reverse():p},r.tickFormat=function(t,i){if(null==t&&(t=10),null==i&&(i=10===a?"s":","),"function"!=typeof i&&(a%1||null!=(i=vu(i)).precision||(i.trim=!0),i=Au(i)),t===1/0)return i;var o=Math.max(1,a*t/r.ticks().length);return function(t){var r=t/n(Math.round(e(t)));return r*a<a-.5&&(r*=a),r<=o?i(t):""}},r.nice=function(){return i(zu(i(),{floor:function(t){return n(Math.floor(e(t)))},ceil:function(t){return n(Math.ceil(e(t)))}}))},r}function Yu(){var t=Uu(hu()).domain([1,10]);return t.copy=function(){return fu(t,Yu()).base(t.base())},Ds.apply(t,arguments),t}!function(t){Tu=Mu(t),Au=Tu.format,Su=Tu.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});var Vu=s((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));Vu.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?s((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):Vu:null};var Gu=Vu,Hu=(Vu.range,s((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*u)}),(function(t,e){return(e-t)/u}),(function(t){return t.getUTCSeconds()}))),Wu=Hu,qu=(Hu.range,s((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*u)}),(function(t,e){t.setTime(+t+e*c)}),(function(t,e){return(e-t)/c}),(function(t){return t.getMinutes()}))),Zu=qu,Ku=(qu.range,s((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*u-t.getMinutes()*c)}),(function(t,e){t.setTime(+t+e*l)}),(function(t,e){return(e-t)/l}),(function(t){return t.getHours()}))),Ju=Ku,Qu=(Ku.range,s((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}))),tc=Qu,ec=(Qu.range,s((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*c)}),(function(t,e){return(e-t)/c}),(function(t){return t.getUTCMinutes()}))),nc=ec,rc=(ec.range,s((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*l)}),(function(t,e){return(e-t)/l}),(function(t){return t.getUTCHours()}))),ic=rc,ac=(rc.range,s((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}))),oc=ac;ac.range;function sc(t,e,n,r,i,a){var o=[[Wu,1,u],[Wu,5,5e3],[Wu,15,15e3],[Wu,30,3e4],[a,1,c],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,l],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,f],[r,2,1728e5],[n,1,h],[e,1,d],[e,3,7776e6],[t,1,g]];function s(e,n,r){var i=Math.abs(n-e)/r,a=tu((function(t){return t[2]})).right(o,i);if(a===o.length)return t.every(Js(e/g,n/g,r));if(0===a)return Gu.every(Math.max(Js(e,n,r),1));var s=o[i/o[a-1][2]<o[a][2]/i?a-1:a],u=s[0],c=s[1];return u.every(c)}return[function(t,e,n){var r=e<t;if(r){var i=[e,t];t=i[0],e=i[1]}var a=n&&"function"==typeof n.range?n:s(t,e,n),o=a?a.range(t,+e+1):[];return r?o.reverse():o},s]}var uc=sc(F,oc,v,A,ic,nc),cc=uc[0],lc=uc[1],fc=sc(z,tc,k,P,Ju,Zu),hc=fc[0],dc=fc[1];function gc(t){return new Date(t)}function pc(t){return t instanceof Date?+t:+new Date(+t)}function vc(t,e,n,r,i,a,o,s,u,c){var l=du(),f=l.invert,h=l.domain,d=c(".%L"),g=c(":%S"),p=c("%I:%M"),v=c("%I %p"),y=c("%a %d"),x=c("%b %d"),_=c("%B"),m=c("%Y");function b(t){return(u(t)<t?d:s(t)<t?g:o(t)<t?p:a(t)<t?v:r(t)<t?i(t)<t?y:x:n(t)<t?_:m)(t)}return l.invert=function(t){return new Date(f(t))},l.domain=function(t){return arguments.length?h(Array.from(t,pc)):h().map(gc)},l.ticks=function(e){var n=h();return t(n[0],n[n.length-1],null==e?10:e)},l.tickFormat=function(t,e){return null==e?b:c(e)},l.nice=function(t){var n=h();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?h(zu(n,t)):l},l.copy=function(){return fu(l,vc(t,e,n,r,i,a,o,s,u,c))},l}function yc(){return Ds.apply(vc(hc,dc,z,tc,k,P,Ju,Zu,Wu,U).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function xc(){return Ds.apply(vc(cc,lc,F,oc,v,A,ic,nc,Wu,V).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function _c(t,e,n){void 0===t&&(t="linear"),void 0===e&&(e=0),void 0===n&&(n=1);var r={linear:Ru,log:Du,_log:Yu,time:yc,utc:xc}[t]();return r.type=t,/_?log/.test(t)&&r.clamp(!0),r.range([e,n])}var mc={getXScale:function(t,e,n,r){var i=this,a=i.scale.zoom||_c(i.axis.getAxisType("x"),t,e);return i.getCustomizedScale(n?a.domain(n):a,r)},getYScale:function(t,e,n,r){var i=_c(this.axis.getAxisType(t),e,n);return r&&i.domain(r),i},getYScaleById:function(t,e){void 0===e&&(e=!1);var n="y2"===this.axis.getId(t),r=e?n?"subY2":"subY":n?"y2":"y";return this.scale[r]},getCustomizedScale:function(t,e){var n=this,r=e||function(){return n.axis.x.tickOffset()},i=function(e,n){var i=t(e)+r();return n?i:Math.ceil(i)};for(var a in t)i[a]=t[a];return i.orgDomain=function(){return t.domain()},i.orgScale=function(){return t},n.axis.isCategorized()&&(i.domain=function(e){var n=e;return arguments.length?(t.domain(n),i):[(n=this.orgDomain())[0],n[1]+1]}),i},updateScales:function(t,e){void 0===e&&(e=!0);var n=this,r=n.axis,i=n.config,a=n.format,o=n.org,s=n.scale,u=n.state,c=u.width,l=u.height,f=u.width2,h=u.height2;if(u.hasAxis){var d,g=i.axis_rotated,p={x:g?1:0,y:g?0:l,subX:g?1:0,subY:g?0:h},v={x:g?l:c,y:g?c:1,subX:g?l:c,subY:g?f:1},y=e&&(null==(d=s.x)?void 0:d.orgDomain()),x=e&&o.xDomain;s.x=n.getXScale(p.x,v.x,y,(function(){return r.x.tickOffset()})),s.subX=n.getXScale(p.x,v.x,x,(function(t){return t%1?0:r.subX.tickOffset()})),a.xAxisTick=r.getXAxisTickFormat(),a.subXAxisTick=r.getXAxisTickFormat(!0),r.setAxis("x",s.x,i.axis_x_tick_outer,t),i.subchart_show&&r.setAxis("subX",s.subX,i.axis_x_tick_outer,t),s.y=n.getYScale("y",p.y,v.y,s.y?s.y.domain():i.axis_y_default),s.subY=n.getYScale("y",p.subY,v.subY,s.subY?s.subY.domain():i.axis_y_default),r.setAxis("y",s.y,i.axis_y_tick_outer,t),i.axis_y2_show&&(s.y2=n.getYScale("y2",p.y,v.y,s.y2?s.y2.domain():i.axis_y2_default),s.subY2=n.getYScale("y2",p.subY,v.subY,s.subY2?s.subY2.domain():i.axis_y2_default),r.setAxis("y2",s.y2,i.axis_y2_tick_outer,t))}else null==n.updateArc||n.updateArc()},xx:function(t){var e=this.config,n=this.scale,r=n.x,i=n.zoom,a=e.zoom_enabled&&i?i:r;return t?a(Da(t.x)?t.x:t):null},xv:function(t){var e=this,n=e.axis,r=e.config,i=e.scale,a=i.x,o=i.zoom,s=r.zoom_enabled&&o?o:a,u=e.getBaseValue(t);return n.isTimeSeries()?u=bo.call(e,u):n.isCategorized()&&Na(u)&&(u=r.axis_x_categories.indexOf(u)),Math.ceil(s(u))},yv:function(t){var e=this.scale,n=e.y,r=e.y2,i=t.axis&&"y2"===t.axis?r:n;return Math.ceil(i(this.getBaseValue(t)))},subxx:function(t){return t?this.scale.subX(t.x):null}};function bc(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function wc(t){this._context=t}function Tc(t){return new wc(t)}function Ac(){}function Sc(t){this._context=t}function kc(t){return new Sc(t)}function Ec(t){this._context=t}function Mc(t){return new Ec(t)}function Oc(t,e){this._basis=new wc(t),this._beta=e}wc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:bc(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:bc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Sc.prototype={areaStart:Ac,areaEnd:Ac,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:bc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Ec.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:bc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Oc.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],a=e[0],o=t[n]-i,s=e[n]-a,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*t[u]+(1-this._beta)*(i+r*o),this._beta*e[u]+(1-this._beta)*(a+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Cc=function t(e){function n(t){return 1===e?new wc(t):new Oc(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function Rc(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Lc(t,e){this._context=t,this._k=(1-e)/6}Lc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Rc(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Rc(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ic=function t(e){function n(t){return new Lc(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Pc(t,e){this._context=t,this._k=(1-e)/6}Pc.prototype={areaStart:Ac,areaEnd:Ac,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Rc(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Dc=function t(e){function n(t){return new Pc(t,e)}return n.tension=function(e){return t(+e)},n}(0);function zc(t,e){this._context=t,this._k=(1-e)/6}zc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Rc(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Nc=function t(e){function n(t){return new zc(t,e)}return n.tension=function(e){return t(+e)},n}(0),Fc=Math.abs,jc=Math.atan2,Xc=Math.cos,Bc=Math.max,$c=Math.min,Uc=Math.sin,Yc=Math.sqrt,Vc=1e-12,Gc=Math.PI,Hc=Gc/2,Wc=2*Gc;function qc(t){return t>1?0:t<-1?Gc:Math.acos(t)}function Zc(t){return t>=1?Hc:t<=-1?-Hc:Math.asin(t)}function Kc(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>Vc){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>Vc){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*c+t._x1*t._l23_2a-e*t._l12_2a)/l,o=(o*c+t._y1*t._l23_2a-n*t._l12_2a)/l}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function Jc(t,e){this._context=t,this._alpha=e}Jc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Kc(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Qc=function t(e){function n(t){return e?new Jc(t,e):new Lc(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function tl(t,e){this._context=t,this._alpha=e}tl.prototype={areaStart:Ac,areaEnd:Ac,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Kc(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var el=function t(e){function n(t){return e?new tl(t,e):new Pc(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function nl(t,e){this._context=t,this._alpha=e}nl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Kc(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var rl=function t(e){function n(t){return e?new nl(t,e):new zc(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function il(t){return t<0?-1:1}function al(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0);return(il(a)+il(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs((a*i+o*r)/(r+i)))||0}function ol(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function sl(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,i+s*e,a-s,o-s*n,a,o)}function ul(t){this._context=t}function cl(t){this._context=new ll(t)}function ll(t){this._context=t}function fl(t){return new ul(t)}function hl(t){return new cl(t)}function dl(t){this._context=t}function gl(t){var e,n,r=t.length-1,i=Array(r),a=Array(r),o=Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/a[e-1],a[e]-=n,o[e]-=n*o[e-1];for(i[r-1]=o[r-1]/a[r-1],e=r-2;e>=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)a[e]=2*t[e+1]-i[e+1];return[i,a]}function pl(t){return new dl(t)}function vl(t){this._context=t}function yl(t){return new vl(t)}function xl(t){this._context=t}function _l(t){return new xl(t)}function ml(t,e){this._context=t,this._t=e}function bl(t){return new ml(t,.5)}function wl(t){return new ml(t,0)}function Tl(t){return new ml(t,1)}ul.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:sl(this,this._t0,ol(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,sl(this,ol(this,n=al(this,t,e)),n);break;default:sl(this,this._t0,n=al(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(cl.prototype=Object.create(ul.prototype)).point=function(t,e){ul.prototype.point.call(this,e,t)},ll.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,a){this._context.bezierCurveTo(e,t,r,n,a,i)}},dl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=gl(t),i=gl(e),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],t[o],e[o]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},vl.prototype={areaStart:Ac,areaEnd:Ac,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},xl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},ml.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var Al={getDrawShape:function(){var t=this,e=t.config.axis_rotated,n=t.state.hasRadar,r={type:{},indices:{},pos:{}};if(["bar","candlestick","line","area"].forEach((function(e){var n=co(/^(bubble|scatter)$/.test(e)?"line":e);if(t.hasType(e)||t.hasTypeOf(n)||"line"===e&&(t.hasType("bubble")||t.hasType("scatter"))){var i=t.getShapeIndices(t["is"+n+"Type"]),a=t["generateDraw"+n];r.indices[e]=i,r.type[e]=a?a.bind(t)(i,!1):void 0}})),!t.hasArcType()||n){var i=n?t.radarCircleX:e?t.circleY:t.circleX,a=n?t.radarCircleY:e?t.circleX:t.circleY;r.pos={xForText:t.generateXYForText(r.indices,!0),yForText:t.generateXYForText(r.indices,!1),cx:(i||function(){}).bind(t),cy:(a||function(){}).bind(t)}}return r},getShapeIndices:function(t){var e=this,n=e.config,r=n.data_xs,i=Ha(r),a={},o=i?{}:0;return i&&ho(Object.keys(r).map((function(t){return r[t]}))).forEach((function(t){o[t]=0,a[t]={}})),e.filterTargetsToShow(e.data.targets.filter(t,e)).forEach((function(t){for(var e,i=(t.id in r?r[t.id]:""),s=i?a[i]:a,u=0;e=n.data_groups[u];u++)if(!(e.indexOf(t.id)<0))for(var c,l=0;c=e[l];l++)if(c in s){s[t.id]=s[c];break}ja(s[t.id])&&(s[t.id]=i?o[i]++:o++,s.__max__=(i?o[i]:o)-1)})),a},getIndices:function(t,e){var n=this.config.data_xs;return Ha(n)?t[n[e]]:t},getIndicesMax:function(t){return Ha(this.config.data_xs)?Object.keys(t).map((function(e){return t[e].__max__||0})).reduce((function(t,e){return t+e})):t.__max__},getShapeX:function(t,e,n){var r=this,i=r.config,a=r.scale,o=n?a.subX:a.zoom||a.x,s=i.bar_padding,u=function(t,e){return t+e},c=Va(t)&&(t._$total.length?t._$total.reduce(u)/2:0);return function(n){var i=r.getIndices(e,n.id,"getShapeX"),a=n.id in i?i[n.id]:0,l=(i.__max__||0)+1,f=0;if(Ha(n.x)){var h=o(n.x,!0);f=c?h-(t[n.id]||t._$width)+t._$total.slice(0,a+1).reduce(u)-c:h-(Fa(t)?t:t._$width)*(l/2-a)}return t&&f&&l>1&&s&&(a&&(f+=s*a),l>2?f-=(l-1)*s/2:2===l&&(f-=s/2)),f}},getShapeY:function(t){var e=this,n=e.isStackNormalized();return function(r){var i=r.value;return Fa(r)?i=r:n?i=e.getRatio("index",r,!0):e.isBubbleZType(r)&&(i=e.getBubbleZData(r.value,"y")),e.getYScaleById(r.id,t)(i)}},getShapeYMin:function(t){var e=this,n=e.scale[e.axis.getId(t)].domain()[0];return!e.isGrouped(t)&&n>0?n:0},getShapeOffsetData:function(t){var e=this,n=e.orderTargets(e.filterTargetsToShow(e.data.targets.filter(t,e))),r=e.isStackNormalized(),i=n.map((function(t){var n=t.values,i={};e.isStepType(t)&&(n=e.convertValuesToStep(n));var a=n.reduce((function(t,n){var a=+n.x;return t[a]=n,i[a]=r?e.getRatio("index",n,!0):n.value,t}),{});return{id:t.id,rowValues:n,rowValueMapByXValue:a,values:i}}));return{indexMapByTargetId:n.reduce((function(t,e,n){return t[e.id]=n,t}),{}),shapeOffsetTargets:i}},getShapeOffset:function(t,e,n){var r=this,i=r.getShapeOffsetData(t),a=i.shapeOffsetTargets,o=i.indexMapByTargetId;return function(t,i){var s=t.id,u=t.value,c=t.x,l=r.getIndices(e,s),f=r.getYScaleById(s,n),h=f(r.getShapeYMin(s)),d=+c,g=h;return a.filter((function(t){return t.id!==s})).forEach((function(t){var e=t.id,n=t.rowValueMapByXValue,r=t.rowValues,a=t.values;if(l[e]===l[s]&&o[e]<o[s]){var c,p=r[i];p&&+p.x===d||(p=n[d]),(null==(c=p)?void 0:c.value)*u>=0&&Fa(a[d])&&(g+=f(a[d])-h)}})),g}},getBarW:function(t,e,n){var r=this,i=r.config,a=r.org,o=r.scale,s=r.getMaxDataCount(),u="bar"===t&&i.data_groups.length,c=t+"_width",l=o.zoom&&!r.axis.isCategorized()?a.xDomain.map((function(t){return o.zoom(t)})).reduce((function(t,e){return Math.abs(t)+e}))/s:e.tickInterval(s),f=function(t){var e=t?i[c][t]:i[c],r=t?e.ratio:i[c+"_ratio"],a=t?e.max:i[c+"_max"],o=Fa(e)?e:n?l*r/n:0;return a&&o>a?a:o},h=f();return!u&&Va(i[c])&&(h={_$width:h,_$total:[]},r.filterTargetsToShow(r.data.targets).forEach((function(t){i[c][t.id]&&(h[t.id]=f(t.id),h._$total.push(h[t.id]||h._$width))}))),h},getShapeByIndex:function(t,e,n){var r=this.$el,i=Da(e)?"-"+e:"",a=r[t];return a=a&&!a.empty()?a.filter((function(t){return!n||t.id===n})).filter((function(t){return!Da(e)||t.index===e})):(n?r.main.selectAll("."+La[t+"s"]+this.getTargetSelectorSuffix(n)):r.main).selectAll("."+La[t]+i)},isWithinShape:function(t,e){var n,r=this,i=Ln(t);return r.isTargetToShow(e.id)?null!=r.hasValidPointType&&r.hasValidPointType(t.nodeName)?n=r.isStepType(e)?r.isWithinStep(t,r.getYScaleById(e.id)(e.value)):r.isWithinCircle(t,r.isBubbleType(e)?1.5*r.pointSelectR(e):0):"path"===t.nodeName&&(n=!i.classed(La.bar)||r.isWithinBar(t)):n=!1,n},getInterpolate:function(t){var e=this.getInterpolateType(t);return{basis:Tc,"basis-closed":kc,"basis-open":Mc,bundle:Cc,cardinal:Ic,"cardinal-closed":Dc,"cardinal-open":Nc,"catmull-rom":Qc,"catmull-rom-closed":el,"catmull-rom-open":rl,"monotone-x":fl,"monotone-y":hl,natural:pl,"linear-closed":yl,linear:_l,step:bl,"step-after":Tl,"step-before":wl}[e]},getInterpolateType:function(t){var e=this,n=e.config,r=n.spline_interpolation_type,i=e.isInterpolationType(r)?r:"cardinal";return e.isSplineType(t)?i:e.isStepType(t)?n.line_step_type:"linear"}},Sl={setContainerSize:function(){var t=this,e=t.state;e.current.width=t.getCurrentWidth(),e.current.height=t.getCurrentHeight()},getCurrentWidth:function(){return this.config.size_width||this.getParentWidth()},getCurrentHeight:function(){var t=this,e=t.config,n=e.size_height||t.getParentHeight();return n>0?n:320/(t.hasType("gauge")&&!e.gauge_fullCircle?2:1)},getCurrentPaddingTop:function(){var t=this,e=t.config,n=t.state.hasAxis,r=t.$el,i=n?e.axis_y2_axes.length:0,a=Da(e.padding_top)?e.padding_top:0;return r.title&&r.title.node()&&(a+=t.getTitlePadding()),i&&e.axis_rotated&&(a+=t.getHorizontalAxisHeight("y2")*i),a},getCurrentPaddingBottom:function(){var t=this,e=t.config,n=t.state.hasAxis,r=e.axis_rotated?"y":"x",i=n?e["axis_"+r+"_axes"].length:0;return(Da(e.padding_bottom)?e.padding_bottom:0)+(i?t.getHorizontalAxisHeight(r)*i:0)},getCurrentPaddingLeft:function(t){var e=this,n=e.config,r=e.state.hasAxis,i=n.axis_rotated,a=i?"x":"y",o=r?n["axis_"+a+"_axes"].length:0,s=r?e.getAxisWidthByAxisId(a,t):0;return(Da(n.padding_left)?n.padding_left:r&&i?n.axis_x_show?Math.max($a(s),40):1:!r||n.axis_y_show&&!n.axis_y_inner?$a(s):e.axis.getAxisLabelPosition("y").isOuter?30:1)+s*o},getCurrentPaddingRight:function(t){void 0===t&&(t=!1);var e=this,n=e.config,r=e.state.hasAxis,i=e.state.isLegendRight?e.getLegendWidth()+20:0,a=r?n.axis_y2_axes.length:0,o=r?e.getAxisWidthByAxisId("y2"):0,s=t?e.axis.getXAxisTickTextY2Overflow(10):0;return(Da(n.padding_right)?n.padding_right+1:e.axis&&n.axis_rotated?10+i:!e.axis||n.axis_y2_show&&!n.axis_y2_inner?Math.max($a(o)+i,s):Math.max(2+i+(e.axis.getAxisLabelPosition("y2").isOuter?20:0),s))+o*a},getParentRectValue:function(t){for(var e="offset"+co(t),n=this.$el.chart.node(),r=0;r<30&&n&&"BODY"!==n.tagName;){try{r=n.getBoundingClientRect()[t]}catch(t){e in n&&(r=n[e])}n=n.parentNode}var i=Pn.body[e];return r>i&&(r=i),r},getParentWidth:function(){return this.getParentRectValue("width")},getParentHeight:function(){var t=this.$el.chart.style("height"),e=0;return t&&(e=/px$/.test(t)?parseInt(t,10):this.getParentRectValue("height")),e},getSvgLeft:function(t){var e=this,n=e.config,r=e.$el,i=n.axis_rotated||!n.axis_rotated&&!n.axis_y_inner,a=n.axis_rotated?La.axisX:La.axisY,o=r.main.select("."+a).node(),s=o&&i?o.getBoundingClientRect():{right:0},u=r.chart.node().getBoundingClientRect(),c=e.hasArcType(),l=s.right-u.left-(c?0:e.getCurrentPaddingLeft(t));return l>0?l:0},updateDimension:function(t){var e,n=this,r=n.config,i=n.state.hasAxis,a=n.$el;i&&!t&&n.axis.x&&r.axis_rotated&&(null==(e=n.axis.subX)||e.create(a.axis.subX));n.updateScales(t),n.updateSvgSize(),n.transformAll(!1)},updateSvgSize:function(){var t=this,e=t.state,n=e.clip,r=e.current,i=e.hasAxis,a=e.width,o=e.height,s=t.$el.svg;if(s.attr("width",r.width).attr("height",r.height),i){var u=s.select("."+La.brush+" .overlay"),c={width:0,height:0};u.size()&&(c.width=+u.attr("width"),c.height=+u.attr("height")),s.selectAll(["#"+n.id,"#"+n.idGrid]).select("rect").attr("width",a).attr("height",o),s.select("#"+n.idXAxis).select("rect").call(t.setXAxisClipPath.bind(t)),s.select("#"+n.idYAxis).select("rect").call(t.setYAxisClipPath.bind(t)),n.idSubchart&&s.select("#"+n.idSubchart).select("rect").attr("width",a).attr("height",c.height)}},updateSizes:function(t){var e=this,n=e.config,r=e.state,i=e.$el.legend,a=n.axis_rotated,o=e.hasArcType();t||e.setContainerSize();var s={width:i?e.getLegendWidth():0,height:i?e.getLegendHeight():0};!o&&n.axis_x_show&&n.axis_x_tick_autorotate&&e.updateXAxisTickClip();var u=r.isLegendRight||r.isLegendInset?0:s.height,c=a||o?0:e.getHorizontalAxisHeight("x"),l=n.subchart_axis_x_show&&n.subchart_axis_x_tick_text_show?c:30,f=n.subchart_show&&!o?n.subchart_size_height+l:0;r.margin=!o&&a?{top:e.getHorizontalAxisHeight("y2")+e.getCurrentPaddingTop(),right:o?0:e.getCurrentPaddingRight(!0),bottom:e.getHorizontalAxisHeight("y")+u+e.getCurrentPaddingBottom(),left:f+(o?0:e.getCurrentPaddingLeft())}:{top:4+e.getCurrentPaddingTop(),right:o?0:e.getCurrentPaddingRight(!0),bottom:c+f+u+e.getCurrentPaddingBottom(),left:o?0:e.getCurrentPaddingLeft()},r.margin2=a?{top:r.margin.top,right:NaN,bottom:20+u,left:e.state.rotatedPadding.left}:{top:r.current.height-f-u,right:NaN,bottom:l+u,left:r.margin.left},r.margin3={top:0,right:NaN,bottom:0,left:0},null==e.updateSizeForLegend||e.updateSizeForLegend(s),r.width=r.current.width-r.margin.left-r.margin.right,r.height=r.current.height-r.margin.top-r.margin.bottom,r.width<0&&(r.width=0),r.height<0&&(r.height=0),r.width2=a?r.margin.left-r.rotatedPadding.left-r.rotatedPadding.right:r.width,r.height2=a?r.height:r.current.height-r.margin2.top-r.margin2.bottom,r.width2<0&&(r.width2=0),r.height2<0&&(r.height2=0);var h=e.hasType("gauge"),d=n.legend_show&&r.isLegendRight;r.arcWidth=r.width-(d?s.width+10:0),r.arcHeight=r.height-(d&&!h?0:10),h&&!n.gauge_fullCircle&&(r.arcHeight+=r.height-e.getPaddingBottomForGauge()),null==e.updateRadius||e.updateRadius(),r.isLegendRight&&o&&(r.margin3.left=r.arcWidth/2+1.1*r.radiusExpanded)}};function kl(t){return"string"==typeof t?new On([document.querySelectorAll(t)],[document.documentElement]):new On([he(t)],Mn)}var El={opacityForText:function(t){var e=this;return e.isBarType(t)&&!e.meetsLabelThreshold(Math.abs(e.getRatio("bar",t)),"bar")?"0":e.hasDataLabel?null:"0"},initText:function(){this.$el.main.select("."+La.chart).append("g").attr("class",La.chartTexts)},updateTargetsForText:function(t){var e=this,n=e.getChartClass("Text"),r=e.getClass("texts","id"),i=e.classFocus.bind(e);e.$el.main.select("."+La.chartTexts).selectAll("."+La.chartText).data(t).attr("class",(function(t){return n(t)+i(t)})).enter().append("g").style("opacity","0").attr("class",n).style("pointer-events","none").append("g").attr("class",r)},updateText:function(){var t=this,e=t.$el,n=t.$T,r=t.config,i=t.getClass("text","index"),a=e.main.selectAll("."+La.texts).selectAll("."+La.text).data(t.labelishData.bind(t));n(a.exit()).style("fill-opacity","0").remove(),e.text=a.enter().append("text").merge(a).attr("class",i).attr("text-anchor",(function(e){var n=e.value<0;if(t.isCandlestickType(e)){var i=t.getCandlestickData(e);n=!(null!=i&&i._isUp)}return r.axis_rotated?n?"end":"start":"middle"})).style("fill",t.updateTextColor.bind(t)).style("fill-opacity","0").each((function(e,n,r){var i=Ln(this),a=e.value;if(t.isBubbleZType(e))a=t.getBubbleZData(a,"z");else if(t.isCandlestickType(e)){var o=t.getCandlestickData(e);o&&(a=o.close)}a=t.dataLabelFormat(e.id)(a,e.id,n,r),Fa(a)?this.textContent=a:to(i,a)}))},updateTextColor:function(t){var e,n=this,r=n.config,i=r.data_labels_colors,a=n.isArcType(t)&&!n.isRadarType(t)?null:n.color(t);if(Na(i))e=i;else if(qa(i)){e=i[(t.data||t).id]}else za(i)&&(e=i.bind(n.api)(a,t));if(n.isCandlestickType(t)&&!za(i)){var o=n.getCandlestickData(t);if(null==o||!o._isUp){var s=r.candlestick_color_down;e=qa(s)?s[t.id]:s}}return e||a},updateTextBacgroundColor:function(t){var e=this,n=e.$el,r=e.config.data_labels_backgroundColors,i="";if(Na(r)||qa(r)){var a=Na(r)?"":e.getTargetSelectorSuffix("id"in t?t.id:t.data.id),o=n.defs.select(["filter[id*='labels-bg","']"].join(a));o.size()&&(i="url(#"+o.attr("id")+")")}return i||null},redrawText:function(t,e,n,r){var i=this,a=i.$T,o=ao(!0);return i.$el.text.style("fill",i.updateTextColor.bind(i)).attr("filter",i.updateTextBacgroundColor.bind(i)).style("fill-opacity",n?0:i.opacityForText.bind(i)).each((function(n,i){var s=a(this,!(!r||!this.getAttribute("x")),o),u=t.bind(this)(n,i),c=e.bind(this)(n,i);this.childElementCount?s.attr("transform","translate("+u+" "+c+")"):s.attr("x",u).attr("y",c)})),!0},getTextRect:function(t,e){var n=this,r=t.node?t.node():t;/text/i.test(r.tagName)||(r=r.querySelector("text"));var i=r.textContent,a=Vo+"-"+i.replace(/\W/g,"_"),o=n.cache.get(a);return o||(n.$el.svg.append("text").style("visibility","hidden").style("font",Ln(r).style("font")).classed(e,!0).text(i).call((function(t){o=io(t.node())})).remove(),n.cache.add(a,o)),o},generateXYForText:function(t,e){var n=this,r=Object.keys(t),i={},a=e?n.getXForText:n.getYForText;return n.hasType("radar")&&r.push("radar"),r.forEach((function(e){i[e]=n["generateGet"+co(e)+"Points"](t[e],!1)})),function(t,e){var r=(n.isAreaType(t)?"area":n.isBarType(t)&&"bar")||n.isCandlestickType(t)&&"candlestick"||n.isRadarType(t)&&"radar"||"line";return a.call(n,i[r](t,e),t,this)}},getCenteredTextPos:function(t,e,n){var r=this.config,i=r.axis_rotated;if(r.data_labels.centered&&this.isBarType(t)){var a=io(n),o=t.value>=0;if(i){var s=(o?e[1][1]-e[0][1]:e[0][1]-e[1][1])/2+a.width/2;return o?-s-3:s+2}var u=(o?e[0][1]-e[1][1]:e[1][1]-e[0][1])/2+a.height/2;return o?u:-u-2}return 0},getTextPos:function(t,e){var n=this.config.data_labels_position;return(t in n?n[t]:n)[e]||0},getXForText:function(t,e,n){var r=this,i=r.config,a=r.state,o=i.axis_rotated,s=t[0][0];if(r.hasType("candlestick"))o?s=r.getCandlestickData(e)._isUp?t[2][2]+4:t[2][1]-4:s+=(t[1][0]-s)/2;else if(o){var u=r.isBarType(e)?4:6;s=t[2][1]+u*(e.value<0?-1:1)}else s=r.hasType("bar")?(t[2][0]+t[0][0])/2:s;if(null===e.value)if(s>a.width){var c=io(n).width;s=a.width-c}else s<0&&(s=4);return o&&(s+=r.getCenteredTextPos(e,t,n)),s+r.getTextPos(e.id,"x")},getYForText:function(t,e,n){var r,i=this,a=i.config,o=i.state,s=a.axis_rotated,u=a.point_r,c=io(n),l=e.value,f=3;if(i.isCandlestickType(e))l=i.getCandlestickData(e),s?(r=t[0][0],r+=(t[1][0]-r)/2+f):r=l&&l._isUp?t[2][2]-f:t[2][1]+4*f;else if(s)r=(t[0][0]+t[2][0]+.6*c.height)/2;else if(r=t[2][1],Fa(u)&&u>5&&(i.isLineType(e)||i.isScatterType(e))&&(f+=a.point_r/2.3),l<0||0===l&&!o.hasPositiveValue&&o.hasNegativeValue)r+=c.height+(i.isBarType(e)?-f:f);else{var h=2*-f;i.isBarType(e)?h=-f:i.isBubbleType(e)&&(h=f),r+=h}if(null===e.value&&!s){var d=c.height;r<d?r=d:r>o.height&&(r=o.height-4)}return s||(r+=i.getCenteredTextPos(e,t,n)),r+i.getTextPos(e.id,"y")},markOverlapped:function(t,e,n){var r=e.$el.arcs.selectAll(n),i=r.filter((function(e){return e.data.id!==t})),a=r.filter((function(e){return e.data.id===t})),o=fo(a.node()),s=function(t,e){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2))};a.node()&&i.each((function(){var t=fo(this),e=Ln(this),n=s(o.e,o.f)>s(t.e,t.f)?a:e,r=Math.ceil(Math.abs(o.e-t.e))<Math.ceil(n.node().getComputedTextLength()),i=Math.ceil(Math.abs(o.f-t.f))<parseInt(a.style("font-size"),10);e.classed(La.TextOverlapping,r&&i)}))},undoMarkOverlapped:function(t,e){t.$el.arcs.selectAll(e).each((function(){kl([this,this.previousSibling]).classed(La.TextOverlapping,!1)}))},meetsLabelThreshold:function(t,e){void 0===t&&(t=0);return t>=(this.config[e+"_label_threshold"]||0)}};function Ml(t,e){void 0===t&&(t="left");var n=Fa(e);return t.indexOf("center")>-1?n?e/2:"middle":t.indexOf("right")>-1?n?e:"end":n?0:"start"}var Ol={initTitle:function(){var t=this.config,e=this.$el;t.title_text&&(e.title=e.svg.append("g"),to(e.title.append("text").style("text-anchor",Ml(t.title_position)).attr("class",La.title),t.title_text,[.3,1.5]))},redrawTitle:function(){var t=this,e=t.config,n=t.state.current,r=t.$el.title;if(r){var i=t.yForTitle.call(t);/g/i.test(r.node().tagName)?r.attr("transform","translate("+Ml(e.title_position,n.width)+", "+i+")"):r.attr("x",t.xForTitle.call(t)).attr("y",i)}},xForTitle:function(){var t,e=this,n=e.config,r=e.state.current,i=n.title_position||"left",a=e.getTextRect(e.$el.title,La.title).width;return/(right|center)/.test(i)?(t=r.width-a,i.indexOf("right")>=0?t=r.width-a-n.title_padding.right:i.indexOf("center")>=0&&(t=(r.width-a)/2)):t=n.title_padding.left||0,t},yForTitle:function(){var t=this;return(t.config.title_padding.top||0)+t.getTextRect(t.$el.title,La.title).height},getTitlePadding:function(){return this.yForTitle()+(this.config.title_padding.bottom||0)}},Cl={initTooltip:function(){var t=this,e=t.config,n=t.$el;n.tooltip=Ln(e.tooltip_contents.bindto),n.tooltip.empty()&&(n.tooltip=n.chart.style("position","relative").append("div").attr("class",La.tooltipContainer).style("position","absolute").style("pointer-events","none").style("display","none")),t.bindTooltipResizePos()},initShowTooltip:function(){var t=this,e=t.config,n=t.$el,r=t.state,i=r.hasAxis,a=r.hasRadar;if(e.tooltip_init_show){var o,s,u=!(i&&a);if(null!=(o=t.axis)&&o.isTimeSeries()&&Na(e.tooltip_init_x)){var c,l,f=t.data.targets[0];for(e.tooltip_init_x=bo.call(t,e.tooltip_init_x),c=0;(l=f.values[c])&&l.x-e.tooltip_init_x!=0;c++);e.tooltip_init_x=c}var h=t.data.targets.map((function(n){var r=u?0:e.tooltip_init_x;return t.addName(n.values[r])}));u&&(h=[h[e.tooltip_init_x]]),n.tooltip.html(t.getTooltipHTML(h,null==(s=t.axis)?void 0:s.getXAxisTickFormat(),t.getDefaultValueFormat(),t.color)),e.tooltip_contents.bindto||n.tooltip.style("top",e.tooltip_init_position.top).style("left",e.tooltip_init_position.left).style("display",null)}},getTooltipHTML:function(){var t=this,e=t.api,n=t.config;return za(n.tooltip_contents)?n.tooltip_contents.bind(e).apply(void 0,arguments):t.getTooltipContent.apply(t,arguments)},getTooltipContent:function(t,e,n,r){var i=this,a=i.api,o=i.config,s=i.state,u=["title","name","value"].map((function(t){var e=o["tooltip_format_"+t];return za(e)?e.bind(a):e})),c=u[0],l=u[1],f=u[2];c=c||e,l=l||function(t){return t},f=f||(i.isStackNormalized()?function(t,e){return(100*e).toFixed(2)+"%"}:n);var h=o.tooltip_order,d=function(t){return i.axis&&i.isBubbleZType(t)?i.getBubbleZData(t.value,"z"):i.getBaseValue(t)},g=i.levelColor?function(t){return i.levelColor(t.value)}:function(t){return r(t)},p=o.tooltip_contents,v=p.template,y=i.mapToTargetIds();if(null===h&&o.data_groups.length){var x=i.orderTargets(i.data.targets).map((function(t){return t.id})).reverse();t.sort((function(t,e){var n=t?t.value:null,r=e?e.value:null;return n>0&&r>0&&(n=t.id?x.indexOf(t.id):null,r=e.id?x.indexOf(e.id):null),n-r}))}else/^(asc|desc)$/.test(h)?t.sort((function(t,e){var n=t?d(t):null,r=e?d(e):null;return"asc"===h?n-r:r-n})):za(h)&&t.sort(h.bind(a));var _,m,b,w,T,A=i.getTooltipContentTemplate(v),S=t.length;for(T=0;T<S;T++)if((m=t[T])&&(d(m)||0===d(m))){if(ja(_)){var k=(s.hasAxis||s.hasRadar)&&Qa(c?c(m.x):m.x);_=mo(A[0],{CLASS_TOOLTIP:La.tooltip,TITLE:Da(k)?v?k:'<tr><th colspan="2">'+k+"</th></tr>":""})}if(!m.ratio&&i.$el.arcs&&(m.ratio=i.getRatio("arc",i.$el.arcs.select("path."+La.arc+"-"+m.id).data()[0])),b=[m.ratio,m.id,m.index,t],w=Qa(f.apply(void 0,[d(m)].concat(b))),i.isAreaRangeType(m)){var E=["high","low"].map((function(t){return Qa(f.apply(void 0,[i.getRangedData(m,t)].concat(b)))})),M=E[0],O=E[1];w="<b>Mid:</b> "+w+" <b>High:</b> "+M+" <b>Low:</b> "+O}else if(i.isCandlestickType(m)){var C=["open","high","low","close","volume"].map((function(t){return Qa(f.apply(void 0,[i.getRangedData(m,t,"candlestick")].concat(b)))})),R=C[0],L=C[1],I=C[2],P=C[3],D=C[4];w="<b>Open:</b> "+R+" <b>High:</b> "+L+" <b>Low:</b> "+I+" <b>Close:</b> "+P+(D?" <b>Volume:</b> "+D:"")}if(void 0!==w){var z=function(){if(null===m.name)return"continue";var t=Qa(l.apply(void 0,[m.name].concat(b))),e=g(m),n={CLASS_TOOLTIP_NAME:La.tooltipName+i.getTargetSelectorSuffix(m.id),COLOR:v||!i.patterns?e:'<svg><rect style="fill:'+e+'" width="10" height="10"></rect></svg>',NAME:t,VALUE:w};if(v&&qa(p.text)){var r=y.indexOf(m.id);Object.keys(p.text).forEach((function(t){n[t]=p.text[t][r]}))}_+=mo(A[1],n)}();if("continue"===z)continue}}return _+"</table>"},getTooltipContentTemplate:function(t){return(t||'<table class="{=CLASS_TOOLTIP}"><tbody>\n\t\t\t\t{=TITLE}\n\t\t\t\t{{<tr class="{=CLASS_TOOLTIP_NAME}">\n\t\t\t\t\t<td class="name">'+(this.patterns?"{=COLOR}":'<span style="background-color:{=COLOR}"></span>')+'{=NAME}</td>\n\t\t\t\t\t<td class="value">{=VALUE}</td>\n\t\t\t\t</tr>}}\n\t\t\t</tbody></table>').replace(/(\r?\n|\t)/g,"").split(/{{(.*)}}/)},tooltipPosition:function(t,e,n,r){var i=this,a=i.config,o=i.scale,s=i.state,u=s.width,c=s.height,l=s.current,f=s.isLegendRight,h=s.inputType,d=s.event,g=i.hasType("gauge")&&!a.gauge_fullCircle,p=i.getSvgLeft(!0),v=p+l.width-i.getCurrentPaddingRight(),y=i.getCurrentPaddingLeft(!0),x=no(d,r),_=x[0],m=x[1];if(i.hasArcType()){"touch"===h||i.hasType("radar")||(m+=g?c:c/2,_+=(u-(f?i.getLegendWidth():0))/2)}else{var b=o.x(t[0].x);a.axis_rotated?(m=b+20,_+=p+100,v-=p):(m-=5,_=p+y+20+(i.scale.zoom?_:b))}_+e+15>v&&(_-=e+y),m+n>l.height&&(m-=g?3*n:n+30);var w={top:m,left:_};return Object.keys(w).forEach((function(t){w[t]<0&&(w[t]=0)})),w},showTooltip:function(t,e){var n=this,r=n.config,i=n.scale,a=n.state,o=n.$el.tooltip,s=r.tooltip_contents.bindto,u=t.filter((function(t){return t&&Da(n.getBaseValue(t))}));if(o&&0!==u.length&&r.tooltip_show){var c=o.datum(),l=c||{},f=l.width,h=void 0===f?0:f,d=l.height,g=void 0===d?0:d,p=JSON.stringify(t);if(!c||c.current!==p){var v=t.concat().sort()[0].index;Ka(r.tooltip_onshow,n.api,t),o.html(n.getTooltipHTML(t,n.axis?n.axis.getXAxisTickFormat():n.categoryName.bind(n),n.getDefaultValueFormat(),n.color)).style("display",null).style("visibility",null).datum(c={index:v,current:p,width:h=o.property("offsetWidth"),height:g=o.property("offsetHeight")}),Ka(r.tooltip_onshown,n.api,t),n._handleLinkedCharts(!0,v)}if(!s){var y,x,_=(null==(y=r.tooltip_position)?void 0:y.bind(n.api))||n.tooltipPosition.bind(n),m=no(a.event,e),b={x:m[0],y:m[1]},w=null==(x=t.filter(Boolean))?void 0:x.shift();i.x&&w&&"x"in w&&(b.xAxis=i.x(w.x));var T=_(u,h,g,e,b);["top","left"].forEach((function(t){var e=T[t];o.style(t,e+"px"),"left"!==t||c.xPosInPercent||(c.xPosInPercent=e/a.current.width*100)}))}}},bindTooltipResizePos:function(){var t=this,e=t.resizeFunction,n=t.state,r=t.$el.tooltip;e.add((function(){if("block"===r.style("display")){var t=n.current,e=r.datum(),i=e.width,a=e.xPosInPercent,o=t.width/100*a,s=t.width-(o+i);s<0&&(o+=s),r.style("left",o+"px")}}))},hideTooltip:function(t){var e=this,n=e.api,r=e.config,i=e.$el.tooltip;if(i&&"none"!==i.style("display")&&(!r.tooltip_doNotHide||t)){var a=JSON.parse(i.datum().current);Ka(r.tooltip_onhide,n,a),i.style("display","none").style("visibility","hidden").datum(null),Ka(r.tooltip_onhidden,n,a)}},_handleLinkedCharts:function(t,e){var n,r=this,i=r.charts,a=r.config;if(null!=(n=r.state.event)&&n.isTrusted&&a.tooltip_linked&&i.length>1){var o=a.tooltip_linked_name;i.filter((function(t){return t!==r.api})).forEach((function(n){var r=n.internal,i=r.config,a=r.$el,s=i.tooltip_linked,u=i.tooltip_linked_name,c=Pn.body.contains(a.chart.node());if(s&&o===u&&c){var l=a.tooltip.data()[0],f=e!==(null==l?void 0:l.index);try{n.tooltip[t&&f?"show":"hide"]({index:e})}catch(t){}}}))}}},Rl={getTranslate:function(t,e){void 0===e&&(e=0);var n,r,i=this,a=i.config,o=i.state,s=a.axis_rotated,u=0;if(e&&/^(x|y2?)$/.test(t)&&(u=i.getAxisSize(t)*e),"main"===t)n=Ua(o.margin.left),r=Ua(o.margin.top);else if("context"===t)n=Ua(o.margin2.left),r=Ua(o.margin2.top);else if("legend"===t)n=o.margin3.left,r=o.margin3.top;else if("x"===t)n=s?-u:0,r=s?0:o.height+u;else if("y"===t)n=s?0:-u,r=s?o.height+u:0;else if("y2"===t)n=s?0:o.width+u,r=s?1-u:0;else if("subX"===t)n=0,r=s?0:o.height2;else if("arc"===t)n=o.arcWidth/2,r=o.arcHeight/2;else if("radar"===t){var c=i.getRadarSize()[0];n=o.width/2-c,r=Ua(o.margin.top)}return"translate("+n+", "+r+")"},transformMain:function(t,e){var n=this,r=n.$el.main,i=n.$T,a=null!=e&&e.axisX?e.axisX:i(r.select("."+La.axisX),t),o=null!=e&&e.axisY?e.axisY:i(r.select("."+La.axisY),t),s=null!=e&&e.axisY2?e.axisY2:i(r.select("."+La.axisY2),t);i(r,t).attr("transform",n.getTranslate("main")),a.attr("transform",n.getTranslate("x")),o.attr("transform",n.getTranslate("y")),s.attr("transform",n.getTranslate("y2")),r.select("."+La.chartArcs).attr("transform",n.getTranslate("arc"))},transformAll:function(t,e){var n=this,r=n.config,i=n.state.hasAxis,a=n.$el;n.transformMain(t,e),i&&r.subchart_show&&n.transformContext(t,e),a.legend&&n.transformLegend(t)}},Ll={setTargetType:function(t,e){var n=this,r=n.config,i=n.state.withoutFadeIn;n.mapToTargetIds(t).forEach((function(t){i[t]=e===r.data_types[t],r.data_types[t]=e})),t||(r.data_type=e)},updateTypesElements:function(){var t=this,e=t.state.current;Object.keys(Dn).forEach((function(n){var r=Dn[n],i=t.hasType(r,null,!0),a=e.types.indexOf(r);-1===a&&i?e.types.push(r):a>-1&&!i&&e.types.splice(a,1)})),t.setChartElements()},hasType:function(t,e,n){var r,i;void 0===n&&(n=!1);var a=this,o=a.config,s=a.state.current,u=o.data_types,c=e||a.data.targets,l=!1;return!n&&(null==(r=s.types)?void 0:r.indexOf(t))>-1?l=!0:null!=(i=c)&&i.length?c.forEach((function(e){var n=u[e.id];(n===t||!n&&"line"===t)&&(l=!0)})):Object.keys(u).length?Object.keys(u).forEach((function(e){u[e]===t&&(l=!0)})):l=o.data_type===t,l},hasTypeOf:function(t,e,n){var r=this;return void 0===n&&(n=[]),t in Nn&&!Nn[t].filter((function(t){return-1===n.indexOf(t)})).every((function(t){return!r.hasType(t,e)}))},isTypeOf:function(t,e){var n=Na(t)?t:t.id,r=this.config.data_types[n]||this.config.data_type;return Wa(e)?e.indexOf(r)>=0:r===e},hasPointType:function(){var t=this;return t.hasTypeOf("Line")||t.hasType("bubble")||t.hasType("scatter")},hasArcType:function(t,e){return this.hasTypeOf("Arc",t,e)},hasMultiArcGauge:function(){return this.hasType("gauge")&&"multi"===this.config.gauge_type},isLineType:function(t){var e=Na(t)?t:t.id;return!this.config.data_types[e]||this.isTypeOf(e,Nn.Line)},isStepType:function(t){return this.isTypeOf(t,Nn.Step)},isSplineType:function(t){return this.isTypeOf(t,Nn.Spline)},isAreaType:function(t){return this.isTypeOf(t,Nn.Area)},isAreaRangeType:function(t){return this.isTypeOf(t,Nn.AreaRange)},isBarType:function(t){return this.isTypeOf(t,"bar")},isBubbleType:function(t){return this.isTypeOf(t,"bubble")},isCandlestickType:function(t){return this.isTypeOf(t,"candlestick")},isScatterType:function(t){return this.isTypeOf(t,"scatter")},isPieType:function(t){return this.isTypeOf(t,"pie")},isGaugeType:function(t){return this.isTypeOf(t,"gauge")},isDonutType:function(t){return this.isTypeOf(t,"donut")},isRadarType:function(t){return this.isTypeOf(t,"radar")},isArcType:function(t){return this.isPieType(t)||this.isDonutType(t)||this.isGaugeType(t)||this.isRadarType(t)},isCirclePoint:function(t){var e=this.config,n=e.point_pattern;return"circle"===(null==t?void 0:t.tagName)||"circle"===e.point_type&&(!n||Wa(n)&&0===n.length)},lineData:function(t){return this.isLineType(t)?[t]:[]},arcData:function(t){return this.isArcType(t.data)?[t]:[]},labelishData:function(t){return this.isBarType(t)||this.isLineType(t)||this.isScatterType(t)||this.isBubbleType(t)||this.isCandlestickType(t)||this.isRadarType(t)?t.values.filter((function(t){return Fa(t.value)||!!t.value})):[]},barLineBubbleData:function(t){return this.isBarType(t)||this.isLineType(t)||this.isBubbleType(t)?t.values:[]},isInterpolationType:function(t){return["basis","basis-closed","basis-open","bundle","cardinal","cardinal-closed","cardinal-open","catmull-rom","catmull-rom-closed","catmull-rom-open","linear","linear-closed","monotone-x","monotone-y","natural"].indexOf(t)>=0}},Il=function(){function t(t){this.api=void 0,this.config=void 0,this.cache=void 0,this.$el=void 0,this.state=void 0,this.charts=void 0,this.data={xs:{},targets:[]},this.axis=void 0,this.scale={x:null,y:null,y2:null,subX:null,subY:null,subY2:null,zoom:null},this.org={xScale:null,xDomain:null},this.color=void 0,this.patterns=void 0,this.levelColor=void 0,this.point=void 0,this.brush=void 0,this.format={extraLineClasses:null,xAxisTick:null,dataTime:null,defaultAxisTime:null,axisTime:null};var e=this;e.api=t,e.config=new Do,e.cache=new Go;var n=new So;e.$el=n.getStore("element"),e.state=n.getStore("state"),e.$T=e.$T.bind(e)}var e=t.prototype;return e.$T=function(t,e,n){var r=this.config,i=this.state,a=r.transition_duration,o=r.subchart_show,s=t;s&&("tagName"in s&&(s=Ln(s)),s=(!1!==e&&a||e)&&(!i.zooming||i.dragging)&&!i.resizing&&i.rendered&&!o?s.transition(n).duration(a):s);return s},e.beforeInit=function(){var t=this;t.callPluginHook("$beforeInit"),Ka(t.config.onbeforeinit,t.api)},e.afterInit=function(){var t=this;t.callPluginHook("$afterInit"),Ka(t.config.onafterinit,t.api)},e.init=function(){var t=this,e=t.config,n=t.state,r=t.$el;To(t),n.hasAxis=!t.hasArcType(),n.hasRadar=!n.hasAxis&&t.hasType("radar"),t.initParams();var i={element:e.bindto,classname:"bb"};qa(e.bindto)&&(i.element=e.bindto.element||"#chart",i.classname=e.bindto.classname||i.classname),r.chart=za(i.element.node)?e.bindto.element:Ln(i.element||[]),r.chart.empty()&&(r.chart=Ln(Pn.body.appendChild(Pn.createElement("div")))),r.chart.html("").classed(i.classname,!0),t.initToRender()},e.initToRender=function(t){var e=this,n=e.config,r=e.state,i=e.$el.chart,a=function(){return"none"===i.style("display")||"hidden"===i.style("visibility")},o=n.render.lazy||a(),s=In.MutationObserver;if(o&&s&&!1!==n.render.observe&&!t&&new s((function(t,n){a()||(n.disconnect(),r.rendered||e.initToRender(!0))})).observe(i.node(),{attributes:!0,attributeFilter:["class","style"]}),!o||t){var u=e.convertData(n,e.initWithData);u&&e.initWithData(u),e.afterInit()}},e.initParams=function(){var t=this,e=t,n=e.config,r=e.format,i=e.state,a=n.axis_rotated;if(i.datetimeId="bb-"+ +new Date,t.color=t.generateColor(),t.levelColor=t.generateLevelColor(),t.hasPointType()&&(t.point=t.generatePoint()),i.hasAxis){t.initClip(),r.extraLineClasses=t.generateExtraLineClass(),r.dataTime=n.data_xLocaltime?Y:G,r.axisTime=n.axis_x_localtime?U:V;var o=t.config.zoom_enabled&&"drag"===t.config.zoom_type;r.defaultAxisTime=function(e){var n=t.scale,i=n.x,a=n.zoom,s=o?a:a&&i.orgDomain().toString()!==a.domain().toString(),u=(e.getMilliseconds()?".%L":e.getSeconds()&&".:%S")||e.getMinutes()&&"%I:%M"||e.getHours()&&"%I %p"||1!==e.getDate()&&"%b %d"||s&&1===e.getDate()&&"%b'%y"||e.getMonth()&&"%-m/%-d"||"%Y";return r.axisTime(u)(e)}}i.isLegendRight="right"===n.legend_position,i.isLegendInset="inset"===n.legend_position,i.isLegendTop="top-left"===n.legend_inset_anchor||"top-right"===n.legend_inset_anchor,i.isLegendLeft="top-left"===n.legend_inset_anchor||"bottom-left"===n.legend_inset_anchor,i.rotatedPaddingRight=a&&!n.axis_x_show?0:30,i.inputType=function(t,e){var n=!1;if(/Mobi/.test(In.navigator.userAgent)&&e){var r=In.navigator&&"maxTouchPoints"in In.navigator&&In.navigator.maxTouchPoints>0,i="ontouchmove"in In||In.DocumentTouch&&Pn instanceof In.DocumentTouch;n=r||i}return(t&&!n&&"onmouseover"in In?"mouse":n&&"touch")||null}(n.interaction_inputType_mouse,n.interaction_inputType_touch)},e.initWithData=function(t){var e=this,n=e.config,r=e.scale,i=e.state,a=e.$el,o=e.org,s=i.hasAxis,u=n.interaction_enabled;s&&(e.axis=e.getAxisInstance(),n.zoom_enabled&&e.initZoom()),e.data.xs={},e.data.targets=e.convertDataToTargets(t),n.data_filter&&(e.data.targets=e.data.targets.filter(n.data_filter.bind(e.api))),n.data_hide&&e.addHiddenTargetIds(!0===n.data_hide?e.mapToIds(e.data.targets):n.data_hide),n.legend_hide&&e.addHiddenLegendIds(!0===n.legend_hide?e.mapToIds(e.data.targets):n.legend_hide),e.updateSizes(),e.updateScales(!0);var c=r.x,l=r.y,f=r.y2,h=r.subX,d=r.subY,g=r.subY2;if(c&&(c.domain(vo(e.getXDomain(e.data.targets))),h.domain(c.domain()),o.xDomain=c.domain()),l&&(l.domain(e.getYDomain(e.data.targets,"y")),d.domain(l.domain())),f&&(f.domain(e.getYDomain(e.data.targets,"y2")),g&&g.domain(f.domain())),a.svg=a.chart.append("svg").style("overflow","hidden").style("display","block"),u&&i.inputType){var p="touch"===i.inputType;a.svg.on(p?"touchstart":"mouseenter",(function(){return Ka(n.onover,e.api)})).on(p?"touchend":"mouseleave",(function(){return Ka(n.onout,e.api)}))}n.svg_classname&&a.svg.attr("class",n.svg_classname);var v=za(n.color_tiles)&&e.patterns;(s||v||n.data_labels_backgroundColors)&&(a.defs=a.svg.append("defs"),s&&["id","idXAxis","idYAxis","idGrid"].forEach((function(t){e.appendClip(a.defs,i.clip[t])})),e.generateDataLabelBackgroundColorFilter(),v&&e.patterns.forEach((function(t){return a.defs.append((function(){return t.node}))}))),e.updateSvgSize(),e.bindResize();var y,x=a.svg.append("g").classed(La.main,!0).attr("transform",e.getTranslate("main"));(a.main=x,n.subchart_show&&e.initSubchart(),n.tooltip_show&&e.initTooltip(),n.title_text&&e.initTitle(),n.legend_show&&e.initLegend(),n.data_empty_label_text&&x.append("text").attr("class",La.text+" "+La.empty).attr("text-anchor","middle").attr("dominant-baseline","middle"),s&&(n.regions.length&&e.initRegion(),n.clipPath||e.axis.init()),x.append("g").attr("class",La.chart).attr("clip-path",i.clip.path),e.callPluginHook("$init"),s)&&(u&&(null==e.initEventRect||e.initEventRect()),e.initGrid(),n.clipPath&&(null==(y=e.axis)||y.init()));if(e.initChartElements(),e.updateTargets(e.data.targets),e.updateDimension(),Ka(n.oninit,e.api),e.setBackground(),e.redraw({withTransition:!1,withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransitionForAxis:!1,initializing:!0}),n.data_onmin||n.data_onmax){var _=e.getMinMaxData();Ka(n.data_onmin,e.api,_.min),Ka(n.data_onmax,e.api,_.max)}n.tooltip_show&&e.initShowTooltip(),i.rendered=!0},e.initChartElements=function(){var t=this,e=t.state,n=e.hasAxis,r=e.hasRadar,i=[];n?["bar","bubble","candlestick","line"].forEach((function(e){var n=co(e);("line"===e&&t.hasTypeOf(n)||t.hasType(e))&&i.push(n)})):(r||i.push("Arc","Pie"),t.hasType("gauge")?i.push("Gauge"):r&&i.push("Radar")),i.forEach((function(e){t["init"+e]()})),Ha(t.config.data_labels)&&!t.hasArcType(null,["radar"])&&t.initText()},e.setChartElements=function(){var t=this.$el,e=t.chart,n=t.svg,r=t.defs,i=t.main,a=t.tooltip,o=t.legend,s=t.title,u=t.grid,c=t.arcs,l=t.circle,f=t.bar,h=t.candlestick,d=t.line,g=t.area,p=t.text;this.api.$={chart:e,svg:n,defs:r,main:i,tooltip:a,legend:o,title:s,grid:u,arc:c,circles:l,bar:{bars:f},candlestick:h,line:{lines:d,areas:g},text:{texts:p}}},e.setBackground=function(){var t=this,e=t.config.background,n=t.state,r=t.$el.svg;if(Ha(e)){var i=r.select("g").insert(e.imgUrl?"image":"rect",":first-child");e.imgUrl?i.attr("href",e.imgUrl):e.color&&i.style("fill",e.color).attr("clip-path",n.clip.path),i.attr("class",e.class||null).attr("width","100%").attr("height","100%")}},e.updateTargets=function(t){var e=this,n=e.state,r=n.hasAxis,i=n.hasRadar;e.updateTargetsForText(t),r?(["bar","candlestick","line"].forEach((function(n){var r=co(n);("line"===n&&e.hasTypeOf(r)||e.hasType(n))&&e["updateTargetsFor"+r](t.filter(e["is"+r+"Type"].bind(e)))})),e.updateTargetsForSubchart&&e.updateTargetsForSubchart(t)):e.hasArcType(t)&&(i?e.updateTargetsForRadar(t.filter(e.isRadarType.bind(e))):e.updateTargetsForArc(t.filter(e.isArcType.bind(e)))),(e.hasType("bubble")||e.hasType("scatter"))&&(null==e.updateTargetForCircle||e.updateTargetForCircle()),e.showTargets()},e.showTargets=function(){var t=this,e=t.$el.svg;(0,t.$T)(e.selectAll("."+La.target).filter((function(e){return t.isTargetToShow(e.id)}))).style("opacity",null)},e.getWithOption=function(t){var e={Dimension:!0,EventRect:!0,Legend:!1,Subchart:!0,Transform:!1,Transition:!0,TrimXDomain:!0,UpdateXAxis:"UpdateXDomain",UpdateXDomain:!1,UpdateOrgXDomain:!1,TransitionForExit:"Transition",TransitionForAxis:"Transition",Y:!0};return Object.keys(e).forEach((function(n){var r=e[n];Na(r)&&(r=e[r]),e[n]=Za(t,"with"+n,r)})),e},e.initialOpacity=function(t){var e=this.state.withoutFadeIn;return null!==this.getBaseValue(t)&&e[t.id]?null:"0"},e.bindResize=function(){var t=this,e=t.config,n=t.state,r=function(){var t,e=[],n=function(){n.clear(),t=Ho((function(){e.forEach((function(t){return t()}))}),200)};return n.clear=function(){t&&(Wo(t),t=null)},n.add=function(t){return e.push(t)},n.remove=function(t){return e.splice(e.indexOf(t),1)},n}(),i=[];i.push((function(){return Ka(e.onresize,t,t.api)})),e.resize_auto&&i.push((function(){n.resizing=!0,t.api.flush(!1)})),i.push((function(){Ka(e.onresized,t,t.api),n.resizing=!1})),i.forEach((function(t){return r.add(t)})),t.resizeFunction=r,In.addEventListener("resize",t.resizeFunction=r)},e.callPluginHook=function(t){for(var e=this,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this.config.plugins.forEach((function(n){"$beforeInit"===t&&(n.$$=e,e.api.plugins.push(n)),n[t].apply(n,r)}))},t}();function Pl(t){var e,n,r,i=this.config,a=function(){var t=n.shift();return t&&e&&Va(e)&&t in e?(e=e[t],a()):t?void 0:e};Object.keys(i).forEach((function(o){e=t,n=o.split("_"),r=a(),Xa(r)&&(i[o]=r)}))}uo(Il.prototype,[cs,ls,fs,{categoryName:function(t){var e=this.config.axis_x_categories;return t<(null==e?void 0:e.length)?e[t]:t}},ms,Bs,$s,_s,Ys,Vs,Gs,mc,Al,Sl,El,Ol,Cl,Rl,Ll]);var Dl={resize:function(t){var e=this.internal,n=e.config,r=e.state;r.rendered&&(n.size_width=t?t.width:null,n.size_height=t?t.height:null,r.resizing=!0,this.flush(!1,!0),e.resizeFunction())},flush:function(t){var e=this.internal,n=e.state,r=e.$el.zoomResetBtn;if(n.rendered){var i,a,o;if(n.resizing)null==(a=e.brush)||a.updateResize();else null==(o=e.axis)||o.setOrient();null==(i=r)||i.style("display","none"),e.scale.zoom=null,t?e.redraw({withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withLegend:!0}):e.updateAndRedraw({withLegend:!0,withTransition:!1,withTransitionForTransform:!1}),!n.resizing&&e.brush&&(e.brush.getSelection().call(e.brush.move),e.unselectRect())}else e.initToRender(!0)},destroy:function(){var t=this,e=this.internal,n=e.$el,r=n.chart,i=n.svg;if(Ha(e))for(var a in e.callPluginHook("$willDestroy"),e.charts.splice(e.charts.indexOf(this),1),i.select("*").interrupt(),e.resizeFunction.clear(),In.removeEventListener("resize",e.resizeFunction),r.classed("bb",!1).html(""),Object.keys(this).forEach((function(n){"internal"===n&&Object.keys(e).forEach((function(t){e[t]=null})),t[n]=null,delete t[n]})),this)this[a]=function(){};return null},config:function(t,e,n){var r,i=this.internal.config,a=null==t?void 0:t.replace(/\./g,"_");return a in i&&(Xa(e)?(i[a]=e,r=e,n&&this.flush()):r=i[a]),r}};function zl(t){var e=this.internal.data.targets;if(!ja(t)){var n=Wa(t)?t:[t];return e.filter((function(t){return n.some((function(e){return e===t.id}))}))}return e}uo(zl,{shown:function(t){return this.internal.filterTargetsToShow(this.data(t))},values:function(t,e){void 0===e&&(e=!0);var n=null;if(t){var r=this.data(t);Wa(r)&&(n=[],r.forEach((function(t){var r=t.values.map((function(t){return t.value}));e?n=n.concat(r):n.push(r)})))}return n},names:function(t){return this.internal.updateDataAttributes("names",t)},colors:function(t){return this.internal.updateDataAttributes("colors",t)},axes:function(t){return this.internal.updateDataAttributes("axes",t)},min:function(){return this.internal.getMinMaxData().min},max:function(){return this.internal.getMinMaxData().max}});function Nl(t,e,n){var r,i,a=e||n,o=a.width,s=a.height,u=new XMLSerializer,c=t.cloneNode(!0),l=(r=lo(Pn.styleSheets),i=[],r.forEach((function(t){try{t.cssRules&&t.cssRules.length&&(i=i.concat(lo(t.cssRules)))}catch(e){console.error("Error while reading rules from "+t.href+": "+e.toString())}})),i).filter((function(t){return t.cssText})).map((function(t){return t.cssText}));c.setAttribute("xmlns",Le.xhtml);var f=u.serializeToString(c),h=Pn.createElement("style");h.appendChild(Pn.createTextNode(l.join("\n")));var d=u.serializeToString(h),g=('<svg xmlns="'+Le.svg+'" width="'+o+'" height="'+s+'" \n\t\tviewBox="0 0 '+n.width+" "+n.height+'" \n\t\tpreserveAspectRatio="'+(!1===(null==e?void 0:e.preserveAspectRatio)?"none":"xMinYMid meet")+'">\n\t\t\t<foreignObject width="100%" height="100%">\n\t\t\t\t'+d+"\n\t\t\t\t"+f.replace(/(url\()[^#]+/g,"$1")+"\n\t\t\t</foreignObject></svg>").replace("/\n/g","%0A");return"data:image/svg+xml;base64,"+btoa(encodeURIComponent(g).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode(+("0x"+e))})))}var Fl={export:function(t,e){var n=this,r=this.internal,i=r.state,a=r.$el.chart,o=i.current,s=o.width,u=o.height,c=po({width:s,height:u,preserveAspectRatio:!0,mimeType:"image/png"},t),l=Nl(a.node(),c,{width:s,height:u});if(e&&za(e)){var f=new Image;f.crossOrigin="Anonymous",f.onload=function(){var t=Pn.createElement("canvas"),r=t.getContext("2d");t.width=c.width||s,t.height=c.height||u,r.drawImage(f,0,0),e.bind(n)(t.toDataURL(c.mimeType))},f.src=l}return l}},jl={focus:function(t){var e=this.internal,n=e.state,r=e.mapToTargetIds(t),i=e.$el.svg.selectAll(e.selectorTargets(r.filter(e.isTargetToShow,e)));this.revert(),this.defocus(),i.classed(La.focused,!0).classed(La.defocused,!1),e.hasArcType()&&!n.hasRadar&&(e.expandArc(r),e.hasType("gauge")&&e.markOverlapped(t,e,"."+La.gaugeValue)),e.toggleFocusLegend(r,!0),n.focusedTargetIds=r,n.defocusedTargetIds=n.defocusedTargetIds.filter((function(t){return r.indexOf(t)<0}))},defocus:function(t){var e=this.internal,n=e.state,r=e.mapToTargetIds(t);e.$el.svg.selectAll(e.selectorTargets(r.filter(e.isTargetToShow,e))).classed(La.focused,!1).classed(La.defocused,!0),e.hasArcType()&&(e.unexpandArc(r),e.hasType("gauge")&&e.undoMarkOverlapped(e,"."+La.gaugeValue)),e.toggleFocusLegend(r,!1),n.focusedTargetIds=n.focusedTargetIds.filter((function(t){return r.indexOf(t)<0})),n.defocusedTargetIds=r},revert:function(t){var e=this.internal,n=e.config,r=e.state,i=e.$el,a=e.mapToTargetIds(t);i.svg.selectAll(e.selectorTargets(a)).classed(La.focused,!1).classed(La.defocused,!1),e.hasArcType()&&e.unexpandArc(a),n.legend_show&&(e.showLegend(a.filter(e.isLegendToShow.bind(e))),i.legend.selectAll(e.selectorLegends(a)).filter((function(){return Ln(this).classed(La.legendItemFocused)})).classed(La.legendItemFocused,!1)),r.focusedTargetIds=[],r.defocusedTargetIds=[]}},Xl={load:function(t){var e=this.internal,n=e.config;t.xs&&e.addXs(t.xs),"names"in t&&this.data.names(t.names),"classes"in t&&Object.keys(t.classes).forEach((function(e){n.data_classes[e]=t.classes[e]})),"categories"in t&&e.axis.isCategorized()&&(n.axis_x_categories=t.categories),"axes"in t&&Object.keys(t.axes).forEach((function(e){n.data_axes[e]=t.axes[e]})),"colors"in t&&Object.keys(t.colors).forEach((function(e){n.data_colors[e]=t.colors[e]})),"unload"in t&&!1!==t.unload?e.unload(e.mapToTargetIds(!0===t.unload?null:t.unload),(function(){In.requestIdleCallback((function(){return e.loadFromArgs(t)}))})):e.loadFromArgs(t)},unload:function(t){var e=this,n=this.internal,r=t||{};Wa(r)?r={ids:r}:Na(r)&&(r={ids:[r]});var i=n.mapToTargetIds(r.ids);n.unload(i,(function(){n.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),n.cache.remove(i),r.done&&r.done.call(e)}))}};function Bl(t,e,n){var r=this,i=this.internal,a=i.mapToTargetIds(e),o=i.state.hiddenTargetIds.map((function(t){return a.indexOf(t)>-1&&t})).filter(Boolean);i.state.toggling=!0,i[(t?"remove":"add")+"HiddenTargetIds"](a);var s=i.$el.svg.selectAll(i.selectorTargets(a)),u=t?null:"0";t&&o.length&&(s.style("display",null),Ka(i.config.data_onshown,this,o)),i.$T(s).style("opacity",u,"important").call(Ja,(function(){t||0!==o.length||(s.style("display","none"),Ka(i.config.data_onhidden,r,a)),s.style("opacity",u)})),n.withLegend&&i[(t?"show":"hide")+"Legend"](a),i.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),i.state.toggling=!1}var $l={show:function(t,e){void 0===e&&(e={}),Bl.call(this,!0,t,e)},hide:function(t,e){void 0===e&&(e={}),Bl.call(this,!1,t,e)},toggle:function(t,e){var n=this;void 0===e&&(e={});var r=this.internal,i={show:[],hide:[]};r.mapToTargetIds(t).forEach((function(t){return i[r.isTargetToShow(t)?"hide":"show"].push(t)})),i.show.length&&this.show(i.show,e),i.hide.length&&setTimeout((function(){return n.hide(i.hide,e)}),0)}},Ul={show:function(t){var e,n,r=this.internal,i=r.config,a=r.state.inputType;if(t.mouse&&(n=t.mouse),t.data){var o=t.data,s=r.getYScaleById(o.id)(o.value);r.isMultipleX()?n=[r.scale.x(o.x),s]:(i.tooltip_grouped||(n=[0,s]),e=Da(o.index)?o.index:r.getIndexByX(o.x))}else Xa(t.x)?e=r.getIndexByX(t.x):Xa(t.index)&&(e=t.index);("mouse"===a?["mouseover","mousemove"]:["touchstart"]).forEach((function(t){r.dispatchEvent(t,e,n)}))},hide:function(){var t=this.internal,e=t.state.inputType,n=t.$el.tooltip,r=null==n?void 0:n.datum();if(r){var i=JSON.parse(r.current)[0].index;("mouse"===e?["mouseout"]:["touchend"]).forEach((function(e){t.dispatchEvent(e,i)}))}"touch"===e&&t.callOverOutForTouch(),t.hideTooltip(!0),t.hideGridFocus(),null==t.unexpandCircles||t.unexpandCircles(),t.expandBarTypeShapes(!1)}},Yl=function t(e){this.plugins=[],this.internal=void 0;var n=new Il(this);this.internal=n,function t(e,n,r){Object.keys(e).forEach((function(i){var a=za(e[i]),o=n!==r,s=Ha(e[i]),u=s&&Object.keys(e[i]).length>0;n[i]=a&&(!o&&u||o)?e[i].bind(r):s&&!a?{}:e[i],u&&t(e[i],n[i],r)}))}(t.prototype,this,this),Pl.call(n,e),n.beforeInit(),n.init()};function Vl(t,e,n){var r=t.config,i="axis_y_"+e,a="axis_y2_"+e;Xa(n)&&(Va(n)?(Da(n.x)&&(r["axis_x_"+e]=n.x),Da(n.y)&&(r[i]=n.y),Da(n.y2)&&(r[a]=n.y2)):(r[i]=n,r[a]=n),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))}function Gl(t,e){var n=t.config;return{x:n["axis_x_"+e],y:n["axis_y_"+e],y2:n["axis_y2_"+e]}}uo(Yl.prototype,[Dl,{color:function(t){return this.internal.color(t)}},{data:zl},Fl,jl,{legend:{show:function(t){var e=this.internal;e.showLegend(e.mapToTargetIds(t)),e.updateAndRedraw({withLegend:!0})},hide:function(t){var e=this.internal;e.hideLegend(e.mapToTargetIds(t)),e.updateAndRedraw({withLegend:!0})}}},Xl,$l,{tooltip:Ul}]);var Hl={labels:function(t){var e,n=this.internal;return t&&(Object.keys(t).forEach((function(e){n.axis.setLabelText(e,t[e])})),n.axis.updateLabels()),["x","y","y2"].forEach((function(t){var r=n.axis.getLabelText(t);r&&(e||(e={}),e[t]=r)})),e},min:function(t){var e=this.internal;return Da(t)?Vl(e,"min",t):Gl(e,"min")},max:function(t){var e=this.internal;return arguments.length?Vl(e,"max",t):Gl(e,"max")},range:function(t){var e=this.axis;if(!arguments.length)return{max:e.max(),min:e.min()};Xa(t.max)&&e.max(t.max),Xa(t.min)&&e.min(t.min)}},Wl={axis:Hl};function ql(t){var e=this.internal,n=e.config;return t?(n.grid_x_lines=t,e.redrawWithoutRescale(),n.grid_x_lines):n.grid_x_lines}uo(ql,{add:function(t){return this.xgrids(this.internal.config.grid_x_lines.concat(t||[]))},remove:function(t){this.internal.removeGridLines(t,!0)}});var Zl={xgrids:ql};function Kl(t){var e=this.internal,n=e.config;return t?(n.grid_y_lines=t,e.redrawWithoutRescale(),n.grid_y_lines):n.grid_y_lines}uo(Kl,{add:function(t){return this.ygrids(this.internal.config.grid_y_lines.concat(t||[]))},remove:function(t){this.internal.removeGridLines(t,!1)}});var Jl={ygrids:Kl},Ql={groups:function(t){var e=this.internal,n=e.config;return ja(t)||(n.data_groups=t,e.redraw()),n.data_groups}};function tf(t){var e=this.internal,n=e.config;return t?(n.regions=t,e.redrawWithoutRescale(),t):n.regions}uo(tf,{add:function(t){var e=this.internal,n=e.config;return t?(n.regions=n.regions.concat(t),e.redrawWithoutRescale(),n.regions):n.regions},remove:function(t){var e=this.internal,n=e.config,r=e.$T,i=t||{},a=Za(i,"classes",[La.region]),o=e.$el.main.select("."+La.regions).selectAll(a.map((function(t){return"."+t})));return r(o).style("opacity","0").remove(),o=n.regions,Object.keys(i).length?(o=o.filter((function(t){var e=!1;return!t.class||(t.class.split(" ").forEach((function(t){a.indexOf(t)>=0&&(e=!0)})),!e)})),n.regions=o):n.regions=[],o}});var ef={regions:tf},nf={x:function(t){var e=this.internal,n=e.axis,r=e.data,i=n.isCustomX()&&n.isCategorized();return Wa(t)&&(i?this.categories(t):(e.updateTargetX(r.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))),i?this.categories():r.xs},xs:function(t){var e=this.internal;return qa(t)&&(e.updateTargetXs(e.data.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),e.data.xs}},rf={flow:function(t){var e,n,r,i,a=this.internal,o=0,s=0;if((t.json||t.rows||t.columns)&&(e=a.convertData(t)),!a.state.redrawing&&e&&wo()){var u=[],c=a.getMaxDataCount(),l=a.convertDataToTargets(e,!0),f=a.axis.isTimeSeries();a.data.targets.forEach((function(t){for(var e=!1,n=0;n<l.length;n++)if(t.id===l[n].id){e=!0,t.values[t.values.length-1]&&(s=t.values[t.values.length-1].index+1),o=l[n].values.length;for(var r=0;r<o;r++)l[n].values[r].index=s+r,f||(l[n].values[r].x=s+r);t.values=t.values.concat(l[n].values),l.splice(n,1);break}e||u.push(t.id)})),a.data.targets.forEach((function(t){for(var e=0;e<u.length;e++)if(t.id===u[e]){s=t.values[t.values.length-1].index+1;for(var n=0;n<o;n++)t.values.push({id:t.id,index:s+n,x:f?a.getOtherTargetX(s+n):s+n,value:null})}})),a.data.targets.length&&l.forEach((function(t){for(var e=[],n=a.data.targets[0].values[0].index;n<s;n++)e.push({id:t.id,index:n,x:f?a.getOtherTargetX(n):n,value:null});t.values.forEach((function(t){t.index+=s,f||(t.x+=s)})),t.values=e.concat(t.values)})),a.data.targets=a.data.targets.concat(l);var h=a.data.targets[0],d=h.values[0];Xa(t.to)?(o=0,i=f?bo.call(a,t.to):t.to,h.values.forEach((function(t){t.x<i&&o++}))):Xa(t.length)&&(o=t.length),c?1===c&&f&&(r=(h.values[h.values.length-1].x-d.x)/2,n=[new Date(+d.x-r),new Date(+d.x+r)]):(r=f?h.values.length>1?h.values[h.values.length-1].x-d.x:d.x-a.getXDomain(a.data.targets)[0]:1,n=[d.x-r,d.x]),n&&a.updateXDomain(null,!0,!0,!1,n),a.updateTargets(a.data.targets),a.redraw({flow:{index:d.index,length:o,duration:Da(t.duration)?t.duration:a.config.transition_duration,done:t.done,orgDataCount:c},withLegend:!0,withTransition:c>1,withTrimXDomain:!1,withUpdateXAxis:!0})}}};function af(t){return t}var of=1e-6;function sf(t){return"translate("+t+",0)"}function uf(t){return"translate(0,"+t+")"}function cf(t){return function(e){return+t(e)}}function lf(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function ff(){return!this.__axis}function hf(t,e){var n=[],r=null,i=null,a=6,o=6,s=3,u="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,c=1===t||4===t?-1:1,l=4===t||2===t?"x":"y",f=1===t||3===t?sf:uf;function h(h){var d=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,g=null==i?e.tickFormat?e.tickFormat.apply(e,n):af:i,p=Math.max(a,0)+s,v=e.range(),y=+v[0]+u,x=+v[v.length-1]+u,_=(e.bandwidth?lf:cf)(e.copy(),u),m=h.selection?h.selection():h,b=m.selectAll(".domain").data([null]),w=m.selectAll(".tick").data(d,e).order(),T=w.exit(),A=w.enter().append("g").attr("class","tick"),S=w.select("line"),k=w.select("text");b=b.merge(b.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(A),S=S.merge(A.append("line").attr("stroke","currentColor").attr(l+"2",c*a)),k=k.merge(A.append("text").attr("fill","currentColor").attr(l,c*p).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),h!==m&&(b=b.transition(h),w=w.transition(h),S=S.transition(h),k=k.transition(h),T=T.transition(h).attr("opacity",of).attr("transform",(function(t){return isFinite(t=_(t))?f(t+u):this.getAttribute("transform")})),A.attr("opacity",of).attr("transform",(function(t){var e=this.parentNode.__axis;return f((e&&isFinite(e=e(t))?e:_(t))+u)}))),T.remove(),b.attr("d",4===t||2===t?o?"M"+c*o+","+y+"H"+u+"V"+x+"H"+c*o:"M"+u+","+y+"V"+x:o?"M"+y+","+c*o+"V"+u+"H"+x+"V"+c*o:"M"+y+","+u+"H"+x),w.attr("opacity",1).attr("transform",(function(t){return f(_(t)+u)})),S.attr(l+"2",c*a),k.attr(l,c*p).text(g),m.filter(ff).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),m.each((function(){this.__axis=_}))}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(a=o=+t,h):a},h.tickSizeInner=function(t){return arguments.length?(a=+t,h):a},h.tickSizeOuter=function(t){return arguments.length?(o=+t,h):o},h.tickPadding=function(t){return arguments.length?(s=+t,h):s},h.offset=function(t){return arguments.length?(u=+t,h):u},h}function df(t){return hf(1,t)}function gf(t){return hf(2,t)}function pf(t){return hf(3,t)}function vf(t){return hf(4,t)}var yf=function(){function t(t){this.owner=void 0,this.config=void 0,this.scale=void 0;var e=_c(),n=t.config,r=t.params;this.owner=t,this.config=n,this.scale=e,!n.noTransition&&r.config.transition_duration||(n.withoutTransition=!0),n.range=this.scaleExtent((r.orgXScale||e).range())}t.getSizeFor1Char=function(t){var e={w:5.5,h:11.5};return t.empty()||t.select("text").text("0").call((function(t){try{var n=t.node().getBBox(),r=n.width,i=n.height;r&&i&&(e.w=r,e.h=i)}catch(t){}finally{t.text("")}})),this.getSizeFor1Char=function(){return e},e};var e=t.prototype;return e.getTickTransformSetter=function(t){var e=this.config,n="x"===t?function(t){return"translate("+(t+e.tickOffset)+",0)"}:function(t){return"translate(0,"+t+")"};return function(t,e){t.attr("transform",(function(t){return n(Math.ceil(e(t)))}))}},e.scaleExtent=function(t){var e=t[0],n=t[t.length-1];return e<n?[e,n]:[n,e]},e.generateTicks=function(t,e){var n=this.owner.params.tickStepSize,r=t.domain(),i=r[0],a=r[1],o=[];if(e&&n)for(var s=Math.round(i);s<=a;)o.push(s),s+=n;else if(t.ticks){var u=this.config.tickArguments;if("log"!==t.type||u)o=t.ticks.apply(t,this.config.tickArguments||[]);else{var c=_c("_log").domain([i>0?i:1,a]).range(t.range());o=c.ticks();for(var l=a.toFixed().length;o.length>15;l--)o=c.ticks(l);o.splice(0,1,i),o.splice(o.length-1,1,a)}o=o.map((function(t){return Na(t)&&Fa(t)&&!isNaN(t)&&Math.round(10*t)/10||t}))}else{for(var f=Math.ceil(i);f<a;f++)o.push(f);o.length>0&&o[0]>0&&o.unshift(o[0]-(o[1]-o[0]))}return o},e.copyScale=function(){var t=this.scale.copy();return t.domain().length||t.domain(this.scale.domain()),t.type=this.scale.type,t},e.textFormatted=function(t){var e=this.config.tickFormat,n=/\d+\.\d+0{5,}\d$/.test(t)?+(t+"").replace(/0+\d$/,""):t,r=e?e(n):n;return Xa(r)?r:""},e.transitionise=function(t){var e=this.config,n=t;if(e.withoutTransition)n=t.interrupt();else if(e.transition||!this.owner.params.noTransition)try{n=t.transition(e.transition)}catch(t){}return n},t}(),xf=function(){function t(t){void 0===t&&(t={}),this.helper=void 0,this.config=void 0,this.params=void 0,this.g=void 0;var e={innerTickSize:6,outerTickSize:t.outerTick?6:0,orient:"bottom",range:[],tickArguments:null,tickCentered:null,tickCulling:!0,tickFormat:null,tickLength:9,tickOffset:0,tickPadding:3,tickValues:null,transition:null,noTransition:t.noTransition};e.tickLength=Math.max(e.innerTickSize,0)+e.tickPadding,this.config=e,this.params=t,this.helper=new yf(this)}var e=t.prototype;return e.create=function(t){var e=this,n=this.config,r=this.helper,i=this.params,a=r.scale,o=n.orient,s=this.splitTickText.bind(this),u=/^(left|right)$/.test(o),c=/^(top|bottom)$/.test(o),l=r.getTickTransformSetter(c?"x":"y"),f=l===r.axisX?"y":"x",h=/^(top|left)$/.test(o)?-1:1,d=i.tickTextRotate;this.config.range=a.rangeExtent?a.rangeExtent():r.scaleExtent((i.orgXScale||a).range());var g,p=n,v=p.innerTickSize,y=p.tickLength,x=p.range,_=i.id,m=_&&/^(x|y|y2)$/.test(_)?i.config["axis_"+_+"_tick_text_position"]:{x:0,y:0},b="subX"===_?"subchart_axis_x":"axis_"+_,w=i.config[b+"_show"],T=!!w&&i.config[b+"_tick_show"],A=!!w&&i.config[b+"_tick_text_show"];t.each((function(){var t=Ln(this),p=this.__chart__||a,_=r.copyScale();g=t,this.__chart__=_,n.tickOffset=i.isCategory?Math.ceil((_(1)-_(0))/2):0;var b=t.selectAll(".domain").data([0]);if(b.enter().append("path").attr("class","domain").merge(b).attr("d",(function(){var t=n.outerTickSize*h;return c?"M"+x[0]+","+t+"V0H"+x[1]+"V"+t:"M"+t+","+x[0]+"H0V"+x[1]+"H"+t})),T||A){var w=n.tickValues||r.generateTicks(_,u),S=t.selectAll(".tick").data(w,_),k=S.enter().insert("g",".domain").attr("class","tick"),E=S.exit().remove();S=k.merge(S),T&&k.append("line"),A&&k.append("text");var M=yf.getSizeFor1Char(S),O=[],C=S.select("text").selectAll("tspan").data((function(t,e){var n=i.tickMultiline?s(t,_,w,u,M.w):Wa(r.textFormatted(t))?r.textFormatted(t).concat():[r.textFormatted(t)];return O[e]=n.length,n.map((function(t){return{index:e,splitted:t}}))}));C.exit().remove(),(C=C.enter().append("tspan").merge(C).text((function(t){return t.splitted}))).attr("x",c?0:y*h).attr("dx",function(){var t=0;return/(top|bottom)/.test(o)&&d&&(t=8*Math.sin(Math.PI*(d/180))*("top"===o?-1:1)),t+(m.x||0)}()).attr("dy",(function(t,e){var n=0;return"top"!==o&&(n=M.h,0===e&&(n=u?-((O[t.index]-1)*(M.h/2)-3):0===m.y?".71em":0)),Fa(n)&&m.y?n+m.y:n||".71em"}));var R=S.select("line"),L=S.select("text");if(k.select("line").attr(f+"2",v*h),k.select("text").attr(f,y*h),e.setTickLineTextPosition(R,L),i.tickTitle){var I=L.select("title");(I.empty()?L.append("title"):I).text((function(t){return i.tickTitle[t]}))}if(_.bandwidth){var P=_,D=P.bandwidth()/2;_=p=function(t){return P(t)+D}}else p.bandwidth?p=_:l(E,_);S=i.owner.state.flowing?r.transitionise(S):i.owner.$T(S),l(k,p),l(S.style("opacity",null),_)}})),this.g=g},e.getTickXY=function(){var t=this.config,e={x:0,y:0};return this.params.isCategory&&(e.x=t.tickCentered?0:t.tickOffset,e.y=t.tickCentered?t.tickOffset:0),e},e.getTickSize=function(t){var e=this.helper.scale,n=this.config,r=n,i=r.innerTickSize,a=r.range,o=e(t)+(n.tickCentered?0:n.tickOffset);return a[0]<o&&o<a[1]?i:0},e.setTickLineTextPosition=function(t,e){var n=this.getTickXY(),r=this.config,i=r.innerTickSize,a=r.orient,o=r.tickLength,s=r.tickOffset,u=this.params.tickTextRotate,c=function(t){var e=["start","end"];return"top"===a&&e.reverse(),t?e[t>0?0:1]:"middle"},l=function(t){return t?"rotate("+t+")":null},f=function(t){return t?11.5-2.5*(t/("bottom"===a?15:23))*(t>0?1:-1):o};switch(a){case"bottom":t.attr("x1",n.x).attr("x2",n.x).attr("y2",this.getTickSize.bind(this)),e.attr("x",0).attr("y",f(u)).style("text-anchor",c(u)).attr("transform",l(u));break;case"top":t.attr("x2",0).attr("y2",-i),e.attr("x",0).attr("y",2*-f(u)).style("text-anchor",c(u)).attr("transform",l(u));break;case"left":t.attr("x2",-i).attr("y1",n.y).attr("y2",n.y),e.attr("x",-o).attr("y",s).style("text-anchor","end");break;case"right":t.attr("x2",i).attr("y2",0),e.attr("x",o).attr("y",0).style("text-anchor","start")}},e.splitTickText=function(t,e,n,r,i){var a=this.params,o=this.helper.textFormatted(t),s=Na(o)&&o.indexOf("\n")>-1?o.split("\n"):[];if(s.length)return s;if(Wa(o))return o;var u=a.tickWidth;return(!u||u<=0)&&(u=r?95:a.isCategory?Math.ceil(e(n[1])-e(n[0]))-12:110),function t(e,n){for(var r,a,o,s=1;s<n.length;s++)if(" "===n.charAt(s)&&(a=s),r=n.substr(0,s+1),o=i*r.length,u<o)return t(e.concat(n.substr(0,a||s)),n.slice(a?a+1:s));return e.concat(n)}(s,o+"")},e.scale=function(t){return arguments.length?(this.helper.scale=t,this):this.helper.scale},e.orient=function(t){return arguments.length?(this.config.orient=t in{top:1,right:1,bottom:1,left:1}?t+"":"bottom",this):this.config.orient},e.tickFormat=function(t){var e=this.config;return arguments.length?(e.tickFormat=t,this):e.tickFormat},e.tickCentered=function(t){var e=this.config;return arguments.length?(e.tickCentered=t,this):e.tickCentered},e.tickOffset=function(){return this.config.tickOffset},e.tickInterval=function(t){var e,n=this,r=this.config,i=r.outerTickSize,a=r.tickOffset,o=r.tickValues;if(this.params.isCategory)e=2*a;else{e=(this.g.select("path.domain").node().getTotalLength()-2*i)/(t||this.g.selectAll("line").size());var s=o?o.map((function(t,e,r){var i=e+1;return i<r.length?n.helper.scale(r[i])-n.helper.scale(t):null})).filter(Boolean):[];e=Math.min.apply(Math,s.concat([e]))}return e===1/0?0:e},e.ticks=function(){for(var t=this.config,e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.length?(t.tickArguments=lo(n),this):t.tickArguments},e.tickCulling=function(t){var e=this.config;return arguments.length?(e.tickCulling=t,this):e.tickCulling},e.tickValues=function(t){var e=this,n=this.config;if(za(t))n.tickValues=function(){return t(e.helper.scale.domain())};else{if(!arguments.length)return n.tickValues;n.tickValues=t}return this},e.setTransition=function(t){return this.config.transition=t,this},t}(),_f={getAxisInstance:function(){return this.axis||new mf(this)}},mf=function(){function t(t){this.owner=void 0,this.x=void 0,this.subX=void 0,this.y=void 0,this.y2=void 0,this.axesList={},this.tick={x:null,y:null,y2:null},this.xs=[],this.orient={x:"bottom",y:"left",y2:"right",subX:"bottom"},this.owner=t,this.setOrient()}var e=t.prototype;return e.getAxisClassName=function(t){return La.axis+" "+La["axis"+co(t)]},e.isHorizontal=function(t,e){var n=t.config.axis_rotated;return e?n:!n},e.isCategorized=function(){var t=this.owner,e=t.config,n=t.state;return e.axis_x_type.indexOf("category")>=0||n.hasRadar},e.isCustomX=function(){var t=this.owner.config;return!this.isTimeSeries()&&(t.data_x||Ha(t.data_xs))},e.isTimeSeries=function(t){return void 0===t&&(t="x"),"timeseries"===this.owner.config["axis_"+t+"_type"]},e.isLog=function(t){return void 0===t&&(t="x"),"log"===this.owner.config["axis_"+t+"_type"]},e.isTimeSeriesY=function(){return this.isTimeSeries("y")},e.getAxisType=function(t){void 0===t&&(t="x");var e="linear";return this.isTimeSeries(t)?e=this.owner.config.axis_x_localtime?"time":"utc":this.isLog(t)&&(e="log"),e},e.init=function(){var t=this,e=this.owner,n=e.config,r=e.$el,i=r.main,a=r.axis,o=e.state.clip,s=n.axis_rotated,u=["x","y"];n.axis_y2_show&&u.push("y2"),u.forEach((function(r){var u=t.getAxisClassName(r),c=La["axis"+r.toUpperCase()+"Label"];a[r]=i.append("g").attr("class",u).attr("clip-path",(function(){var t=null;return"x"===r?t=o.pathXAxis:"y"===r&&(t=o.pathYAxis),t})).attr("transform",e.getTranslate(r)).style("visibility",n["axis_"+r+"_show"]?null:"hidden"),a[r].append("text").attr("class",c).attr("transform",["rotate(-90)",null]["x"===r?+!s:+s]).style("text-anchor",(function(){return t.textAnchorForAxisLabel(r)})),t.generateAxes(r)}))},e.setOrient=function(){var t=this.owner.config,e=t.axis_rotated,n=t.axis_y_inner,r=t.axis_y2_inner;this.orient={x:e?"left":"bottom",y:e?n?"top":"bottom":n?"right":"left",y2:e?r?"bottom":"top":r?"left":"right",subX:e?"left":"bottom"}},e.generateAxes=function(t){var e,n=this.owner,r=n.config,i=[],a=r["axis_"+t+"_axes"],o=r.axis_rotated;"x"===t?e=o?vf:pf:"y"===t?e=o?pf:vf:"y2"===t&&(e=o?df:gf),a.length&&a.forEach((function(r){var a=r.tick||{},o=n.scale[t].copy();r.domain&&o.domain(r.domain),i.push(e(o).ticks(a.count).tickFormat(za(a.format)?a.format.bind(n.api):function(t){return t}).tickValues(a.values).tickSizeOuter(!1===a.outer?0:6))})),this.axesList[t]=i},e.updateAxes=function(){var t=this,e=this.owner,n=e.config,r=e.$el.main;Object.keys(this.axesList).forEach((function(i){var a=n["axis_"+i+"_axes"],o=e.scale[i].copy(),s=o.range();t.axesList[i].forEach((function(u,c){var l=u.scale().range();s.every((function(t,e){return t===l[e]}))||u.scale().range(s);var f=t.getAxisClassName(i)+"-"+(c+1),h=r.select("."+f.replace(/\s/,"."));h.empty()?h=r.append("g").attr("class",f).style("visibility",n["axis_"+i+"_show"]?null:"hidden").call(u):(a[c].domain&&o.domain(a[c].domain),e.$T(h).call(u.scale(o))),h.attr("transform",e.getTranslate(i,c+1))}))}))},e.setAxis=function(t,e,n,r){var i=this.owner;"subX"!==t&&(this.tick[t]=this.getTickValues(t)),this[t]=this.getAxis(t,e,n,!("x"!==t||!(i.scale.zoom||i.config.subchart_show||i.state.resizing))||r)},e.getAxis=function(t,e,n,r,i){var a,o=this.owner,s=o.config,u=/^(x|subX)$/.test(t),c=u?"x":t,l=u&&this.isCategorized(),f=this.orient[t],h=i?0:o.getAxisTickRotate(c);if(u)a="subX"===t?o.format.subXAxisTick:o.format.xAxisTick;else{var d=s["axis_"+t+"_tick_format"];za(d)&&(a=d.bind(o.api))}var g=this.tick[c],p=po({outerTick:n,noTransition:r,config:s,id:t,tickTextRotate:h,owner:o},u&&{isCategory:l,tickMultiline:s.axis_x_tick_multiline,tickWidth:s.axis_x_tick_width,tickTitle:l&&s.axis_x_tick_tooltip&&o.api.categories(),orgXScale:o.scale.x});u||(p.tickStepSize=s["axis_"+c+"_tick_stepSize"]);var v=new xf(p).scale(u&&o.scale.zoom||e).orient(f);if(u&&this.isTimeSeries()&&g&&!za(g)){var y=bo.bind(o);g=g.map((function(t){return y(t)}))}else!u&&this.isTimeSeriesY()&&(v.ticks(s.axis_y_tick_time_value),g=null);g&&v.tickValues(g),v.tickFormat(a||!u&&o.isStackNormalized()&&function(t){return t+"%"}),l&&(v.tickCentered(s.axis_x_tick_centered),Ga(s.axis_x_tick_culling)&&(s.axis_x_tick_culling=!1));var x=s["axis_"+c+"_tick_count"];return x&&v.ticks(x),v},e.updateXAxisTickValues=function(t,e){var n,r=this.owner,i=r.config,a=i.axis_x_tick_fit,o=i.axis_x_tick_count;if((a||o&&a)&&(n=r.mapTargetsToUniqueXs(t),this.isCategorized()&&o>n.length&&(o=n.length),n=this.generateTickValues(n,o,this.isTimeSeries())),e)e.tickValues(n);else if(this.x){var s;this.x.tickValues(n),null==(s=this.subX)||s.tickValues(n)}return n},e.getId=function(t){var e=this.owner,n=e.config,r=e.scale,i=n.data_axes[t];return i&&r[i]||(i="y"),i},e.getXAxisTickFormat=function(t){var e,n=this.owner,r=n.config,i=n.format,a=t&&r.subchart_axis_x_tick_format||r.axis_x_tick_format,o=this.isTimeSeries(),s=this.isCategorized();return a?za(a)?e=a.bind(n.api):o&&(e=function(t){return t?i.axisTime(a)(t):""}):e=o?i.defaultAxisTime:s?n.categoryName:function(t){return t<0?t.toFixed(0):t},za(e)?function(t){return e.apply(n,s?[t,n.categoryName(t)]:[t])}:e},e.getTickValues=function(t){var e=this.owner,n=e.config["axis_"+t+"_tick_values"],r=e[t+"Axis"];return(za(n)?n.call(e.api):n)||(r?r.tickValues():void 0)},e.getLabelOptionByAxisId=function(t){return this.owner.config["axis_"+t+"_label"]},e.getLabelText=function(t){var e=this.getLabelOptionByAxisId(t);return Na(e)?e:e?e.text:null},e.setLabelText=function(t,e){var n=this.owner.config,r=this.getLabelOptionByAxisId(t);Na(r)?n["axis_"+t+"_label"]=e:r&&(r.text=e)},e.getLabelPosition=function(t,e){var n=this.owner.config.axis_rotated,r=this.getLabelOptionByAxisId(t),i=Va(r)&&r.position?r.position:e[+!n],a=function(t){return!!~i.indexOf(t)};return{isInner:a("inner"),isOuter:a("outer"),isLeft:a("left"),isCenter:a("center"),isRight:a("right"),isTop:a("top"),isMiddle:a("middle"),isBottom:a("bottom")}},e.getAxisLabelPosition=function(t){return this.getLabelPosition(t,"x"===t?["inner-top","inner-right"]:["inner-right","inner-top"])},e.getLabelPositionById=function(t){return this.getAxisLabelPosition(t)},e.xForAxisLabel=function(t){var e=this.owner,n=e.state,r=n.width,i=n.height,a=this.getAxisLabelPosition(t),o=a.isMiddle?-i/2:0;return this.isHorizontal(e,"x"!==t)?o=a.isLeft?0:a.isCenter?r/2:r:a.isBottom&&(o=-i),o},e.dxForAxisLabel=function(t){var e=this.owner,n=this.getAxisLabelPosition(t),r=n.isBottom?"0.5em":"0";return this.isHorizontal(e,"x"!==t)?r=n.isLeft?"0.5em":n.isRight?"-0.5em":"0":n.isTop&&(r="-0.5em"),r},e.textAnchorForAxisLabel=function(t){var e=this.owner,n=this.getAxisLabelPosition(t),r=n.isMiddle?"middle":"end";return this.isHorizontal(e,"x"!==t)?r=n.isLeft?"start":n.isCenter?"middle":"end":n.isBottom&&(r="start"),r},e.dyForAxisLabel=function(t){var e,n=this.owner,r=n.config,i=r.axis_rotated,a=this.getAxisLabelPosition(t).isInner,o=r["axis_"+t+"_tick_rotate"]?n.getHorizontalAxisHeight(t):0,s=this.getMaxTickWidth(t);if("x"===t){var u=r.axis_x_height;e=i?a?"1.2em":-25-s:a?"-0.5em":u?u-10:o?o-10:"3em"}else e={y:["-0.5em",10,"3em","1.2em",10],y2:["1.2em",-20,"-2.2em","-0.5em",15]}[t],e=i?a?e[0]:o?o*("y2"===t?-1:1)-e[1]:e[2]:a?e[3]:(e[4]+(r["axis_"+t+"_inner"]?0:s+e[4]))*("y"===t?-1:1);return e},e.getMaxTickWidth=function(t,e){var n=this.owner,r=n.config,i=n.state.current,a=n.$el,o=a.svg,s=a.chart,u=i.maxTickWidths[t],c=0;if(e||!r["axis_"+t+"_show"]||0===n.filterTargetsToShow().length)return u.size;if(o){var l=/^y2?$/.test(t),f=n.filterTargetsToShow(n.data.targets),h=n.scale[t].copy().domain(n["get"+(l?"Y":"X")+"Domain"](f,t)),d=h.domain(),g=d[0]===d[1]&&d.every((function(t){return t>0})),p=Wa(u.domain)&&u.domain[0]===u.domain[1]&&u.domain.every((function(t){return t>0}));if(g||p)return u.size;u.domain=d,l||u.ticks.splice(0);var v=this.getAxis(t,h,!1,!1,!0),y=r["axis_"+t+"_tick_count"];!r["axis_"+t+"_tick_values"]&&y&&v.tickValues(this.generateTickValues(d,y,l?this.isTimeSeriesY():this.isTimeSeries())),l||this.updateXAxisTickValues(f,v);var x=s.append("svg").style("visibility","hidden").style("position","fixed").style("top","0").style("left","0");v.create(x),x.selectAll("text").each((function(t,e){var n=this.getBoundingClientRect().width;c=Math.max(c,n),l||(u.ticks[e]=n)})),x.remove()}return c>0&&(u.size=c),u.size},e.getXAxisTickTextY2Overflow=function(t){var e=this.owner,n=e.axis,r=e.config,i=e.state,a=e.getAxisTickRotate("x");if((n.isCategorized()||n.isTimeSeries())&&r.axis_x_tick_fit&&!r.axis_x_tick_culling&&!r.axis_x_tick_multiline&&a>0&&a<90){var o=i.current.width-e.getCurrentPaddingLeft(),s=this.getXAxisTickMaxOverflow(a,o-t),u=Math.max(0,s)+t;return Math.min(u,o/2)}return 0},e.getXAxisTickMaxOverflow=function(t,e){for(var n=this.owner,r=n.axis,i=n.config,a=n.state,o=r.isTimeSeries(),s=a.current.maxTickWidths.x.ticks,u=s.length,c=a.axis.x.padding,l=c.left,f=c.right,h=0,d=u-(o&&i.axis_x_tick_fit?.5:0),g=0;g<u;g++){var p=g+1,v=Math.cos(Math.PI*t/180)*s[g],y=p-(o?1:.5)+l;if(!(y<=0)){var x=(e-v)/y;h=Math.max(h,v-x/2-((d-p)*x+f*x))}}var _=n.filterTargetsToShow(n.data.targets),m=0;if(!o&&i.axis_x_tick_count<=_.length&&_[0].values.length){var b=_c(n.axis.getAxisType("x"),0,e-h).domain([-1*l,n.getXDomainMax(n.data.targets)+1+f]);m=Math.ceil((b(1)-b(0))/2)}return h+m},e.updateLabels=function(t){var e=this,n=this.owner,r=n.$el.main,i=n.$T,a={x:r.select("."+La.axisX+" ."+La.axisXLabel),y:r.select("."+La.axisY+" ."+La.axisYLabel),y2:r.select("."+La.axisY2+" ."+La.axisY2Label)};Object.keys(a).filter((function(t){return!a[t].empty()})).forEach((function(n){var r=a[n];i(r,t).attr("x",(function(){return e.xForAxisLabel(n)})).attr("dx",(function(){return e.dxForAxisLabel(n)})).attr("dy",(function(){return e.dyForAxisLabel(n)})).text((function(){return e.getLabelText(n)}))}))},e.getPadding=function(t,e,n,r){var i=Fa(t)?t:t[e];return Da(i)?this.owner.convertPixelToScale(/(bottom|top)/.test(e)?"y":"x",i,r):n},e.generateTickValues=function(t,e,n){var r=t;if(e){var i=za(e)?e():e;if(1===i)r=[t[0]];else if(2===i)r=[t[0],t[t.length-1]];else if(i>2){var a,o=this.isCategorized(),s=i-2,u=t[0],c=t[t.length-1];r=[u];for(var l=0;l<s;l++)a=+u+(c-u)/(s+1)*(l+1),r.push(n?new Date(a):o?Math.round(a):a);r.push(c)}}return n||(r=r.sort((function(t,e){return t-e}))),r},e.generateTransitions=function(t){var e=this.owner,n=e.$el.axis,r=e.$T,i=["x","y","y2","subX"].map((function(e){return r(n[e],t)}));return{axisX:i[0],axisY:i[1],axisY2:i[2],axisSubX:i[3]}},e.redraw=function(t,e,n){var r=this,i=this.owner,a=i.config,o=i.$el,s=e?"0":null;["x","y","y2","subX"].forEach((function(e){var i=r[e],u=o.axis[e];i&&u&&(n||a.transition_duration||(i.config.withoutTransition=!0),u.style("opacity",s),i.create(t["axis"+co(e)]))})),this.updateAxes()},e.redrawAxis=function(t,e,n,r,i){var a,o,s,u=this,c=this.owner,l=c.config,f=c.scale,h=c.$el,d=!!f.zoom;if(!d&&this.isCategorized()&&0===t.length&&f.x.domain([0,h.axis.x.selectAll(".tick").size()]),f.x&&t.length)d||c.updateXDomain(t,e.UpdateXDomain,e.UpdateOrgXDomain,e.TrimXDomain),l.axis_x_tick_values||this.updateXAxisTickValues(t);else if(this.x){var g;this.x.tickValues([]),null==(g=this.subX)||g.tickValues([])}(l.zoom_rescale&&!r&&(a=f.x.orgDomain()),["y","y2"].forEach((function(e){var n=f[e];if(n){var r=l["axis_"+e+"_tick_values"],i=l["axis_"+e+"_tick_count"];if(n.domain(c.getYDomain(t,e,a)),!r&&i){var o=c.axis[e],s=n.domain();o.tickValues(u.generateTickValues(s,s.every((function(t){return 0===t}))?1:i,u.isTimeSeriesY()))}}})),this.redraw(n,c.hasArcType(),i),this.updateLabels(e.Transition),(e.UpdateXDomain||e.UpdateXAxis||e.Y)&&t.length&&this.setCulling(),e.Y)&&(null==(o=f.subY)||o.domain(c.getYDomain(t,"y")),null==(s=f.subY2)||s.domain(c.getYDomain(t,"y2")))},e.setCulling=function(){var t=this.owner,e=t.config,n=t.state,r=n.clip,i=n.current,a=t.$el;["subX","x","y","y2"].forEach((function(t){var n=a.axis[t],o="subX"===t?"x":t,s=e["axis_"+o+"_tick_culling"];if(n&&s){var u,c=n.selectAll(".tick text"),l=vo(c.data()),f=l.length,h=e["axis_"+o+"_tick_culling_max"];if(f){for(var d=1;d<f;d++)if(f/d<h){u=d;break}c.each((function(t){this.style.display=l.indexOf(t)%u?"none":null}))}else c.style("display",null);if("x"===t){var g=i.maxTickWidths.x.clipPath?r.pathXAxisTickTexts:null;a.svg.selectAll("."+La.axisX+" .tick text").attr("clip-path",g)}}}))},t}(),bf={initEventRect:function(){this.$el.main.select("."+La.chart).append("g").attr("class",La.eventRects).style("fill-opacity","0")},redrawEventRect:function(){var t=this,e=t.config,n=t.state,r=t.$el,i=t.isMultipleX();if(r.eventRect)t.updateEventRect(r.eventRect,!0);else{var a=t.$el.main.select("."+La.eventRects).style("cursor",e.zoom_enabled&&"drag"!==e.zoom_type?e.axis_rotated?"ns-resize":"ew-resize":null).classed(La.eventRectsMultiple,i).classed(La.eventRectsSingle,!i).selectAll("."+La.eventRect).data([0]).enter().append("rect");t.updateEventRect(a),i?t.generateEventRectsForMultipleXs(a):t.generateEventRectsForSingleX(a),a.call(t.getDraggableSelection()),r.eventRect=a,"touch"!==t.state.inputType||r.svg.on("touchstart.eventRect")||t.hasArcType()||t.bindTouchOnEventRect(i)}if(!i){var o=t.getMaxDataCountTarget();t.updateDataIndexByX(o),t.updateXs(o),null==t.updatePointClass||t.updatePointClass(!0),n.eventReceiver.data=o}t.updateEventRectData()},bindTouchOnEventRect:function(t){var e,n=this,r=n.config,i=n.state,a=n.$el,o=a.eventRect,s=a.svg,u=function(){n.unselectRect(),n.callOverOutForTouch()},c=r.interaction_inputType_touch.preventDefault,l=Ba(c)&&c||!1,f=!isNaN(c)&&c||null;o.on("touchstart",(function(t){i.event=t,n.updateEventRect()})).on("touchstart.eventRect touchmove.eventRect",(function(a){if(i.event=a,!o.empty()&&o.classed(La.eventRect)){if(i.dragging||i.flowing||n.hasArcType()||a.touches.length>1)return;!function(t){var n=t.type,i=t.changedTouches[0]["client"+(r.axis_rotated?"Y":"X")];"touchstart"===n?l?t.preventDefault():null!==f&&(e=i):"touchmove"===n&&(l||!0===e||null!==f&&Math.abs(e-i)>=f)&&(e=!0,t.preventDefault())}(a),function(e){if(t)n.selectRectForMultipleXs(e);else{var r=n.getDataIndexFromEvent(i.event);n.callOverOutForTouch(r),-1===r?n.unselectRect():n.selectRectForSingle(e,o,r)}}(o.node())}else u()}),!0).on("touchend.eventRect",(function(t){i.event=t,!o.empty()&&o.classed(La.eventRect)&&(n.hasArcType()||!n.toggleShape||i.cancelClick)&&i.cancelClick&&(i.cancelClick=!1)}),!0),s.on("touchstart",(function(t){i.event=t;var e=t.target;e&&e!==o.node()&&u()}))},updateEventRect:function(t,e){void 0===e&&(e=!1);var n=this.state,r=this.$el,i=n,a=i.eventReceiver,o=i.width,s=i.height,u=i.rendered,c=i.resizing,l=t||r.eventRect;(!u||c||e)&&(l.attr("x",0).attr("y",0).attr("width",o).attr("height",s),u||l.attr("class",La.eventRect)),a&&(a.rect=l.node().getBoundingClientRect())},updateEventRectData:function(){var t,e,n,r,i=this,a=i.config,o=i.scale,s=i.state,u=o.zoom||o.x,c=a.axis_rotated;if(i.isMultipleX())t=0,e=0,n=s.width,r=s.height;else{var l,f;if(i.axis.isCategorized())l=i.getEventRectWidth(),f=function(t){return u(t.x)-l/2};else{var h=function(t){var e=t.index;return{prev:i.getPrevX(e),next:i.getNextX(e)}};l=function(t){var e=h(t),n=u.domain();return null===e.prev&&null===e.next?c?s.height:s.width:(Object.keys(e).forEach((function(t,r){var i;e[t]=null!=(i=e[t])?i:n[r]})),Math.max(0,(u(e.next)-u(e.prev))/2))},f=function(t){var e=h(t),n=t.x;return null===e.prev&&null===e.next?0:(null===e.prev&&(e.prev=u.domain()[0]),(u(n)+u(e.prev))/2)}}t=c?0:f,e=c?f:0,n=c?s.width:l,r=c?l:s.height}var d=s.eventReceiver,g=function(t,e){return za(t)?t(e):t};d.coords.splice(d.data.length),d.data.forEach((function(i,a){d.coords[a]={x:g(t,i),y:g(e,i),w:g(n,i),h:g(r,i)}}))},selectRectForMultipleXs:function(t){var e=this,n=e.config,r=e.state,i=e.filterTargetsToShow(e.data.targets);if(!r.dragging&&!e.hasArcType(i)){var a=no(r.event,t),o=e.findClosestFromTargets(i,a);if(!r.mouseover||o&&o.id===r.mouseover.id||(n.data_onout.call(e.api,r.mouseover),r.mouseover=void 0),o){var s=(e.isBubbleType(o)||e.isScatterType(o)||!n.tooltip_grouped?[o]:e.filterByX(i,o.x)).map((function(t){return e.addName(t)}));e.showTooltip(s,t),e.setExpand(o.index,o.id,!0),e.showGridFocus(s),(e.isBarType(o.id)||e.dist(o,a)<n.point_sensitivity)&&(e.$el.svg.select("."+La.eventRect).style("cursor","pointer"),r.mouseover||(n.data_onover.call(e.api,o),r.mouseover=o))}else e.unselectRect()}},unselectRect:function(){var t=this,e=t.config,n=t.$el,r=n.circle,i=n.tooltip;t.$el.svg.select("."+La.eventRect).style("cursor",null),t.hideGridFocus(),i&&(t.hideTooltip(),t._handleLinkedCharts(!1)),r&&!e.point_focus_only&&t.unexpandCircles(),t.expandBarTypeShapes(!1)},generateEventRectsForSingleX:function(t){var e=this,n=e.config,r=e.state,i=r.eventReceiver,a=t.style("cursor",n.data_selection_enabled&&n.data_selection_grouped?"pointer":null).on("click",(function(t){r.event=t;var n=i,a=n.currentIdx,o=n.data[-1===a?e.getDataIndexFromEvent(t):a];e.clickHandlerForSingleX.bind(this)(o,e)}));if("mouse"===r.inputType){a.on("mouseover",(function(t){r.event=t,e.updateEventRect()})).on("mousemove",(function(t){var o=function(t){var n=t?e.getDataIndexFromEvent(t):i.currentIdx;return n>-1?i.data[n]:null}(t);if(r.event=t,o){var s=o.index,u=n.line_step_type;if(n.line_step_tooltipMatch&&e.hasType("step")&&/^step\-(before|after)$/.test(u)){var c=e.scale.zoom||e.scale.x,l=e.axis.xs[s],f=c.invert(no(t,this)[0]);"step-after"===u&&f<l?s-=1:"step-before"===u&&f>l&&(s+=1)}r.dragging||r.flowing||e.hasArcType()||n.tooltip_grouped&&s===i.currentIdx||(s!==i.currentIdx&&(e.setOverOut(!1,i.currentIdx),i.currentIdx=s),-1===s?e.unselectRect():e.selectRectForSingle(this,a,s),e.setOverOut(-1!==s,s))}})).on("mouseout",(function(t){r.event=t,n&&!e.hasArcType()&&-1!==i.currentIdx&&(e.unselectRect(),e.setOverOut(!1,i.currentIdx),i.currentIdx=-1)}))}return a},clickHandlerForSingleX:function(t,e){var n=e,r=n.config,i=n.state,a=n.$el.main;if(!t||n.hasArcType()||i.cancelClick)i.cancelClick&&(i.cancelClick=!1);else{var o=t.index;a.selectAll("."+La.shape+"-"+o).each((function(t){(r.data_selection_grouped||n.isWithinShape(this,t))&&(null==n.toggleShape||n.toggleShape(this,t,o),r.data_onclick.bind(n.api)(t,this))}))}},generateEventRectsForMultipleXs:function(t){var e=this,n=e.state;t.on("click",(function(t){n.event=t,e.clickHandlerForMultipleXS.bind(this)(e)})),"mouse"===n.inputType&&t.on("mouseover mousemove",(function(t){n.event=t,e.selectRectForMultipleXs(this)})).on("mouseout",(function(t){n.event=t,e.config&&!e.hasArcType()&&e.unselectRect()}))},clickHandlerForMultipleXS:function(t){var e=t,n=e.config,r=e.state,i=e.filterTargetsToShow(e.data.targets);if(!e.hasArcType(i)){var a=no(r.event,this),o=e.findClosestFromTargets(i,a);o&&(e.isBarType(o.id)||e.dist(o,a)<n.point_sensitivity)&&e.$el.main.selectAll("."+La.shapes+e.getTargetSelectorSuffix(o.id)).selectAll("."+La.shape+"-"+o.index).each((function(){(n.data_selection_grouped||e.isWithinShape(this,o))&&(null==e.toggleShape||e.toggleShape(this,o,o.index),n.data_onclick.bind(e.api)(o,this))}))}}},wf=function(t){return+t},Tf={generateFlow:function(t){var e=this,n=e.data,r=e.state,i=e.$el;return function(){var a=t.flow.length;r.flowing=!0,n.targets.forEach((function(t){t.values.splice(0,a)})),e.updateXGrid&&e.updateXGrid(!0);var o={};["axis.x","grid.x","gridLines.x","region.list","text","bar","line","area","circle"].forEach((function(t){var e,n=t.split("."),r=i[n[0]];r&&n.length>1&&(r=r[n[1]]),null!=(e=r)&&e.size()&&(o[t]=r)})),e.hideGridFocus(),e.setFlowList(o,t)}},setFlowList:function(t,e){var n,r=this,i=e.flow,a=e.targets,o=i,s=o.duration,u=void 0===s?e.duration:s,c=o.index,l=o.length,f=o.orgDataCount,h=r.getFlowTransform(a,f,c,l),d=qo();d.add(Object.keys(t).map((function(e){return n=t[e].transition().ease(wf).duration(u),n="axis.x"===e?n.call((function(t){r.axis.x.setTransition(t).create(t)})):"region.list"===e?n.filter(r.isRegionOnX).attr("transform",h):n.attr("transform",h)}))),n.call(d,(function(){r.cleanUpFlow(t,e)}))},cleanUpFlow:function(t,e){var n=this,r=n.config,i=n.state,a=n.$el.svg,o=r.axis_rotated,s=e.flow,u=e.shape,c=e.xv,l=u.pos,f=l.cx,h=l.cy,d=l.xForText,g=l.yForText,p=s,v=p.done,y=void 0===v?function(){}:v,x=p.length;x&&(["circle","text","shape","eventRect"].forEach((function(t){for(var e=[],n=0;n<x;n++)e.push("."+La[t]+"-"+n);a.selectAll("."+La[t+"s"]).selectAll(e).remove()})),a.select("."+La.xgrid).remove()),Object.keys(t).forEach((function(e){var a=t[e];if("axis.x"!==e&&a.attr("transform",null),"grid.x"===e)a.attr(i.xgridAttr);else if("gridLines.x"===e)a.attr("x1",o?0:c).attr("x2",o?i.width:c);else if("gridLines.x"===e)a.select("line").attr("x1",o?0:c).attr("x2",o?i.width:c),a.select("text").attr("x",o?i.width:0).attr("y",c);else if(/^(area|bar|line)$/.test(e))a.attr("d",u.type[e]);else if("text"===e)a.attr("x",d).attr("y",g).style("fill-opacity",n.opacityForText.bind(n));else if("circle"===e)if(n.isCirclePoint())a.attr("cx",f).attr("cy",h);else{a.attr("x",(function(t){return f(t)-r.point_r})).attr("y",(function(t){return h(t)-r.point_r})).attr("cx",f).attr("cy",h)}else"region.list"===e&&a.select("rect").filter(n.isRegionOnX).attr("x",n.regionX.bind(n)).attr("width",n.regionWidth.bind(n))})),r.interaction_enabled&&n.redrawEventRect(),y.call(n.api),i.flowing=!1},getFlowTransform:function(t,e,n,r){var i,a,o,s=this,u=s.data,c=s.scale.x,l=u.targets[0].values,f=s.getValueOnIndex(l,n),h=s.getValueOnIndex(l,n+r),d=c.domain(),g=s.updateXDomain(t,!0,!0);return e?o=1===e||(null==(i=f)?void 0:i.x)===(null==(a=h)?void 0:a.x)||s.axis.isTimeSeries()?c(d[0])-c(g[0]):c(f.x)-c(h.x):1!==l.length?o=c(d[0])-c(g[0]):s.axis.isTimeSeries()?(f=s.getValueOnIndex(l,0),h=s.getValueOnIndex(l,l.length-1),o=c(f.x)-c(h.x)):o=Ya(g)/2,"translate("+o+",0) scale("+Ya(d)/Ya(g)+",1)"}},Af={initClip:function(){var t=this,e=t.state.clip;e.id=t.state.datetimeId+"-clip",e.idXAxis=e.id+"-xaxis",e.idYAxis=e.id+"-yaxis",e.idGrid=e.id+"-grid",e.path=t.getClipPath(e.id),e.pathXAxis=t.getClipPath(e.idXAxis),e.pathYAxis=t.getClipPath(e.idYAxis),e.pathGrid=t.getClipPath(e.idGrid)},getClipPath:function(t){var e=this.config;return!e.clipPath&&/-clip$/.test(t)||!e.axis_x_clipPath&&/-clip-xaxis$/.test(t)||!e.axis_y_clipPath&&/-clip-yaxis$/.test(t)?null:"url("+(!!In.navigator&&In.navigator.appVersion.toLowerCase().indexOf("msie 9.")>=0?"":Pn.URL.split("#")[0])+"#"+t+")"},appendClip:function(t,e){e&&t.append("clipPath").attr("id",e).append("rect")},setXAxisClipPath:function(t){var e=this.config,n=this.state,r=n.margin,i=n.width,a=n.height,o=e.axis_rotated,s=Math.max(30,r.left)-(o?0:20),u=o?-(1+s):-(s-1),c=-Math.max(15,r.top),l=o?r.left+20:i+10+s,f=(o?r.top+a+10:r.bottom)+20;t.attr("x",u).attr("y",c).attr("width",l).attr("height",f)},setYAxisClipPath:function(t){var e=this.config,n=this.state,r=n.margin,i=n.width,a=n.height,o=e.axis_rotated,s=Math.max(30,r.left)-(o?20:0),u=e.axis_y_inner,c=u?-1:o?-(1+s):-(s-1),l=-(o?20:r.top),f=(o?i+15+s:r.left+20)+(u?20:0),h=(o?r.bottom:r.top+a)+10;t.attr("x",c).attr("y",l).attr("width",f).attr("height",h)},updateXAxisTickClip:function(){var t=this,e=t.config,n=t.state,r=n.clip,i=n.xAxisHeight,a=t.$el.defs,o=t.getHorizontalAxisHeight("x");if(a&&!r.idXAxisTickTexts){var s=r.id+"-xaxisticktexts";t.appendClip(a,s),r.pathXAxisTickTexts=t.getClipPath(r.idXAxisTickTexts),r.idXAxisTickTexts=s}!e.axis_x_tick_multiline&&t.getAxisTickRotate("x")&&o!==i&&(t.setXAxisTickClipWidth(),t.setXAxisTickTextClipPathWidth()),t.state.xAxisHeight=o},setXAxisTickClipWidth:function(){var t=this,e=t.config,n=t.state.current.maxTickWidths,r=t.getAxisTickRotate("x");if(!e.axis_x_tick_multiline&&r){var i=Math.sin(Math.PI/180*Math.abs(r));n.x.clipPath=(t.getHorizontalAxisHeight("x")-20)/i}else n.x.clipPath=null},setXAxisTickTextClipPathWidth:function(){var t=this.state,e=t.clip,n=t.current,r=this.$el.svg;r&&r.select("#"+e.idXAxisTickTexts+" rect").attr("width",n.maxTickWidths.x.clipPath).attr("height",30)}},Sf=function(t){return Da(t.position)||"end"},kf=function(t){return"start"===t.position?4:"middle"===t.position?0:-4};function Ef(t,e,n){return function(r){var i=t?0:e;return"start"===r.position?i=t?-n:0:"middle"===r.position&&(i=(t?-n:e)/2),i}}function Mf(t,e){"grid"===e&&t.each((function(){var t=Ln(this);["x1","x2","y1","y2"].forEach((function(e){return t.attr(e,Math.ceil(+t.attr(e)))}))}))}var Of={hasGrid:function(){var t=this.config;return["x","y"].some((function(e){return t["grid_"+e+"_show"]||t["grid_"+e+"_lines"].length}))},initGrid:function(){var t=this;t.hasGrid()&&t.initGridLines(),t.initFocusGrid()},initGridLines:function(){var t=this,e=t.config,n=t.state.clip,r=t.$el;(e.grid_x_lines.length||e.grid_y_lines.length)&&(r.gridLines.main=r.main.insert("g","."+La.chart+(e.grid_lines_front?" + *":"")).attr("clip-path",n.pathGrid).attr("class",La.grid+" "+La.gridLines),r.gridLines.main.append("g").attr("class",La.xgridLines),r.gridLines.main.append("g").attr("class",La.ygridLines),r.gridLines.x=kl([]))},updateXGrid:function(t){var e=this,n=e.config,r=e.scale,i=e.state,a=e.$el,o=a.main,s=a.grid,u=n.axis_rotated,c=e.generateGridData(n.grid_x_type,r.x),l=e.axis.isCategorized()?e.axis.x.tickOffset():0,f=function(t){return(r.zoom||r.x)(t)+l*(u?-1:1)};i.xgridAttr=u?{x1:0,x2:i.width,y1:f,y2:f}:{x1:f,x2:f,y1:0,y2:i.height},s.x=o.select("."+La.xgrids).selectAll("."+La.xgrid).data(c),s.x.exit().remove(),s.x=s.x.enter().append("line").attr("class",La.xgrid).merge(s.x),t||s.x.each((function(){var t=Ln(this);Object.keys(i.xgridAttr).forEach((function(e){t.attr(e,i.xgridAttr[e]).style("opacity",(function(){return t.attr(u?"y1":"x1")===(u?i.height:0)?"0":null}))}))}))},updateYGrid:function(){var t=this,e=t.config,n=t.state,r=t.$el,i=r.grid,a=r.main,o=e.axis_rotated,s=t.axis.y.tickValues()||t.scale.y.ticks(e.grid_y_ticks),u=function(e){return Math.ceil(t.scale.y(e))};i.y=a.select("."+La.ygrids).selectAll("."+La.ygrid).data(s),i.y.exit().remove(),i.y=i.y.enter().append("line").attr("class",La.ygrid).merge(i.y),i.y.attr("x1",o?u:0).attr("x2",o?u:n.width).attr("y1",o?0:u).attr("y2",o?n.height:u),Mf(i.y,"grid")},updateGrid:function(){var t=this,e=t.$el,n=e.grid;e.gridLines.main||t.initGridLines(),n.main.style("visibility",t.hasArcType()?"hidden":null),t.hideGridFocus(),t.updateXGridLines(),t.updateYGridLines()},updateXGridLines:function(){var t=this,e=t.config,n=t.$el,r=n.gridLines,i=n.main,a=t.$T,o=e.axis_rotated;e.grid_x_show&&t.updateXGrid();var s=i.select("."+La.xgridLines).selectAll("."+La.xgridLine).data(e.grid_x_lines);a(s.exit()).style("opacity","0").remove();var u=s.enter().append("g");u.append("line").style("opacity","0"),u.append("text").attr("transform",o?"":"rotate(-90)").attr("dy",-5).style("opacity","0"),a((s=u.merge(s)).attr("class",(function(t){return(La.xgridLine+" "+(t.class||"")).trim()})).select("text").attr("text-anchor",Sf).attr("dx",kf)).text((function(t){return t.text})).style("opacity",null),r.x=s},updateYGridLines:function(){var t=this,e=t.config,n=t.state,r=n.width,i=n.height,a=t.$el,o=t.$T,s=e.axis_rotated;e.grid_y_show&&t.updateYGrid();var u=a.main.select("."+La.ygridLines).selectAll("."+La.ygridLine).data(e.grid_y_lines);o(u.exit()).style("opacity","0").remove();var c=u.enter().append("g");c.append("line").style("opacity","0"),c.append("text").attr("transform",s?"rotate(-90)":"").style("opacity","0"),u=c.merge(u);var l=t.yv.bind(t);o(u.attr("class",(function(t){return(La.ygridLine+" "+(t.class||"")).trim()})).select("line")).attr("x1",s?l:0).attr("x2",s?l:r).attr("y1",s?0:l).attr("y2",s?i:l).style("opacity",null),o(u.select("text").attr("text-anchor",Sf).attr("dx",kf)).attr("dy",-5).attr("x",Ef(s,r,i)).attr("y",l).text((function(t){return t.text})).style("opacity",null),a.gridLines.y=u},redrawGrid:function(t){var e=this,n=e.config.axis_rotated,r=e.state,i=r.width,a=r.height,o=e.$el.gridLines,s=e.$T,u=e.xv.bind(e),c=o.x.select("line"),l=o.x.select("text");return c=s(c,t).attr("x1",n?0:u).attr("x2",n?i:u).attr("y1",n?u:0).attr("y2",n?u:a),l=s(l,t).attr("x",Ef(!n,i,a)).attr("y",u).text((function(t){return t.text})),[c.style("opacity",null),l.style("opacity",null)]},initFocusGrid:function(){var t=this,e=t.config,n=t.state.clip,r=t.$el,i=e.grid_front,a="."+La[i&&r.gridLines.main?"gridLines":"chart"]+(i?" + *":""),o=r.main.insert("g",a).attr("clip-path",n.pathGrid).attr("class",La.grid);r.grid.main=o,e.grid_x_show&&o.append("g").attr("class",La.xgrids),e.grid_y_show&&o.append("g").attr("class",La.ygrids),e.interaction_enabled&&e.grid_focus_show&&(o.append("g").attr("class",La.xgridFocus).append("line").attr("class",La.xgridFocus),e.grid_focus_y&&!e.tooltip_grouped&&o.append("g").attr("class",La.ygridFocus).append("line").attr("class",La.ygridFocus))},showGridFocus:function(t){var e=this,n=e.config,r=e.state,i=r.width,a=r.height,o=n.axis_rotated,s=e.$el.main.selectAll("line."+La.xgridFocus+", line."+La.ygridFocus),u=(t||[s.datum()]).filter((function(t){return t&&Da(e.getBaseValue(t))}));if(n.tooltip_show&&0!==u.length&&!e.hasType("bubble")&&!e.hasArcType()){var c=n.grid_focus_edge&&!n.tooltip_grouped,l=e.xx.bind(e);s.style("visibility",null).data(u.concat(u)).each((function(t){var n,r=Ln(this),s={x:l(t),y:e.getYScaleById(t.id)(t.value)};if(r.classed(La.xgridFocus))n=o?[null,s.x,c?s.y:i,s.x]:[s.x,c?s.y:null,s.x,a];else{var u="y2"===e.axis.getId(t.id);n=o?[s.y,c&&!u?s.x:null,s.y,c&&u?s.x:a]:[c&&u?s.x:null,s.y,c&&!u?s.x:i,s.y]}["x1","y1","x2","y2"].forEach((function(t,e){return r.attr(t,n[e])}))})),Mf(s,"grid"),null==e.showCircleFocus||e.showCircleFocus(t)}},hideGridFocus:function(){var t=this,e=t.state,n=e.inputType,r=e.resizing,i=t.$el.main;"mouse"!==n&&r||(i.selectAll("line."+La.xgridFocus+", line."+La.ygridFocus).style("visibility","hidden"),null==t.hideCircleFocus||t.hideCircleFocus())},updateGridFocus:function(){var t=this,e=t.state,n=e.inputType,r=e.width,i=e.height,a=e.resizing,o=t.$el.grid.main.select("line."+La.xgridFocus);if("touch"===n)o.empty()?a&&(null==t.showCircleFocus||t.showCircleFocus()):t.showGridFocus();else{var s=t.config.axis_rotated;o.attr("x1",s?0:-10).attr("x2",s?r:-10).attr("y1",s?-10:0).attr("y2",s?-10:i)}return!0},generateGridData:function(t,e){var n=this.$el.main.select("."+La.axisX).selectAll(".tick").size(),r=[];if("year"===t)for(var i=this.getXDomain().map((function(t){return t.getFullYear()})),a=i[0],o=i[1],s=a;s<=o;s++)r.push(new Date(s+"-01-01 00:00:00"));else(r=e.ticks(10)).length>n&&(r=r.filter((function(t){return(t+"").indexOf(".")<0})));return r},getGridFilterToRemove:function(t){return t?function(e){var n=!1;return(Wa(t)?t.concat():[t]).forEach((function(t){("value"in t&&e.value===t.value||"class"in t&&e.class===t.class)&&(n=!0)})),n}:function(){return!0}},removeGridLines:function(t,e){var n=this,r=n.config,i=n.$T,a=n.getGridFilterToRemove(t),o=e?La.xgridLines:La.ygridLines,s=e?La.xgridLine:La.ygridLine;i(n.$el.main.select("."+o).selectAll("."+s).filter(a)).style("opacity","0").remove();var u="grid_"+(e?"x":"y")+"_lines";r[u]=r[u].filter((function(t){return!a(t)}))}},Cf={initRegion:function(){var t=this.$el;t.region.main=t.main.insert("g",":first-child").attr("clip-path",this.state.clip.path).attr("class",La.regions)},updateRegion:function(){var t=this,e=t.config,n=t.$el.region,r=t.$T;n.main||t.initRegion(),n.main.style("visibility",t.hasArcType()?"hidden":null);var i=n.main.selectAll("."+La.region).data(e.regions);r(i.exit()).style("opacity","0").remove(),(i=i.enter().append("g").merge(i).attr("class",t.classRegion.bind(t))).append("rect").style("fill-opacity","0"),n.list=i},redrawRegion:function(t){var e=this,n=e.$el.region,r=e.$T,i=n.list.select("rect");return[(i=r(i,t).attr("x",e.regionX.bind(e)).attr("y",e.regionY.bind(e)).attr("width",e.regionWidth.bind(e)).attr("height",e.regionHeight.bind(e))).style("fill-opacity",(function(t){return Da(t.opacity)?t.opacity:null})).on("end",(function(){Ln(this.parentNode).selectAll("rect:not([x])").remove()}))]},getRegionXY:function(t,e){var n=this,r=n.config,i=n.scale,a=r.axis_rotated,o="x"===t,s="start",u=0;return"y"===e.axis||"y2"===e.axis?(o||(s="end"),(o?a:!a)&&s in e&&(u=(0,i[e.axis])(e[s]))):(o?!a:a)&&s in e&&(u=(i.zoom||i.x)(n.axis.isTimeSeries()?bo.call(n,e[s]):e[s])),u},regionX:function(t){return this.getRegionXY("x",t)},regionY:function(t){return this.getRegionXY("y",t)},getRegionSize:function(t,e){var n=this,r=n.config,i=n.scale,a=n.state,o=r.axis_rotated,s="width"===t,u=n[s?"regionX":"regionY"](e),c="end",l=a[t];return"y"===e.axis||"y2"===e.axis?(s||(c="start"),(s?o:!o)&&c in e&&(l=(0,i[e.axis])(e[c]))):(s?!o:o)&&c in e&&(l=(i.zoom||i.x)(n.axis.isTimeSeries()?bo.call(n,e[c]):e[c])),l<u?0:l-u},regionWidth:function(t){return this.getRegionSize("width",t)},regionHeight:function(t){return this.getRegionSize("height",t)},isRegionOnX:function(t){return!t.axis||"x"===t.axis}},Rf={getAxisSize:function(t){var e=this,n=e.config.axis_rotated;return n&&"x"===t||!n&&/y2?/.test(t)?e.getAxisWidthByAxisId(t,!0):e.getHorizontalAxisHeight(t)},getAxisWidthByAxisId:function(t,e){var n=this;if(n.axis){var r,i=null==(r=n.axis)?void 0:r.getLabelPositionById(t);return n.axis.getMaxTickWidth(t,e)+(i.isInner?20:40)}return 40},getHorizontalAxisHeight:function(t){var e=this,n=e.config,r=e.state,i=r.current,a=r.rotatedPadding,o=r.isLegendRight,s=r.isLegendInset,u=n.axis_rotated,c=30;if("x"===t&&!n.axis_x_show)return 8;if("x"===t&&n.axis_x_height)return n.axis_x_height;if("y"===t&&!n.axis_y_show)return!n.legend_show||o||s?1:10;if("y2"===t&&!n.axis_y2_show)return a.top;var l=e.getAxisTickRotate(t);return("x"===t&&!u||/y2?/.test(t)&&u)&&l&&(c=30+e.axis.getMaxTickWidth(t)*Math.cos(Math.PI*(90-Math.abs(l))/180),!n.axis_x_tick_multiline&&i.height&&c>i.height/2&&(c=i.height/2)),c+(e.axis.getLabelPositionById(t).isInner?0:10)+("y2"!==t||u?0:-10)},getEventRectWidth:function(){return Math.max(0,this.axis.x.tickInterval())},getAxisTickRotate:function(t){var e=this,n=e.axis,r=e.config,i=e.state,a=e.$el,o=r["axis_"+t+"_tick_rotate"];if("x"===t){var s=n.isCategorized()||n.isTimeSeries();if(r.axis_x_tick_fit&&s){var u=r.axis_x_tick_count,c=i.current.maxTickWidths.x.ticks.length,l=0;if(u?l=u>c?c:u:c&&(l=c),l!==i.axis.x.tickCount){var f=e.data.targets;i.axis.x.padding=e.getXDomainPadding([e.getXDomainMinMax(f,"min"),e.getXDomainMinMax(f,"max")],l)}i.axis.x.tickCount=l}a.svg&&r.axis_x_tick_fit&&!r.axis_x_tick_multiline&&!r.axis_x_tick_culling&&r.axis_x_tick_autorotate&&s&&(o=e.needToRotateXAxisTickTexts()?r.axis_x_tick_rotate:0)}return o},needToRotateXAxisTickTexts:function(){var t=this,e=t.state,n=e.axis,r=e.current.width-t.getCurrentPaddingLeft(!1)-t.getCurrentPaddingRight(),i=n.x.tickCount+n.x.padding.left+n.x.padding.right;return t.axis.getMaxTickWidth("x")>(i?r/i:0)}},Lf={axis_y_clipPath:!0,axis_y_show:!0,axis_y_type:"indexed",axis_y_max:void 0,axis_y_min:void 0,axis_y_inverted:!1,axis_y_center:void 0,axis_y_inner:!1,axis_y_label:{},axis_y_tick_format:void 0,axis_y_tick_culling:!1,axis_y_tick_culling_max:5,axis_y_tick_outer:!0,axis_y_tick_values:null,axis_y_tick_rotate:0,axis_y_tick_count:void 0,axis_y_tick_show:!0,axis_y_tick_stepSize:null,axis_y_tick_text_show:!0,axis_y_tick_text_position:{x:0,y:0},axis_y_tick_time_value:void 0,axis_y_padding:{},axis_y_default:void 0,axis_y_axes:[]},If={axis_y2_show:!1,axis_y2_type:"indexed",axis_y2_max:void 0,axis_y2_min:void 0,axis_y2_inverted:!1,axis_y2_center:void 0,axis_y2_inner:!1,axis_y2_label:{},axis_y2_tick_format:void 0,axis_y2_tick_culling:!1,axis_y2_tick_culling_max:5,axis_y2_tick_outer:!0,axis_y2_tick_values:null,axis_y2_tick_rotate:0,axis_y2_tick_count:void 0,axis_y2_tick_show:!0,axis_y2_tick_stepSize:null,axis_y2_tick_text_show:!0,axis_y2_tick_text_position:{x:0,y:0},axis_y2_padding:{},axis_y2_default:void 0,axis_y2_axes:[]};function Pf(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 Df(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?Pf(Object(e),!0).forEach((function(n){Fn(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Pf(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var zf=Df(Df(Df({axis_rotated:!1},{axis_x_clipPath:!0,axis_x_show:!0,axis_x_type:"indexed",axis_x_localtime:!0,axis_x_categories:[],axis_x_tick_centered:!1,axis_x_tick_format:void 0,axis_x_tick_culling:{},axis_x_tick_culling_max:10,axis_x_tick_count:void 0,axis_x_tick_show:!0,axis_x_tick_text_show:!0,axis_x_tick_text_position:{x:0,y:0},axis_x_tick_fit:!0,axis_x_tick_values:null,axis_x_tick_autorotate:!1,axis_x_tick_rotate:0,axis_x_tick_outer:!0,axis_x_tick_multiline:!0,axis_x_tick_width:null,axis_x_tick_tooltip:!1,axis_x_max:void 0,axis_x_min:void 0,axis_x_padding:{},axis_x_height:void 0,axis_x_extent:void 0,axis_x_label:{},axis_x_axes:[]}),Lf),If),Nf=[Wl,{category:function(t,e){var n=this.internal,r=n.config;return arguments.length>1&&(r.axis_x_categories[t]=e,n.redraw()),r.axis_x_categories[t]},categories:function(t){var e=this.internal,n=e.config;return arguments.length?(n.axis_x_categories=t,e.redraw(),n.axis_x_categories):n.axis_x_categories}},Zl,Jl,rf,Ql,ef,nf],Ff=[_f,Af,bf,Tf,Of,Cf,Rf],jf=[{data_xs:{},data_xFormat:"%Y-%m-%d",data_xLocaltime:!0,data_xSort:!0,data_axes:{},data_regions:{},data_stack_normalize:!1},zf,{grid_x_show:!1,grid_x_type:"tick",grid_x_lines:[],grid_y_show:!1,grid_y_lines:[],grid_y_ticks:10,grid_focus_edge:!1,grid_focus_show:!0,grid_focus_y:!1,grid_front:!1,grid_lines_front:!0}];Array.prototype.slice;function Xf(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Bf(t){return function(){return t}}function $f(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function Uf(t){return t}var Yf=Math.PI,Vf=2*Yf,Gf=1e-6,Hf=Vf-Gf;function Wf(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function qf(){return new Wf}Wf.prototype=qf.prototype={constructor:Wf,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,a){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+a)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var a=this._x1,o=this._y1,s=n-t,u=r-e,c=a-t,l=o-e,f=c*c+l*l;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(f>Gf)if(Math.abs(l*s-u*c)>Gf&&i){var h=n-a,d=r-o,g=s*s+u*u,p=Math.sqrt(g),v=Math.sqrt(f),y=i*Math.tan((Yf-Math.acos((g+f-(h*h+d*d))/(2*p*v)))/2),x=y/v,_=y/p;Math.abs(x-1)>Gf&&(this._+="L"+(t+x*c)+","+(e+x*l)),this._+="A"+i+","+i+",0,0,"+ +(l*h>c*d)+","+(this._x1=t+_*s)+","+(this._y1=e+_*u)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,a){t=+t,e=+e,a=!!a;var o=(n=+n)*Math.cos(r),s=n*Math.sin(r),u=t+o,c=e+s,l=1^a,f=a?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+c:(Math.abs(this._x1-u)>Gf||Math.abs(this._y1-c)>Gf)&&(this._+="L"+u+","+c),n&&(f<0&&(f=f%Vf+Vf),f>Hf?this._+="A"+n+","+n+",0,1,"+l+","+(t-o)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):f>Gf&&(this._+="A"+n+","+n+",0,"+ +(f>=Yf)+","+l+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var Zf=qf;function Kf(t){return t.innerRadius}function Jf(t){return t.outerRadius}function Qf(t){return t.startAngle}function th(t){return t.endAngle}function eh(t){return t&&t.padAngle}function nh(t,e,n,r,i,a,o,s){var u=n-t,c=r-e,l=o-i,f=s-a,h=f*u-l*c;if(!(h*h<Vc))return[t+(h=(l*(e-a)-f*(t-i))/h)*u,e+h*c]}function rh(t,e,n,r,i,a,o){var s=t-n,u=e-r,c=(o?a:-a)/Yc(s*s+u*u),l=c*u,f=-c*s,h=t+l,d=e+f,g=n+l,p=r+f,v=(h+g)/2,y=(d+p)/2,x=g-h,_=p-d,m=x*x+_*_,b=i-a,w=h*p-g*d,T=(_<0?-1:1)*Yc(Bc(0,b*b*m-w*w)),A=(w*_-x*T)/m,S=(-w*x-_*T)/m,k=(w*_+x*T)/m,E=(-w*x+_*T)/m,M=A-v,O=S-y,C=k-v,R=E-y;return M*M+O*O>C*C+R*R&&(A=k,S=E),{cx:A,cy:S,x01:-l,y01:-f,x11:A*(i/b-1),y11:S*(i/b-1)}}function ih(){var t=Kf,e=Jf,n=Bf(0),r=null,i=Qf,a=th,o=eh,s=null;function u(){var u,c,l=+t.apply(this,arguments),f=+e.apply(this,arguments),h=i.apply(this,arguments)-Hc,d=a.apply(this,arguments)-Hc,g=Fc(d-h),p=d>h;if(s||(s=u=Zf()),f<l&&(c=f,f=l,l=c),f>Vc)if(g>Wc-Vc)s.moveTo(f*Xc(h),f*Uc(h)),s.arc(0,0,f,h,d,!p),l>Vc&&(s.moveTo(l*Xc(d),l*Uc(d)),s.arc(0,0,l,d,h,p));else{var v,y,x=h,_=d,m=h,b=d,w=g,T=g,A=o.apply(this,arguments)/2,S=A>Vc&&(r?+r.apply(this,arguments):Yc(l*l+f*f)),k=$c(Fc(f-l)/2,+n.apply(this,arguments)),E=k,M=k;if(S>Vc){var O=Zc(S/l*Uc(A)),C=Zc(S/f*Uc(A));(w-=2*O)>Vc?(m+=O*=p?1:-1,b-=O):(w=0,m=b=(h+d)/2),(T-=2*C)>Vc?(x+=C*=p?1:-1,_-=C):(T=0,x=_=(h+d)/2)}var R=f*Xc(x),L=f*Uc(x),I=l*Xc(b),P=l*Uc(b);if(k>Vc){var D,z=f*Xc(_),N=f*Uc(_),F=l*Xc(m),j=l*Uc(m);if(g<Gc&&(D=nh(R,L,F,j,z,N,I,P))){var X=R-D[0],B=L-D[1],$=z-D[0],U=N-D[1],Y=1/Uc(qc((X*$+B*U)/(Yc(X*X+B*B)*Yc($*$+U*U)))/2),V=Yc(D[0]*D[0]+D[1]*D[1]);E=$c(k,(l-V)/(Y-1)),M=$c(k,(f-V)/(Y+1))}}T>Vc?M>Vc?(v=rh(F,j,R,L,f,M,p),y=rh(z,N,I,P,f,M,p),s.moveTo(v.cx+v.x01,v.cy+v.y01),M<k?s.arc(v.cx,v.cy,M,jc(v.y01,v.x01),jc(y.y01,y.x01),!p):(s.arc(v.cx,v.cy,M,jc(v.y01,v.x01),jc(v.y11,v.x11),!p),s.arc(0,0,f,jc(v.cy+v.y11,v.cx+v.x11),jc(y.cy+y.y11,y.cx+y.x11),!p),s.arc(y.cx,y.cy,M,jc(y.y11,y.x11),jc(y.y01,y.x01),!p))):(s.moveTo(R,L),s.arc(0,0,f,x,_,!p)):s.moveTo(R,L),l>Vc&&w>Vc?E>Vc?(v=rh(I,P,z,N,l,-E,p),y=rh(R,L,F,j,l,-E,p),s.lineTo(v.cx+v.x01,v.cy+v.y01),E<k?s.arc(v.cx,v.cy,E,jc(v.y01,v.x01),jc(y.y01,y.x01),!p):(s.arc(v.cx,v.cy,E,jc(v.y01,v.x01),jc(v.y11,v.x11),!p),s.arc(0,0,l,jc(v.cy+v.y11,v.cx+v.x11),jc(y.cy+y.y11,y.cx+y.x11),p),s.arc(y.cx,y.cy,E,jc(y.y11,y.x11),jc(y.y01,y.x01),!p))):s.arc(0,0,l,b,m,p):s.lineTo(I,P)}else s.moveTo(0,0);if(s.closePath(),u)return s=null,u+""||null}return u.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-Gc/2;return[Xc(r)*n,Uc(r)*n]},u.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:Bf(+e),u):t},u.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Bf(+t),u):e},u.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:Bf(+t),u):n},u.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Bf(+t),u):r},u.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:Bf(+t),u):i},u.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:Bf(+t),u):a},u.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:Bf(+t),u):o},u.context=function(t){return arguments.length?(s=null==t?null:t,u):s},u}var ah={initPie:function(){var t=this,e=t.config,n=e.data_type,r=e.pie_padding,i=e[n+"_startingAngle"]||0,a=(t.hasType("pie")&&r?.01*r:e[n+"_padAngle"])||0;t.pie=function(){var t=Uf,e=$f,n=null,r=Bf(0),i=Bf(Wc),a=Bf(0);function o(o){var s,u,c,l,f,h=(o=Xf(o)).length,d=0,g=Array(h),p=Array(h),v=+r.apply(this,arguments),y=Math.min(Wc,Math.max(-Wc,i.apply(this,arguments)-v)),x=Math.min(Math.abs(y)/h,a.apply(this,arguments)),_=x*(y<0?-1:1);for(s=0;s<h;++s)(f=p[g[s]=s]=+t(o[s],s,o))>0&&(d+=f);for(null!=e?g.sort((function(t,n){return e(p[t],p[n])})):null!=n&&g.sort((function(t,e){return n(o[t],o[e])})),s=0,c=d?(y-h*_)/d:0;s<h;++s,v=l)u=g[s],l=v+((f=p[u])>0?f*c:0)+_,p[u]={data:o[u],index:s,value:f,startAngle:v,endAngle:l,padAngle:x};return p}return o.value=function(e){return arguments.length?(t="function"==typeof e?e:Bf(+e),o):t},o.sortValues=function(t){return arguments.length?(e=t,n=null,o):e},o.sort=function(t){return arguments.length?(n=t,e=null,o):n},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Bf(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:Bf(+t),o):i},o.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:Bf(+t),o):a},o}().startAngle(i).endAngle(i+2*Math.PI).padAngle(a).value((function(t){return t.values.reduce((function(t,e){return t+e.value}),0)})).sort(t.getSortCompareFn.bind(t)(!0))},updateRadius:function(){var t=this,e=t.config,n=t.state,r=e.pie_padding,i=e.gauge_width||e.donut_width,a=t.filterTargetsToShow(t.data.targets).length*e.gauge_arcs_minWidth;n.radiusExpanded=Math.min(n.arcWidth,n.arcHeight)/2*(t.hasMultiArcGauge()?.85:1),n.radius=.95*n.radiusExpanded,n.innerRadiusRatio=i?(n.radius-i)/n.radius:.6,n.gaugeArcWidth=i||(a<=n.radius-n.innerRadius?n.radius-n.innerRadius:a<=n.radius?a:n.radius);var o=e.pie_innerRadius||(r?r*(n.innerRadiusRatio+.1):0);n.outerRadius=e.pie_outerRadius,n.innerRadius=t.hasType("donut")||t.hasType("gauge")?n.radius*n.innerRadiusRatio:o},getRadius:function(t){var e=null==t?void 0:t.data,n=this.state,r=n.innerRadius,i=n.outerRadius;return!Fa(r)&&e&&(r=r[e.id]||0),qa(i)&&e&&e.id in i?i=i[e.id]:Fa(i)||(i=this.state.radius),{innerRadius:r,outerRadius:i}},updateArc:function(){var t=this;t.updateRadius(),t.svgArc=t.getSvgArc(),t.svgArcExpanded=t.getSvgArcExpanded()},getArcLength:function(){var t=3.6*this.config.gauge_arcLength,e=t/360*2;return t<-360?e=-2:t>360&&(e=2),e*Math.PI},getStartAngle:function(){var t=this.config,e=t.gauge_fullCircle,n=-1*Math.PI/2,r=Math.PI/2,i=t.gauge_startingAngle;return!e&&i<=n?i=n:!e&&i>=r?i=r:(i>Math.PI||i<-1*Math.PI)&&(i=Math.PI),i},updateAngle:function(t){var e=this,n=e.config,r=e.state,i=e.pie,a=t,o=!1;if(!n)return null;var s=e.getStartAngle(),u=n.gauge_fullCircle?e.getArcLength():-2*s;if(a.data&&e.isGaugeType(a.data)&&!e.hasMultiArcGauge()){var c=n,l=c.gauge_min,f=c.gauge_max,h=e.getTotalDataSum(r.rendered);i=i.startAngle(s).endAngle(u*((h-l)/(f-l))+s)}if(i(e.filterTargetsToShow()).forEach((function(t,e){o||t.data.id!==a.data.id||(o=!0,(a=t).index=e)})),isNaN(a.startAngle)&&(a.startAngle=0),isNaN(a.endAngle)&&(a.endAngle=a.startAngle),a.data&&e.hasMultiArcGauge()){var d=n.gauge_min,g=n.gauge_max,p=a.value<d?0:a.value<g?a.value-d:g-d;a.startAngle=s,a.endAngle=s+u/(g-d)*p}return o?a:null},getSvgArc:function(){var t=this,e=t.state,n=e.gaugeArcWidth/t.filterTargetsToShow(t.data.targets).length,r=t.hasMultiArcGauge(),i=ih().innerRadius((function(i){var a=t.getRadius(i).innerRadius;return r?e.radius-n*(i.index+1):Fa(a)?a:0})).outerRadius((function(i){var a=t.getRadius(i).outerRadius;return r?e.radius-n*i.index:a})),a=function(e,n){var r="M 0 0";if(e.value||e.data){var a=!n&&t.updateAngle(e);n?r=i(e):a&&(r=i(a))}return r};return a.centroid=i.centroid,a},getSvgArcExpanded:function(t){var e=this,n=e.state,r=t||1,i=n.gaugeArcWidth/e.filterTargetsToShow(e.data.targets).length,a=e.hasMultiArcGauge(),o=Math.min(n.radiusExpanded*r-n.radius,.8*i-100*(1-r)),s=ih().innerRadius((function(t){return a?n.radius-i*(t.index+1):e.getRadius(t).innerRadius})).outerRadius((function(t){var s;if(a)s=n.radius-i*t.index+o;else{var u=e.getRadius(t).outerRadius,c=n.radiusExpanded;n.radius!==u&&(c-=Math.abs(n.radius-u)),s=c*r}return s}));return function(t){var n=e.updateAngle(t);return n?s(n):"M 0 0"}},getArc:function(t,e,n){return n||this.isArcType(t.data)?this.svgArc(t,e):"M 0 0"},transformForArcLabel:function(t){var e=this,n=e.config,r=e.state.radiusExpanded,i=e.updateAngle(t),a="";if(i)if(e.hasMultiArcGauge()){var o=Math.sin(i.endAngle-Math.PI/2);a="translate("+(c=Math.cos(i.endAngle-Math.PI/2)*(r+25))+","+(l=o*(r+15-Math.abs(10*o))+3)+")"}else if(!e.hasType("gauge")||e.data.targets.length>1){var s=e.getRadius(t).outerRadius,u=this.svgArc.centroid(i).map((function(t){return isNaN(t)?0:t})),c=u[0],l=u[1],f=Math.sqrt(c*c+l*l),h=e.hasType("donut")&&n.donut_label_ratio||e.hasType("pie")&&n.pie_label_ratio;a="translate("+c*(h=h?za(h)?h.bind(e.api)(t,s,f):h:s&&(f?(36/s>.375?1.175-36/s:.8)*s/f:0))+","+l*h+")"}return a},convertToArcData:function(t){return this.addName({id:t.data?t.data.id:t.id,value:t.value,ratio:this.getRatio("arc",t),index:t.index})},textForArcLabel:function(t){var e=this,n=e.hasType("gauge");e.shouldShowArcLabel()&&t.style("fill",e.updateTextColor.bind(e)).attr("filter",e.updateTextBacgroundColor.bind(e)).each((function(t){var r=Ln(this),i=e.updateAngle(t),a=e.getRatio("arc",i);if(e.meetsLabelThreshold(a,(e.hasType("donut")?"donut":e.hasType("gauge")&&"gauge")||e.hasType("pie")&&"pie")){var o=(i||t).value;to(r,(e.getArcLabelFormat()||e.defaultArcValueFormat)(o,a,t.data.id).toString(),[-1,1],n)}else r.text("")}))},expandArc:function(t){var e=this,n=e.state.transiting,r=e.$el;if(n)var i=setInterval((function(){n||(clearInterval(i),r.legend.selectAll("."+La.legendItemFocused).size()>0&&e.expandArc(t))}),10);else{var a=e.mapToTargetIds(t);r.svg.selectAll(e.selectorTargets(a,"."+La.chartArc)).each((function(t){if(e.shouldExpand(t.data.id)){var n=e.getExpandConfig(t.data.id,"duration"),r=e.getSvgArcExpanded(e.getExpandConfig(t.data.id,"rate"));Ln(this).selectAll("path").transition().duration(n).attr("d",e.svgArcExpanded).transition().duration(2*n).attr("d",r)}}))}},unexpandArc:function(t){var e=this,n=e.state.transiting,r=e.$el.svg;if(!n){var i=e.mapToTargetIds(t);r.selectAll(e.selectorTargets(i,"."+La.chartArc)).selectAll("path").transition().duration((function(t){return e.getExpandConfig(t.data.id,"duration")})).attr("d",e.svgArc),r.selectAll(""+La.arc).style("opacity",null)}},getExpandConfig:function(t,e){var n,r=this,i=r.config;return r.isDonutType(t)?n="donut":r.isGaugeType(t)?n="gauge":r.isPieType(t)&&(n="pie"),n?i[n+"_expand_"+e]:{duration:50,rate:.98}[e]},shouldExpand:function(t){var e=this,n=e.config;return e.isDonutType(t)&&n.donut_expand||e.isGaugeType(t)&&n.gauge_expand||e.isPieType(t)&&n.pie_expand},shouldShowArcLabel:function(){var t=this,e=t.config;return["pie","donut","gauge"].some((function(n){return t.hasType(n)&&e[n+"_label_show"]}))},getArcLabelFormat:function(){var t=this,e=t.config,n=e.pie_label_format;return t.hasType("gauge")?n=e.gauge_label_format:t.hasType("donut")&&(n=e.donut_label_format),za(n)?n.bind(t.api):n},getArcTitle:function(){var t=this,e=t.hasType("donut")?"donut":t.hasType("gauge")&&"gauge";return e?t.config[e+"_title"]:""},updateTargetsForArc:function(t){var e=this,n=e.$el,r=e.hasType("gauge"),i=e.getChartClass("Arc"),a=e.getClass("arcs",!0),o=e.classFocus.bind(e),s=n.main.select("."+La.chartArcs),u=s.selectAll("."+La.chartArc).data(e.pie(t)).attr("class",(function(t){return i(t)+o(t.data)})),c=u.enter().append("g").attr("class",i);c.append("g").attr("class",a).merge(u),c.append("text").attr("dy",r&&!e.hasMultiTargets()?"-.1em":".35em").style("opacity","0").style("text-anchor","middle").style("pointer-events","none"),n.text=s.selectAll("."+La.target+" text")},initArc:function(){var t=this,e=t.$el;e.arcs=e.main.select("."+La.chart).append("g").attr("class",La.chartArcs).attr("transform",t.getTranslate("arc")),t.setArcTitle()},setArcTitle:function(){var t=this,e=t.getArcTitle(),n=t.hasType("gauge");if(e){var r=t.$el.arcs.append("text").attr("class",La[n?"chartArcsGaugeTitle":"chartArcsTitle"]).style("text-anchor","middle");n&&r.attr("dy","-0.3em"),to(r,e,n?void 0:[-.6,1.35],!0)}},redrawArc:function(t,e,n){var r=this,i=r.config,a=r.state,o=r.$el.main,s=i.interaction_enabled,u=s&&i.data_selection_isselectable,c=o.selectAll("."+La.arcs).selectAll("."+La.arc).data(r.arcData.bind(r));c.exit().transition().duration(e).style("opacity","0").remove(),c=c.enter().append("path").attr("class",r.getClass("arc",!0)).style("fill",(function(t){return r.color(t.data)})).style("cursor",(function(t){var e;return null!=(e=u)&&null!=e.bind&&e.bind(r.api)(t)?"pointer":null})).style("opacity","0").each((function(t){r.isGaugeType(t.data)&&(t.startAngle=i.gauge_startingAngle,t.endAngle=i.gauge_startingAngle),this._current=t})).merge(c),r.hasType("gauge")&&(r.updateGaugeMax(),r.hasMultiArcGauge()&&r.redrawMultiArcGauge()),c.attr("transform",(function(t){return!r.isGaugeType(t.data)&&n?"scale(0)":""})).style("opacity",(function(t){return t===this._current?"0":null})).each((function(){a.transiting=!0})).transition().duration(t).attrTween("d",(function(t){var e=r.updateAngle(t);if(!e)return function(){return"M 0 0"};isNaN(this._current.startAngle)&&(this._current.startAngle=0),isNaN(this._current.endAngle)&&(this._current.endAngle=this._current.startAngle);var n=Ur(this._current,e);return this._current=n(0),function(e){var i=n(e);return i.data=t.data,r.getArc(i,!0)}})).attr("transform",n?"scale(1)":"").style("fill",(function(t){var e;return r.levelColor?(e=r.levelColor(t.data.values[0].value),i.data_colors[t.data.id]=e):e=r.color(t.data),e})).style("opacity",null).call(Ja,(function(){if(r.levelColor){var t=Ln(this),e=t.datum();r.updateLegendItemColor(e.data.id,t.style("fill"))}a.transiting=!1,Ka(i.onrendered,r.api)})),s&&r.bindArcEvent(c),r.hasType("gauge")&&r.redrawBackgroundArcs(),r.redrawArcText(t)},redrawBackgroundArcs:function(){var t=this,e=t.config,n=t.state,r=t.hasMultiArcGauge(),i=e.gauge_fullCircle,a=t.getStartAngle(),o=i?a+t.getArcLength():-1*a,s=t.$el.arcs.select((r?"g":"")+"."+La.chartArcsBackground);if(r){var u=0;(s=s.selectAll("path."+La.chartArcsBackground).data(t.data.targets)).enter().append("path").attr("class",(function(t,e){return La.chartArcsBackground+" "+La.chartArcsBackground+"-"+e})).merge(s).style("fill",e.gauge_background||null).attr("d",(function(r){var i=r.id;if(n.hiddenTargetIds.indexOf(i)>=0)return"M 0 0";var s={data:[{value:e.gauge_max}],startAngle:a,endAngle:o,index:u++};return t.getArc(s,!0,!0)})),s.exit().remove()}else s.attr("d",(function(){var n={data:[{value:e.gauge_max}],startAngle:a,endAngle:o};return t.getArc(n,!0,!0)}))},bindArcEvent:function(t){var e=this,n=e.config,r=e.state,i="touch"===r.inputType,a="mouse"===r.inputType;function o(t,n,r){e.expandArc(r),e.api.focus(r),e.toggleFocusLegend(r,!0),e.showTooltip([n],t)}function s(t){var n=(null==t?void 0:t.id)||void 0;e.unexpandArc(n),e.api.revert(),e.revertLegend(),e.hideTooltip()}if(t.on("click",(function(t,r,i){var a,o=e.updateAngle(r);o&&(a=e.convertToArcData(o),null==e.toggleShape||e.toggleShape(this,a,i),n.data_onclick.bind(e.api)(a,this))})),a&&t.on("mouseover",(function(t,n){var i;if(!r.transiting){r.event=t;var a=e.updateAngle(n),s=a?e.convertToArcData(a):null;o(this,s,(null==(i=s)?void 0:i.id)||void 0),e.setOverOut(!0,s)}})).on("mouseout",(function(t,n){if(!r.transiting){r.event=t;var i=e.updateAngle(n),a=i?e.convertToArcData(i):null;s(),e.setOverOut(!1,a)}})).on("mousemove",(function(t,n){var i=e.updateAngle(n),a=i?e.convertToArcData(i):null;r.event=t,e.showTooltip([a],this)})),i&&e.hasArcType()&&!e.radars){e.$el.svg.on("touchstart touchmove",(function(t){var n,i;if(!r.transiting){var a=function(t){var e=t.changedTouches[0];return Ln(Pn.elementFromPoint(e.clientX,e.clientY))}(t),u=a.datum(),c=null!=(n=u)&&n.data&&u.data.id?e.updateAngle(u):null,l=c?e.convertToArcData(c):null,f=(null==(i=l)?void 0:i.id)||void 0;e.callOverOutForTouch(l),ja(f)?s():o(this,l,f)}}))}},redrawArcText:function(t){var e,n=this,r=n.config,i=n.state,a=n.$el,o=a.main,s=a.arcs,u=n.hasType("gauge"),c=n.hasMultiArcGauge();if(u&&1===n.data.targets.length&&r.gauge_title||(e=o.selectAll("."+La.chartArc).select("text").style("opacity","0").attr("class",(function(t){return n.isGaugeType(t.data)?La.gaugeValue:null})).call(n.textForArcLabel.bind(n)).attr("transform",n.transformForArcLabel.bind(n)).style("font-size",(function(t){return n.isGaugeType(t.data)&&1===n.data.targets.length&&!c?Math.round(i.radius/5)+"px":null})).transition().duration(t).style("opacity",(function(t){return n.isTargetToShow(t.data.id)&&n.isArcType(t.data)?null:"0"})),c&&e.attr("dy","-.1em")),o.select("."+La.chartArcsTitle).style("opacity",n.hasType("donut")||u?null:"0"),u){var l,f=r.gauge_fullCircle;f&&(null==(l=e)||l.attr("dy",""+(c?0:Math.round(i.radius/14)))),r.gauge_label_show&&(s.select("."+La.chartArcsGaugeUnit).attr("dy",(f?1.5:.75)+"em").text(r.gauge_units),s.select("."+La.chartArcsGaugeMin).attr("dx",-1*(i.innerRadius+(i.radius-i.innerRadius)/(f?1:2))+"px").attr("dy","1.2em").text(n.textForGaugeMinMax(r.gauge_min,!1)),f||s.select("."+La.chartArcsGaugeMax).attr("dx",i.innerRadius+(i.radius-i.innerRadius)/2+"px").attr("dy","1.2em").text(n.textForGaugeMinMax(r.gauge_max,!0)))}}};function oh(t){return t[0]}function sh(t){return t[1]}function uh(t,e){var n=Bf(!0),r=null,i=_l,a=null;function o(o){var s,u,c,l=(o=Xf(o)).length,f=!1;for(null==r&&(a=i(c=Zf())),s=0;s<=l;++s)!(s<l&&n(u=o[s],s,o))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+t(u,s,o),+e(u,s,o));if(c)return a=null,c+""||null}return t="function"==typeof t?t:void 0===t?oh:Bf(t),e="function"==typeof e?e:void 0===e?sh:Bf(e),o.x=function(e){return arguments.length?(t="function"==typeof e?e:Bf(+e),o):t},o.y=function(t){return arguments.length?(e="function"==typeof t?t:Bf(+t),o):e},o.defined=function(t){return arguments.length?(n="function"==typeof t?t:Bf(!!t),o):n},o.curve=function(t){return arguments.length?(i=t,null!=r&&(a=i(r)),o):i},o.context=function(t){return arguments.length?(null==t?r=a=null:a=i(r=t),o):r},o}var ch={initArea:function(t){var e=this.config;t.insert("g","."+La[e.area_front?"circles":"lines"]).attr("class",this.getClass("areas",!0))},updateAreaGradient:function(){var t=this,e=t.config,n=t.state.datetimeId,r=t.$el.defs;t.data.targets.forEach((function(i){var a=n+"-areaGradient"+t.getTargetSelectorSuffix(i.id);if(t.isAreaType(i)&&r.select("#"+a).empty()){var o=t.color(i),s=e.area_linearGradient,u=s.x,c=void 0===u?[0,0]:u,l=s.y,f=void 0===l?[0,1]:l,h=s.stops,d=void 0===h?[[0,o,1],[1,o,0]]:h,g=r.append("linearGradient").attr("id",""+a).attr("x1",c[0]).attr("x2",c[1]).attr("y1",f[0]).attr("y2",f[1]);d.forEach((function(e){var n=za(e[1])?e[1].bind(t.api)(i.id):e[1];g.append("stop").attr("offset",e[0]).attr("stop-color",n||o).attr("stop-opacity",e[2])}))}}))},updateAreaColor:function(t){var e=this;return e.config.area_linearGradient?"url(#"+e.state.datetimeId+"-areaGradient"+e.getTargetSelectorSuffix(t.id)+")":e.color(t)},updateArea:function(t,e){void 0===e&&(e=!1);var n=this,r=n.config,i=n.state,a=n.$el,o=n.$T,s=e?a.subchart:a;r.area_linearGradient&&n.updateAreaGradient();var u=s.main.selectAll("."+La.areas).selectAll("."+La.area).data(n.lineData.bind(n));o(u.exit(),t).style("opacity","0").remove(),s.area=u.enter().append("path").attr("class",n.getClass("area",!0)).style("fill",n.updateAreaColor.bind(n)).style("opacity",(function(){return i.orgAreaOpacity=Ln(this).style("opacity"),"0"})).merge(u),u.style("opacity",i.orgAreaOpacity)},redrawArea:function(t,e,n){void 0===n&&(n=!1);var r=this,i=(n?this.$el.subchart:this.$el).area,a=r.state.orgAreaOpacity;return[r.$T(i,e,ao()).attr("d",t).style("fill",r.updateAreaColor.bind(r)).style("opacity",(function(t){return(r.isAreaRangeType(t)?a/1.75:a)+""}))]},generateDrawArea:function(t,e){var n=this,r=n.config,i=r.line_connectNull,a=r.axis_rotated,o=n.generateGetAreaPoints(t,e),s=n.getYScaleById.bind(n),u=function(t){return(e?n.subxx:n.xx).call(n,t)},c=function(t,r){return n.isGrouped(t.id)?o(t,r)[0][1]:s(t.id,e)(n.isAreaRangeType(t)?n.getRangedData(t,"high"):n.getShapeYMin(t.id))},l=function(t,r){return n.isGrouped(t.id)?o(t,r)[1][1]:s(t.id,e)(n.isAreaRangeType(t)?n.getRangedData(t,"low"):t.value)};return function(t){var e,o=i?n.filterRemoveNull(t.values):t.values,s=0,f=0;if(n.isAreaType(t)){var h=function(t,e,n){var r=null,i=Bf(!0),a=null,o=_l,s=null;function u(u){var c,l,f,h,d,g=(u=Xf(u)).length,p=!1,v=Array(g),y=Array(g);for(null==a&&(s=o(d=Zf())),c=0;c<=g;++c){if(!(c<g&&i(h=u[c],c,u))===p)if(p=!p)l=c,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=c-1;f>=l;--f)s.point(v[f],y[f]);s.lineEnd(),s.areaEnd()}p&&(v[c]=+t(h,c,u),y[c]=+e(h,c,u),s.point(r?+r(h,c,u):v[c],n?+n(h,c,u):y[c]))}if(d)return s=null,d+""||null}function c(){return uh().defined(i).curve(o).context(a)}return t="function"==typeof t?t:void 0===t?oh:Bf(+t),e="function"==typeof e?e:Bf(void 0===e?0:+e),n="function"==typeof n?n:void 0===n?sh:Bf(+n),u.x=function(e){return arguments.length?(t="function"==typeof e?e:Bf(+e),r=null,u):t},u.x0=function(e){return arguments.length?(t="function"==typeof e?e:Bf(+e),u):t},u.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Bf(+t),u):r},u.y=function(t){return arguments.length?(e="function"==typeof t?t:Bf(+t),n=null,u):e},u.y0=function(t){return arguments.length?(e="function"==typeof t?t:Bf(+t),u):e},u.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:Bf(+t),u):n},u.lineX0=u.lineY0=function(){return c().x(t).y(e)},u.lineY1=function(){return c().x(t).y(n)},u.lineX1=function(){return c().x(r).y(e)},u.defined=function(t){return arguments.length?(i="function"==typeof t?t:Bf(!!t),u):i},u.curve=function(t){return arguments.length?(o=t,null!=a&&(s=o(a)),u):o},u.context=function(t){return arguments.length?(null==t?a=s=null:s=o(a=t),u):a},u}();h=a?h.y(u).x0(c).x1(l):h.x(u).y0(r.area_above?0:c).y1(l),i||(h=h.defined((function(t){return null!==n.getBaseValue(t)}))),n.isStepType(t)&&(o=n.convertValuesToStep(o)),e=h.curve(n.getCurve(t))(o)}else o[0]&&(s=n.scale.x(o[0].x),f=n.getYScaleById(t.id)(o[0].value)),e=a?"M "+f+" "+s:"M "+s+" "+f;return e||"M 0 0"}},generateGetAreaPoints:function(t,e){var n=this,r=n.config,i=n.getShapeX(0,t,e),a=n.getShapeY(!!e),o=n.getShapeOffset(n.isAreaType,t,e),s=n.getYScaleById.bind(n);return function(t,u){var c=s.call(n,t.id,e)(n.getShapeYMin(t.id)),l=o(t,u)||c,f=i(t),h=a(t);return r.axis_rotated&&(t.value>0&&h<c||t.value<0&&c<h)&&(h=c),[[f,l],[f,h-(c-l)],[f,h-(c-l)],[f,l]]}}},lh={initBar:function(){var t=this.$el,e=this.config,n=this.state.clip;t.bar=t.main.select("."+La.chart).insert("g",":first-child").attr("class",La.chartBars),!1===e.clipPath&&(e.bar_radius||e.bar_radius_ratio)&&t.bar.attr("clip-path",n.pathXAxis.replace(/#[^)]*/,"#"+n.id))},updateTargetsForBar:function(t){var e=this,n=e.config,r=e.$el,i=e.getChartClass("Bar"),a=e.getClass("bars",!0),o=e.classFocus.bind(e),s=n.interaction_enabled&&n.data_selection_isselectable;r.bar||e.initBar(),e.$el.main.select("."+La.chartBars).selectAll("."+La.chartBar).data(t.filter((function(t){return!t.values.every((function(t){return!Fa(t.value)}))}))).attr("class",(function(t){return i(t)+o(t)})).enter().append("g").attr("class",i).style("opacity","0").style("pointer-events","none").append("g").attr("class",a).style("cursor",(function(t){var n;return null!=(n=s)&&null!=n.bind&&n.bind(e.api)(t)?"pointer":null}))},updateBar:function(t,e){void 0===e&&(e=!1);var n=this,r=n.$el,i=n.$T,a=e?r.subchart:r,o=n.getClass("bar",!0),s=n.initialOpacity.bind(n),u=a.main.selectAll("."+La.bars).selectAll("."+La.bar).data(n.labelishData.bind(n));i(u.exit(),t).style("opacity","0").remove(),a.bar=u.enter().append("path").attr("class",o).style("fill",n.color).merge(u).style("opacity",s)},redrawBar:function(t,e,n){void 0===n&&(n=!1);var r=this,i=(n?r.$el.subchart:r.$el).bar;return[r.$T(i,e,ao()).attr("d",(function(e){return Fa(e.value)&&t(e)})).style("fill",this.color).style("opacity",null)]},generateDrawBar:function(t,e){var n=this.config,r=this.generateGetBarPoints(t,e),i=n.axis_rotated,a=n.data_groups.length,o=n.bar_radius,s=n.bar_radius_ratio,u=Fa(o)&&o>0?function(){return o}:Fa(s)?function(t){return t*s}:null;return function(t,e){var n=r(t,e),o=+i,s=+!o,c=t.value<0,l=["",""],f=0;if(0!==t.value&&u&&!a){var h=i?s:o,d=n[2][h]-n[0][h],g="a"+(f=u(d))+","+f+" "+(c?"1 0 0":"0 0 1")+" ";l[+!i]=""+g+f+","+f,l[+i]=""+g+[-f,f][i?"sort":"reverse"](),c&&l.reverse()}var p=i?"H"+(n[1][o]-f)+" "+l[0]+"V"+(n[2][s]-f)+" "+l[1]+"H"+n[3][o]:"V"+(n[1][s]+(c?-f:f))+" "+l[0]+"H"+(n[2][o]-f)+" "+l[1]+"V"+n[3][s];return"M"+n[0][o]+","+n[0][s]+p+"z"}},generateGetBarPoints:function(t,e){var n=this,r=n.config,i=e?n.axis.subX:n.axis.x,a=n.getIndicesMax(t)+1,o=n.getBarW("bar",i,a),s=n.getShapeX(o,t,!!e),u=n.getShapeY(!!e),c=n.getShapeOffset(n.isBarType,t,!!e),l=n.getYScaleById.bind(n);return function(t,i){var a=l.call(n,t.id,e)(n.getShapeYMin(t.id)),f=c(t,i)||a,h=Fa(o)?o:o[t.id]||o._$width,d=s(t),g=u(t);r.axis_rotated&&(t.value>0&&g<a||t.value<0&&a<g)&&(g=a);var p=d+h;return[[d,f],[d,g-=a-f],[p,g],[p,f]]}},isWithinBar:function(t){var e=no(this.state.event,t),n=eo(t),r=n[0],i=n[1],a=Math.min(r.x,i.x),o=Math.min(r.y,i.y),s=this.config.bar_sensitivity,u=t.getBBox(),c=u.width,l=u.height;return a-s<e[0]&&e[0]<a+c+s&&o-s<e[1]&&e[1]<o+l+s}};function fh(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}var hh={initCandlestick:function(){var t=this.$el;t.candlestick=t.main.select("."+La.chart).append("g").attr("class",La.chartCandlesticks)},updateTargetsForCandlestick:function(t){var e=this,n=e.$el,r=e.getChartClass("Candlestick"),i=e.classFocus.bind(e);n.candlestick||e.initCandlestick(),e.$el.main.select("."+La.chartCandlesticks).selectAll("."+La.chartCandlestick).data(t).attr("class",(function(t){return r(t)+i(t)})).enter().append("g").attr("class",r).style("pointer-events","none")},updateCandlestick:function(t,e){void 0===e&&(e=!1);var n=this,r=n.$el,i=n.$T,a=e?r.subchart:r,o=n.getClass("candlestick",!0),s=n.initialOpacity.bind(n),u=a.main.selectAll("."+La.chartCandlestick).selectAll("."+La.candlestick).data(n.labelishData.bind(n));i(u.exit(),t).style("opacity","0").remove();var c=u.enter().filter((function(t){return t.value})).append("g").attr("class",o);c.append("line"),c.append("path"),a.candlestick||(a.candlestick={}),a.candlestick=u.merge(c).style("opacity",s)},generateDrawCandlestick:function(t,e){var n=this,r=n.config,i=n.generateGetCandlestickPoints(t,e),a=r.axis_rotated,o=r.candlestick_color_down;return function(t,e,r){var s,u=i(t,e),c=null==(s=n.getCandlestickData(t))?void 0:s._isUp,l=+a;r.classed&&r.classed(La[c?"valueUp":"valueDown"],!0);var f=a?"H"+u[1][1]+" V"+u[1][0]+" H"+u[0][1]:"V"+u[1][1]+" H"+u[1][0]+" V"+u[0][1];r.select("path").attr("d","M"+u[0][l]+","+u[0][+!l]+f+"z").style("fill",(function(t){return(c?n.color(t):qa(o)?o[t.id]:o)||n.color(t)}));var h=r.select("line"),d=a?{x1:u[2][1],x2:u[2][2],y1:u[2][0],y2:u[2][0]}:{x1:u[2][0],x2:u[2][0],y1:u[2][1],y2:u[2][2]};for(var g in d)h.attr(g,d[g])}},generateGetCandlestickPoints:function(t,e){void 0===e&&(e=!1);var n=this,r=n.config,i=e?n.axis.subX:n.axis.x,a=n.getIndicesMax(t)+1,o=n.getBarW("candlestick",i,a),s=n.getShapeX(o,t,!!e),u=n.getShapeY(!!e),c=n.getShapeOffset(n.isBarType,t,!!e),l=n.getYScaleById.bind(n);return function(t,i){var a,f=l.call(n,t.id,e)(n.getShapeYMin(t.id)),h=c(t,i)||f,d=Fa(o)?o:o[t.id]||o._$width,g=n.getCandlestickData(t);if(g){var p={start:s(t),end:0};p.end=p.start+d;var v={start:u(g.open),end:u(g.close)},y={x:p.start+d/2,high:u(g.high),low:u(g.low)};r.axis_rotated&&(t.value>0&&v.start<f||t.value<0&&f<v.start)&&(v.start=f),v.start-=f-h,a=[[p.start,v.start],[p.end,v.end],[y.x,y.low,y.high]]}else a=[[0,0],[0,0],[0,0,0]];return a}},redrawCandlestick:function(t,e,n){void 0===n&&(n=!1);var r=this.$el,i=this.$T,a=(n?r.subchart:r).candlestick,o=ao(!0);return[a.each((function(n,r){var a=i(Ln(this),e,o);t(n,r,a)})).style("opacity",null)]},getCandlestickData:function(t){var e,n=t.value;if(Wa(n)){var r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],u=void 0!==s&&s;e={open:r,high:i,low:a,close:o},!1!==u&&(e.volume=u)}else qa(n)&&(e=function(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?fh(Object(e),!0).forEach((function(n){Fn(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):fh(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}({},n));return e&&(e._isUp=e.close>=e.open),e||null}},dh={initGauge:function(){var t=this,e=t.config,n=t.$el.arcs,r=function(t){n.append("text").attr("class",t).style("text-anchor","middle").style("pointer-events","none")};if(t.hasType("gauge")){var i=t.hasMultiArcGauge();n.append(i?"g":"path").attr("class",La.chartArcsBackground).style("fill",!i&&e.gauge_background||null),e.gauge_units&&r(La.chartArcsGaugeUnit),e.gauge_label_show&&(r(La.chartArcsGaugeMin),e.gauge_fullCircle||r(La.chartArcsGaugeMax))}},updateGaugeMax:function(){var t=this,e=t.config,n=t.state,r=t.hasMultiArcGauge()?t.getMinMaxData().max[0].value:t.getTotalDataSum(n.rendered);r+e.gauge_min*(e.gauge_min>0?-1:1)>e.gauge_max&&(e.gauge_max=r-e.gauge_min)},redrawMultiArcGauge:function(){var t=this,e=t.config,n=t.state,r=t.$el,i=t.state.hiddenTargetIds,a=r.main.selectAll("."+La.arcs).selectAll("."+La.arcLabelLine).data(t.arcData.bind(t));a.enter().append("rect").attr("class",(function(t){return La.arcLabelLine+" "+La.target+" "+La.target+"-"+t.data.id})).merge(a).style("fill",(function(e){return t.levelColor?t.levelColor(e.data.values[0].value):t.color(e.data)})).style("display",e.gauge_label_show?null:"none").each((function(e){var r=0,a=0,o=0,s="";if(i.indexOf(e.data.id)<0){var u=t.updateAngle(e),c=n.gaugeArcWidth/t.filterTargetsToShow(t.data.targets).length*(u.index+1),l=u.endAngle-Math.PI/2,f=n.radius-c,h=l-(0===f?0:1/f);r=n.radiusExpanded-n.radius+c,a=Math.cos(h)*f,o=Math.sin(h)*f,s="rotate("+180*l/Math.PI+", "+a+", "+o+")"}Ln(this).attr("x",a).attr("y",o).attr("width",r).attr("height",2).attr("transform",s).style("stroke-dasharray","0, "+(r+2)+", 0")}))},textForGaugeMinMax:function(t,e){var n=this.config.gauge_label_extents;return za(n)?n.bind(this.api)(t,e):t},getGaugeLabelHeight:function(){var t=this.config;return this.config.gauge_label_show&&!t.gauge_fullCircle?20:0},getPaddingBottomForGauge:function(){return this.getGaugeLabelHeight()*(this.config.gauge_label_show?2:2.5)}},gh={initBubble:function(){var t=this.config;this.hasType("bubble")&&(t.point_show=!0,t.point_type="circle",t.point_sensitivity=25)},getBaseLength:function(){var t=this,e=t.state,n=e.width,r=e.height,i=zo,a=t.cache.get(i);return a||t.cache.add(i,a=yo("min",[n,r])),a},getBubbleR:function(t){var e=this,n=e.config.bubble_maxR;za(n)?n=n.bind(e.api)(t):Fa(n)||(n=e.getBaseLength()/(2*e.getMaxDataCount())+12);var r=yo("max",e.getMinMaxData().max.map((function(t){return e.isBubbleZType(t)?e.getBubbleZData(t.value,"y"):qa(t.value)?t.value.mid:t.value}))),i=n*n*Math.PI,a=(e.isBubbleZType(t)?e.getBubbleZData(t.value,"z"):t.value)*(i/r);return Math.sqrt(a/Math.PI)},getBubbleZData:function(t,e){return qa(t)?t[e]:t["y"===e?0:1]}},ph={initLine:function(){var t=this.$el;t.line=t.main.select("."+La.chart).append("g").attr("class",La.chartLines)},updateTargetsForLine:function(t){var e=this,n=e.$el,r=n.area,i=n.line,a=n.main,o=e.getChartClass("Line"),s=e.getClass("lines",!0),u=e.classFocus.bind(e);i||e.initLine();var c=t.filter((function(t){return!(e.isScatterType(t)||e.isBubbleType(t))})),l=a.select("."+La.chartLines).selectAll("."+La.chartLine).data(c).attr("class",(function(t){return o(t)+u(t)})),f=l.enter().append("g").attr("class",o).style("opacity","0").style("pointer-events","none");f.append("g").attr("class",s),e.hasTypeOf("Area")&&e.initArea(!r&&f.empty()?l:f),e.updateTargetForCircle(c,f)},updateLine:function(t,e){void 0===e&&(e=!1);var n=this,r=n.format.extraLineClasses,i=n.$el,a=n.$T,o=e?i.subchart:i,s=o.main.selectAll("."+La.lines).selectAll("."+La.line).data(n.lineData.bind(n));a(s.exit(),t).style("opacity","0").remove(),o.line=s.enter().append("path").attr("class",(function(t){return n.getClass("line",!0)(t)+" "+(r(t)||"")})).style("stroke",n.color).merge(s).style("opacity",n.initialOpacity.bind(n)).style("shape-rendering",(function(t){return n.isStepType(t)?"crispEdges":""})).attr("transform",null)},redrawLine:function(t,e,n){void 0===n&&(n=!1);var r=this.$el;return[(0,this.$T)((n?r.subchart:r).line,e,ao()).attr("d",t).style("stroke",this.color).style("opacity",null)]},getCurve:function(t){var e=this;return e.config.axis_rotated&&e.isStepType(t)?function(n){var r=e.getInterpolate(t)(n);return r.orgPoint=r.point,r.pointRotated=function(t,e){1===this._point&&(this._point=2);var n=this._y*(1-this._t)+e*this._t;this._context.lineTo(this._x,n),this._context.lineTo(t,n),this._x=t,this._y=e},r.point=function(t,e){0===this._point?this.orgPoint(t,e):this.pointRotated(t,e)},r}:e.getInterpolate(t)},generateDrawLine:function(t,e){var n=this,r=n.config,i=n.scale,a=r.line_connectNull,o=r.axis_rotated,s=n.generateGetLinePoints(t,e),u=n.getYScaleById.bind(n),c=function(t){return(e?n.subxx:n.xx).call(n,t)},l=function(t,r){return n.isGrouped(t.id)?s(t,r)[0][1]:u(t.id,e)(n.getBaseValue(t))},f=uh();f=o?f.x(l).y(c):f.x(c).y(l),a||(f=f.defined((function(t){return null!==n.getBaseValue(t)})));var h=e?i.subX:i.x;return function(t){var s,c=u(t.id,e),l=a?n.filterRemoveNull(t.values):t.values,d=0,g=0;if(n.isLineType(t)){var p=r.data_regions[t.id];p?s=n.lineWithRegions(l,i.zoom||h,c,p):(n.isStepType(t)&&(l=n.convertValuesToStep(l)),s=f.curve(n.getCurve(t))(l))}else l[0]&&(d=h(l[0].x),g=c(l[0].value)),s=o?"M "+g+" "+d:"M "+d+" "+g;return s||"M 0 0"}},lineWithRegions:function(t,e,n,r){var i,a,o,s,u=this,c=u.config.axis_rotated,l=u.axis.isTimeSeries(),f=u.axis.isCategorized()?.5:0,h=[],d=function(t,e){for(var n,r=0;n=e[r];r++)if(n.start<t&&t<=n.end)return n.style;return!1};if(Xa(r))for(var g,p=function(t,e){return ja(t)?e:l?bo.call(u,t):t},v=0;g=r[v];v++){var y=p(g.start,t[0].x),x=p(g.end,t[t.length-1].x),_=g.style||{dasharray:"2 2"};h[v]={start:y,end:x,style:_}}for(var m,b=c?function(t){return n(t.value)}:function(t){return e(t.x)},w=c?function(t){return e(t.x)}:function(t){return n(t.value)},T=function(t){return"M"+t[0][0]+","+t[0][1]+"L"+t[1][0]+","+t[1][1]},A=l?function(t,r,i,s){var u=t.x.getTime(),l=r.x-t.x,f=new Date(u+l*i),h=new Date(u+l*(i+s)),d=c?[[n(a(i)),e(f)],[n(a(i+o)),e(h)]]:[[e(f),n(a(i))],[e(h),n(a(i+o))]];return T(d)}:function(t,r,o,s){var u=c?[[n(a(o),!0),e(i(o))],[n(a(o+s),!0),e(i(o+s))]]:[[e(i(o),!0),n(a(o))],[e(i(o+s),!0),n(a(o+s))]];return T(u)},S={x:u.axis.getAxisType("x"),y:u.axis.getAxisType("y")},k="",E=0;m=t[E];E++){var M=t[E-1],O=M&&Da(M.value);_=d(m.x,h);if(Da(m.value))if(!ja(h)&&_&&O){if(O){try{_=_.dasharray.split(" ")}catch(t){_="2 2".split(" ")}i=_c(S.x,M.x+f,m.x+f),a=_c(S.y,M.value,m.value);var C=e(m.x)-e(M.x),R=n(m.value)-n(M.value),L=Math.sqrt(Math.pow(C,2)+Math.pow(R,2));s=(o=_[0]/L)*_[1];for(var I=o;I<=1;I+=s)k+=A(M,m,I,o),I+s>=1&&(k+=A(M,m,1,0))}}else k+=(E&&O?"L":"M")+b(m)+","+w(m)}return k},isWithinStep:function(t,e){return Math.abs(e-no(this.state.event,t)[1])<30},shouldDrawPointsForLine:function(t){var e=this.config.line_point;return!0===e||Wa(e)&&-1!==e.indexOf(t.id)}},vh=function(){return ao()},yh={hasValidPointType:function(t){return/^(circle|rect(angle)?|polygon|ellipse|use)$/i.test(t||this.config.point_type)},hasValidPointDrawMethods:function(t){var e=t||this.config.point_type;return Va(e)&&za(e.create)&&za(e.update)},initialOpacityForCircle:function(t){var e=this.config,n=this.state.withoutFadeIn,r=e.point_opacity;return ja(r)&&(r=null!==this.getBaseValue(t)&&n[t.id]?this.opacityForCircle(t):"0"),r},opacityForCircle:function(t){var e=this.config,n=e.point_opacity;return ja(n)&&(n=e.point_show&&!e.point_focus_only?null:"0",n=Da(this.getBaseValue(t))?this.isBubbleType(t)||this.isScatterType(t)?"0.5":n:"0"),n},initCircle:function(){var t=this,e=t.$el.main;t.point=t.generatePoint(),(t.hasType("bubble")||t.hasType("scatter"))&&e.select("."+La.chartCircles).empty()&&e.select("."+La.chart).append("g").attr("class",La.chartCircles)},updateTargetForCircle:function(t,e){var n=this,r=this,i=r.config,a=r.data,o=r.$el,s=i.interaction_enabled&&i.data_selection_enabled,u=s&&i.data_selection_isselectable,c=r.getClass("circles",!0);if(i.point_show){o.circle||r.initCircle();var l=t,f=e;if(!l){l=a.targets.filter((function(t){return n.isScatterType(t)||n.isBubbleType(t)}));var h=o.main.select("."+La.chartCircles).style("pointer-events","none").selectAll("."+La.circles).data(l).attr("class",c);h.exit().remove(),f=h.enter()}s&&f.append("g").attr("class",(function(t){return r.generateClass(La.selectedCircles,t.id)})),f.append("g").attr("class",c).style("cursor",(function(t){return za(u)&&u(t)?"pointer":null})),s&&l.forEach((function(t){o.main.selectAll("."+La.selectedCircles+r.getTargetSelectorSuffix(t.id)).selectAll(""+La.selectedCircle).each((function(e){e.value=t.values[e.index].value}))}))}},updateCircle:function(t){void 0===t&&(t=!1);var e=this,n=e.config,r=e.state,i=e.$el,a=n.point_focus_only,o=t?i.subchart:i;if(n.point_show&&!r.toggling){var s=o.main.selectAll("."+La.circles).selectAll("."+La.circle).data((function(t){return e.isLineType(t)&&e.shouldDrawPointsForLine(t)||e.isBubbleType(t)||e.isRadarType(t)||e.isScatterType(t)?a?[t.values[0]]:t.values:[]}));s.exit().remove(),s.enter().filter(Boolean).append(e.point("create",this,e.pointR.bind(e),e.color)),o.circle=o.main.selectAll("."+La.circles+" ."+La.circle).style("stroke",e.color).style("opacity",e.initialOpacityForCircle.bind(e))}},redrawCircle:function(t,e,n,r,i){void 0===i&&(i=!1);var a=this,o=a.state.rendered,s=a.$el,u=a.$T,c=i?s.subchart:s,l=c.main.selectAll("."+La.selectedCircle);if(!a.config.point_show)return[];var f=a.point("update",a,t,e,a.color,n,r,l),h=a.isCirclePoint()?"c":"",d=ao(),g=a.opacityForCircle.bind(a),p=[];return c.circle.each((function(t){var e=f.bind(this)(t);e=u(e,n||!o,d).style("opacity",g),p.push(e)})),[p,u(l,n).attr(h+"x",t).attr(h+"y",e)]},showCircleFocus:function(t){var e=this,n=e.config,r=e.state,i=r.hasRadar,a=r.resizing,o=r.toggling,s=r.transiting,u=e.$el.circle;if(!1===s&&n.point_focus_only&&u){var c=(i?e.radarCircleX:e.circleX).bind(e),l=(i?e.radarCircleY:e.circleY).bind(e),f=o||ja(t),h=e.point("update",e,c,l,e.color,!a&&f);t&&(u=u.filter((function(e){var n=t.filter((function(t){return t.id===e.id}));return!!n.length&&Ln(this).datum(n[0])}))),u.attr("class",this.updatePointClass.bind(this)).style("opacity",null).each((function(t){var n=t.id,r=t.index,i=t.value,a="hidden";Da(i)&&(h.bind(this)(t),e.expandCircles(r,n),a=""),this.style.visibility=a}))}},hideCircleFocus:function(){var t=this,e=t.config,n=t.$el.circle;e.point_focus_only&&n&&(t.unexpandCircles(),n.style("visibility","hidden"))},circleX:function(t){return this.xx(t)},updateCircleY:function(t){void 0===t&&(t=!1);var e=this,n=e.generateGetLinePoints(e.getShapeIndices(e.isLineType),t);return function(r,i){var a=r.id;return e.isGrouped(a)?n(r,i)[0][1]:e.getYScaleById(a,t)(e.getBaseValue(r))}},expandCircles:function(t,e,n){var r=this,i=r.pointExpandedR.bind(r);n&&r.unexpandCircles();var a=r.getShapeByIndex("circle",t,e).classed(La.EXPANDED,!0),o=i(a)/r.config.point_r,s=1-o;r.isCirclePoint()?a.attr("r",i):a.each((function(){var t=Ln(this);if("circle"===this.tagName)t.attr("r",i);else{var e=this.getBBox(),n=e.width,r=e.height,a=s*(+t.attr("x")+n/2),u=s*(+t.attr("y")+r/2);t.attr("transform","translate("+a+" "+u+") scale("+o+")")}}))},unexpandCircles:function(t){var e=this,n=e.pointR.bind(e),r=e.getShapeByIndex("circle",t).filter((function(){return Ln(this).classed(La.EXPANDED)})).classed(La.EXPANDED,!1);r.attr("r",n),e.isCirclePoint()||r.attr("transform","scale("+n(r)/e.config.point_r+")")},pointR:function(t){var e=this,n=e.config.point_r,r=n;return e.isBubbleType(t)?r=e.getBubbleR(t):za(n)&&(r=n.bind(e.api)(t)),r},pointExpandedR:function(t){var e=this,n=e.config,r=e.isBubbleType(t)?1.15:1.75;return n.point_focus_expand_enabled?n.point_focus_expand_r||e.pointR(t)*r:e.pointR(t)},pointSelectR:function(t){var e=this.config.point_select_r;return za(e)?e(t):e||4*this.pointR(t)},isWithinCircle:function(t,e){var n=no(this.state.event,t),r=Ln(t),i=this.isCirclePoint(t)?"c":"",a=+r.attr(i+"x"),o=+r.attr(i+"y");if(!a&&!o&&1===t.nodeType){var s=io(t);a=s.x,o=s.y}return Math.sqrt(Math.pow(a-n[0],2)+Math.pow(o-n[1],2))<(e||this.config.point_sensitivity)},insertPointInfoDefs:function(t,e){var n,r=function(t,e){for(var n,r=t.attributes,i=0;n=r[i];i++)n=n.name,e.setAttribute(n,t.getAttribute(n))},i=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement,a=Pn.createElementNS(Le.svg,i.nodeName.toLowerCase());if(a.id=e,a.style.fill="inherit",a.style.stroke="inherit",r(i,a),null!=(n=i.childNodes)&&n.length){var o=Ln(a);"innerHTML"in a?o.html(i.innerHTML):lo(i.childNodes).forEach((function(t){r(t,o.append(t.tagName).node())}))}this.$el.defs.node().appendChild(a)},pointFromDefs:function(t){return this.$el.defs.select("#"+t)},updatePointClass:function(t){var e=this,n=e.$el.circle,r=!1;return(qa(t)||n)&&(r=!0===t?n.each((function(t){var n=e.getClass("circle",!0)(t);this.getAttribute("class").indexOf(La.EXPANDED)>-1&&(n+=" "+La.EXPANDED),this.setAttribute("class",n)})):e.getClass("circle",!0)(t)),r},generateGetLinePoints:function(t,e){var n=this,r=n.config,i=n.getShapeX(0,t,e),a=n.getShapeY(e),o=n.getShapeOffset(n.isLineType,t,e),s=n.getYScaleById.bind(n);return function(t,u){var c=s.call(n,t.id,e)(n.getShapeYMin(t.id)),l=o(t,u)||c,f=i(t),h=a(t);r.axis_rotated&&(t.value>0&&h<c||t.value<0&&c<h)&&(h=c);var d=[f,h-(c-l)];return[d,d,d,d]}},generatePoint:function(){var t=this,e=t.config,n=t.state.datetimeId,r=[],i=Ha(e.point_pattern)?e.point_pattern:[e.point_type];return function(e,a){for(var o=arguments.length,s=Array(o>2?o-2:0),u=2;u<o;u++)s[u-2]=arguments[u];return function(o){var u,c=t.getTargetSelectorSuffix(o.id||(null==(u=o.data)?void 0:u.id)||o),l=Ln(this);r.indexOf(c)<0&&r.push(c);var f=i[r.indexOf(c)%i.length];if(t.hasValidPointType(f))f=t[f];else if(!t.hasValidPointDrawMethods(f)){var h=n+"-point"+c;if(t.pointFromDefs(h).size()<1&&t.insertPointInfoDefs(f,h),"create"===e)return t.custom.create.bind(a).apply(void 0,[l,h].concat(s));if("update"===e)return t.custom.update.bind(a).apply(void 0,[l].concat(s))}return f[e].bind(a).apply(void 0,[l].concat(s))}}},custom:{create:function(t,e,n,r){return t.append("use").attr("xlink:href","#"+e).attr("class",this.updatePointClass.bind(this)).style("fill",r).node()},update:function(t,e,n,r,i,a,o){var s=t.node().getBBox(),u=s.width,c=s.height,l=function(t){return Da(t.value)?e(t)-u/2:0},f=t;return i&&(a&&f.attr("x",l),f=this.$T(f,i,vh()),o&&this.$T(o,i,vh())),f.attr("x",l).attr("y",(function(t){return Da(t.value)?n(t)-c/2:0})).style("fill",r)}},circle:{create:function(t,e,n){return t.append("circle").attr("class",this.updatePointClass.bind(this)).attr("r",e).style("fill",n).node()},update:function(t,e,n,r,i,a,o){var s=this,u=t;return s.hasType("bubble")&&u.attr("r",s.pointR.bind(s)),i&&(a&&u.attr("cx",e),u.attr("cx")&&(u=s.$T(u,i,vh())),o&&s.$T(u,i,vh())),u.attr("cx",e).attr("cy",n).style("fill",r)}},rectangle:{create:function(t,e,n){var r=function(t){return 2*e(t)};return t.append("rect").attr("class",this.updatePointClass.bind(this)).attr("width",r).attr("height",r).style("fill",n).node()},update:function(t,e,n,r,i,a,o){var s=this,u=s.config.point_r,c=function(t){return e(t)-u},l=t;return i&&(a&&l.attr("x",c),l=s.$T(l,i,vh()),o&&s.$T(o,i,vh())),l.attr("x",c).attr("y",(function(t){return n(t)-u})).style("fill",r)}}};var xh=$o,_h={initRadar:function(){var t=this,e=t.config,n=t.state.current,r=t.$el;t.hasType("radar")&&(r.radar=r.main.select("."+La.chart).append("g").attr("class",La.chartRadars),r.radar.levels=r.radar.append("g").attr("class",La.levels),r.radar.axes=r.radar.append("g").attr("class",La.axis),r.radar.shapes=r.radar.append("g").attr("class",La.shapes),n.dataMax=e.radar_axis_max||t.getMinMaxData().max[0].value)},getRadarSize:function(){var t=this.config,e=this.state,n=e.arcWidth,r=e.arcHeight,i=t.axis_x_categories.length<4?-20:10,a=(Math.min(n,r)-i)/2;return[a,a]},updateTargetsForRadar:function(t){var e=this.config;Ga(e.axis_x_categories)&&(e.axis_x_categories=xo(0,yo("max",t.map((function(t){return t.values.length}))))),this.generateRadarPoints()},getRadarPosition:function(t,e,n,r){var i=this.config,a=this.getRadarSize(),o=a[0],s=a[1],u=i.axis_x_categories.length,c=i.radar_direction_clockwise,l=lo(t).map((function(a){return function(t,e,n,r,i,a){var o=t&&r>0?n-r:r,s=2*Math.PI;return i*(1-a*("x"===e?Math.sin:Math.cos)(o*s/n))}(c,a,u,e,Xa(n)?n:"x"===t?o:s,Fa(r)?r:i.radar_size_ratio)}));return 1===l.length?l[0]:l},generateRadarPoints:function(){var t=this,e=t.data.targets,n=t.getRadarSize(),r=n[0],i=n[1],a=t.cache.get(xh)||{},o=a._size;(!o||o.width!==r&&o.height!==i)&&(e.forEach((function(e){a[e.id]=e.values.map((function(e,n){return t.getRadarPosition(["x","y"],n,void 0,t.getRatio("radar",e))}))})),a._size={width:r,height:i},t.cache.add(xh,a))},redrawRadar:function(){var t=this,e=t.$el,n=e.radar,r=e.main,i=t.getTranslate("radar");i&&(n.attr("transform",i),r.select("."+La.chartTexts).attr("transform",i),t.generateRadarPoints(),t.updateRadarLevel(),t.updateRadarAxes(),t.updateRadarShape())},generateGetRadarPoints:function(){var t=this.cache.get(xh);return function(e,n){var r=t[e.id][n];return[r,r,r,r]}},updateRadarLevel:function(){var t=this,e=t.config,n=t.state,r=t.$el.radar,i=t.getRadarSize(),a=i[0],o=i[1],s=e.radar_level_depth,u=e.axis_x_categories.length,c=e.radar_level_text_show,l=r.levels,f=xo(0,s),h=e.radar_size_ratio*Math.min(a,o),d=f.map((function(t){return h*((t+1)/s)})),g=(e.radar_level_text_format||function(){}).bind(t.api),p=f.map((function(e){var n=d[e];return xo(0,u).map((function(e){return t.getRadarPosition(["x","y"],e,n,1).join(",")})).join(" ")})),v=l.selectAll("."+La.level).data(f);v.exit().remove();var y=v.enter().append("g").attr("class",(function(t,e){return La.level+" "+La.level+"-"+e}));y.append("polygon").style("visibility",e.radar_level_show?null:"hidden"),c&&(l.select("text").empty()&&l.append("text").attr("dx","-.5em").attr("dy","-.7em").style("text-anchor","end").text((function(){return g(0)})),y.append("text").attr("dx","-.5em").style("text-anchor","end").text((function(t){return g(n.current.dataMax/f.length*(t+1))}))),y.merge(v).attr("transform",(function(t){return"translate("+(a-d[t])+", "+(o-d[t])+")"})).selectAll("polygon").attr("points",(function(t){return p[t]})),c&&l.selectAll("text").attr("x",(function(t){return ja(t)?a:p[t].split(",")[0]})).attr("y",(function(t){return ja(t)?o:0}))},updateRadarAxes:function(){var t=this,e=t.config,n=t.$el.radar,r=t.getRadarSize(),i=r[0],a=r[1],o=e.axis_x_categories,s=n.axes.selectAll("g").data(o);s.exit().remove();var u=s.enter().append("g").attr("class",(function(t,e){return La.axis+"-"+e}));if(e.radar_axis_line_show&&u.append("line"),e.radar_axis_text_show&&u.append("text"),s=u.merge(s),e.radar_axis_line_show&&s.select("line").attr("x1",i).attr("y1",a).attr("x2",(function(e,n){return t.getRadarPosition("x",n)})).attr("y2",(function(e,n){return t.getRadarPosition("y",n)})),e.radar_axis_text_show){var c=e.radar_axis_text_position,l=c.x,f=void 0===l?0:l,h=c.y,d=void 0===h?0:h;s.select("text").style("text-anchor","middle").attr("dy",".5em").call((function(t){t.each((function(t){to(Ln(this),t+"",[-.6,1.2])}))})).datum((function(t,e){return{index:e}})).attr("transform",(function(e){ja(this.width)&&(this.width=this.getBoundingClientRect().width/2);var n=t.getRadarPosition("x",e.index,void 0,1),r=Math.round(t.getRadarPosition("y",e.index,void 0,1));return n>i?n+=this.width+f:Math.round(n)<i&&(n-=this.width+f),r>a?(r/2===a&&"tspan"===this.firstChild.tagName&&this.firstChild.setAttribute("dy","0em"),r+=d):r<a&&(r-=d),"translate("+n+" "+r+")"}))}t.bindEvent()},bindEvent:function(){var t=this,e=t.config,n=t.state,r=t.$el,i=r.radar,a=r.svg,o=e.point_focus_only,s=n,u=s.inputType,c=s.transiting;if(e.interaction_enabled){var l="mouse"===u,f=function(t){var e=t.target;/tspan/i.test(e.tagName)&&(e=e.parentNode);var n=Ln(e).datum();return n&&1===Object.keys(n).length?n.index:void 0},h=function(e){var n=f(e),r=ja(n);(l||r)&&(t.hideTooltip(),o?t.hideCircleFocus():t.unexpandCircles(),l?t.setOverOut(!1,n):r&&t.callOverOutForTouch())};i.axes.selectAll("text").on(l?"mouseover ":"touchstart",(function(e){if(!c){n.event=e;var r=f(e);t.selectRectForSingle(a.node(),null,r),l?t.setOverOut(!0,r):t.callOverOutForTouch(r)}})).on("mouseout",l?h:null),l||a.on("touchstart",h)}},updateRadarShape:function(){var t=this,e=t.data.targets.filter((function(e){return t.isRadarType(e)})),n=t.cache.get(xh),r=t.$el.radar.shapes.selectAll("polygon").data(e),i=r.enter().append("g").attr("class",t.getChartClass("Radar"));t.$T(r.exit()).remove(),i.append("polygon").merge(r).style("fill",t.color).style("stroke",t.color).attr("points",(function(t){return n[t.id].join(" ")})),t.updateTargetForCircle(e,i)},radarCircleX:function(t){return this.cache.get(xh)[t.id][t.index][0]},radarCircleY:function(t){return this.cache.get(xh)[t.id][t.index][1]}},mh={point_show:!0,point_r:2.5,point_sensitivity:10,point_focus_expand_enabled:!0,point_focus_expand_r:void 0,point_focus_only:!1,point_opacity:void 0,point_pattern:[],point_select_r:void 0,point_type:"circle"},bh={area_above:!1,area_front:!0,area_linearGradient:!1,area_zerobased:!0},wh={bar_label_threshold:0,bar_padding:0,bar_radius:void 0,bar_radius_ratio:void 0,bar_sensitivity:2,bar_width:void 0,bar_width_ratio:.6,bar_width_max:void 0,bar_zerobased:!0},Th={bubble_maxR:35,bubble_zerobased:!1},Ah={candlestick_width:void 0,candlestick_width_ratio:.6,candlestick_width_max:void 0,candlestick_color_down:"red"},Sh={line_connectNull:!1,line_step_type:"step",line_step_tooltipMatch:!1,line_zerobased:!1,line_classes:void 0,line_point:!0},kh={scatter_zerobased:!1},Eh={spline_interpolation_type:"cardinal"},Mh={donut_label_show:!0,donut_label_format:void 0,donut_label_threshold:.05,donut_label_ratio:void 0,donut_width:void 0,donut_title:"",donut_expand:{},donut_expand_rate:.98,donut_expand_duration:50,donut_padAngle:0,donut_startingAngle:0},Oh={gauge_background:"",gauge_fullCircle:!1,gauge_label_show:!0,gauge_label_format:void 0,gauge_label_extents:void 0,gauge_label_threshold:0,gauge_min:0,gauge_max:100,gauge_type:"single",gauge_startingAngle:-1*Math.PI/2,gauge_arcLength:100,gauge_title:"",gauge_units:void 0,gauge_width:void 0,gauge_arcs_minWidth:5,gauge_expand:{},gauge_expand_rate:.98,gauge_expand_duration:50},Ch={pie_label_show:!0,pie_label_format:void 0,pie_label_threshold:.05,pie_label_ratio:void 0,pie_expand:{},pie_expand_rate:.98,pie_expand_duration:50,pie_innerRadius:0,pie_outerRadius:void 0,pie_padAngle:0,pie_padding:0,pie_startingAngle:0},Rh={radar_axis_max:void 0,radar_axis_line_show:!0,radar_axis_text_show:!0,radar_axis_text_position:{},radar_level_depth:3,radar_level_show:!0,radar_level_text_format:function(t){return t%1==0?t:t.toFixed(2)},radar_level_text_show:!0,radar_size_ratio:.87,radar_direction_clockwise:!1};function Lh(t,e){uo(Il.prototype,Ff.concat(t)),uo(Yl.prototype,Nf),Do.setOptions(jf.concat(e||[]))}function Ih(t,e){Lh([yh,ph].concat(t||[])),Do.setOptions([mh,Sh].concat(e||[]))}function Ph(t,e){uo(Il.prototype,[ah].concat(t||[])),Do.setOptions(e)}var Dh=function(){return Ih(ch,[bh]),(Dh=function(){return Dn.AREA})()},zh=function(){return Ih(ch,[bh]),(zh=function(){return Dn.AREA_LINE_RANGE})()},Nh=function(){return Ih(ch,[bh,Eh]),(Nh=function(){return Dn.AREA_SPLINE})()},Fh=function(){return Ih(ch,[bh,Eh]),(Fh=function(){return Dn.AREA_SPLINE_RANGE})()},jh=function(){return Ih(ch,[bh]),(jh=function(){return Dn.AREA_STEP})()},Xh=function(){return Ih(),(Xh=function(){return Dn.LINE})()},Bh=function(){return Ih(void 0,[Eh]),(Bh=function(){return Dn.SPLINE})()},$h=function(){return Ih(),($h=function(){return Dn.STEP})()},Uh=function(){return Ph(void 0,[Mh]),(Uh=function(){return Dn.DONUT})()},Yh=function(){return Ph([dh],[Oh]),(Yh=function(){return Dn.GAUGE})()},Vh=function(){return Ph(void 0,[Ch]),(Vh=function(){return Dn.PIE})()},Gh=function(){return Ph([yh,_h],[mh,Rh]),(Gh=function(){return Dn.RADAR})()},Hh=function(){return Lh([lh],wh),(Hh=function(){return Dn.BAR})()},Wh=function(){return Lh([yh,gh],[Th,mh]),(Wh=function(){return Dn.BUBBLE})()},qh=function(){return Lh([hh],[Ah]),(qh=function(){return Dn.CANDLESTICK})()},Zh=function(){return Lh([yh],[mh,kh]),(Zh=function(){return Dn.SCATTER})()},Kh={selected:function(t){var e=this.internal,n=[];return e.$el.main.selectAll("."+(La.shapes+e.getTargetSelectorSuffix(t))).selectAll("."+La.shape).filter((function(){return Ln(this).classed(La.SELECTED)})).each((function(t){return n.push(t)})),n},select:function(t,e,n){var r=this.internal,i=r.config,a=r.$el;i.data_selection_enabled&&a.main.selectAll("."+La.shapes).selectAll("."+La.shape).each((function(a,o){var s=Ln(this),u=a.data?a.data.id:a.id,c=r.getToggle(this,a).bind(r),l=i.data_selection_grouped||!t||t.indexOf(u)>=0,f=!e||e.indexOf(o)>=0,h=s.classed(La.SELECTED);s.classed(La.line)||s.classed(La.area)||(l&&f?i.data_selection_isselectable.bind(r.api)(a)&&!h&&c(!0,s.classed(La.SELECTED,!0),a,o):Xa(n)&&n&&h&&c(!1,s.classed(La.SELECTED,!1),a,o))}))},unselect:function(t,e){var n=this.internal,r=n.config,i=n.$el;r.data_selection_enabled&&i.main.selectAll("."+La.shapes).selectAll("."+La.shape).each((function(i,a){var o=Ln(this),s=i.data?i.data.id:i.id,u=n.getToggle(this,i).bind(n),c=r.data_selection_grouped||!t||t.indexOf(s)>=0,l=!e||e.indexOf(a)>=0,f=o.classed(La.SELECTED);o.classed(La.line)||o.classed(La.area)||c&&l&&r.data_selection_isselectable.bind(n.api)(i)&&f&&u(!1,o.classed(La.SELECTED,!1),i,a)}))}},Jh={subchart:{show:function(){var t=this.internal,e=t.$el.subchart,n=t.config,r=n.subchart_show;if(!r){t.unbindZoomEvent(),n.subchart_show=!r,e.main||t.initSubchart();var i=e.main.selectAll("."+La.target);t.data.targets.length!==i.size()&&(t.updateSizes(),t.updateTargetsForSubchart(t.data.targets),i=e.main.selectAll("."+La.target)),i.style("opacity",null),e.main.style("display",null),this.flush()}},hide:function(){var t=this.internal,e=t.$el.subchart,n=t.config;n.subchart_show&&"none"!==e.main.style("display")&&(n.subchart_show=!1,e.main.style("display","none"),this.flush())},toggle:function(){var t=this.internal.config;this.subchart[t.subchart_show?"hide":"show"]()}}};function Qh(t){return((t=Math.exp(t))+1/t)/2}var td=function t(e,n,r){function i(t,i){var a,o,s=t[0],u=t[1],c=t[2],l=i[0],f=i[1],h=i[2],d=l-s,g=f-u,p=d*d+g*g;if(p<1e-12)o=Math.log(h/c)/e,a=function(t){return[s+t*d,u+t*g,c*Math.exp(e*t*o)]};else{var v=Math.sqrt(p),y=(h*h-c*c+r*p)/(2*c*n*v),x=(h*h-c*c-r*p)/(2*h*n*v),_=Math.log(Math.sqrt(y*y+1)-y),m=Math.log(Math.sqrt(x*x+1)-x);o=(m-_)/e,a=function(t){var r=t*o,i=Qh(_),a=c/(n*v)*(i*function(t){return((t=Math.exp(2*t))-1)/(t+1)}(e*r+_)-function(t){return((t=Math.exp(t))-1/t)/2}(_));return[s+a*d,u+a*g,c*i/Qh(e*r+_)]}}return a.duration=1e3*o*e/Math.SQRT2,a}return i.rho=function(e){var n=Math.max(.001,+e),r=n*n;return t(n,r,r*r)},i}(Math.SQRT2,2,4),ed=function(t){return function(){return t}};function nd(t,e){var n=e.sourceEvent,r=e.target,i=e.transform,a=e.dispatch;Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:a}})}function rd(t,e,n){this.k=t,this.x=e,this.y=n}rd.prototype={constructor:rd,scale:function(t){return 1===t?this:new rd(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new rd(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var id=new rd(1,0,0);function ad(t){for(;!t.__zoom;)if(!(t=t.parentNode))return id;return t.__zoom}function od(t){t.stopImmediatePropagation()}function sd(t){t.preventDefault(),t.stopImmediatePropagation()}function ud(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function cd(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function ld(){return this.__zoom||id}function fd(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function hd(){return navigator.maxTouchPoints||"ontouchstart"in this}function dd(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],a=t.invertY(e[0][1])-n[0][1],o=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}ad.prototype=rd.prototype;var gd=function(t){var e=this.internal,n=e.$el,r=e.axis,i=e.config,a=e.org,o=e.scale,s=i.axis_rotated,u=r.isCategorized(),c=t;if(i.zoom_enabled&&c){if(r.isTimeSeries()&&(c=c.map((function(t){return bo.bind(e)(t)}))),function(t,e,n){var r=n[0],i=n[1];return t.every((function(n,a){return(0===a?n>=r:n<=i)&&!t.every((function(t,n){return t===e[n]}))}))}(c,e.getZoomDomain(!0),e.getZoomDomain())){if(u&&(c=c.map((function(t,e){return+t+(0===e?0:1)}))),e.api.tooltip.hide(),i.subchart_show){var l=o.zoom||o.x;e.brush.getSelection().call(e.brush.move,c.map(l))}else{var f,h=u?o.x.orgScale():a.xScale||o.x,d=[-h(c[0]),0],g=(f=id.scale(h.range()[1]/(h(c[1])-h(c[0])))).translate.apply(f,s?d.reverse():d);n.eventRect.call(e.zoom.transform,g)}e.setZoomResetButton()}}else c=o.zoom?o.zoom.domain():o.x.orgDomain();return c};uo(gd,{enable:function(t){var e=this.internal,n=e.config;/^(drag|wheel)$/.test(t)&&(n.zoom_type=t),n.zoom_enabled=!!t,e.zoom?!1===t&&e.bindZoomEvent(!1):(e.initZoom(),e.bindZoomEvent()),e.updateAndRedraw()},max:function(t){var e=this.internal,n=e.config,r=e.org.xDomain;return(0===t||t)&&(n.zoom_x_max=yo("max",[r[1],t])),n.zoom_x_max},min:function(t){var e=this.internal,n=e.config,r=e.org.xDomain;return(0===t||t)&&(n.zoom_x_min=yo("min",[r[0],t])),n.zoom_x_min},range:function(t){var e=this.zoom;if(qa(t)){var n=t.min,r=t.max;Xa(n)&&e.min(n),Xa(r)&&e.max(r)}return{min:e.min(),max:e.max()}}});var pd={zoom:gd,unzoom:function(){var t,e=this.internal,n=e.config,r=e.$el,i=r.eventRect,a=r.zoomResetBtn;e.scale.zoom&&(n.subchart_show?e.brush.getSelection().call(e.brush.move,null):e.zoom.updateTransformScale(id),e.updateZoom(!0),null==(t=a)||t.style("display","none"),ad(i.node())!==id&&e.zoom.transform(i,id))}},vd={drag:function(t){var e=this,n=e.config,r=e.state,i=e.$el.main,a=n.data_selection_grouped,o=n.interaction_enabled&&n.data_selection_isselectable;if(!e.hasArcType()&&n.data_selection_enabled&&(!n.zoom_enabled||e.zoom.altDomain)&&n.data_selection_multiple){var s=r.dragStart||[0,0],u=s[0],c=s[1],l=t[0],f=t[1],h=Math.min(u,l),d=Math.max(u,l),g=a?r.margin.top:Math.min(c,f),p=a?r.height:Math.max(c,f);i.select("."+La.dragarea).attr("x",h).attr("y",g).attr("width",d-h).attr("height",p-g),i.selectAll("."+La.shapes).selectAll("."+La.shape).filter((function(t){var n;return null==(n=o)?void 0:n.bind(e.api)(t)})).each((function(t,n){var r,i=Ln(this),a=i.classed(La.SELECTED),o=i.classed(La.INCLUDED),s=!1;if(i.classed(La.circle)){var u=1*+i.attr("cx"),c=1*+i.attr("cy");r=e.togglePoint,s=h<u&&u<d&&g<c&&c<p}else{if(!i.classed(La.bar))return;var l=function(t){var e=t.getBoundingClientRect(),n=e.width,r=e.height,i=eo(t);return{x:i[0].x,y:Math.min(i[0].y,i[1].y),width:n,height:r}}(this),f=l.x,v=(c=l.y,l.width),y=l.height;r=e.togglePath,s=!(d<f||f+v<h||p<c||c+y<g)}s^o&&(i.classed(La.INCLUDED,!o),i.classed(La.SELECTED,!a),r.call(e,!a,i,t,n))}))}},dragstart:function(t){var e=this,n=e.config,r=e.state,i=e.$el.main;!e.hasArcType()&&n.data_selection_enabled&&(r.dragStart=t,i.select("."+La.chart).append("rect").attr("class",La.dragarea).style("opacity","0.1"),e.setDragStatus(!0))},dragend:function(){var t=this,e=t.config,n=t.$el.main,r=t.$T;!t.hasArcType()&&e.data_selection_enabled&&(r(n.select("."+La.dragarea)).style("opacity","0").remove(),n.selectAll("."+La.shape).classed(La.INCLUDED,!1),t.setDragStatus(!1))}};function yd(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 xd(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?yd(Object(e),!0).forEach((function(n){Fn(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):yd(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var _d=xd(xd({},vd),{},{selectPoint:function(t,e,n){var r=this,i=r.config,a=r.$el.main,o=r.$T,s=i.axis_rotated,u=(s?r.circleY:r.circleX).bind(r),c=(s?r.circleX:r.circleY).bind(r),l=r.pointSelectR.bind(r);Ka(i.data_onselected,r.api,e,t.node()),o(a.select("."+La.selectedCircles+r.getTargetSelectorSuffix(e.id)).selectAll("."+La.selectedCircle+"-"+n).data([e]).enter().append("circle").attr("class",(function(){return r.generateClass(La.selectedCircle,n)})).attr("cx",u).attr("cy",c).attr("stroke",r.color).attr("r",(function(t){return 1.4*r.pointSelectR(t)}))).attr("r",l)},unselectPoint:function(t,e,n){var r=this,i=r.config,a=r.$el.main,o=r.$T;Ka(i.data_onunselected,r.api,e,t.node()),o(a.select("."+La.selectedCircles+r.getTargetSelectorSuffix(e.id)).selectAll("."+La.selectedCircle+"-"+n)).attr("r",0).remove()},togglePoint:function(t,e,n,r){this[(t?"":"un")+"selectPoint"](e,n,r)},selectPath:function(t,e){var n=this.config;Ka(n.data_onselected,this.api,e,t.node()),n.interaction_brighten&&t.style("filter","brightness(1.25)")},unselectPath:function(t,e){var n=this.config;Ka(n.data_onunselected,this.api,e,t.node()),n.interaction_brighten&&t.style("filter",null)},togglePath:function(t,e,n,r){this[(t?"":"un")+"selectPath"](e,n,r)},getToggle:function(t,e){var n=this;return"path"===t.nodeName?n.togglePath:n.isStepType(e)?function(){}:n.togglePoint},toggleShape:function(t,e,n){var r,i=this,a=i.config,o=i.$el.main,s=Ln(t),u=s.classed(La.SELECTED),c=i.getToggle(t,e).bind(i);if(a.data_selection_enabled&&a.data_selection_isselectable.bind(i.api)(e)){if(!a.data_selection_multiple){var l="."+La.shapes;a.data_selection_grouped&&(l+=i.getTargetSelectorSuffix(e.id)),o.selectAll(l).selectAll("."+La.shape).each((function(t,e){var n=Ln(this);n.classed(La.SELECTED)&&(r=n,c(!1,n.classed(La.SELECTED,!1),t,e))}))}r&&r.node()===s.node()||(s.classed(La.SELECTED,!u),c(!u,s,e,n))}}}),md={initBrush:function(){var t,e,n=this,r=n.config,i=n.scale,a=n.$el.subchart,o=r.axis_rotated;n.brush=Ra(o?xa:ya).handleSize(5);n.brush.on("start brush end",(function(e){var r=e.selection,a=e.target,s=e.type;"start"===s&&"touch"===n.state.inputType&&n.hideTooltip(),/(start|brush)/.test(s)&&n.redrawForBrush(),"end"===s&&(t=i.x.orgDomain()),null!=a&&a.handle&&(null===r?n.brush.handle.attr("display","none"):n.brush.handle.attr("display",null).attr("transform",(function(t,e){return"translate("+(o?[33,r[e]-(0===e?30:24)]:[r[e],3])+")"})))})),n.brush.updateResize=function(){var n=this;e&&clearTimeout(e),e=setTimeout((function(){var e=n.getSelection();t&&Ca(e.node())&&n.move(e,t.map(i.subX.orgScale()))}),0)},n.brush.update=function(){var t;0===this.extent()()[1].filter((function(t){return isNaN(t)})).length&&(null==(t=a.main)||t.select("."+La.brush).call(this));return this},n.brush.scale=function(t){var e=r.subchart_size_height||function(){var t=n.$el.svg.select("."+La.brush+" .overlay"),e={width:0,height:0};return t.size()&&(e.width=+t.attr("width"),e.height=+t.attr("height")),e[o?"width":"height"]}(),i=n.getExtent();!i&&t.range?i=[[0,0],[t.range()[1],e]]:Wa(i)&&(i=i.map((function(t,n){return[t,n>0?e:n]}))),o&&i[1].reverse(),this.extent(i),this.update()},n.brush.getSelection=function(){return a.main?a.main.select("."+La.brush):Ln([])}},initSubchart:function(){var t=this,e=t.config,n=t.state,r=n.clip,i=n.hasAxis,a=t.$el,o=a.defs,s=a.svg,u=a.subchart,c=a.axis;if(i){var l=e.subchart_show?null:"hidden",f=r.id+"-subchart",h=t.getClipPath(f);r.idSubchart=f,t.appendClip(o,f),t.initBrush(),u.main=s.append("g").classed(La.subchart,!0).attr("transform",t.getTranslate("context"));var d=u.main;d.style("visibility",l),d.append("g").attr("clip-path",h).attr("class",La.chart),["bar","line","bubble","candlestick","scatter"].forEach((function(e){var n=co(/^(bubble|scatter)$/.test(e)?"circle":e);if(t.hasType(e)||t.hasTypeOf(n)){var r=d.select("."+La.chart),i=La["chart"+n+"s"];r.select("."+i).empty()&&r.append("g").attr("class",i)}}));var g=d.append("g").attr("clip-path",h).attr("class",La.brush).call(t.brush);e.subchart_showHandle&&t.addBrushHandle(g),c.subX=d.append("g").attr("class",La.axisX).attr("transform",t.getTranslate("subX")).attr("clip-path",e.axis_rotated?"":r.pathXAxis).style("visibility",e.subchart_axis_x_show?l:"hidden")}},addBrushHandle:function(t){var e=this.config,n=e.axis_rotated,r=e.subchart_init_range,i="handle--custom",a=n?["M 5.2491724,29.749209 a 6,6 0 0 0 -5.50000003,-6.5 H -5.7508276 a 6,6 0 0 0 -6.0000004,6.5 z m -5.00000003,-2 H -6.7508276 m 6.99999997,-2 H -6.7508276Z","M 5.2491724,23.249172 a 6,-6 0 0 1 -5.50000003,6.5 H -5.7508276 a 6,-6 0 0 1 -6.0000004,-6.5 z m -5.00000003,2 H -6.7508276 m 6.99999997,2 H -6.7508276Z"]:["M 0 18 A 6 6 0 0 0 -6.5 23.5 V 29 A 6 6 0 0 0 0 35 Z M -2 23 V 30 M -4 23 V 30Z","M 0 18 A 6 6 0 0 1 6.5 23.5 V 29 A 6 6 0 0 1 0 35 Z M 2 23 V 30 M 4 23 V 30Z"];this.brush.handle=t.selectAll(".handle--custom").data(n?[{type:"n"},{type:"s"}]:[{type:"w"},{type:"e"}]).enter().append("path").attr("class",i).attr("cursor",(n?"ns":"ew")+"-resize").attr("d",(function(t){return a[+/[se]/.test(t.type)]})).attr("display",r?null:"none")},updateTargetsForSubchart:function(t){var e=this,n=e.config,r=e.state,i=e.$el.subchart.main;n.subchart_show&&(["bar","line","bubble","candlestick","scatter"].filter((function(t){return e.hasType(t)||e.hasTypeOf(co(t))})).forEach((function(n){var r=/^(bubble|scatter)$/.test(n),a=co(r?"circle":n),o=e.getChartClass(a,!0),s=e.getClass(r?"circles":n+"s",!0),u=i.select("."+La["chart"+a+"s"]);if(r){var c=u.selectAll("."+La.circles).data(t.filter(e["is"+co(n)+"Type"].bind(e))).attr("class",s);c.exit().remove(),c.enter().append("g").attr("class",s)}else{var l=u.selectAll("."+La["chart"+a]).attr("class",o).data(t.filter(e["is"+a+"Type"].bind(e))),f=l.enter().append("g").style("opacity","0").attr("class",o).append("g").attr("class",s);l.exit().remove(),"line"===n&&e.hasTypeOf("Area")&&f.append("g").attr("class",e.getClass("areas",!0))}})),i.selectAll("."+La.brush+" rect").attr(n.axis_rotated?"width":"height",n.axis_rotated?r.width2:r.height2))},redrawSubchart:function(t,e,n){var r,i=this,a=i.config,o=i.$el.subchart.main,s=i.state,u=!!e;if((o.style("visibility",a.subchart_show?null:"hidden"),a.subchart_show)&&("zoom"===(null==(r=s.event)?void 0:r.type)&&i.brush.update(),t)){var c=a.subchart_init_range;if(so(i)||i.brush.update(),Object.keys(n.type).forEach((function(t){var e=co(t),r=i["generateDraw"+e](n.indices[t],!0);i["update"+e](u,!0),i["redraw"+e](r,u,!0)})),i.hasType("bubble")||i.hasType("scatter")){var l=n.pos.cx,f=i.updateCircleY(!0);i.updateCircle(!0),i.redrawCircle(l,f,u,void 0,!0)}!s.rendered&&c&&i.brush.move(i.brush.getSelection(),c.map(i.scale.x))}},redrawForBrush:function(){var t=this,e=t.config,n=e.subchart_onbrush,r=e.zoom_rescale,i=t.scale;t.redraw({withTransition:!1,withY:r,withSubchart:!1,withUpdateXDomain:!0,withDimension:!1}),n.bind(t.api)(i.x.orgDomain())},transformContext:function(t,e){var n=this,r=n.$el.subchart,i=n.$T,a=null!=e&&e.axisSubX?e.axisSubX:i(r.main.select("."+La.axisX),t);r.main.attr("transform",n.getTranslate("context")),a.attr("transform",n.getTranslate("subX"))},getExtent:function(){var t=this,e=t.config,n=t.scale,r=e.axis_x_extent;if(r)if(za(r))r=r.bind(t.api)(t.getXDomain(t.data.targets),n.subX);else if(t.axis.isTimeSeries()&&r.every(isNaN)){var i=bo.bind(t);r=r.map((function(t){return n.subX(i(t))}))}return r}},bd={initZoom:function(){var t=this;t.scale.zoom=null,t.generateZoom(),t.initZoomBehaviour()},bindZoomEvent:function(t){void 0===t&&(t=!0);var e=this,n=e.config;n.zoom_enabled&&t?n.subchart_show||e.bindZoomOnEventRect():!1===t&&(e.api.unzoom(),e.unbindZoomEvent())},generateZoom:function(){var t=this,e=t.config,n=t.org,r=t.scale,i=function(){var t,e,n,r=ud,i=cd,a=dd,o=fd,s=hd,u=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],l=250,f=td,h=Gn("start","zoom","end"),d=0,g=10;function p(t){t.property("__zoom",ld).on("wheel.zoom",w,{passive:!1}).on("mousedown.zoom",T).on("dblclick.zoom",A).filter(s).on("touchstart.zoom",S).on("touchmove.zoom",k).on("touchend.zoom touchcancel.zoom",E).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(t,e){return(e=Math.max(u[0],Math.min(u[1],e)))===t.k?t:new rd(e,t.x,t.y)}function y(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new rd(t.k,r,i)}function x(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function _(t,e,n,r){t.on("start.zoom",(function(){m(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){m(this,arguments).event(r).end()})).tween("zoom",(function(){var t=this,a=arguments,o=m(t,a).event(r),s=i.apply(t,a),u=null==n?x(s):"function"==typeof n?n.apply(t,a):n,c=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),l=t.__zoom,h="function"==typeof e?e.apply(t,a):e,d=f(l.invert(u).concat(c/l.k),h.invert(u).concat(c/h.k));return function(t){if(1===t)t=h;else{var e=d(t),n=c/e[2];t=new rd(n,u[0]-e[0]*n,u[1]-e[1]*n)}o.zoom(null,t)}}))}function m(t,e,n){return!n&&t.__zooming||new b(t,e)}function b(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=i.apply(t,e),this.taps=0}function w(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];if(r.apply(this,arguments)){var s=m(this,n).event(t),l=this.__zoom,f=Math.max(u[0],Math.min(u[1],l.k*Math.pow(2,o.apply(this,arguments)))),h=jn(t);if(s.wheel)s.mouse[0][0]===h[0]&&s.mouse[0][1]===h[1]||(s.mouse[1]=l.invert(s.mouse[0]=h)),clearTimeout(s.wheel);else{if(l.k===f)return;s.mouse=[h,l.invert(h)],gi(this),s.start()}sd(t),s.wheel=setTimeout((function(){s.wheel=null,s.end()}),150),s.zoom("mouse",a(y(v(l,f),s.mouse[0],s.mouse[1]),s.extent,c))}}function T(t){for(var e=arguments.length,i=Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];if(!n&&r.apply(this,arguments)){var s=t.currentTarget,u=m(this,i,!0).event(t),l=Ln(t.view).on("mousemove.zoom",p,!0).on("mouseup.zoom",(function(t){l.on("mousemove.zoom mouseup.zoom",null),Jn(t.view,u.moved),sd(t),u.event(t).end()}),!0),f=jn(t,s),h=t.clientX,g=t.clientY;Kn(t.view),od(t),u.mouse=[f,this.__zoom.invert(f)],gi(this),u.start()}function p(t){if(sd(t),!u.moved){var e=t.clientX-h,n=t.clientY-g;u.moved=e*e+n*n>d}u.event(t).zoom("mouse",a(y(u.that.__zoom,u.mouse[0]=jn(t,s),u.mouse[1]),u.extent,c))}}function A(t){for(var e=arguments.length,n=Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];if(r.apply(this,arguments)){var s=this.__zoom,u=jn(t.changedTouches?t.changedTouches[0]:t,this),f=s.invert(u),h=s.k*(t.shiftKey?.5:2),d=a(y(v(s,h),u,f),i.apply(this,n),c);sd(t),l>0?Ln(this).transition().duration(l).call(_,d,u,t):Ln(this).call(p.transform,d,u,t)}}function S(n){for(var i=arguments.length,a=Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];if(r.apply(this,arguments)){var s,u,c,l,f=n.touches,h=f.length,d=m(this,a,n.changedTouches.length===h).event(n);for(od(n),u=0;u<h;++u)l=[l=jn(c=f[u],this),this.__zoom.invert(l),c.identifier],d.touch0?d.touch1||d.touch0[2]===l[2]||(d.touch1=l,d.taps=0):(d.touch0=l,s=!0,d.taps=1+!!t);t&&(t=clearTimeout(t)),s&&(d.taps<2&&(e=l[0],t=setTimeout((function(){t=null}),500)),gi(this),d.start())}}function k(t){if(this.__zooming){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i,o,s,u,l=m(this,n).event(t),f=t.changedTouches,h=f.length;for(sd(t),i=0;i<h;++i)s=jn(o=f[i],this),l.touch0&&l.touch0[2]===o.identifier?l.touch0[0]=s:l.touch1&&l.touch1[2]===o.identifier&&(l.touch1[0]=s);if(o=l.that.__zoom,l.touch1){var d=l.touch0[0],g=l.touch0[1],p=l.touch1[0],x=l.touch1[1],_=(_=p[0]-d[0])*_+(_=p[1]-d[1])*_,b=(b=x[0]-g[0])*b+(b=x[1]-g[1])*b;o=v(o,Math.sqrt(_/b)),s=[(d[0]+p[0])/2,(d[1]+p[1])/2],u=[(g[0]+x[0])/2,(g[1]+x[1])/2]}else{if(!l.touch0)return;s=l.touch0[0],u=l.touch0[1]}l.zoom("touch",a(y(o,s,u),l.extent,c))}}function E(t){for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];if(this.__zooming){var o,s,u=m(this,i).event(t),c=t.changedTouches,l=c.length;for(od(t),n&&clearTimeout(n),n=setTimeout((function(){n=null}),500),o=0;o<l;++o)s=c[o],u.touch0&&u.touch0[2]===s.identifier?delete u.touch0:u.touch1&&u.touch1[2]===s.identifier&&delete u.touch1;if(u.touch1&&!u.touch0&&(u.touch0=u.touch1,delete u.touch1),u.touch0)u.touch0[1]=this.__zoom.invert(u.touch0[0]);else if(u.end(),2===u.taps&&(s=jn(s,this),Math.hypot(e[0]-s[0],e[1]-s[1])<g)){var f=Ln(this).on("dblclick.zoom");f&&f.apply(this,arguments)}}}return p.transform=function(t,e,n,r){var i=t.selection?t.selection():t;i.property("__zoom",ld),t!==i?_(t,e,n,r):i.interrupt().each((function(){m(this,arguments).event(r).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()}))},p.scaleBy=function(t,e,n,r){p.scaleTo(t,(function(){return this.__zoom.k*("function"==typeof e?e.apply(this,arguments):e)}),n,r)},p.scaleTo=function(t,e,n,r){p.transform(t,(function(){var t=i.apply(this,arguments),r=this.__zoom,o=null==n?x(t):"function"==typeof n?n.apply(this,arguments):n,s=r.invert(o),u="function"==typeof e?e.apply(this,arguments):e;return a(y(v(r,u),o,s),t,c)}),n,r)},p.translateBy=function(t,e,n,r){p.transform(t,(function(){return a(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),i.apply(this,arguments),c)}),null,r)},p.translateTo=function(t,e,n,r,o){p.transform(t,(function(){var t=i.apply(this,arguments),o=this.__zoom,s=null==r?x(t):"function"==typeof r?r.apply(this,arguments):r;return a(id.translate(s[0],s[1]).scale(o.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,c)}),r,o)},b.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=Ln(this.that).datum();h.call(t,this.that,new nd(t,{sourceEvent:this.sourceEvent,target:p,type:t,transform:this.that.__zoom,dispatch:h}),e)}},p.wheelDelta=function(t){return arguments.length?(o="function"==typeof t?t:ed(+t),p):o},p.filter=function(t){return arguments.length?(r="function"==typeof t?t:ed(!!t),p):r},p.touchable=function(t){return arguments.length?(s="function"==typeof t?t:ed(!!t),p):s},p.extent=function(t){return arguments.length?(i="function"==typeof t?t:ed([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),p):i},p.scaleExtent=function(t){return arguments.length?(u[0]=+t[0],u[1]=+t[1],p):[u[0],u[1]]},p.translateExtent=function(t){return arguments.length?(c[0][0]=+t[0][0],c[1][0]=+t[1][0],c[0][1]=+t[0][1],c[1][1]=+t[1][1],p):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},p.constrain=function(t){return arguments.length?(a=t,p):a},p.duration=function(t){return arguments.length?(l=+t,p):l},p.interpolate=function(t){return arguments.length?(f=t,p):f},p.on=function(){var t=h.on.apply(h,arguments);return t===h?p:t},p.clickDistance=function(t){return arguments.length?(d=(t=+t)*t,p):Math.sqrt(d)},p.tapDistance=function(t){return arguments.length?(g=+t,p):g},p}().duration(0).on("start",t.onZoomStart.bind(t)).on("zoom",t.onZoom.bind(t)).on("end",t.onZoomEnd.bind(t));i.orgScaleExtent=function(){var n=e.zoom_extent||[1,10];return[n[0],Math.max(t.getMaxDataCount()/n[1],n[1])]},i.updateScaleExtent=function(){var e=Ya(t.scale.x.orgDomain())/Ya(t.getZoomDomain()),n=this.orgScaleExtent();return this.scaleExtent([n[0]*e,n[1]*e]),this},i.updateTransformScale=function(i){var a;null==(a=n.xScale)||a.range(r.x.range());var o=i[e.axis_rotated?"rescaleY":"rescaleX"](n.xScale||r.x),s=t.trimXDomain(o.domain()),u=e.zoom_rescale;o.domain(s,n.xDomain),t.state.xTickOffset||(t.state.xTickOffset=t.axis.x.tickOffset()),r.zoom=t.getCustomizedScale(o),t.axis.x.scale(r.zoom),u&&(n.xScale||(n.xScale=r.x.copy()),r.x.domain(s))},i.getDomain=function(){var e=r[r.zoom?"zoom":"subX"].domain();return t.axis.isCategorized()&&(e[1]-=2),e},t.zoom=i},onZoomStart:function(t){var e=this,n=t.sourceEvent;n&&(e.zoom.startEvent=n,e.state.zooming=!0,Ka(e.config.zoom_onzoomstart,e.api,t))},onZoom:function(t){var e,n,r,i,a=this,o=a.config,s=a.scale,u=a.state,c=a.org,l=t.sourceEvent,f=(null==t?void 0:t.transform)===id;if(!(!o.zoom_enabled||0===a.filterTargetsToShow(a.data.targets).length||!s.zoom&&(null==(e=l)?void 0:e.type.indexOf("touch"))>-1&&1===(null==(n=l)?void 0:n.touches.length))){t.sourceEvent&&(u.zooming=!0);var h="mousemove"===(null==(r=l)?void 0:r.type),d=(null==(i=l)?void 0:i.wheelDelta)<0,g=t.transform;!h&&d&&s.x.domain().every((function(t,e){return t!==c.xDomain[e]}))&&s.x.domain(c.xDomain),a.zoom.updateTransformScale(g);var p=o.transition_duration>0&&!o.subchart_show&&(u.dragging||f||!t.sourceEvent);a.redraw({withTransition:p,withY:o.zoom_rescale,withSubchart:!1,withEventRect:!1,withDimension:!1}),a.state.cancelClick=h,f||Ka(o.zoom_onzoom,a.api,a.zoom.getDomain())}},onZoomEnd:function(t){var e,n,r,i=this,a=i.config,o=i.state,s=i.zoom.startEvent,u=null==t?void 0:t.sourceEvent,c=(null==t?void 0:t.transform)===id;(null==(e=s)?void 0:e.type.indexOf("touch"))>-1&&(s=s.changedTouches[0],u=null==(n=u)||null==(r=n.changedTouches)?void 0:r[0]);"drag"===a.zoom_type&&u&&s.clientX===u.clientX&&s.clientY===u.clientY||(i.redrawEventRect(),i.updateZoom(),o.zooming=!1,!c&&(u||o.dragging)&&Ka(a.zoom_onzoomend,i.api,i.zoom.getDomain()))},updateZoom:function(t){var e=this,n=e.scale,r=n.subX,i=n.x,a=n.zoom;if(a){var o=a.domain(),s=r.domain(),u=(o[0]<=s[0]||o[0]-.015<=s[0])&&(s[1]<=o[1]||s[1]<=o[1]-.015);(t||u)&&(e.axis.x.scale(r),i.domain(r.orgDomain()),e.scale.zoom=null)}},bindZoomOnEventRect:function(){var t=this,e=t.config,n=t.$el.eventRect,r="drag"===e.zoom_type?t.zoomBehaviour:t.zoom;t.$el.svg.on("wheel",(function(){})),n.call(r).on("dblclick.zoom",null)},initZoomBehaviour:function(){var t,e=this,n=e.config,r=e.state,i=n.axis_rotated,a=0,o=0,s={axis:i?"y":"x",attr:i?"height":"width",index:i?1:0};e.zoomBehaviour=xs().clickDistance(4).on("start",(function(n){r.event=n,e.setDragStatus(!0),e.unselectRect(),t||(t=e.$el.main.append("rect").attr("clip-path",r.clip.path).attr("class",La.zoomBrush).attr("width",i?r.width:0).attr("height",i?0:r.height)),a=no(n,this)[s.index],o=a,t.attr(s.axis,a).attr(s.attr,0),e.onZoomStart(n)})).on("drag",(function(e){o=no(e,this)[s.index],t.attr(s.axis,Math.min(a,o)).attr(s.attr,Math.abs(o-a))})).on("end",(function(n){var i=e.scale.zoom||e.scale.x;if(r.event=n,t.attr(s.axis,0).attr(s.attr,0),a>o){var u=[o,a];a=u[0],o=u[1]}a<0&&(o+=Math.abs(a),a=0),a!==o&&e.api.zoom([a,o].map((function(t){return i.invert(t)}))),e.setDragStatus(!1)}))},setZoomResetButton:function(){var t=this,e=t.config,n=t.$el,r=e.zoom_resetButton;r&&"drag"===e.zoom_type&&(n.zoomResetBtn?n.zoomResetBtn.style("display",null):n.zoomResetBtn=t.$el.chart.append("div").classed(La.button,!0).append("span").on("click",(function(){za(r.onclick)&&r.onclick.bind(t.api)(this),t.api.unzoom()})).classed(La.buttonZoomReset,!0).text(r.text||"Reset Zoom"))}},wd={data_selection_enabled:!1,data_selection_grouped:!1,data_selection_isselectable:function(){return!0},data_selection_multiple:!0,data_selection_draggable:!1,data_onselected:function(){},data_onunselected:function(){}},Td={subchart_show:!1,subchart_showHandle:!1,subchart_size_height:60,subchart_axis_x_show:!0,subchart_axis_x_tick_show:!0,subchart_axis_x_tick_format:void 0,subchart_axis_x_tick_text_show:!0,subchart_init_range:void 0,subchart_onbrush:function(){}},Ad={zoom_enabled:!1,zoom_type:"wheel",zoom_extent:void 0,zoom_privileged:!1,zoom_rescale:!1,zoom_onzoom:void 0,zoom_onzoomstart:void 0,zoom_onzoomend:void 0,zoom_resetButton:!0,zoom_x_min:void 0,zoom_x_max:void 0},Sd=function(){return uo(Il.prototype,_d),uo(Yl.prototype,Kh),Do.setOptions([wd]),(Sd=function(){return!0})()},kd=function(){return uo(Il.prototype,md),uo(Yl.prototype,Jh),Do.setOptions([Td]),(kd=function(){return!0})()},Ed=function(){return uo(Il.prototype,bd),uo(Yl.prototype,pd),Do.setOptions([Ad]),(Ed=function(){return!0})()},Md={},Od={version:"3.2.1",generate:function(t){var e=po({},Md,t),n=new Yl(e);return n.internal.charts=this.instance,this.instance.push(n),n},defaults:function(t){return qa(t)&&(Md=t),Md},instance:[],plugin:{}};Object.keys(r).forEach((function(t){return r[t]()})),Object.keys(i).forEach((function(t){return i[t]()}))},function(t,e,n){t.exports=n(428)},function(t){var e=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),o=new M(r||[]);return a._invoke=function(t,e,n){var r=f;return function(i,a){if(r===d)throw new Error("Generator is already running");if(r===g){if("throw"===i)throw a;return C()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=S(o,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var u=l(t,e,n);if("normal"===u.type){if(r=n.done?g:h,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=g,n.method="throw",n.arg=u.arg)}}}(t,n,o),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f="suspendedStart",h="suspendedYield",d="executing",g="completed",p={};function v(){}function y(){}function x(){}var _={};u(_,a,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(O([])));b&&b!==n&&r.call(b,a)&&(_=b);var w=x.prototype=v.prototype=Object.create(_);function T(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function n(i,a,o,s){var u=l(t[i],t,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,o,s)}),(function(t){n("throw",t,o,s)})):e.resolve(f).then((function(t){c.value=t,o(c)}),(function(t){return n("throw",t,o,s)}))}s(u.arg)}var i;this._invoke=function(t,r){function a(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(a,a):a()}}function S(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var i=l(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,p;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,p):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function O(t){if(t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}return{next:C}}function C(){return{value:e,done:!0}}return y.prototype=x,u(w,"constructor",x),u(x,"constructor",y),y.displayName=u(x,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,u(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},T(A.prototype),u(A.prototype,o,(function(){return this})),t.AsyncIterator=A,t.async=function(e,n,r,i,a){void 0===a&&(a=Promise);var o=new A(c(e,n,r,i),a);return t.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},T(w),u(w,s,"Generator"),u(w,a,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=O,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(E),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:O(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}],e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var a=e[r]={exports:{}};return t[r](a,a.exports,n),a.exports}return n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n(0),n(426)}()}));
\No newline at end of file