billboard.js 3.13.0 → 3.14.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/billboard.css +1 -1
- package/dist/billboard.js +349 -176
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +10 -10
- package/dist/billboard.pkgd.js +572 -399
- package/dist/billboard.pkgd.min.js +18 -18
- package/dist/plugin/billboardjs-plugin-bubblecompare.js +7 -4
- package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-sparkline.js +37 -11
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +3 -3
- package/dist/plugin/billboardjs-plugin-stanford.js +41 -15
- package/dist/plugin/billboardjs-plugin-stanford.min.js +3 -3
- package/dist/plugin/billboardjs-plugin-tableview.js +37 -11
- package/dist/plugin/billboardjs-plugin-tableview.min.js +6 -6
- package/dist/plugin/billboardjs-plugin-textoverlap.js +36 -10
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +3 -3
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.js +50 -50
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +138 -115
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +6 -6
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +178 -155
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +11 -11
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +138 -115
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +150 -127
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +7 -7
- package/dist/theme/dark.css +1 -1
- package/dist/theme/dark.min.css +1 -1
- package/dist/theme/datalab.css +1 -1
- package/dist/theme/datalab.min.css +1 -1
- package/dist/theme/graph.css +1 -1
- package/dist/theme/graph.min.css +1 -1
- package/dist/theme/insight.css +1 -1
- package/dist/theme/insight.min.css +1 -1
- package/dist/theme/modern.css +1 -1
- package/dist/theme/modern.min.css +1 -1
- package/dist-esm/billboard.js +267 -67
- package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +3 -3
- package/dist-esm/plugin/billboardjs-plugin-sparkline.js +3 -3
- package/dist-esm/plugin/billboardjs-plugin-stanford.js +3 -3
- package/dist-esm/plugin/billboardjs-plugin-tableview.js +3 -3
- package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +3 -3
- package/package.json +32 -31
- package/src/Chart/Chart.ts +11 -0
- package/src/ChartInternal/Axis/AxisRenderer.ts +6 -2
- package/src/ChartInternal/Axis/AxisRendererHelper.ts +13 -8
- package/src/ChartInternal/ChartInternal.ts +9 -7
- package/src/ChartInternal/data/data.ts +18 -4
- package/src/ChartInternal/data/load.ts +4 -0
- package/src/ChartInternal/interactions/eventrect.ts +11 -7
- package/src/ChartInternal/interactions/interaction.ts +21 -6
- package/src/ChartInternal/interactions/zoom.ts +11 -3
- package/src/ChartInternal/internals/legend.ts +16 -6
- package/src/ChartInternal/internals/size.ts +10 -5
- package/src/ChartInternal/internals/tooltip.ts +54 -2
- package/src/ChartInternal/internals/type.ts +2 -1
- package/src/ChartInternal/shape/arc.ts +2 -1
- package/src/ChartInternal/shape/funnel.ts +4 -2
- package/src/ChartInternal/shape/radar.ts +5 -1
- package/src/ChartInternal/shape/treemap.ts +4 -2
- package/src/config/Options/axis/axis.ts +30 -0
- package/src/config/Options/axis/y2.ts +13 -0
- package/src/config/Options/common/legend.ts +6 -3
- package/src/config/Options/common/main.ts +18 -7
- package/src/config/Options/interaction/interaction.ts +8 -2
- package/src/module/error.ts +11 -7
- package/src/module/util.ts +61 -7
- package/types/axis.d.ts +7 -0
- package/types/options.d.ts +15 -5
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 3.
|
|
8
|
+
* @version 3.14.0-next.2
|
|
9
9
|
*
|
|
10
10
|
* All-in-one packaged file for ease use of 'billboard.js' with dependant d3.js modules & polyfills.
|
|
11
|
-
* - @types/d3-selection ^3.0.
|
|
12
|
-
* - @types/d3-transition ^3.0.
|
|
11
|
+
* - @types/d3-selection ^3.0.11
|
|
12
|
+
* - @types/d3-transition ^3.0.9
|
|
13
13
|
* - d3-axis ^3.0.0
|
|
14
14
|
* - d3-brush ^3.0.0
|
|
15
15
|
* - d3-drag ^3.0.0
|
|
@@ -23,35 +23,35 @@
|
|
|
23
23
|
* - d3-time-format ^4.1.0
|
|
24
24
|
* - d3-transition ^3.0.1
|
|
25
25
|
* - d3-zoom ^3.0.0
|
|
26
|
-
*/(function(Va,jn){if(typeof exports=="object"&&typeof module=="object")module.exports=jn();else if(typeof define=="function"&&define.amd)define([],jn);else{var Xa=jn();for(var x in Xa)(typeof exports=="object"?exports:Va)[x]=Xa[x]}})(this,function(){return function(){"use strict";var Oo=[function(x,E,r){r(1),r(97),r(98),r(99),r(100),r(101),r(102),r(103),r(104),r(105),r(106),r(107),r(108),r(109),r(110),r(111),r(124),r(126),r(136),r(137),r(139),r(143),r(146),r(148),r(150),r(151),r(152),r(153),r(155),r(156),r(158),r(159),r(161),r(165),r(166),r(167),r(168),r(173),r(174),r(176),r(177),r(178),r(180),r(184),r(185),r(186),r(187),r(188),r(193),r(195),r(196),r(198),r(201),r(202),r(203),r(204),r(205),r(207),r(217),r(219),r(222),r(224),r(227),r(233),r(234),r(235),r(236),r(237),r(238),r(242),r(243),r(245),r(246),r(247),r(249),r(250),r(251),r(93),r(252),r(253),r(261),r(263),r(265),r(266),r(267),r(268),r(269),r(271),r(272),r(273),r(274),r(275),r(277),r(278),r(279),r(280),r(281),r(282),r(283),r(284),r(288),r(289),r(291),r(293),r(294),r(295),r(296),r(297),r(299),r(301),r(302),r(303),r(304),r(306),r(307),r(309),r(310),r(311),r(312),r(314),r(315),r(316),r(317),r(318),r(319),r(320),r(321),r(322),r(324),r(325),r(326),r(327),r(328),r(329),r(330),r(331),r(332),r(333),r(334),r(336),r(337),r(338),r(339),r(361),r(362),r(363),r(364),r(365),r(366),r(367),r(368),r(369),r(371),r(372),r(373),r(374),r(375),r(376),r(377),r(378),r(379),r(380),r(387),r(388),r(390),r(391),r(392),r(393),r(394),r(396),r(407),r(409),r(411),r(413),r(415),r(417),r(419),r(420),r(422),r(425),r(426),r(427),r(428),r(429),r(433),r(434),r(436),r(437),r(438),r(439),r(441),r(442),r(443),r(444),r(445),r(446),r(447),r(449),r(452),r(455),r(458),r(459),r(460),r(461),r(462),r(463),r(464),r(465),r(466),r(467),r(468),r(469),r(470),r(479),r(480),r(481),r(482),r(483),r(484),r(485),r(486),r(487),r(488),r(489),r(490),r(491),r(494),r(495),r(496),r(497),r(498),r(499),r(500),r(501),r(502),r(503),r(504),r(505),r(506),r(507),r(508),r(509),r(510),r(511),r(512),r(513),r(514),r(515),r(516),r(517),r(518),r(519),r(520),r(521),r(524),r(526),r(528),r(529),r(532),r(533),r(535),r(536),r(537),r(541),r(542),r(543),r(544),r(547),r(552),r(553),r(554),r(555),r(556),r(557),r(558),r(80)},function(x,E,r){r(2),r(90),r(92),r(93),r(96)},function(x,E,r){var f=r(3),d=r(4),h=r(8),p=r(14),y=r(36),T=r(6),$=r(26),A=r(7),b=r(38),R=r(24),O=r(46),C=r(12),w=r(18),D=r(68),L=r(11),F=r(71),z=r(73),B=r(57),U=r(75),V=r(66),j=r(5),G=r(44),W=r(72),J=r(10),k=r(47),Q=r(77),nt=r(34),rt=r(53),q=r(54),tt=r(40),et=r(33),ot=r(78),pt=r(79),gt=r(81),xt=r(82),mt=r(51),zt=r(83).forEach,Lt=rt("hidden"),Xt="Symbol",Qt="prototype",_t=mt.set,me=mt.getterFor(Xt),ge=Object[Qt],ie=d.Symbol,Mt=ie&&ie[Qt],Yt=d.RangeError,re=d.TypeError,le=d.QObject,ne=j.f,fe=G.f,Ie=U.f,Pe=J.f,$e=p([].push),ce=nt("symbols"),Ae=nt("op-symbols"),Te=nt("wks"),de=!le||!le[Qt]||!le[Qt].findChild,Et=function(Ot,Pt,Ct){var Nt=ne(ge,Pt);Nt&&delete ge[Pt],fe(Ot,Pt,Ct),Nt&&Ot!==ge&&fe(ge,Pt,Nt)},Bt=T&&A(function(){return F(fe({},"a",{get:function(){return fe(this,"a",{value:7}).a}})).a!==7})?Et:fe,Tt=function(Ot,Pt){var Ct=ce[Ot]=F(Mt);return _t(Ct,{type:Xt,tag:Ot,description:Pt}),T||(Ct.description=Pt),Ct},qt=function(Pt,Ct,Nt){Pt===ge&&qt(Ae,Ct,Nt),O(Pt);var bt=w(Ct);return O(Nt),b(ce,bt)?(Nt.enumerable?(b(Pt,Lt)&&Pt[Lt][bt]&&(Pt[Lt][bt]=!1),Nt=F(Nt,{enumerable:L(0,!1)})):(b(Pt,Lt)||fe(Pt,Lt,L(1,F(null))),Pt[Lt][bt]=!0),Bt(Pt,bt,Nt)):fe(Pt,bt,Nt)},ee=function(Pt,Ct){O(Pt);var Nt=C(Ct),bt=z(Nt).concat(ct(Nt));return zt(bt,function(se){(!T||h(Ht,Nt,se))&&qt(Pt,se,Nt[se])}),Pt},Zt=function(Pt,Ct){return Ct===void 0?F(Pt):ee(F(Pt),Ct)},Ht=function(Pt){var Ct=w(Pt),Nt=h(Pe,this,Ct);return this===ge&&b(ce,Ct)&&!b(Ae,Ct)?!1:Nt||!b(this,Ct)||!b(ce,Ct)||b(this,Lt)&&this[Lt][Ct]?Nt:!0},Ye=function(Pt,Ct){var Nt=C(Pt),bt=w(Ct);if(!(Nt===ge&&b(ce,bt)&&!b(Ae,bt))){var se=ne(Nt,bt);return se&&b(ce,bt)&&!(b(Nt,Lt)&&Nt[Lt][bt])&&(se.enumerable=!0),se}},Ke=function(Pt){var Ct=Ie(C(Pt)),Nt=[];return zt(Ct,function(bt){!b(ce,bt)&&!b(q,bt)&&$e(Nt,bt)}),Nt},ct=function(Ot){var Pt=Ot===ge,Ct=Ie(Pt?Ae:C(Ot)),Nt=[];return zt(Ct,function(bt){b(ce,bt)&&(!Pt||b(ge,bt))&&$e(Nt,ce[bt])}),Nt};$||(ie=function(){if(R(Mt,this))throw new re("Symbol is not a constructor");var Pt=!arguments.length||arguments[0]===void 0?void 0:D(arguments[0]),Ct=tt(Pt),Nt=function(bt){var se=this===void 0?d:this;se===ge&&h(Nt,Ae,bt),b(se,Lt)&&b(se[Lt],Ct)&&(se[Lt][Ct]=!1);var Ce=L(1,bt);try{Bt(se,Ct,Ce)}catch(Rt){if(!(Rt instanceof Yt))throw Rt;Et(se,Ct,Ce)}};return T&&de&&Bt(ge,Ct,{configurable:!0,set:Nt}),Tt(Ct,Pt)},Mt=ie[Qt],k(Mt,"toString",function(){return me(this).tag}),k(ie,"withoutSetter",function(Ot){return Tt(tt(Ot),Ot)}),J.f=Ht,G.f=qt,W.f=ee,j.f=Ye,B.f=U.f=Ke,V.f=ct,ot.f=function(Ot){return Tt(et(Ot),Ot)},T&&(Q(Mt,"description",{configurable:!0,get:function(){return me(this).description}}),y||k(ge,"propertyIsEnumerable",Ht,{unsafe:!0}))),f({global:!0,constructor:!0,wrap:!0,forced:!$,sham:!$},{Symbol:ie}),zt(z(Te),function(Ot){pt(Ot)}),f({target:Xt,stat:!0,forced:!$},{useSetter:function(){de=!0},useSimple:function(){de=!1}}),f({target:"Object",stat:!0,forced:!$,sham:!T},{create:Zt,defineProperty:qt,defineProperties:ee,getOwnPropertyDescriptor:Ye}),f({target:"Object",stat:!0,forced:!$},{getOwnPropertyNames:Ke}),gt(),xt(ie,Xt),q[Lt]=!0},function(x,E,r){var f=r(4),d=r(5).f,h=r(43),p=r(47),y=r(37),T=r(55),$=r(67);x.exports=function(A,b){var R=A.target,O=A.global,C=A.stat,w,D,L,F,z,B;if(O?D=f:C?D=f[R]||y(R,{}):D=f[R]&&f[R].prototype,D)for(L in b){if(z=b[L],A.dontCallGetSet?(B=d(D,L),F=B&&B.value):F=D[L],w=$(O?L:R+(C?".":"#")+L,A.forced),!w&&F!==void 0){if(typeof z==typeof F)continue;T(z,F)}(A.sham||F&&F.sham)&&h(z,"sham",!0),p(D,L,z,A)}}},function(x){var E=function(r){return r&&r.Math===Math&&r};x.exports=E(typeof globalThis=="object"&&globalThis)||E(typeof window=="object"&&window)||E(typeof self=="object"&&self)||E(typeof global=="object"&&global)||E(typeof this=="object"&&this)||function(){return this}()||Function("return this")()},function(x,E,r){var f=r(6),d=r(8),h=r(10),p=r(11),y=r(12),T=r(18),$=r(38),A=r(41),b=Object.getOwnPropertyDescriptor;E.f=f?b:function(O,C){if(O=y(O),C=T(C),A)try{return b(O,C)}catch(w){}if($(O,C))return p(!d(h.f,O,C),O[C])}},function(x,E,r){var f=r(7);x.exports=!f(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},function(x){x.exports=function(E){try{return!!E()}catch(r){return!0}}},function(x,E,r){var f=r(9),d=Function.prototype.call;x.exports=f?d.bind(d):function(){return d.apply(d,arguments)}},function(x,E,r){var f=r(7);x.exports=!f(function(){var d=function(){}.bind();return typeof d!="function"||d.hasOwnProperty("prototype")})},function(x,E){var r={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,d=f&&!r.call({1:2},1);E.f=d?function(p){var y=f(this,p);return!!y&&y.enumerable}:r},function(x){x.exports=function(E,r){return{enumerable:!(E&1),configurable:!(E&2),writable:!(E&4),value:r}}},function(x,E,r){var f=r(13),d=r(16);x.exports=function(h){return f(d(h))}},function(x,E,r){var f=r(14),d=r(7),h=r(15),p=Object,y=f("".split);x.exports=d(function(){return!p("z").propertyIsEnumerable(0)})?function(T){return h(T)==="String"?y(T,""):p(T)}:p},function(x,E,r){var f=r(9),d=Function.prototype,h=d.call,p=f&&d.bind.bind(h,h);x.exports=f?p:function(y){return function(){return h.apply(y,arguments)}}},function(x,E,r){var f=r(14),d=f({}.toString),h=f("".slice);x.exports=function(p){return h(d(p),8,-1)}},function(x,E,r){var f=r(17),d=TypeError;x.exports=function(h){if(f(h))throw new d("Can't call method on "+h);return h}},function(x){x.exports=function(E){return E==null}},function(x,E,r){var f=r(19),d=r(22);x.exports=function(h){var p=f(h,"string");return d(p)?p:p+""}},function(x,E,r){var f=r(8),d=r(20),h=r(22),p=r(29),y=r(32),T=r(33),$=TypeError,A=T("toPrimitive");x.exports=function(b,R){if(!d(b)||h(b))return b;var O=p(b,A),C;if(O){if(R===void 0&&(R="default"),C=f(O,b,R),!d(C)||h(C))return C;throw new $("Can't convert object to primitive value")}return R===void 0&&(R="number"),y(b,R)}},function(x,E,r){var f=r(21);x.exports=function(d){return typeof d=="object"?d!==null:f(d)}},function(x){var E=typeof document=="object"&&document.all;x.exports=typeof E=="undefined"&&E!==void 0?function(r){return typeof r=="function"||r===E}:function(r){return typeof r=="function"}},function(x,E,r){var f=r(23),d=r(21),h=r(24),p=r(25),y=Object;x.exports=p?function(T){return typeof T=="symbol"}:function(T){var $=f("Symbol");return d($)&&h($.prototype,y(T))}},function(x,E,r){var f=r(4),d=r(21),h=function(p){return d(p)?p:void 0};x.exports=function(p,y){return arguments.length<2?h(f[p]):f[p]&&f[p][y]}},function(x,E,r){var f=r(14);x.exports=f({}.isPrototypeOf)},function(x,E,r){var f=r(26);x.exports=f&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},function(x,E,r){var f=r(27),d=r(7),h=r(4),p=h.String;x.exports=!!Object.getOwnPropertySymbols&&!d(function(){var y=Symbol("symbol detection");return!p(y)||!(Object(y)instanceof Symbol)||!Symbol.sham&&f&&f<41})},function(x,E,r){var f=r(4),d=r(28),h=f.process,p=f.Deno,y=h&&h.versions||p&&p.version,T=y&&y.v8,$,A;T&&($=T.split("."),A=$[0]>0&&$[0]<4?1:+($[0]+$[1])),!A&&d&&($=d.match(/Edge\/(\d+)/),(!$||$[1]>=74)&&($=d.match(/Chrome\/(\d+)/),$&&(A=+$[1]))),x.exports=A},function(x,E,r){var f=r(4),d=f.navigator,h=d&&d.userAgent;x.exports=h?String(h):""},function(x,E,r){var f=r(30),d=r(17);x.exports=function(h,p){var y=h[p];return d(y)?void 0:f(y)}},function(x,E,r){var f=r(21),d=r(31),h=TypeError;x.exports=function(p){if(f(p))return p;throw new h(d(p)+" is not a function")}},function(x){var E=String;x.exports=function(r){try{return E(r)}catch(f){return"Object"}}},function(x,E,r){var f=r(8),d=r(21),h=r(20),p=TypeError;x.exports=function(y,T){var $,A;if(T==="string"&&d($=y.toString)&&!h(A=f($,y))||d($=y.valueOf)&&!h(A=f($,y))||T!=="string"&&d($=y.toString)&&!h(A=f($,y)))return A;throw new p("Can't convert object to primitive value")}},function(x,E,r){var f=r(4),d=r(34),h=r(38),p=r(40),y=r(26),T=r(25),$=f.Symbol,A=d("wks"),b=T?$.for||$:$&&$.withoutSetter||p;x.exports=function(R){return h(A,R)||(A[R]=y&&h($,R)?$[R]:b("Symbol."+R)),A[R]}},function(x,E,r){var f=r(35);x.exports=function(d,h){return f[d]||(f[d]=h||{})}},function(x,E,r){var f=r(36),d=r(4),h=r(37),p="__core-js_shared__",y=x.exports=d[p]||h(p,{});(y.versions||(y.versions=[])).push({version:"3.38.1",mode:f?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(x){x.exports=!1},function(x,E,r){var f=r(4),d=Object.defineProperty;x.exports=function(h,p){try{d(f,h,{value:p,configurable:!0,writable:!0})}catch(y){f[h]=p}return p}},function(x,E,r){var f=r(14),d=r(39),h=f({}.hasOwnProperty);x.exports=Object.hasOwn||function(y,T){return h(d(y),T)}},function(x,E,r){var f=r(16),d=Object;x.exports=function(h){return d(f(h))}},function(x,E,r){var f=r(14),d=0,h=Math.random(),p=f(1 .toString);x.exports=function(y){return"Symbol("+(y===void 0?"":y)+")_"+p(++d+h,36)}},function(x,E,r){var f=r(6),d=r(7),h=r(42);x.exports=!f&&!d(function(){return Object.defineProperty(h("div"),"a",{get:function(){return 7}}).a!==7})},function(x,E,r){var f=r(4),d=r(20),h=f.document,p=d(h)&&d(h.createElement);x.exports=function(y){return p?h.createElement(y):{}}},function(x,E,r){var f=r(6),d=r(44),h=r(11);x.exports=f?function(p,y,T){return d.f(p,y,h(1,T))}:function(p,y,T){return p[y]=T,p}},function(x,E,r){var f=r(6),d=r(41),h=r(45),p=r(46),y=r(18),T=TypeError,$=Object.defineProperty,A=Object.getOwnPropertyDescriptor,b="enumerable",R="configurable",O="writable";E.f=f?h?function(w,D,L){if(p(w),D=y(D),p(L),typeof w=="function"&&D==="prototype"&&"value"in L&&O in L&&!L[O]){var F=A(w,D);F&&F[O]&&(w[D]=L.value,L={configurable:R in L?L[R]:F[R],enumerable:b in L?L[b]:F[b],writable:!1})}return $(w,D,L)}:$:function(w,D,L){if(p(w),D=y(D),p(L),d)try{return $(w,D,L)}catch(F){}if("get"in L||"set"in L)throw new T("Accessors not supported");return"value"in L&&(w[D]=L.value),w}},function(x,E,r){var f=r(6),d=r(7);x.exports=f&&d(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},function(x,E,r){var f=r(20),d=String,h=TypeError;x.exports=function(p){if(f(p))return p;throw new h(d(p)+" is not an object")}},function(x,E,r){var f=r(21),d=r(44),h=r(48),p=r(37);x.exports=function(y,T,$,A){A||(A={});var b=A.enumerable,R=A.name!==void 0?A.name:T;if(f($)&&h($,R,A),A.global)b?y[T]=$:p(T,$);else{try{A.unsafe?y[T]&&(b=!0):delete y[T]}catch(O){}b?y[T]=$:d.f(y,T,{value:$,enumerable:!1,configurable:!A.nonConfigurable,writable:!A.nonWritable})}return y}},function(x,E,r){var f=r(14),d=r(7),h=r(21),p=r(38),y=r(6),T=r(49).CONFIGURABLE,$=r(50),A=r(51),b=A.enforce,R=A.get,O=String,C=Object.defineProperty,w=f("".slice),D=f("".replace),L=f([].join),F=y&&!d(function(){return C(function(){},"length",{value:8}).length!==8}),z=String(String).split("String"),B=x.exports=function(U,V,j){w(O(V),0,7)==="Symbol("&&(V="["+D(O(V),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),j&&j.getter&&(V="get "+V),j&&j.setter&&(V="set "+V),(!p(U,"name")||T&&U.name!==V)&&(y?C(U,"name",{value:V,configurable:!0}):U.name=V),F&&j&&p(j,"arity")&&U.length!==j.arity&&C(U,"length",{value:j.arity});try{j&&p(j,"constructor")&&j.constructor?y&&C(U,"prototype",{writable:!1}):U.prototype&&(U.prototype=void 0)}catch(W){}var G=b(U);return p(G,"source")||(G.source=L(z,typeof V=="string"?V:"")),U};Function.prototype.toString=B(function(){return h(this)&&R(this).source||$(this)},"toString")},function(x,E,r){var f=r(6),d=r(38),h=Function.prototype,p=f&&Object.getOwnPropertyDescriptor,y=d(h,"name"),T=y&&function(){}.name==="something",$=y&&(!f||f&&p(h,"name").configurable);x.exports={EXISTS:y,PROPER:T,CONFIGURABLE:$}},function(x,E,r){var f=r(14),d=r(21),h=r(35),p=f(Function.toString);d(h.inspectSource)||(h.inspectSource=function(y){return p(y)}),x.exports=h.inspectSource},function(x,E,r){var f=r(52),d=r(4),h=r(20),p=r(43),y=r(38),T=r(35),$=r(53),A=r(54),b="Object already initialized",R=d.TypeError,O=d.WeakMap,C,w,D,L=function(U){return D(U)?w(U):C(U,{})},F=function(U){return function(V){var j;if(!h(V)||(j=w(V)).type!==U)throw new R("Incompatible receiver, "+U+" required");return j}};if(f||T.state){var z=T.state||(T.state=new O);z.get=z.get,z.has=z.has,z.set=z.set,C=function(U,V){if(z.has(U))throw new R(b);return V.facade=U,z.set(U,V),V},w=function(U){return z.get(U)||{}},D=function(U){return z.has(U)}}else{var B=$("state");A[B]=!0,C=function(U,V){if(y(U,B))throw new R(b);return V.facade=U,p(U,B,V),V},w=function(U){return y(U,B)?U[B]:{}},D=function(U){return y(U,B)}}x.exports={set:C,get:w,has:D,enforce:L,getterFor:F}},function(x,E,r){var f=r(4),d=r(21),h=f.WeakMap;x.exports=d(h)&&/native code/.test(String(h))},function(x,E,r){var f=r(34),d=r(40),h=f("keys");x.exports=function(p){return h[p]||(h[p]=d(p))}},function(x){x.exports={}},function(x,E,r){var f=r(38),d=r(56),h=r(5),p=r(44);x.exports=function(y,T,$){for(var A=d(T),b=p.f,R=h.f,O=0;O<A.length;O++){var C=A[O];!f(y,C)&&!($&&f($,C))&&b(y,C,R(T,C))}}},function(x,E,r){var f=r(23),d=r(14),h=r(57),p=r(66),y=r(46),T=d([].concat);x.exports=f("Reflect","ownKeys")||function(A){var b=h.f(y(A)),R=p.f;return R?T(b,R(A)):b}},function(x,E,r){var f=r(58),d=r(65),h=d.concat("length","prototype");E.f=Object.getOwnPropertyNames||function(y){return f(y,h)}},function(x,E,r){var f=r(14),d=r(38),h=r(12),p=r(59).indexOf,y=r(54),T=f([].push);x.exports=function($,A){var b=h($),R=0,O=[],C;for(C in b)!d(y,C)&&d(b,C)&&T(O,C);for(;A.length>R;)d(b,C=A[R++])&&(~p(O,C)||T(O,C));return O}},function(x,E,r){var f=r(12),d=r(60),h=r(63),p=function(y){return function(T,$,A){var b=f(T),R=h(b);if(R===0)return!y&&-1;var O=d(A,R),C;if(y&&$!==$){for(;R>O;)if(C=b[O++],C!==C)return!0}else for(;R>O;O++)if((y||O in b)&&b[O]===$)return y||O||0;return!y&&-1}};x.exports={includes:p(!0),indexOf:p(!1)}},function(x,E,r){var f=r(61),d=Math.max,h=Math.min;x.exports=function(p,y){var T=f(p);return T<0?d(T+y,0):h(T,y)}},function(x,E,r){var f=r(62);x.exports=function(d){var h=+d;return h!==h||h===0?0:f(h)}},function(x){var E=Math.ceil,r=Math.floor;x.exports=Math.trunc||function(d){var h=+d;return(h>0?r:E)(h)}},function(x,E,r){var f=r(64);x.exports=function(d){return f(d.length)}},function(x,E,r){var f=r(61),d=Math.min;x.exports=function(h){var p=f(h);return p>0?d(p,9007199254740991):0}},function(x){x.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(x,E){E.f=Object.getOwnPropertySymbols},function(x,E,r){var f=r(7),d=r(21),h=/#|\.prototype\./,p=function(b,R){var O=T[y(b)];return O===A?!0:O===$?!1:d(R)?f(R):!!R},y=p.normalize=function(b){return String(b).replace(h,".").toLowerCase()},T=p.data={},$=p.NATIVE="N",A=p.POLYFILL="P";x.exports=p},function(x,E,r){var f=r(69),d=String;x.exports=function(h){if(f(h)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return d(h)}},function(x,E,r){var f=r(70),d=r(21),h=r(15),p=r(33),y=p("toStringTag"),T=Object,$=h(function(){return arguments}())==="Arguments",A=function(b,R){try{return b[R]}catch(O){}};x.exports=f?h:function(b){var R,O,C;return b===void 0?"Undefined":b===null?"Null":typeof(O=A(R=T(b),y))=="string"?O:$?h(R):(C=h(R))==="Object"&&d(R.callee)?"Arguments":C}},function(x,E,r){var f=r(33),d=f("toStringTag"),h={};h[d]="z",x.exports=String(h)==="[object z]"},function(x,E,r){var f=r(46),d=r(72),h=r(65),p=r(54),y=r(74),T=r(42),$=r(53),A=">",b="<",R="prototype",O="script",C=$("IE_PROTO"),w=function(){},D=function(U){return b+O+A+U+b+"/"+O+A},L=function(U){U.write(D("")),U.close();var V=U.parentWindow.Object;return U=null,V},F=function(){var U=T("iframe"),V="java"+O+":",j;return U.style.display="none",y.appendChild(U),U.src=String(V),j=U.contentWindow.document,j.open(),j.write(D("document.F=Object")),j.close(),j.F},z,B=function(){try{z=new ActiveXObject("htmlfile")}catch(V){}B=typeof document!="undefined"?document.domain&&z?L(z):F():L(z);for(var U=h.length;U--;)delete B[R][h[U]];return B()};p[C]=!0,x.exports=Object.create||function(V,j){var G;return V!==null?(w[R]=f(V),G=new w,w[R]=null,G[C]=V):G=B(),j===void 0?G:d.f(G,j)}},function(x,E,r){var f=r(6),d=r(45),h=r(44),p=r(46),y=r(12),T=r(73);E.f=f&&!d?Object.defineProperties:function(A,b){p(A);for(var R=y(b),O=T(b),C=O.length,w=0,D;C>w;)h.f(A,D=O[w++],R[D]);return A}},function(x,E,r){var f=r(58),d=r(65);x.exports=Object.keys||function(p){return f(p,d)}},function(x,E,r){var f=r(23);x.exports=f("document","documentElement")},function(x,E,r){var f=r(15),d=r(12),h=r(57).f,p=r(76),y=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],T=function($){try{return h($)}catch(A){return p(y)}};x.exports.f=function(A){return y&&f(A)==="Window"?T(A):h(d(A))}},function(x,E,r){var f=r(14);x.exports=f([].slice)},function(x,E,r){var f=r(48),d=r(44);x.exports=function(h,p,y){return y.get&&f(y.get,p,{getter:!0}),y.set&&f(y.set,p,{setter:!0}),d.f(h,p,y)}},function(x,E,r){var f=r(33);E.f=f},function(x,E,r){var f=r(80),d=r(38),h=r(78),p=r(44).f;x.exports=function(y){var T=f.Symbol||(f.Symbol={});d(T,y)||p(T,y,{value:h.f(y)})}},function(x,E,r){var f=r(4);x.exports=f},function(x,E,r){var f=r(8),d=r(23),h=r(33),p=r(47);x.exports=function(){var y=d("Symbol"),T=y&&y.prototype,$=T&&T.valueOf,A=h("toPrimitive");T&&!T[A]&&p(T,A,function(b){return f($,this)},{arity:1})}},function(x,E,r){var f=r(44).f,d=r(38),h=r(33),p=h("toStringTag");x.exports=function(y,T,$){y&&!$&&(y=y.prototype),y&&!d(y,p)&&f(y,p,{configurable:!0,value:T})}},function(x,E,r){var f=r(84),d=r(14),h=r(13),p=r(39),y=r(63),T=r(86),$=d([].push),A=function(b){var R=b===1,O=b===2,C=b===3,w=b===4,D=b===6,L=b===7,F=b===5||D;return function(z,B,U,V){for(var j=p(z),G=h(j),W=y(G),J=f(B,U),k=0,Q=V||T,nt=R?Q(z,W):O||L?Q(z,0):void 0,rt,q;W>k;k++)if((F||k in G)&&(rt=G[k],q=J(rt,k,j),b))if(R)nt[k]=q;else if(q)switch(b){case 3:return!0;case 5:return rt;case 6:return k;case 2:$(nt,rt)}else switch(b){case 4:return!1;case 7:$(nt,rt)}return D?-1:C||w?w:nt}};x.exports={forEach:A(0),map:A(1),filter:A(2),some:A(3),every:A(4),find:A(5),findIndex:A(6),filterReject:A(7)}},function(x,E,r){var f=r(85),d=r(30),h=r(9),p=f(f.bind);x.exports=function(y,T){return d(y),T===void 0?y:h?p(y,T):function(){return y.apply(T,arguments)}}},function(x,E,r){var f=r(15),d=r(14);x.exports=function(h){if(f(h)==="Function")return d(h)}},function(x,E,r){var f=r(87);x.exports=function(d,h){return new(f(d))(h===0?0:h)}},function(x,E,r){var f=r(88),d=r(89),h=r(20),p=r(33),y=p("species"),T=Array;x.exports=function($){var A;return f($)&&(A=$.constructor,d(A)&&(A===T||f(A.prototype))?A=void 0:h(A)&&(A=A[y],A===null&&(A=void 0))),A===void 0?T:A}},function(x,E,r){var f=r(15);x.exports=Array.isArray||function(h){return f(h)==="Array"}},function(x,E,r){var f=r(14),d=r(7),h=r(21),p=r(69),y=r(23),T=r(50),$=function(){},A=y("Reflect","construct"),b=/^\s*(?:class|function)\b/,R=f(b.exec),O=!b.test($),C=function(L){if(!h(L))return!1;try{return A($,[],L),!0}catch(F){return!1}},w=function(L){if(!h(L))return!1;switch(p(L)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return O||!!R(b,T(L))}catch(F){return!0}};w.sham=!0,x.exports=!A||d(function(){var D;return C(C.call)||!C(Object)||!C(function(){D=!0})||D})?w:C},function(x,E,r){var f=r(3),d=r(23),h=r(38),p=r(68),y=r(34),T=r(91),$=y("string-to-symbol-registry"),A=y("symbol-to-string-registry");f({target:"Symbol",stat:!0,forced:!T},{for:function(b){var R=p(b);if(h($,R))return $[R];var O=d("Symbol")(R);return $[R]=O,A[O]=R,O}})},function(x,E,r){var f=r(26);x.exports=f&&!!Symbol.for&&!!Symbol.keyFor},function(x,E,r){var f=r(3),d=r(38),h=r(22),p=r(31),y=r(34),T=r(91),$=y("symbol-to-string-registry");f({target:"Symbol",stat:!0,forced:!T},{keyFor:function(b){if(!h(b))throw new TypeError(p(b)+" is not a symbol");if(d($,b))return $[b]}})},function(x,E,r){var f=r(3),d=r(23),h=r(94),p=r(8),y=r(14),T=r(7),$=r(21),A=r(22),b=r(76),R=r(95),O=r(26),C=String,w=d("JSON","stringify"),D=y(/./.exec),L=y("".charAt),F=y("".charCodeAt),z=y("".replace),B=y(1 .toString),U=/[\uD800-\uDFFF]/g,V=/^[\uD800-\uDBFF]$/,j=/^[\uDC00-\uDFFF]$/,G=!O||T(function(){var Q=d("Symbol")("stringify detection");return w([Q])!=="[null]"||w({a:Q})!=="{}"||w(Object(Q))!=="{}"}),W=T(function(){return w("\uDF06\uD834")!=='"\\udf06\\ud834"'||w("\uDEAD")!=='"\\udead"'}),J=function(Q,nt){var rt=b(arguments),q=R(nt);if(!(!$(q)&&(Q===void 0||A(Q))))return rt[1]=function(tt,et){if($(q)&&(et=p(q,this,C(tt),et)),!A(et))return et},h(w,null,rt)},k=function(Q,nt,rt){var q=L(rt,nt-1),tt=L(rt,nt+1);return D(V,Q)&&!D(j,tt)||D(j,Q)&&!D(V,q)?"\\u"+B(F(Q,0),16):Q};w&&f({target:"JSON",stat:!0,arity:3,forced:G||W},{stringify:function(nt,rt,q){var tt=b(arguments),et=h(G?J:w,null,tt);return W&&typeof et=="string"?z(et,U,k):et}})},function(x,E,r){var f=r(9),d=Function.prototype,h=d.apply,p=d.call;x.exports=typeof Reflect=="object"&&Reflect.apply||(f?p.bind(h):function(){return p.apply(h,arguments)})},function(x,E,r){var f=r(14),d=r(88),h=r(21),p=r(15),y=r(68),T=f([].push);x.exports=function($){if(h($))return $;if(d($)){for(var A=$.length,b=[],R=0;R<A;R++){var O=$[R];typeof O=="string"?T(b,O):(typeof O=="number"||p(O)==="Number"||p(O)==="String")&&T(b,y(O))}var C=b.length,w=!0;return function(D,L){if(w)return w=!1,L;if(d(this))return L;for(var F=0;F<C;F++)if(b[F]===D)return L}}}},function(x,E,r){var f=r(3),d=r(26),h=r(7),p=r(66),y=r(39),T=!d||h(function(){p.f(1)});f({target:"Object",stat:!0,forced:T},{getOwnPropertySymbols:function(A){var b=p.f;return b?b(y(A)):[]}})},function(x,E,r){var f=r(3),d=r(6),h=r(4),p=r(14),y=r(38),T=r(21),$=r(24),A=r(68),b=r(77),R=r(55),O=h.Symbol,C=O&&O.prototype;if(d&&T(O)&&(!("description"in C)||O().description!==void 0)){var w={},D=function(){var G=arguments.length<1||arguments[0]===void 0?void 0:A(arguments[0]),W=$(C,this)?new O(G):G===void 0?O():O(G);return G===""&&(w[W]=!0),W};R(D,O),D.prototype=C,C.constructor=D;var L=String(O("description detection"))==="Symbol(description detection)",F=p(C.valueOf),z=p(C.toString),B=/^Symbol\((.*)\)[^)]+$/,U=p("".replace),V=p("".slice);b(C,"description",{configurable:!0,get:function(){var G=F(this);if(y(w,G))return"";var W=z(G),J=L?V(W,7,-1):U(W,B,"$1");return J===""?void 0:J}}),f({global:!0,constructor:!0,forced:!0},{Symbol:D})}},function(x,E,r){var f=r(79);f("asyncIterator")},function(x,E,r){var f=r(79);f("hasInstance")},function(x,E,r){var f=r(79);f("isConcatSpreadable")},function(x,E,r){var f=r(79);f("iterator")},function(x,E,r){var f=r(79);f("match")},function(x,E,r){var f=r(79);f("matchAll")},function(x,E,r){var f=r(79);f("replace")},function(x,E,r){var f=r(79);f("search")},function(x,E,r){var f=r(79);f("species")},function(x,E,r){var f=r(79);f("split")},function(x,E,r){var f=r(79),d=r(81);f("toPrimitive"),d()},function(x,E,r){var f=r(23),d=r(79),h=r(82);d("toStringTag"),h(f("Symbol"),"Symbol")},function(x,E,r){var f=r(79);f("unscopables")},function(x,E,r){var f=r(3),d=r(4),h=r(94),p=r(112),y="WebAssembly",T=d[y],$=new Error("e",{cause:7}).cause!==7,A=function(R,O){var C={};C[R]=p(R,O,$),f({global:!0,constructor:!0,arity:1,forced:$},C)},b=function(R,O){if(T&&T[R]){var C={};C[R]=p(y+"."+R,O,$),f({target:y,stat:!0,constructor:!0,arity:1,forced:$},C)}};A("Error",function(R){return function(C){return h(R,this,arguments)}}),A("EvalError",function(R){return function(C){return h(R,this,arguments)}}),A("RangeError",function(R){return function(C){return h(R,this,arguments)}}),A("ReferenceError",function(R){return function(C){return h(R,this,arguments)}}),A("SyntaxError",function(R){return function(C){return h(R,this,arguments)}}),A("TypeError",function(R){return function(C){return h(R,this,arguments)}}),A("URIError",function(R){return function(C){return h(R,this,arguments)}}),b("CompileError",function(R){return function(C){return h(R,this,arguments)}}),b("LinkError",function(R){return function(C){return h(R,this,arguments)}}),b("RuntimeError",function(R){return function(C){return h(R,this,arguments)}})},function(x,E,r){var f=r(23),d=r(38),h=r(43),p=r(24),y=r(113),T=r(55),$=r(117),A=r(118),b=r(119),R=r(120),O=r(121),C=r(6),w=r(36);x.exports=function(D,L,F,z){var B="stackTraceLimit",U=z?2:1,V=D.split("."),j=V[V.length-1],G=f.apply(null,V);if(G){var W=G.prototype;if(!w&&d(W,"cause")&&delete W.cause,!F)return G;var J=f("Error"),k=L(function(Q,nt){var rt=b(z?nt:Q,void 0),q=z?new G(Q):new G;return rt!==void 0&&h(q,"message",rt),O(q,k,q.stack,2),this&&p(W,this)&&A(q,this,k),arguments.length>U&&R(q,arguments[U]),q});if(k.prototype=W,j!=="Error"?y?y(k,J):T(k,J,{name:!0}):C&&B in G&&($(k,G,B),$(k,G,"prepareStackTrace")),T(k,G),!w)try{W.name!==j&&h(W,"name",j),W.constructor=k}catch(Q){}return k}}},function(x,E,r){var f=r(114),d=r(20),h=r(16),p=r(115);x.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var y=!1,T={},$;try{$=f(Object.prototype,"__proto__","set"),$(T,[]),y=T instanceof Array}catch(A){}return function(b,R){return h(b),p(R),d(b)&&(y?$(b,R):b.__proto__=R),b}}():void 0)},function(x,E,r){var f=r(14),d=r(30);x.exports=function(h,p,y){try{return f(d(Object.getOwnPropertyDescriptor(h,p)[y]))}catch(T){}}},function(x,E,r){var f=r(116),d=String,h=TypeError;x.exports=function(p){if(f(p))return p;throw new h("Can't set "+d(p)+" as a prototype")}},function(x,E,r){var f=r(20);x.exports=function(d){return f(d)||d===null}},function(x,E,r){var f=r(44).f;x.exports=function(d,h,p){p in d||f(d,p,{configurable:!0,get:function(){return h[p]},set:function(y){h[p]=y}})}},function(x,E,r){var f=r(21),d=r(20),h=r(113);x.exports=function(p,y,T){var $,A;return h&&f($=y.constructor)&&$!==T&&d(A=$.prototype)&&A!==T.prototype&&h(p,A),p}},function(x,E,r){var f=r(68);x.exports=function(d,h){return d===void 0?arguments.length<2?"":h:f(d)}},function(x,E,r){var f=r(20),d=r(43);x.exports=function(h,p){f(p)&&"cause"in p&&d(h,"cause",p.cause)}},function(x,E,r){var f=r(43),d=r(122),h=r(123),p=Error.captureStackTrace;x.exports=function(y,T,$,A){h&&(p?p(y,T):f(y,"stack",d($,A)))}},function(x,E,r){var f=r(14),d=Error,h=f("".replace),p=function($){return String(new d($).stack)}("zxcasd"),y=/\n\s*at [^:]*:[^\n]*/,T=y.test(p);x.exports=function($,A){if(T&&typeof $=="string"&&!d.prepareStackTrace)for(;A--;)$=h($,y,"");return $}},function(x,E,r){var f=r(7),d=r(11);x.exports=!f(function(){var h=new Error("a");return"stack"in h?(Object.defineProperty(h,"stack",d(1,7)),h.stack!==7):!0})},function(x,E,r){var f=r(47),d=r(125),h=Error.prototype;h.toString!==d&&f(h,"toString",d)},function(x,E,r){var f=r(6),d=r(7),h=r(46),p=r(119),y=Error.prototype.toString,T=d(function(){if(f){var $=Object.create(Object.defineProperty({},"name",{get:function(){return this===$}}));if(y.call($)!=="true")return!0}return y.call({message:1,name:2})!=="2: 1"||y.call({})!=="Error"});x.exports=T?function(){var A=h(this),b=p(A.name,"Error"),R=p(A.message);return b?R?b+": "+R:b:R}:y},function(x,E,r){r(127)},function(x,E,r){var f=r(3),d=r(24),h=r(128),p=r(113),y=r(55),T=r(71),$=r(43),A=r(11),b=r(120),R=r(121),O=r(130),C=r(119),w=r(33),D=w("toStringTag"),L=Error,F=[].push,z=function(V,j){var G=d(B,this),W;p?W=p(new L,G?h(this):B):(W=G?this:T(B),$(W,D,"Error")),j!==void 0&&$(W,"message",C(j)),R(W,z,W.stack,1),arguments.length>2&&b(W,arguments[2]);var J=[];return O(V,F,{that:J}),$(W,"errors",J),W};p?p(z,L):y(z,L,{name:!0});var B=z.prototype=T(L.prototype,{constructor:A(1,z),message:A(1,""),name:A(1,"AggregateError")});f({global:!0,constructor:!0,arity:2},{AggregateError:z})},function(x,E,r){var f=r(38),d=r(21),h=r(39),p=r(53),y=r(129),T=p("IE_PROTO"),$=Object,A=$.prototype;x.exports=y?$.getPrototypeOf:function(b){var R=h(b);if(f(R,T))return R[T];var O=R.constructor;return d(O)&&R instanceof O?O.prototype:R instanceof $?A:null}},function(x,E,r){var f=r(7);x.exports=!f(function(){function d(){}return d.prototype.constructor=null,Object.getPrototypeOf(new d)!==d.prototype})},function(x,E,r){var f=r(84),d=r(8),h=r(46),p=r(31),y=r(131),T=r(63),$=r(24),A=r(133),b=r(134),R=r(135),O=TypeError,C=function(D,L){this.stopped=D,this.result=L},w=C.prototype;x.exports=function(D,L,F){var z=F&&F.that,B=!!(F&&F.AS_ENTRIES),U=!!(F&&F.IS_RECORD),V=!!(F&&F.IS_ITERATOR),j=!!(F&&F.INTERRUPTED),G=f(L,z),W,J,k,Q,nt,rt,q,tt=function(ot){return W&&R(W,"normal",ot),new C(!0,ot)},et=function(ot){return B?(h(ot),j?G(ot[0],ot[1],tt):G(ot[0],ot[1])):j?G(ot,tt):G(ot)};if(U)W=D.iterator;else if(V)W=D;else{if(J=b(D),!J)throw new O(p(D)+" is not iterable");if(y(J)){for(k=0,Q=T(D);Q>k;k++)if(nt=et(D[k]),nt&&$(w,nt))return nt;return new C(!1)}W=A(D,J)}for(rt=U?D.next:W.next;!(q=d(rt,W)).done;){try{nt=et(q.value)}catch(ot){R(W,"throw",ot)}if(typeof nt=="object"&&nt&&$(w,nt))return nt}return new C(!1)}},function(x,E,r){var f=r(33),d=r(132),h=f("iterator"),p=Array.prototype;x.exports=function(y){return y!==void 0&&(d.Array===y||p[h]===y)}},function(x){x.exports={}},function(x,E,r){var f=r(8),d=r(30),h=r(46),p=r(31),y=r(134),T=TypeError;x.exports=function($,A){var b=arguments.length<2?y($):A;if(d(b))return h(f(b,$));throw new T(p($)+" is not iterable")}},function(x,E,r){var f=r(69),d=r(29),h=r(17),p=r(132),y=r(33),T=y("iterator");x.exports=function($){if(!h($))return d($,T)||d($,"@@iterator")||p[f($)]}},function(x,E,r){var f=r(8),d=r(46),h=r(29);x.exports=function(p,y,T){var $,A;d(p);try{if($=h(p,"return"),!$){if(y==="throw")throw T;return T}$=f($,p)}catch(b){A=!0,$=b}if(y==="throw")throw T;if(A)throw $;return d($),T}},function(x,E,r){var f=r(3),d=r(23),h=r(94),p=r(7),y=r(112),T="AggregateError",$=d(T),A=!p(function(){return $([1]).errors[0]!==1})&&p(function(){return $([1],T,{cause:7}).cause!==7});f({global:!0,constructor:!0,arity:2,forced:A},{AggregateError:y(T,function(b){return function(O,C){return h(b,this,arguments)}},A,!0)})},function(x,E,r){var f=r(3),d=r(39),h=r(63),p=r(61),y=r(138);f({target:"Array",proto:!0},{at:function($){var A=d(this),b=h(A),R=p($),O=R>=0?R:b+R;return O<0||O>=b?void 0:A[O]}}),y("at")},function(x,E,r){var f=r(33),d=r(71),h=r(44).f,p=f("unscopables"),y=Array.prototype;y[p]===void 0&&h(y,p,{configurable:!0,value:d(null)}),x.exports=function(T){y[p][T]=!0}},function(x,E,r){var f=r(3),d=r(7),h=r(88),p=r(20),y=r(39),T=r(63),$=r(140),A=r(141),b=r(86),R=r(142),O=r(33),C=r(27),w=O("isConcatSpreadable"),D=C>=51||!d(function(){var z=[];return z[w]=!1,z.concat()[0]!==z}),L=function(z){if(!p(z))return!1;var B=z[w];return B!==void 0?!!B:h(z)},F=!D||!R("concat");f({target:"Array",proto:!0,arity:1,forced:F},{concat:function(B){var U=y(this),V=b(U,0),j=0,G,W,J,k,Q;for(G=-1,J=arguments.length;G<J;G++)if(Q=G===-1?U:arguments[G],L(Q))for(k=T(Q),$(j+k),W=0;W<k;W++,j++)W in Q&&A(V,j,Q[W]);else $(j+1),A(V,j++,Q);return V.length=j,V}})},function(x){var E=TypeError,r=9007199254740991;x.exports=function(f){if(f>r)throw E("Maximum allowed index exceeded");return f}},function(x,E,r){var f=r(6),d=r(44),h=r(11);x.exports=function(p,y,T){f?d.f(p,y,h(0,T)):p[y]=T}},function(x,E,r){var f=r(7),d=r(33),h=r(27),p=d("species");x.exports=function(y){return h>=51||!f(function(){var T=[],$=T.constructor={};return $[p]=function(){return{foo:1}},T[y](Boolean).foo!==1})}},function(x,E,r){var f=r(3),d=r(144),h=r(138);f({target:"Array",proto:!0},{copyWithin:d}),h("copyWithin")},function(x,E,r){var f=r(39),d=r(60),h=r(63),p=r(145),y=Math.min;x.exports=[].copyWithin||function($,A){var b=f(this),R=h(b),O=d($,R),C=d(A,R),w=arguments.length>2?arguments[2]:void 0,D=y((w===void 0?R:d(w,R))-C,R-O),L=1;for(C<O&&O<C+D&&(L=-1,C+=D-1,O+=D-1);D-- >0;)C in b?b[O]=b[C]:p(b,O),O+=L,C+=L;return b}},function(x,E,r){var f=r(31),d=TypeError;x.exports=function(h,p){if(!delete h[p])throw new d("Cannot delete property "+f(p)+" of "+f(h))}},function(x,E,r){var f=r(3),d=r(83).every,h=r(147),p=h("every");f({target:"Array",proto:!0,forced:!p},{every:function(T){return d(this,T,arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var f=r(7);x.exports=function(d,h){var p=[][d];return!!p&&f(function(){p.call(null,h||function(){return 1},1)})}},function(x,E,r){var f=r(3),d=r(149),h=r(138);f({target:"Array",proto:!0},{fill:d}),h("fill")},function(x,E,r){var f=r(39),d=r(60),h=r(63);x.exports=function(y){for(var T=f(this),$=h(T),A=arguments.length,b=d(A>1?arguments[1]:void 0,$),R=A>2?arguments[2]:void 0,O=R===void 0?$:d(R,$);O>b;)T[b++]=y;return T}},function(x,E,r){var f=r(3),d=r(83).filter,h=r(142),p=h("filter");f({target:"Array",proto:!0,forced:!p},{filter:function(T){return d(this,T,arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var f=r(3),d=r(83).find,h=r(138),p="find",y=!0;p in[]&&Array(1)[p](function(){y=!1}),f({target:"Array",proto:!0,forced:y},{find:function($){return d(this,$,arguments.length>1?arguments[1]:void 0)}}),h(p)},function(x,E,r){var f=r(3),d=r(83).findIndex,h=r(138),p="findIndex",y=!0;p in[]&&Array(1)[p](function(){y=!1}),f({target:"Array",proto:!0,forced:y},{findIndex:function($){return d(this,$,arguments.length>1?arguments[1]:void 0)}}),h(p)},function(x,E,r){var f=r(3),d=r(154).findLast,h=r(138);f({target:"Array",proto:!0},{findLast:function(y){return d(this,y,arguments.length>1?arguments[1]:void 0)}}),h("findLast")},function(x,E,r){var f=r(84),d=r(13),h=r(39),p=r(63),y=function(T){var $=T===1;return function(A,b,R){for(var O=h(A),C=d(O),w=p(C),D=f(b,R),L,F;w-- >0;)if(L=C[w],F=D(L,w,O),F)switch(T){case 0:return L;case 1:return w}return $?-1:void 0}};x.exports={findLast:y(0),findLastIndex:y(1)}},function(x,E,r){var f=r(3),d=r(154).findLastIndex,h=r(138);f({target:"Array",proto:!0},{findLastIndex:function(y){return d(this,y,arguments.length>1?arguments[1]:void 0)}}),h("findLastIndex")},function(x,E,r){var f=r(3),d=r(157),h=r(39),p=r(63),y=r(61),T=r(86);f({target:"Array",proto:!0},{flat:function(){var A=arguments.length?arguments[0]:void 0,b=h(this),R=p(b),O=T(b,0);return O.length=d(O,b,b,R,0,A===void 0?1:y(A)),O}})},function(x,E,r){var f=r(88),d=r(63),h=r(140),p=r(84),y=function(T,$,A,b,R,O,C,w){for(var D=R,L=0,F=C?p(C,w):!1,z,B;L<b;)L in A&&(z=F?F(A[L],L,$):A[L],O>0&&f(z)?(B=d(z),D=y(T,$,z,B,D,O-1)-1):(h(D+1),T[D]=z),D++),L++;return D};x.exports=y},function(x,E,r){var f=r(3),d=r(157),h=r(30),p=r(39),y=r(63),T=r(86);f({target:"Array",proto:!0},{flatMap:function(A){var b=p(this),R=y(b),O;return h(A),O=T(b,0),O.length=d(O,b,b,R,0,1,A,arguments.length>1?arguments[1]:void 0),O}})},function(x,E,r){var f=r(3),d=r(160);f({target:"Array",proto:!0,forced:[].forEach!==d},{forEach:d})},function(x,E,r){var f=r(83).forEach,d=r(147),h=d("forEach");x.exports=h?[].forEach:function(y){return f(this,y,arguments.length>1?arguments[1]:void 0)}},function(x,E,r){var f=r(3),d=r(162),h=r(164),p=!h(function(y){Array.from(y)});f({target:"Array",stat:!0,forced:p},{from:d})},function(x,E,r){var f=r(84),d=r(8),h=r(39),p=r(163),y=r(131),T=r(89),$=r(63),A=r(141),b=r(133),R=r(134),O=Array;x.exports=function(w){var D=h(w),L=T(this),F=arguments.length,z=F>1?arguments[1]:void 0,B=z!==void 0;B&&(z=f(z,F>2?arguments[2]:void 0));var U=R(D),V=0,j,G,W,J,k,Q;if(U&&!(this===O&&y(U)))for(G=L?new this:[],J=b(D,U),k=J.next;!(W=d(k,J)).done;V++)Q=B?p(J,z,[W.value,V],!0):W.value,A(G,V,Q);else for(j=$(D),G=L?new this(j):O(j);j>V;V++)Q=B?z(D[V],V):D[V],A(G,V,Q);return G.length=V,G}},function(x,E,r){var f=r(46),d=r(135);x.exports=function(h,p,y,T){try{return T?p(f(y)[0],y[1]):p(y)}catch($){d(h,"throw",$)}}},function(x,E,r){var f=r(33),d=f("iterator"),h=!1;try{var p=0,y={next:function(){return{done:!!p++}},return:function(){h=!0}};y[d]=function(){return this},Array.from(y,function(){throw 2})}catch(T){}x.exports=function(T,$){try{if(!$&&!h)return!1}catch(R){return!1}var A=!1;try{var b={};b[d]=function(){return{next:function(){return{done:A=!0}}}},T(b)}catch(R){}return A}},function(x,E,r){var f=r(3),d=r(59).includes,h=r(7),p=r(138),y=h(function(){return!Array(1).includes()});f({target:"Array",proto:!0,forced:y},{includes:function($){return d(this,$,arguments.length>1?arguments[1]:void 0)}}),p("includes")},function(x,E,r){var f=r(3),d=r(85),h=r(59).indexOf,p=r(147),y=d([].indexOf),T=!!y&&1/y([1],1,-0)<0,$=T||!p("indexOf");f({target:"Array",proto:!0,forced:$},{indexOf:function(b){var R=arguments.length>1?arguments[1]:void 0;return T?y(this,b,R)||0:h(this,b,R)}})},function(x,E,r){var f=r(3),d=r(88);f({target:"Array",stat:!0},{isArray:d})},function(x,E,r){var f=r(12),d=r(138),h=r(132),p=r(51),y=r(44).f,T=r(169),$=r(172),A=r(36),b=r(6),R="Array Iterator",O=p.set,C=p.getterFor(R);x.exports=T(Array,"Array",function(D,L){O(this,{type:R,target:f(D),index:0,kind:L})},function(){var D=C(this),L=D.target,F=D.index++;if(!L||F>=L.length)return D.target=null,$(void 0,!0);switch(D.kind){case"keys":return $(F,!1);case"values":return $(L[F],!1)}return $([F,L[F]],!1)},"values");var w=h.Arguments=h.Array;if(d("keys"),d("values"),d("entries"),!A&&b&&w.name!=="values")try{y(w,"name",{value:"values"})}catch(D){}},function(x,E,r){var f=r(3),d=r(8),h=r(36),p=r(49),y=r(21),T=r(170),$=r(128),A=r(113),b=r(82),R=r(43),O=r(47),C=r(33),w=r(132),D=r(171),L=p.PROPER,F=p.CONFIGURABLE,z=D.IteratorPrototype,B=D.BUGGY_SAFARI_ITERATORS,U=C("iterator"),V="keys",j="values",G="entries",W=function(){return this};x.exports=function(J,k,Q,nt,rt,q,tt){T(Q,k,nt);var et=function(_t){if(_t===rt&&mt)return mt;if(!B&&_t&&_t in gt)return gt[_t];switch(_t){case V:return function(){return new Q(this,_t)};case j:return function(){return new Q(this,_t)};case G:return function(){return new Q(this,_t)}}return function(){return new Q(this)}},ot=k+" Iterator",pt=!1,gt=J.prototype,xt=gt[U]||gt["@@iterator"]||rt&>[rt],mt=!B&&xt||et(rt),zt=k==="Array"&>.entries||xt,Lt,Xt,Qt;if(zt&&(Lt=$(zt.call(new J)),Lt!==Object.prototype&&Lt.next&&(!h&&$(Lt)!==z&&(A?A(Lt,z):y(Lt[U])||O(Lt,U,W)),b(Lt,ot,!0,!0),h&&(w[ot]=W))),L&&rt===j&&xt&&xt.name!==j&&(!h&&F?R(gt,"name",j):(pt=!0,mt=function(){return d(xt,this)})),rt)if(Xt={values:et(j),keys:q?mt:et(V),entries:et(G)},tt)for(Qt in Xt)(B||pt||!(Qt in gt))&&O(gt,Qt,Xt[Qt]);else f({target:k,proto:!0,forced:B||pt},Xt);return(!h||tt)&>[U]!==mt&&O(gt,U,mt,{name:rt}),w[k]=mt,Xt}},function(x,E,r){var f=r(171).IteratorPrototype,d=r(71),h=r(11),p=r(82),y=r(132),T=function(){return this};x.exports=function($,A,b,R){var O=A+" Iterator";return $.prototype=d(f,{next:h(+!R,b)}),p($,O,!1,!0),y[O]=T,$}},function(x,E,r){var f=r(7),d=r(21),h=r(20),p=r(71),y=r(128),T=r(47),$=r(33),A=r(36),b=$("iterator"),R=!1,O,C,w;[].keys&&(w=[].keys(),"next"in w?(C=y(y(w)),C!==Object.prototype&&(O=C)):R=!0);var D=!h(O)||f(function(){var L={};return O[b].call(L)!==L});D?O={}:A&&(O=p(O)),d(O[b])||T(O,b,function(){return this}),x.exports={IteratorPrototype:O,BUGGY_SAFARI_ITERATORS:R}},function(x){x.exports=function(E,r){return{value:E,done:r}}},function(x,E,r){var f=r(3),d=r(14),h=r(13),p=r(12),y=r(147),T=d([].join),$=h!==Object,A=$||!y("join",",");f({target:"Array",proto:!0,forced:A},{join:function(R){return T(p(this),R===void 0?",":R)}})},function(x,E,r){var f=r(3),d=r(175);f({target:"Array",proto:!0,forced:d!==[].lastIndexOf},{lastIndexOf:d})},function(x,E,r){var f=r(94),d=r(12),h=r(61),p=r(63),y=r(147),T=Math.min,$=[].lastIndexOf,A=!!$&&1/[1].lastIndexOf(1,-0)<0,b=y("lastIndexOf"),R=A||!b;x.exports=R?function(C){if(A)return f($,this,arguments)||0;var w=d(this),D=p(w);if(D===0)return-1;var L=D-1;for(arguments.length>1&&(L=T(L,h(arguments[1]))),L<0&&(L=D+L);L>=0;L--)if(L in w&&w[L]===C)return L||0;return-1}:$},function(x,E,r){var f=r(3),d=r(83).map,h=r(142),p=h("map");f({target:"Array",proto:!0,forced:!p},{map:function(T){return d(this,T,arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var f=r(3),d=r(7),h=r(89),p=r(141),y=Array,T=d(function(){function $(){}return!(y.of.call($)instanceof $)});f({target:"Array",stat:!0,forced:T},{of:function(){for(var A=0,b=arguments.length,R=new(h(this)?this:y)(b);b>A;)p(R,A,arguments[A++]);return R.length=b,R}})},function(x,E,r){var f=r(3),d=r(39),h=r(63),p=r(179),y=r(140),T=r(7),$=T(function(){return[].push.call({length:4294967296},1)!==4294967297}),A=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(R){return R instanceof TypeError}},b=$||!A();f({target:"Array",proto:!0,arity:1,forced:b},{push:function(O){var C=d(this),w=h(C),D=arguments.length;y(w+D);for(var L=0;L<D;L++)C[w]=arguments[L],w++;return p(C,w),w}})},function(x,E,r){var f=r(6),d=r(88),h=TypeError,p=Object.getOwnPropertyDescriptor,y=f&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(T){return T instanceof TypeError}}();x.exports=y?function(T,$){if(d(T)&&!p(T,"length").writable)throw new h("Cannot set read only .length");return T.length=$}:function(T,$){return T.length=$}},function(x,E,r){var f=r(3),d=r(181).left,h=r(147),p=r(27),y=r(182),T=!y&&p>79&&p<83,$=T||!h("reduce");f({target:"Array",proto:!0,forced:$},{reduce:function(b){var R=arguments.length;return d(this,b,R,R>1?arguments[1]:void 0)}})},function(x,E,r){var f=r(30),d=r(39),h=r(13),p=r(63),y=TypeError,T="Reduce of empty array with no initial value",$=function(A){return function(b,R,O,C){var w=d(b),D=h(w),L=p(w);if(f(R),L===0&&O<2)throw new y(T);var F=A?L-1:0,z=A?-1:1;if(O<2)for(;;){if(F in D){C=D[F],F+=z;break}if(F+=z,A?F<0:L<=F)throw new y(T)}for(;A?F>=0:L>F;F+=z)F in D&&(C=R(C,D[F],F,w));return C}};x.exports={left:$(!1),right:$(!0)}},function(x,E,r){var f=r(183);x.exports=f==="NODE"},function(x,E,r){var f=r(4),d=r(28),h=r(15),p=function(y){return d.slice(0,y.length)===y};x.exports=function(){return p("Bun/")?"BUN":p("Cloudflare-Workers")?"CLOUDFLARE":p("Deno/")?"DENO":p("Node.js/")?"NODE":f.Bun&&typeof Bun.version=="string"?"BUN":f.Deno&&typeof Deno.version=="object"?"DENO":h(f.process)==="process"?"NODE":f.window&&f.document?"BROWSER":"REST"}()},function(x,E,r){var f=r(3),d=r(181).right,h=r(147),p=r(27),y=r(182),T=!y&&p>79&&p<83,$=T||!h("reduceRight");f({target:"Array",proto:!0,forced:$},{reduceRight:function(b){return d(this,b,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var f=r(3),d=r(14),h=r(88),p=d([].reverse),y=[1,2];f({target:"Array",proto:!0,forced:String(y)===String(y.reverse())},{reverse:function(){return h(this)&&(this.length=this.length),p(this)}})},function(x,E,r){var f=r(3),d=r(88),h=r(89),p=r(20),y=r(60),T=r(63),$=r(12),A=r(141),b=r(33),R=r(142),O=r(76),C=R("slice"),w=b("species"),D=Array,L=Math.max;f({target:"Array",proto:!0,forced:!C},{slice:function(z,B){var U=$(this),V=T(U),j=y(z,V),G=y(B===void 0?V:B,V),W,J,k;if(d(U)&&(W=U.constructor,h(W)&&(W===D||d(W.prototype))?W=void 0:p(W)&&(W=W[w],W===null&&(W=void 0)),W===D||W===void 0))return O(U,j,G);for(J=new(W===void 0?D:W)(L(G-j,0)),k=0;j<G;j++,k++)j in U&&A(J,k,U[j]);return J.length=k,J}})},function(x,E,r){var f=r(3),d=r(83).some,h=r(147),p=h("some");f({target:"Array",proto:!0,forced:!p},{some:function(T){return d(this,T,arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var f=r(3),d=r(14),h=r(30),p=r(39),y=r(63),T=r(145),$=r(68),A=r(7),b=r(189),R=r(147),O=r(190),C=r(191),w=r(27),D=r(192),L=[],F=d(L.sort),z=d(L.push),B=A(function(){L.sort(void 0)}),U=A(function(){L.sort(null)}),V=R("sort"),j=!A(function(){if(w)return w<70;if(!(O&&O>3)){if(C)return!0;if(D)return D<603;var J="",k,Q,nt,rt;for(k=65;k<76;k++){switch(Q=String.fromCharCode(k),k){case 66:case 69:case 70:case 72:nt=3;break;case 68:case 71:nt=4;break;default:nt=2}for(rt=0;rt<47;rt++)L.push({k:Q+rt,v:nt})}for(L.sort(function(q,tt){return tt.v-q.v}),rt=0;rt<L.length;rt++)Q=L[rt].k.charAt(0),J.charAt(J.length-1)!==Q&&(J+=Q);return J!=="DGBEFHACIJK"}}),G=B||!U||!V||!j,W=function(J){return function(k,Q){return Q===void 0?-1:k===void 0?1:J!==void 0?+J(k,Q)||0:$(k)>$(Q)?1:-1}};f({target:"Array",proto:!0,forced:G},{sort:function(k){k!==void 0&&h(k);var Q=p(this);if(j)return k===void 0?F(Q):F(Q,k);var nt=[],rt=y(Q),q,tt;for(tt=0;tt<rt;tt++)tt in Q&&z(nt,Q[tt]);for(b(nt,W(k)),q=y(nt),tt=0;tt<q;)Q[tt]=nt[tt++];for(;tt<rt;)T(Q,tt++);return Q}})},function(x,E,r){var f=r(76),d=Math.floor,h=function(p,y){var T=p.length;if(T<8)for(var $=1,A,b;$<T;){for(b=$,A=p[$];b&&y(p[b-1],A)>0;)p[b]=p[--b];b!==$++&&(p[b]=A)}else for(var R=d(T/2),O=h(f(p,0,R),y),C=h(f(p,R),y),w=O.length,D=C.length,L=0,F=0;L<w||F<D;)p[L+F]=L<w&&F<D?y(O[L],C[F])<=0?O[L++]:C[F++]:L<w?O[L++]:C[F++];return p};x.exports=h},function(x,E,r){var f=r(28),d=f.match(/firefox\/(\d+)/i);x.exports=!!d&&+d[1]},function(x,E,r){var f=r(28);x.exports=/MSIE|Trident/.test(f)},function(x,E,r){var f=r(28),d=f.match(/AppleWebKit\/(\d+)\./);x.exports=!!d&&+d[1]},function(x,E,r){var f=r(194);f("Array")},function(x,E,r){var f=r(23),d=r(77),h=r(33),p=r(6),y=h("species");x.exports=function(T){var $=f(T);p&&$&&!$[y]&&d($,y,{configurable:!0,get:function(){return this}})}},function(x,E,r){var f=r(3),d=r(39),h=r(60),p=r(61),y=r(63),T=r(179),$=r(140),A=r(86),b=r(141),R=r(145),O=r(142),C=O("splice"),w=Math.max,D=Math.min;f({target:"Array",proto:!0,forced:!C},{splice:function(F,z){var B=d(this),U=y(B),V=h(F,U),j=arguments.length,G,W,J,k,Q,nt;for(j===0?G=W=0:j===1?(G=0,W=U-V):(G=j-2,W=D(w(p(z),0),U-V)),$(U+G-W),J=A(B,W),k=0;k<W;k++)Q=V+k,Q in B&&b(J,k,B[Q]);if(J.length=W,G<W){for(k=V;k<U-W;k++)Q=k+W,nt=k+G,Q in B?B[nt]=B[Q]:R(B,nt);for(k=U;k>U-W+G;k--)R(B,k-1)}else if(G>W)for(k=U-W;k>V;k--)Q=k+W-1,nt=k+G-1,Q in B?B[nt]=B[Q]:R(B,nt);for(k=0;k<G;k++)B[k+V]=arguments[k+2];return T(B,U-W+G),J}})},function(x,E,r){var f=r(3),d=r(197),h=r(12),p=r(138),y=Array;f({target:"Array",proto:!0},{toReversed:function(){return d(h(this),y)}}),p("toReversed")},function(x,E,r){var f=r(63);x.exports=function(d,h){for(var p=f(d),y=new h(p),T=0;T<p;T++)y[T]=d[p-T-1];return y}},function(x,E,r){var f=r(3),d=r(14),h=r(30),p=r(12),y=r(199),T=r(200),$=r(138),A=Array,b=d(T("Array","sort"));f({target:"Array",proto:!0},{toSorted:function(O){O!==void 0&&h(O);var C=p(this),w=y(A,C);return b(w,O)}}),$("toSorted")},function(x,E,r){var f=r(63);x.exports=function(d,h,p){for(var y=0,T=arguments.length>2?p:f(h),$=new d(T);T>y;)$[y]=h[y++];return $}},function(x,E,r){var f=r(4);x.exports=function(d,h){var p=f[d],y=p&&p.prototype;return y&&y[h]}},function(x,E,r){var f=r(3),d=r(138),h=r(140),p=r(63),y=r(60),T=r(12),$=r(61),A=Array,b=Math.max,R=Math.min;f({target:"Array",proto:!0},{toSpliced:function(C,w){var D=T(this),L=p(D),F=y(C,L),z=arguments.length,B=0,U,V,j,G;for(z===0?U=V=0:z===1?(U=0,V=L-F):(U=z-2,V=R(b($(w),0),L-F)),j=h(L+U-V),G=A(j);B<F;B++)G[B]=D[B];for(;B<F+U;B++)G[B]=arguments[B-F+2];for(;B<j;B++)G[B]=D[B+V-U];return G}}),d("toSpliced")},function(x,E,r){var f=r(138);f("flat")},function(x,E,r){var f=r(138);f("flatMap")},function(x,E,r){var f=r(3),d=r(39),h=r(63),p=r(179),y=r(145),T=r(140),$=[].unshift(0)!==1,A=function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(R){return R instanceof TypeError}},b=$||!A();f({target:"Array",proto:!0,arity:1,forced:b},{unshift:function(O){var C=d(this),w=h(C),D=arguments.length;if(D){T(w+D);for(var L=w;L--;){var F=L+D;L in C?C[F]=C[L]:y(C,F)}for(var z=0;z<D;z++)C[z]=arguments[z]}return p(C,w+D)}})},function(x,E,r){var f=r(3),d=r(206),h=r(12),p=Array;f({target:"Array",proto:!0},{with:function(y,T){return d(h(this),p,y,T)}})},function(x,E,r){var f=r(63),d=r(61),h=RangeError;x.exports=function(p,y,T,$){var A=f(p),b=d(T),R=b<0?A+b:b;if(R>=A||R<0)throw new h("Incorrect index");for(var O=new y(A),C=0;C<A;C++)O[C]=C===R?$:p[C];return O}},function(x,E,r){var f=r(3),d=r(4),h=r(208),p=r(194),y="ArrayBuffer",T=h[y],$=d[y];f({global:!0,constructor:!0,forced:$!==T},{ArrayBuffer:T}),p(y)},function(x,E,r){var f=r(4),d=r(14),h=r(6),p=r(209),y=r(49),T=r(43),$=r(77),A=r(210),b=r(7),R=r(211),O=r(61),C=r(64),w=r(212),D=r(213),L=r(216),F=r(128),z=r(113),B=r(149),U=r(76),V=r(118),j=r(55),G=r(82),W=r(51),J=y.PROPER,k=y.CONFIGURABLE,Q="ArrayBuffer",nt="DataView",rt="prototype",q="Wrong length",tt="Wrong index",et=W.getterFor(Q),ot=W.getterFor(nt),pt=W.set,gt=f[Q],xt=gt,mt=xt&&xt[rt],zt=f[nt],Lt=zt&&zt[rt],Xt=Object.prototype,Qt=f.Array,_t=f.RangeError,me=d(B),ge=d([].reverse),ie=L.pack,Mt=L.unpack,Yt=function(Et){return[Et&255]},re=function(Et){return[Et&255,Et>>8&255]},le=function(Et){return[Et&255,Et>>8&255,Et>>16&255,Et>>24&255]},ne=function(Et){return Et[3]<<24|Et[2]<<16|Et[1]<<8|Et[0]},fe=function(Et){return ie(D(Et),23,4)},Ie=function(Et){return ie(Et,52,8)},Pe=function(Et,Bt,Tt){$(Et[rt],Bt,{configurable:!0,get:function(){return Tt(this)[Bt]}})},$e=function(Et,Bt,Tt,qt){var ee=ot(Et),Zt=w(Tt),Ht=!!qt;if(Zt+Bt>ee.byteLength)throw new _t(tt);var Ye=ee.bytes,Ke=Zt+ee.byteOffset,ct=U(Ye,Ke,Ke+Bt);return Ht?ct:ge(ct)},ce=function(Et,Bt,Tt,qt,ee,Zt){var Ht=ot(Et),Ye=w(Tt),Ke=qt(+ee),ct=!!Zt;if(Ye+Bt>Ht.byteLength)throw new _t(tt);for(var Ot=Ht.bytes,Pt=Ye+Ht.byteOffset,Ct=0;Ct<Bt;Ct++)Ot[Pt+Ct]=Ke[ct?Ct:Bt-Ct-1]};if(!p)xt=function(Bt){R(this,mt);var Tt=w(Bt);pt(this,{type:Q,bytes:me(Qt(Tt),0),byteLength:Tt}),h||(this.byteLength=Tt,this.detached=!1)},mt=xt[rt],zt=function(Bt,Tt,qt){R(this,Lt),R(Bt,mt);var ee=et(Bt),Zt=ee.byteLength,Ht=O(Tt);if(Ht<0||Ht>Zt)throw new _t("Wrong offset");if(qt=qt===void 0?Zt-Ht:C(qt),Ht+qt>Zt)throw new _t(q);pt(this,{type:nt,buffer:Bt,byteLength:qt,byteOffset:Ht,bytes:ee.bytes}),h||(this.buffer=Bt,this.byteLength=qt,this.byteOffset=Ht)},Lt=zt[rt],h&&(Pe(xt,"byteLength",et),Pe(zt,"buffer",ot),Pe(zt,"byteLength",ot),Pe(zt,"byteOffset",ot)),A(Lt,{getInt8:function(Bt){return $e(this,1,Bt)[0]<<24>>24},getUint8:function(Bt){return $e(this,1,Bt)[0]},getInt16:function(Bt){var Tt=$e(this,2,Bt,arguments.length>1?arguments[1]:!1);return(Tt[1]<<8|Tt[0])<<16>>16},getUint16:function(Bt){var Tt=$e(this,2,Bt,arguments.length>1?arguments[1]:!1);return Tt[1]<<8|Tt[0]},getInt32:function(Bt){return ne($e(this,4,Bt,arguments.length>1?arguments[1]:!1))},getUint32:function(Bt){return ne($e(this,4,Bt,arguments.length>1?arguments[1]:!1))>>>0},getFloat32:function(Bt){return Mt($e(this,4,Bt,arguments.length>1?arguments[1]:!1),23)},getFloat64:function(Bt){return Mt($e(this,8,Bt,arguments.length>1?arguments[1]:!1),52)},setInt8:function(Bt,Tt){ce(this,1,Bt,Yt,Tt)},setUint8:function(Bt,Tt){ce(this,1,Bt,Yt,Tt)},setInt16:function(Bt,Tt){ce(this,2,Bt,re,Tt,arguments.length>2?arguments[2]:!1)},setUint16:function(Bt,Tt){ce(this,2,Bt,re,Tt,arguments.length>2?arguments[2]:!1)},setInt32:function(Bt,Tt){ce(this,4,Bt,le,Tt,arguments.length>2?arguments[2]:!1)},setUint32:function(Bt,Tt){ce(this,4,Bt,le,Tt,arguments.length>2?arguments[2]:!1)},setFloat32:function(Bt,Tt){ce(this,4,Bt,fe,Tt,arguments.length>2?arguments[2]:!1)},setFloat64:function(Bt,Tt){ce(this,8,Bt,Ie,Tt,arguments.length>2?arguments[2]:!1)}});else{var Ae=J&>.name!==Q;!b(function(){gt(1)})||!b(function(){new gt(-1)})||b(function(){return new gt,new gt(1.5),new gt(NaN),gt.length!==1||Ae&&!k})?(xt=function(Bt){return R(this,mt),V(new gt(w(Bt)),this,xt)},xt[rt]=mt,mt.constructor=xt,j(xt,gt)):Ae&&k&&T(gt,"name",Q),z&&F(Lt)!==Xt&&z(Lt,Xt);var Te=new zt(new xt(2)),de=d(Lt.setInt8);Te.setInt8(0,2147483648),Te.setInt8(1,2147483649),(Te.getInt8(0)||!Te.getInt8(1))&&A(Lt,{setInt8:function(Bt,Tt){de(this,Bt,Tt<<24>>24)},setUint8:function(Bt,Tt){de(this,Bt,Tt<<24>>24)}},{unsafe:!0})}G(xt,Q),G(zt,nt),x.exports={ArrayBuffer:xt,DataView:zt}},function(x){x.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},function(x,E,r){var f=r(47);x.exports=function(d,h,p){for(var y in h)f(d,y,h[y],p);return d}},function(x,E,r){var f=r(24),d=TypeError;x.exports=function(h,p){if(f(p,h))return h;throw new d("Incorrect invocation")}},function(x,E,r){var f=r(61),d=r(64),h=RangeError;x.exports=function(p){if(p===void 0)return 0;var y=f(p),T=d(y);if(y!==T)throw new h("Wrong length or index");return T}},function(x,E,r){var f=r(214),d=11920928955078125e-23,h=34028234663852886e22,p=11754943508222875e-54;x.exports=Math.fround||function(T){return f(T,d,h,p)}},function(x,E,r){var f=r(215),d=Math.abs,h=2220446049250313e-31,p=1/h,y=function(T){return T+p-p};x.exports=function(T,$,A,b){var R=+T,O=d(R),C=f(R);if(O<b)return C*y(O/b/$)*b*$;var w=(1+$/h)*O,D=w-(w-O);return D>A||D!==D?C*(1/0):C*D}},function(x){x.exports=Math.sign||function(r){var f=+r;return f===0||f!==f?f:f<0?-1:1}},function(x){var E=Array,r=Math.abs,f=Math.pow,d=Math.floor,h=Math.log,p=Math.LN2,y=function($,A,b){var R=E(b),O=b*8-A-1,C=(1<<O)-1,w=C>>1,D=A===23?f(2,-24)-f(2,-77):0,L=$<0||$===0&&1/$<0?1:0,F=0,z,B,U;for($=r($),$!==$||$===1/0?(B=$!==$?1:0,z=C):(z=d(h($)/p),U=f(2,-z),$*U<1&&(z--,U*=2),z+w>=1?$+=D/U:$+=D*f(2,1-w),$*U>=2&&(z++,U/=2),z+w>=C?(B=0,z=C):z+w>=1?(B=($*U-1)*f(2,A),z+=w):(B=$*f(2,w-1)*f(2,A),z=0));A>=8;)R[F++]=B&255,B/=256,A-=8;for(z=z<<A|B,O+=A;O>0;)R[F++]=z&255,z/=256,O-=8;return R[F-1]|=L*128,R},T=function($,A){var b=$.length,R=b*8-A-1,O=(1<<R)-1,C=O>>1,w=R-7,D=b-1,L=$[D--],F=L&127,z;for(L>>=7;w>0;)F=F*256+$[D--],w-=8;for(z=F&(1<<-w)-1,F>>=-w,w+=A;w>0;)z=z*256+$[D--],w-=8;if(F===0)F=1-C;else{if(F===O)return z?NaN:L?-1/0:1/0;z+=f(2,A),F-=C}return(L?-1:1)*z*f(2,F-A)};x.exports={pack:y,unpack:T}},function(x,E,r){var f=r(3),d=r(218),h=d.NATIVE_ARRAY_BUFFER_VIEWS;f({target:"ArrayBuffer",stat:!0,forced:!h},{isView:d.isView})},function(x,E,r){var f=r(209),d=r(6),h=r(4),p=r(21),y=r(20),T=r(38),$=r(69),A=r(31),b=r(43),R=r(47),O=r(77),C=r(24),w=r(128),D=r(113),L=r(33),F=r(40),z=r(51),B=z.enforce,U=z.get,V=h.Int8Array,j=V&&V.prototype,G=h.Uint8ClampedArray,W=G&&G.prototype,J=V&&w(V),k=j&&w(j),Q=Object.prototype,nt=h.TypeError,rt=L("toStringTag"),q=F("TYPED_ARRAY_TAG"),tt="TypedArrayConstructor",et=f&&!!D&&$(h.opera)!=="Opera",ot=!1,pt,gt,xt,mt={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},zt={BigInt64Array:8,BigUint64Array:8},Lt=function(Yt){if(!y(Yt))return!1;var re=$(Yt);return re==="DataView"||T(mt,re)||T(zt,re)},Xt=function(Mt){var Yt=w(Mt);if(y(Yt)){var re=U(Yt);return re&&T(re,tt)?re[tt]:Xt(Yt)}},Qt=function(Mt){if(!y(Mt))return!1;var Yt=$(Mt);return T(mt,Yt)||T(zt,Yt)},_t=function(Mt){if(Qt(Mt))return Mt;throw new nt("Target is not a typed array")},me=function(Mt){if(p(Mt)&&(!D||C(J,Mt)))return Mt;throw new nt(A(Mt)+" is not a typed array constructor")},ge=function(Mt,Yt,re,le){if(d){if(re)for(var ne in mt){var fe=h[ne];if(fe&&T(fe.prototype,Mt))try{delete fe.prototype[Mt]}catch(Ie){try{fe.prototype[Mt]=Yt}catch(Pe){}}}(!k[Mt]||re)&&R(k,Mt,re?Yt:et&&j[Mt]||Yt,le)}},ie=function(Mt,Yt,re){var le,ne;if(d){if(D){if(re){for(le in mt)if(ne=h[le],ne&&T(ne,Mt))try{delete ne[Mt]}catch(fe){}}if(!J[Mt]||re)try{return R(J,Mt,re?Yt:et&&J[Mt]||Yt)}catch(fe){}else return}for(le in mt)ne=h[le],ne&&(!ne[Mt]||re)&&R(ne,Mt,Yt)}};for(pt in mt)gt=h[pt],xt=gt&>.prototype,xt?B(xt)[tt]=gt:et=!1;for(pt in zt)gt=h[pt],xt=gt&>.prototype,xt&&(B(xt)[tt]=gt);if((!et||!p(J)||J===Function.prototype)&&(J=function(){throw new nt("Incorrect invocation")},et))for(pt in mt)h[pt]&&D(h[pt],J);if((!et||!k||k===Q)&&(k=J.prototype,et))for(pt in mt)h[pt]&&D(h[pt].prototype,k);if(et&&w(W)!==k&&D(W,k),d&&!T(k,rt)){ot=!0,O(k,rt,{configurable:!0,get:function(){return y(this)?this[q]:void 0}});for(pt in mt)h[pt]&&b(h[pt],q,pt)}x.exports={NATIVE_ARRAY_BUFFER_VIEWS:et,TYPED_ARRAY_TAG:ot&&q,aTypedArray:_t,aTypedArrayConstructor:me,exportTypedArrayMethod:ge,exportTypedArrayStaticMethod:ie,getTypedArrayConstructor:Xt,isView:Lt,isTypedArray:Qt,TypedArray:J,TypedArrayPrototype:k}},function(x,E,r){var f=r(3),d=r(85),h=r(7),p=r(208),y=r(46),T=r(60),$=r(64),A=r(220),b=p.ArrayBuffer,R=p.DataView,O=R.prototype,C=d(b.prototype.slice),w=d(O.getUint8),D=d(O.setUint8),L=h(function(){return!new b(2).slice(1,void 0).byteLength});f({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:L},{slice:function(z,B){if(C&&B===void 0)return C(y(this),z);for(var U=y(this).byteLength,V=T(z,U),j=T(B===void 0?U:B,U),G=new(A(this,b))($(j-V)),W=new R(this),J=new R(G),k=0;V<j;)D(J,k++,w(W,V++));return G}})},function(x,E,r){var f=r(46),d=r(221),h=r(17),p=r(33),y=p("species");x.exports=function(T,$){var A=f(T).constructor,b;return A===void 0||h(b=f(A)[y])?$:d(b)}},function(x,E,r){var f=r(89),d=r(31),h=TypeError;x.exports=function(p){if(f(p))return p;throw new h(d(p)+" is not a constructor")}},function(x,E,r){r(223)},function(x,E,r){var f=r(3),d=r(208),h=r(209);f({global:!0,constructor:!0,forced:!h},{DataView:d.DataView})},function(x,E,r){var f=r(6),d=r(77),h=r(225),p=ArrayBuffer.prototype;f&&!("detached"in p)&&d(p,"detached",{configurable:!0,get:function(){return h(this)}})},function(x,E,r){var f=r(4),d=r(85),h=r(226),p=f.ArrayBuffer,y=p&&p.prototype,T=y&&d(y.slice);x.exports=function($){if(h($)!==0||!T)return!1;try{return T($,0,0),!1}catch(A){return!0}}},function(x,E,r){var f=r(4),d=r(114),h=r(15),p=f.ArrayBuffer,y=f.TypeError;x.exports=p&&d(p.prototype,"byteLength","get")||function(T){if(h(T)!=="ArrayBuffer")throw new y("ArrayBuffer expected");return T.byteLength}},function(x,E,r){var f=r(3),d=r(228);d&&f({target:"ArrayBuffer",proto:!0},{transfer:function(){return d(this,arguments.length?arguments[0]:void 0,!0)}})},function(x,E,r){var f=r(4),d=r(14),h=r(114),p=r(212),y=r(229),T=r(226),$=r(230),A=r(232),b=f.structuredClone,R=f.ArrayBuffer,O=f.DataView,C=Math.min,w=R.prototype,D=O.prototype,L=d(w.slice),F=h(w,"resizable","get"),z=h(w,"maxByteLength","get"),B=d(D.getInt8),U=d(D.setInt8);x.exports=(A||$)&&function(V,j,G){var W=T(V),J=j===void 0?W:p(j),k=!F||!F(V),Q;if(y(V),A&&(V=b(V,{transfer:[V]}),W===J&&(G||k)))return V;if(W>=J&&(!G||k))Q=L(V,0,J);else{var nt=G&&!k&&z?{maxByteLength:z(V)}:void 0;Q=new R(J,nt);for(var rt=new O(V),q=new O(Q),tt=C(J,W),et=0;et<tt;et++)U(q,et,B(rt,et))}return A||$(V),Q}},function(x,E,r){var f=r(225),d=TypeError;x.exports=function(h){if(f(h))throw new d("ArrayBuffer is detached");return h}},function(x,E,r){var f=r(4),d=r(231),h=r(232),p=f.structuredClone,y=f.ArrayBuffer,T=f.MessageChannel,$=!1,A,b,R,O;if(h)$=function(C){p(C,{transfer:[C]})};else if(y)try{T||(A=d("worker_threads"),A&&(T=A.MessageChannel)),T&&(b=new T,R=new y(2),O=function(C){b.port1.postMessage(null,[C])},R.byteLength===2&&(O(R),R.byteLength===0&&($=O)))}catch(C){}x.exports=$},function(x,E,r){var f=r(4),d=r(182);x.exports=function(h){if(d){try{return f.process.getBuiltinModule(h)}catch(p){}try{return Function('return require("'+h+'")')()}catch(p){}}}},function(x,E,r){var f=r(4),d=r(7),h=r(27),p=r(183),y=f.structuredClone;x.exports=!!y&&!d(function(){if(p==="DENO"&&h>92||p==="NODE"&&h>94||p==="BROWSER"&&h>97)return!1;var T=new ArrayBuffer(8),$=y(T,{transfer:[T]});return T.byteLength!==0||$.byteLength!==8})},function(x,E,r){var f=r(3),d=r(228);d&&f({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return d(this,arguments.length?arguments[0]:void 0,!1)}})},function(x,E,r){var f=r(3),d=r(14),h=r(7),p=h(function(){return new Date(16e11).getYear()!==120}),y=d(Date.prototype.getFullYear);f({target:"Date",proto:!0,forced:p},{getYear:function(){return y(this)-1900}})},function(x,E,r){var f=r(3),d=r(14),h=Date,p=d(h.prototype.getTime);f({target:"Date",stat:!0},{now:function(){return p(new h)}})},function(x,E,r){var f=r(3),d=r(14),h=r(61),p=Date.prototype,y=d(p.getTime),T=d(p.setFullYear);f({target:"Date",proto:!0},{setYear:function(A){y(this);var b=h(A),R=b>=0&&b<=99?b+1900:b;return T(this,R)}})},function(x,E,r){var f=r(3);f({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})},function(x,E,r){var f=r(3),d=r(239);f({target:"Date",proto:!0,forced:Date.prototype.toISOString!==d},{toISOString:d})},function(x,E,r){var f=r(14),d=r(7),h=r(240).start,p=RangeError,y=isFinite,T=Math.abs,$=Date.prototype,A=$.toISOString,b=f($.getTime),R=f($.getUTCDate),O=f($.getUTCFullYear),C=f($.getUTCHours),w=f($.getUTCMilliseconds),D=f($.getUTCMinutes),L=f($.getUTCMonth),F=f($.getUTCSeconds);x.exports=d(function(){return A.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!d(function(){A.call(new Date(NaN))})?function(){if(!y(b(this)))throw new p("Invalid time value");var B=this,U=O(B),V=w(B),j=U<0?"-":U>9999?"+":"";return j+h(T(U),j?6:4,0)+"-"+h(L(B)+1,2,0)+"-"+h(R(B),2,0)+"T"+h(C(B),2,0)+":"+h(D(B),2,0)+":"+h(F(B),2,0)+"."+h(V,3,0)+"Z"}:A},function(x,E,r){var f=r(14),d=r(64),h=r(68),p=r(241),y=r(16),T=f(p),$=f("".slice),A=Math.ceil,b=function(R){return function(O,C,w){var D=h(y(O)),L=d(C),F=D.length,z=w===void 0?" ":h(w),B,U;return L<=F||z===""?D:(B=L-F,U=T(z,A(B/z.length)),U.length>B&&(U=$(U,0,B)),R?D+U:U+D)}};x.exports={start:b(!1),end:b(!0)}},function(x,E,r){var f=r(61),d=r(68),h=r(16),p=RangeError;x.exports=function(T){var $=d(h(this)),A="",b=f(T);if(b<0||b===1/0)throw new p("Wrong number of repetitions");for(;b>0;(b>>>=1)&&($+=$))b&1&&(A+=$);return A}},function(x,E,r){var f=r(3),d=r(7),h=r(39),p=r(19),y=d(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){return 1}})!==1});f({target:"Date",proto:!0,arity:1,forced:y},{toJSON:function($){var A=h(this),b=p(A,"number");return typeof b=="number"&&!isFinite(b)?null:A.toISOString()}})},function(x,E,r){var f=r(38),d=r(47),h=r(244),p=r(33),y=p("toPrimitive"),T=Date.prototype;f(T,y)||d(T,y,h)},function(x,E,r){var f=r(46),d=r(32),h=TypeError;x.exports=function(p){if(f(this),p==="string"||p==="default")p="string";else if(p!=="number")throw new h("Incorrect hint");return d(this,p)}},function(x,E,r){var f=r(14),d=r(47),h=Date.prototype,p="Invalid Date",y="toString",T=f(h[y]),$=f(h.getTime);String(new Date(NaN))!==p&&d(h,y,function(){var b=$(this);return b===b?T(this):p})},function(x,E,r){var f=r(3),d=r(14),h=r(68),p=d("".charAt),y=d("".charCodeAt),T=d(/./.exec),$=d(1 .toString),A=d("".toUpperCase),b=/[\w*+\-./@]/,R=function(O,C){for(var w=$(O,16);w.length<C;)w="0"+w;return w};f({global:!0},{escape:function(C){for(var w=h(C),D="",L=w.length,F=0,z,B;F<L;)z=p(w,F++),T(b,z)?D+=z:(B=y(z,0),B<256?D+="%"+R(B,2):D+="%u"+A(R(B,4)));return D}})},function(x,E,r){var f=r(3),d=r(248);f({target:"Function",proto:!0,forced:Function.bind!==d},{bind:d})},function(x,E,r){var f=r(14),d=r(30),h=r(20),p=r(38),y=r(76),T=r(9),$=Function,A=f([].concat),b=f([].join),R={},O=function(C,w,D){if(!p(R,w)){for(var L=[],F=0;F<w;F++)L[F]="a["+F+"]";R[w]=$("C,a","return new C("+b(L,",")+")")}return R[w](C,D)};x.exports=T?$.bind:function(w){var D=d(this),L=D.prototype,F=y(arguments,1),z=function(){var U=A(F,y(arguments));return this instanceof z?O(D,U.length,U):D.apply(w,U)};return h(L)&&(z.prototype=L),z}},function(x,E,r){var f=r(21),d=r(20),h=r(44),p=r(24),y=r(33),T=r(48),$=y("hasInstance"),A=Function.prototype;$ in A||h.f(A,$,{value:T(function(b){if(!f(this)||!d(b))return!1;var R=this.prototype;return d(R)?p(R,b):b instanceof this},$)})},function(x,E,r){var f=r(6),d=r(49).EXISTS,h=r(14),p=r(77),y=Function.prototype,T=h(y.toString),$=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,A=h($.exec),b="name";f&&!d&&p(y,b,{configurable:!0,get:function(){try{return A($,T(this))[1]}catch(R){return""}}})},function(x,E,r){var f=r(3),d=r(4);f({global:!0,forced:d.globalThis!==d},{globalThis:d})},function(x,E,r){var f=r(4),d=r(82);d(f.JSON,"JSON",!0)},function(x,E,r){r(254)},function(x,E,r){var f=r(255),d=r(260);f("Map",function(h){return function(){return h(this,arguments.length?arguments[0]:void 0)}},d)},function(x,E,r){var f=r(3),d=r(4),h=r(14),p=r(67),y=r(47),T=r(256),$=r(130),A=r(211),b=r(21),R=r(17),O=r(20),C=r(7),w=r(164),D=r(82),L=r(118);x.exports=function(F,z,B){var U=F.indexOf("Map")!==-1,V=F.indexOf("Weak")!==-1,j=U?"set":"add",G=d[F],W=G&&G.prototype,J=G,k={},Q=function(pt){var gt=h(W[pt]);y(W,pt,pt==="add"?function(mt){return gt(this,mt===0?0:mt),this}:pt==="delete"?function(xt){return V&&!O(xt)?!1:gt(this,xt===0?0:xt)}:pt==="get"?function(mt){return V&&!O(mt)?void 0:gt(this,mt===0?0:mt)}:pt==="has"?function(mt){return V&&!O(mt)?!1:gt(this,mt===0?0:mt)}:function(mt,zt){return gt(this,mt===0?0:mt,zt),this})},nt=p(F,!b(G)||!(V||W.forEach&&!C(function(){new G().entries().next()})));if(nt)J=B.getConstructor(z,F,U,j),T.enable();else if(p(F,!0)){var rt=new J,q=rt[j](V?{}:-0,1)!==rt,tt=C(function(){rt.has(1)}),et=w(function(pt){new G(pt)}),ot=!V&&C(function(){for(var pt=new G,gt=5;gt--;)pt[j](gt,gt);return!pt.has(-0)});et||(J=z(function(pt,gt){A(pt,W);var xt=L(new G,pt,J);return R(gt)||$(gt,xt[j],{that:xt,AS_ENTRIES:U}),xt}),J.prototype=W,W.constructor=J),(tt||ot)&&(Q("delete"),Q("has"),U&&Q("get")),(ot||q)&&Q(j),V&&W.clear&&delete W.clear}return k[F]=J,f({global:!0,constructor:!0,forced:J!==G},k),D(J,F),V||B.setStrong(J,F,U),J}},function(x,E,r){var f=r(3),d=r(14),h=r(54),p=r(20),y=r(38),T=r(44).f,$=r(57),A=r(75),b=r(257),R=r(40),O=r(259),C=!1,w=R("meta"),D=0,L=function(j){T(j,w,{value:{objectID:"O"+D++,weakData:{}}})},F=function(j,G){if(!p(j))return typeof j=="symbol"?j:(typeof j=="string"?"S":"P")+j;if(!y(j,w)){if(!b(j))return"F";if(!G)return"E";L(j)}return j[w].objectID},z=function(j,G){if(!y(j,w)){if(!b(j))return!0;if(!G)return!1;L(j)}return j[w].weakData},B=function(j){return O&&C&&b(j)&&!y(j,w)&&L(j),j},U=function(){V.enable=function(){},C=!0;var j=$.f,G=d([].splice),W={};W[w]=1,j(W).length&&($.f=function(J){for(var k=j(J),Q=0,nt=k.length;Q<nt;Q++)if(k[Q]===w){G(k,Q,1);break}return k},f({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:A.f}))},V=x.exports={enable:U,fastKey:F,getWeakData:z,onFreeze:B};h[w]=!0},function(x,E,r){var f=r(7),d=r(20),h=r(15),p=r(258),y=Object.isExtensible,T=f(function(){y(1)});x.exports=T||p?function(A){return!d(A)||p&&h(A)==="ArrayBuffer"?!1:y?y(A):!0}:y},function(x,E,r){var f=r(7);x.exports=f(function(){if(typeof ArrayBuffer=="function"){var d=new ArrayBuffer(8);Object.isExtensible(d)&&Object.defineProperty(d,"a",{value:8})}})},function(x,E,r){var f=r(7);x.exports=!f(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(x,E,r){var f=r(71),d=r(77),h=r(210),p=r(84),y=r(211),T=r(17),$=r(130),A=r(169),b=r(172),R=r(194),O=r(6),C=r(256).fastKey,w=r(51),D=w.set,L=w.getterFor;x.exports={getConstructor:function(F,z,B,U){var V=F(function(k,Q){y(k,j),D(k,{type:z,index:f(null),first:null,last:null,size:0}),O||(k.size=0),T(Q)||$(Q,k[U],{that:k,AS_ENTRIES:B})}),j=V.prototype,G=L(z),W=function(k,Q,nt){var rt=G(k),q=J(k,Q),tt,et;return q?q.value=nt:(rt.last=q={index:et=C(Q,!0),key:Q,value:nt,previous:tt=rt.last,next:null,removed:!1},rt.first||(rt.first=q),tt&&(tt.next=q),O?rt.size++:k.size++,et!=="F"&&(rt.index[et]=q)),k},J=function(k,Q){var nt=G(k),rt=C(Q),q;if(rt!=="F")return nt.index[rt];for(q=nt.first;q;q=q.next)if(q.key===Q)return q};return h(j,{clear:function(){for(var Q=this,nt=G(Q),rt=nt.first;rt;)rt.removed=!0,rt.previous&&(rt.previous=rt.previous.next=null),rt=rt.next;nt.first=nt.last=null,nt.index=f(null),O?nt.size=0:Q.size=0},delete:function(k){var Q=this,nt=G(Q),rt=J(Q,k);if(rt){var q=rt.next,tt=rt.previous;delete nt.index[rt.index],rt.removed=!0,tt&&(tt.next=q),q&&(q.previous=tt),nt.first===rt&&(nt.first=q),nt.last===rt&&(nt.last=tt),O?nt.size--:Q.size--}return!!rt},forEach:function(Q){for(var nt=G(this),rt=p(Q,arguments.length>1?arguments[1]:void 0),q;q=q?q.next:nt.first;)for(rt(q.value,q.key,this);q&&q.removed;)q=q.previous},has:function(Q){return!!J(this,Q)}}),h(j,B?{get:function(Q){var nt=J(this,Q);return nt&&nt.value},set:function(Q,nt){return W(this,Q===0?0:Q,nt)}}:{add:function(Q){return W(this,Q=Q===0?0:Q,Q)}}),O&&d(j,"size",{configurable:!0,get:function(){return G(this).size}}),V},setStrong:function(F,z,B){var U=z+" Iterator",V=L(z),j=L(U);A(F,z,function(G,W){D(this,{type:U,target:G,state:V(G),kind:W,last:null})},function(){for(var G=j(this),W=G.kind,J=G.last;J&&J.removed;)J=J.previous;return!G.target||!(G.last=J=J?J.next:G.state.first)?(G.target=null,b(void 0,!0)):b(W==="keys"?J.key:W==="values"?J.value:[J.key,J.value],!1)},B?"entries":"values",!B,!0),R(z)}}},function(x,E,r){var f=r(3),d=r(14),h=r(30),p=r(16),y=r(130),T=r(262),$=r(36),A=r(7),b=T.Map,R=T.has,O=T.get,C=T.set,w=d([].push),D=$||A(function(){return b.groupBy("ab",function(L){return L}).get("a").length!==1});f({target:"Map",stat:!0,forced:$||D},{groupBy:function(F,z){p(F),h(z);var B=new b,U=0;return y(F,function(V){var j=z(V,U++);R(B,j)?w(O(B,j),V):C(B,j,[V])}),B}})},function(x,E,r){var f=r(14),d=Map.prototype;x.exports={Map,set:f(d.set),get:f(d.get),has:f(d.has),remove:f(d.delete),proto:d}},function(x,E,r){var f=r(3),d=r(264),h=Math.acosh,p=Math.log,y=Math.sqrt,T=Math.LN2,$=!h||Math.floor(h(Number.MAX_VALUE))!==710||h(1/0)!==1/0;f({target:"Math",stat:!0,forced:$},{acosh:function(b){var R=+b;return R<1?NaN:R>9490626562425156e-8?p(R)+T:d(R-1+y(R-1)*y(R+1))}})},function(x){var E=Math.log;x.exports=Math.log1p||function(f){var d=+f;return d>-1e-8&&d<1e-8?d-d*d/2:E(1+d)}},function(x,E,r){var f=r(3),d=Math.asinh,h=Math.log,p=Math.sqrt;function y($){var A=+$;return!isFinite(A)||A===0?A:A<0?-y(-A):h(A+p(A*A+1))}var T=!(d&&1/d(0)>0);f({target:"Math",stat:!0,forced:T},{asinh:y})},function(x,E,r){var f=r(3),d=Math.atanh,h=Math.log,p=!(d&&1/d(-0)<0);f({target:"Math",stat:!0,forced:p},{atanh:function(T){var $=+T;return $===0?$:h((1+$)/(1-$))/2}})},function(x,E,r){var f=r(3),d=r(215),h=Math.abs,p=Math.pow;f({target:"Math",stat:!0},{cbrt:function(T){var $=+T;return d($)*p(h($),.3333333333333333)}})},function(x,E,r){var f=r(3),d=Math.floor,h=Math.log,p=Math.LOG2E;f({target:"Math",stat:!0},{clz32:function(T){var $=T>>>0;return $?31-d(h($+.5)*p):32}})},function(x,E,r){var f=r(3),d=r(270),h=Math.cosh,p=Math.abs,y=Math.E,T=!h||h(710)===1/0;f({target:"Math",stat:!0,forced:T},{cosh:function(A){var b=d(p(A)-1)+1;return(b+1/(b*y*y))*(y/2)}})},function(x){var E=Math.expm1,r=Math.exp;x.exports=!E||E(10)>22025.465794806718||E(10)<22025.465794806718||E(-2e-17)!==-2e-17?function(d){var h=+d;return h===0?h:h>-1e-6&&h<1e-6?h+h*h/2:r(h)-1}:E},function(x,E,r){var f=r(3),d=r(270);f({target:"Math",stat:!0,forced:d!==Math.expm1},{expm1:d})},function(x,E,r){var f=r(3),d=r(213);f({target:"Math",stat:!0},{fround:d})},function(x,E,r){var f=r(3),d=Math.hypot,h=Math.abs,p=Math.sqrt,y=!!d&&d(1/0,NaN)!==1/0;f({target:"Math",stat:!0,arity:2,forced:y},{hypot:function($,A){for(var b=0,R=0,O=arguments.length,C=0,w,D;R<O;)w=h(arguments[R++]),C<w?(D=C/w,b=b*D*D+1,C=w):w>0?(D=w/C,b+=D*D):b+=w;return C===1/0?1/0:C*p(b)}})},function(x,E,r){var f=r(3),d=r(7),h=Math.imul,p=d(function(){return h(4294967295,5)!==-5||h.length!==2});f({target:"Math",stat:!0,forced:p},{imul:function(T,$){var A=65535,b=+T,R=+$,O=A&b,C=A&R;return 0|O*C+((A&b>>>16)*C+O*(A&R>>>16)<<16>>>0)}})},function(x,E,r){var f=r(3),d=r(276);f({target:"Math",stat:!0},{log10:d})},function(x){var E=Math.log,r=Math.LOG10E;x.exports=Math.log10||function(d){return E(d)*r}},function(x,E,r){var f=r(3),d=r(264);f({target:"Math",stat:!0},{log1p:d})},function(x,E,r){var f=r(3),d=Math.log,h=Math.LN2;f({target:"Math",stat:!0},{log2:function(y){return d(y)/h}})},function(x,E,r){var f=r(3),d=r(215);f({target:"Math",stat:!0},{sign:d})},function(x,E,r){var f=r(3),d=r(7),h=r(270),p=Math.abs,y=Math.exp,T=Math.E,$=d(function(){return Math.sinh(-2e-17)!==-2e-17});f({target:"Math",stat:!0,forced:$},{sinh:function(b){var R=+b;return p(R)<1?(h(R)-h(-R))/2:(y(R-1)-y(-R-1))*(T/2)}})},function(x,E,r){var f=r(3),d=r(270),h=Math.exp;f({target:"Math",stat:!0},{tanh:function(y){var T=+y,$=d(T),A=d(-T);return $===1/0?1:A===1/0?-1:($-A)/(h(T)+h(-T))}})},function(x,E,r){var f=r(82);f(Math,"Math",!0)},function(x,E,r){var f=r(3),d=r(62);f({target:"Math",stat:!0},{trunc:d})},function(x,E,r){var f=r(3),d=r(36),h=r(6),p=r(4),y=r(80),T=r(14),$=r(67),A=r(38),b=r(118),R=r(24),O=r(22),C=r(19),w=r(7),D=r(57).f,L=r(5).f,F=r(44).f,z=r(285),B=r(286).trim,U="Number",V=p[U],j=y[U],G=V.prototype,W=p.TypeError,J=T("".slice),k=T("".charCodeAt),Q=function(ot){var pt=C(ot,"number");return typeof pt=="bigint"?pt:nt(pt)},nt=function(ot){var pt=C(ot,"number"),gt,xt,mt,zt,Lt,Xt,Qt,_t;if(O(pt))throw new W("Cannot convert a Symbol value to a number");if(typeof pt=="string"&&pt.length>2){if(pt=B(pt),gt=k(pt,0),gt===43||gt===45){if(xt=k(pt,2),xt===88||xt===120)return NaN}else if(gt===48){switch(k(pt,1)){case 66:case 98:mt=2,zt=49;break;case 79:case 111:mt=8,zt=55;break;default:return+pt}for(Lt=J(pt,2),Xt=Lt.length,Qt=0;Qt<Xt;Qt++)if(_t=k(Lt,Qt),_t<48||_t>zt)return NaN;return parseInt(Lt,mt)}}return+pt},rt=$(U,!V(" 0o1")||!V("0b1")||V("+0x1")),q=function(ot){return R(G,ot)&&w(function(){z(ot)})},tt=function(pt){var gt=arguments.length<1?0:V(Q(pt));return q(this)?b(Object(gt),this,tt):gt};tt.prototype=G,rt&&!d&&(G.constructor=tt),f({global:!0,constructor:!0,wrap:!0,forced:rt},{Number:tt});var et=function(ot,pt){for(var gt=h?D(pt):"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(","),xt=0,mt;gt.length>xt;xt++)A(pt,mt=gt[xt])&&!A(ot,mt)&&F(ot,mt,L(pt,mt))};d&&j&&et(y[U],j),(rt||d)&&et(y[U],V)},function(x,E,r){var f=r(14);x.exports=f(1 .valueOf)},function(x,E,r){var f=r(14),d=r(16),h=r(68),p=r(287),y=f("".replace),T=RegExp("^["+p+"]+"),$=RegExp("(^|[^"+p+"])["+p+"]+$"),A=function(b){return function(R){var O=h(d(R));return b&1&&(O=y(O,T,"")),b&2&&(O=y(O,$,"$1")),O}};x.exports={start:A(1),end:A(2),trim:A(3)}},function(x){x.exports=`
|
|
27
|
-
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},function(x,E,r){var f=r(3);f({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},function(x,E,r){var f=r(3),d=r(290);f({target:"Number",stat:!0},{isFinite:d})},function(x,E,r){var f=r(4),d=f.isFinite;x.exports=Number.isFinite||function(p){return typeof p=="number"&&d(p)}},function(x,E,r){var f=r(3),d=r(292);f({target:"Number",stat:!0},{isInteger:d})},function(x,E,r){var f=r(20),d=Math.floor;x.exports=Number.isInteger||function(p){return!f(p)&&isFinite(p)&&d(p)===p}},function(x,E,r){var f=r(3);f({target:"Number",stat:!0},{isNaN:function(h){return h!==h}})},function(x,E,r){var f=r(3),d=r(292),h=Math.abs;f({target:"Number",stat:!0},{isSafeInteger:function(y){return d(y)&&h(y)<=9007199254740991}})},function(x,E,r){var f=r(3);f({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(x,E,r){var f=r(3);f({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(x,E,r){var f=r(3),d=r(298);f({target:"Number",stat:!0,forced:Number.parseFloat!==d},{parseFloat:d})},function(x,E,r){var f=r(4),d=r(7),h=r(14),p=r(68),y=r(286).trim,T=r(287),$=h("".charAt),A=f.parseFloat,b=f.Symbol,R=b&&b.iterator,O=1/A(T+"-0")!==-1/0||R&&!d(function(){A(Object(R))});x.exports=O?function(w){var D=y(p(w)),L=A(D);return L===0&&$(D,0)==="-"?-0:L}:A},function(x,E,r){var f=r(3),d=r(300);f({target:"Number",stat:!0,forced:Number.parseInt!==d},{parseInt:d})},function(x,E,r){var f=r(4),d=r(7),h=r(14),p=r(68),y=r(286).trim,T=r(287),$=f.parseInt,A=f.Symbol,b=A&&A.iterator,R=/^[+-]?0x/i,O=h(R.exec),C=$(T+"08")!==8||$(T+"0x16")!==22||b&&!d(function(){$(Object(b))});x.exports=C?function(D,L){var F=y(p(D));return $(F,L>>>0||(O(R,F)?16:10))}:$},function(x,E,r){var f=r(3),d=r(14),h=r(61),p=r(285),y=r(241),T=r(276),$=r(7),A=RangeError,b=String,R=isFinite,O=Math.abs,C=Math.floor,w=Math.pow,D=Math.round,L=d(1 .toExponential),F=d(y),z=d("".slice),B=L(-69e-12,4)==="-6.9000e-11"&&L(1.255,2)==="1.25e+0"&&L(12345,3)==="1.235e+4"&&L(25,0)==="3e+1",U=function(){return $(function(){L(1,1/0)})&&$(function(){L(1,-1/0)})},V=function(){return!$(function(){L(1/0,1/0),L(NaN,1/0)})},j=!B||!U()||!V();f({target:"Number",proto:!0,forced:j},{toExponential:function(W){var J=p(this);if(W===void 0)return L(J);var k=h(W);if(!R(J))return String(J);if(k<0||k>20)throw new A("Incorrect fraction digits");if(B)return L(J,k);var Q="",nt,rt,q,tt;if(J<0&&(Q="-",J=-J),J===0)rt=0,nt=F("0",k+1);else{var et=T(J);rt=C(et);var ot=w(10,rt-k),pt=D(J/ot);2*J>=(2*pt+1)*ot&&(pt+=1),pt>=w(10,k+1)&&(pt/=10,rt+=1),nt=b(pt)}return k!==0&&(nt=z(nt,0,1)+"."+z(nt,1)),rt===0?(q="+",tt="0"):(q=rt>0?"+":"-",tt=b(O(rt))),nt+="e"+q+tt,Q+nt}})},function(x,E,r){var f=r(3),d=r(14),h=r(61),p=r(285),y=r(241),T=r(7),$=RangeError,A=String,b=Math.floor,R=d(y),O=d("".slice),C=d(1 .toFixed),w=function(U,V,j){return V===0?j:V%2===1?w(U,V-1,j*U):w(U*U,V/2,j)},D=function(U){for(var V=0,j=U;j>=4096;)V+=12,j/=4096;for(;j>=2;)V+=1,j/=2;return V},L=function(U,V,j){for(var G=-1,W=j;++G<6;)W+=V*U[G],U[G]=W%1e7,W=b(W/1e7)},F=function(U,V){for(var j=6,G=0;--j>=0;)G+=U[j],U[j]=b(G/V),G=G%V*1e7},z=function(U){for(var V=6,j="";--V>=0;)if(j!==""||V===0||U[V]!==0){var G=A(U[V]);j=j===""?G:j+R("0",7-G.length)+G}return j},B=T(function(){return C(8e-5,3)!=="0.000"||C(.9,0)!=="1"||C(1.255,2)!=="1.25"||C(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!T(function(){C({})});f({target:"Number",proto:!0,forced:B},{toFixed:function(V){var j=p(this),G=h(V),W=[0,0,0,0,0,0],J="",k="0",Q,nt,rt,q;if(G<0||G>20)throw new $("Incorrect fraction digits");if(j!==j)return"NaN";if(j<=-1e21||j>=1e21)return A(j);if(j<0&&(J="-",j=-j),j>1e-21)if(Q=D(j*w(2,69,1))-69,nt=Q<0?j*w(2,-Q,1):j/w(2,Q,1),nt*=4503599627370496,Q=52-Q,Q>0){for(L(W,0,nt),rt=G;rt>=7;)L(W,1e7,0),rt-=7;for(L(W,w(10,rt,1),0),rt=Q-1;rt>=23;)F(W,8388608),rt-=23;F(W,1<<rt),L(W,1,1),F(W,2),k=z(W)}else L(W,0,nt),L(W,1<<-Q,0),k=z(W)+R("0",G);return G>0?(q=k.length,k=J+(q<=G?"0."+R("0",G-q)+k:O(k,0,q-G)+"."+O(k,q-G))):k=J+k,k}})},function(x,E,r){var f=r(3),d=r(14),h=r(7),p=r(285),y=d(1 .toPrecision),T=h(function(){return y(1,void 0)!=="1"})||!h(function(){y({})});f({target:"Number",proto:!0,forced:T},{toPrecision:function(A){return A===void 0?y(p(this)):y(p(this),A)}})},function(x,E,r){var f=r(3),d=r(305);f({target:"Object",stat:!0,arity:2,forced:Object.assign!==d},{assign:d})},function(x,E,r){var f=r(6),d=r(14),h=r(8),p=r(7),y=r(73),T=r(66),$=r(10),A=r(39),b=r(13),R=Object.assign,O=Object.defineProperty,C=d([].concat);x.exports=!R||p(function(){if(f&&R({b:1},R(O({},"a",{enumerable:!0,get:function(){O(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var w={},D={},L=Symbol("assign detection"),F="abcdefghijklmnopqrst";return w[L]=7,F.split("").forEach(function(z){D[z]=z}),R({},w)[L]!==7||y(R({},D)).join("")!==F})?function(D,L){for(var F=A(D),z=arguments.length,B=1,U=T.f,V=$.f;z>B;)for(var j=b(arguments[B++]),G=U?C(y(j),U(j)):y(j),W=G.length,J=0,k;W>J;)k=G[J++],(!f||h(V,j,k))&&(F[k]=j[k]);return F}:R},function(x,E,r){var f=r(3),d=r(6),h=r(71);f({target:"Object",stat:!0,sham:!d},{create:h})},function(x,E,r){var f=r(3),d=r(6),h=r(308),p=r(30),y=r(39),T=r(44);d&&f({target:"Object",proto:!0,forced:h},{__defineGetter__:function(A,b){T.f(y(this),A,{get:p(b),enumerable:!0,configurable:!0})}})},function(x,E,r){var f=r(36),d=r(4),h=r(7),p=r(192);x.exports=f||!h(function(){if(!(p&&p<535)){var y=Math.random();__defineSetter__.call(null,y,function(){}),delete d[y]}})},function(x,E,r){var f=r(3),d=r(6),h=r(72).f;f({target:"Object",stat:!0,forced:Object.defineProperties!==h,sham:!d},{defineProperties:h})},function(x,E,r){var f=r(3),d=r(6),h=r(44).f;f({target:"Object",stat:!0,forced:Object.defineProperty!==h,sham:!d},{defineProperty:h})},function(x,E,r){var f=r(3),d=r(6),h=r(308),p=r(30),y=r(39),T=r(44);d&&f({target:"Object",proto:!0,forced:h},{__defineSetter__:function(A,b){T.f(y(this),A,{set:p(b),enumerable:!0,configurable:!0})}})},function(x,E,r){var f=r(3),d=r(313).entries;f({target:"Object",stat:!0},{entries:function(p){return d(p)}})},function(x,E,r){var f=r(6),d=r(7),h=r(14),p=r(128),y=r(73),T=r(12),$=r(10).f,A=h($),b=h([].push),R=f&&d(function(){var C=Object.create(null);return C[2]=2,!A(C,2)}),O=function(C){return function(w){for(var D=T(w),L=y(D),F=R&&p(D)===null,z=L.length,B=0,U=[],V;z>B;)V=L[B++],(!f||(F?V in D:A(D,V)))&&b(U,C?[V,D[V]]:D[V]);return U}};x.exports={entries:O(!0),values:O(!1)}},function(x,E,r){var f=r(3),d=r(259),h=r(7),p=r(20),y=r(256).onFreeze,T=Object.freeze,$=h(function(){T(1)});f({target:"Object",stat:!0,forced:$,sham:!d},{freeze:function(b){return T&&p(b)?T(y(b)):b}})},function(x,E,r){var f=r(3),d=r(130),h=r(141);f({target:"Object",stat:!0},{fromEntries:function(y){var T={};return d(y,function($,A){h(T,$,A)},{AS_ENTRIES:!0}),T}})},function(x,E,r){var f=r(3),d=r(7),h=r(12),p=r(5).f,y=r(6),T=!y||d(function(){p(1)});f({target:"Object",stat:!0,forced:T,sham:!y},{getOwnPropertyDescriptor:function(A,b){return p(h(A),b)}})},function(x,E,r){var f=r(3),d=r(6),h=r(56),p=r(12),y=r(5),T=r(141);f({target:"Object",stat:!0,sham:!d},{getOwnPropertyDescriptors:function(A){for(var b=p(A),R=y.f,O=h(b),C={},w=0,D,L;O.length>w;)L=R(b,D=O[w++]),L!==void 0&&T(C,D,L);return C}})},function(x,E,r){var f=r(3),d=r(7),h=r(75).f,p=d(function(){return!Object.getOwnPropertyNames(1)});f({target:"Object",stat:!0,forced:p},{getOwnPropertyNames:h})},function(x,E,r){var f=r(3),d=r(7),h=r(39),p=r(128),y=r(129),T=d(function(){p(1)});f({target:"Object",stat:!0,forced:T,sham:!y},{getPrototypeOf:function(A){return p(h(A))}})},function(x,E,r){var f=r(3),d=r(23),h=r(14),p=r(30),y=r(16),T=r(18),$=r(130),A=r(7),b=Object.groupBy,R=d("Object","create"),O=h([].push),C=!b||A(function(){return b("ab",function(w){return w}).a.length!==1});f({target:"Object",stat:!0,forced:C},{groupBy:function(D,L){y(D),p(L);var F=R(null),z=0;return $(D,function(B){var U=T(L(B,z++));U in F?O(F[U],B):F[U]=[B]}),F}})},function(x,E,r){var f=r(3),d=r(38);f({target:"Object",stat:!0},{hasOwn:d})},function(x,E,r){var f=r(3),d=r(323);f({target:"Object",stat:!0},{is:d})},function(x){x.exports=Object.is||function(r,f){return r===f?r!==0||1/r===1/f:r!==r&&f!==f}},function(x,E,r){var f=r(3),d=r(257);f({target:"Object",stat:!0,forced:Object.isExtensible!==d},{isExtensible:d})},function(x,E,r){var f=r(3),d=r(7),h=r(20),p=r(15),y=r(258),T=Object.isFrozen,$=y||d(function(){T(1)});f({target:"Object",stat:!0,forced:$},{isFrozen:function(b){return!h(b)||y&&p(b)==="ArrayBuffer"?!0:T?T(b):!1}})},function(x,E,r){var f=r(3),d=r(7),h=r(20),p=r(15),y=r(258),T=Object.isSealed,$=y||d(function(){T(1)});f({target:"Object",stat:!0,forced:$},{isSealed:function(b){return!h(b)||y&&p(b)==="ArrayBuffer"?!0:T?T(b):!1}})},function(x,E,r){var f=r(3),d=r(39),h=r(73),p=r(7),y=p(function(){h(1)});f({target:"Object",stat:!0,forced:y},{keys:function($){return h(d($))}})},function(x,E,r){var f=r(3),d=r(6),h=r(308),p=r(39),y=r(18),T=r(128),$=r(5).f;d&&f({target:"Object",proto:!0,forced:h},{__lookupGetter__:function(b){var R=p(this),O=y(b),C;do if(C=$(R,O))return C.get;while(R=T(R))}})},function(x,E,r){var f=r(3),d=r(6),h=r(308),p=r(39),y=r(18),T=r(128),$=r(5).f;d&&f({target:"Object",proto:!0,forced:h},{__lookupSetter__:function(b){var R=p(this),O=y(b),C;do if(C=$(R,O))return C.set;while(R=T(R))}})},function(x,E,r){var f=r(3),d=r(20),h=r(256).onFreeze,p=r(259),y=r(7),T=Object.preventExtensions,$=y(function(){T(1)});f({target:"Object",stat:!0,forced:$,sham:!p},{preventExtensions:function(b){return T&&d(b)?T(h(b)):b}})},function(x,E,r){var f=r(6),d=r(77),h=r(20),p=r(116),y=r(39),T=r(16),$=Object.getPrototypeOf,A=Object.setPrototypeOf,b=Object.prototype,R="__proto__";if(f&&$&&A&&!(R in b))try{d(b,R,{configurable:!0,get:function(){return $(y(this))},set:function(C){var w=T(this);p(C)&&h(w)&&A(w,C)}})}catch(O){}},function(x,E,r){var f=r(3),d=r(20),h=r(256).onFreeze,p=r(259),y=r(7),T=Object.seal,$=y(function(){T(1)});f({target:"Object",stat:!0,forced:$,sham:!p},{seal:function(b){return T&&d(b)?T(h(b)):b}})},function(x,E,r){var f=r(3),d=r(113);f({target:"Object",stat:!0},{setPrototypeOf:d})},function(x,E,r){var f=r(70),d=r(47),h=r(335);f||d(Object.prototype,"toString",h,{unsafe:!0})},function(x,E,r){var f=r(70),d=r(69);x.exports=f?{}.toString:function(){return"[object "+d(this)+"]"}},function(x,E,r){var f=r(3),d=r(313).values;f({target:"Object",stat:!0},{values:function(p){return d(p)}})},function(x,E,r){var f=r(3),d=r(298);f({global:!0,forced:parseFloat!==d},{parseFloat:d})},function(x,E,r){var f=r(3),d=r(300);f({global:!0,forced:parseInt!==d},{parseInt:d})},function(x,E,r){r(340),r(354),r(356),r(357),r(358),r(359)},function(x,E,r){var f=r(3),d=r(36),h=r(182),p=r(4),y=r(8),T=r(47),$=r(113),A=r(82),b=r(194),R=r(30),O=r(21),C=r(20),w=r(211),D=r(220),L=r(341).set,F=r(344),z=r(349),B=r(350),U=r(346),V=r(51),j=r(351),G=r(352),W=r(353),J="Promise",k=G.CONSTRUCTOR,Q=G.REJECTION_EVENT,nt=G.SUBCLASSING,rt=V.getterFor(J),q=V.set,tt=j&&j.prototype,et=j,ot=tt,pt=p.TypeError,gt=p.document,xt=p.process,mt=W.f,zt=mt,Lt=!!(gt&>.createEvent&&p.dispatchEvent),Xt="unhandledrejection",Qt="rejectionhandled",_t=0,me=1,ge=2,ie=1,Mt=2,Yt,re,le,ne,fe=function(Tt){var qt;return C(Tt)&&O(qt=Tt.then)?qt:!1},Ie=function(Tt,qt){var ee=qt.value,Zt=qt.state===me,Ht=Zt?Tt.ok:Tt.fail,Ye=Tt.resolve,Ke=Tt.reject,ct=Tt.domain,Ot,Pt,Ct;try{Ht?(Zt||(qt.rejection===Mt&&Te(qt),qt.rejection=ie),Ht===!0?Ot=ee:(ct&&ct.enter(),Ot=Ht(ee),ct&&(ct.exit(),Ct=!0)),Ot===Tt.promise?Ke(new pt("Promise-chain cycle")):(Pt=fe(Ot))?y(Pt,Ot,Ye,Ke):Ye(Ot)):Ke(ee)}catch(Nt){ct&&!Ct&&ct.exit(),Ke(Nt)}},Pe=function(Tt,qt){Tt.notified||(Tt.notified=!0,F(function(){for(var ee=Tt.reactions,Zt;Zt=ee.get();)Ie(Zt,Tt);Tt.notified=!1,qt&&!Tt.rejection&&ce(Tt)}))},$e=function(Tt,qt,ee){var Zt,Ht;Lt?(Zt=gt.createEvent("Event"),Zt.promise=qt,Zt.reason=ee,Zt.initEvent(Tt,!1,!0),p.dispatchEvent(Zt)):Zt={promise:qt,reason:ee},!Q&&(Ht=p["on"+Tt])?Ht(Zt):Tt===Xt&&z("Unhandled promise rejection",ee)},ce=function(Tt){y(L,p,function(){var qt=Tt.facade,ee=Tt.value,Zt=Ae(Tt),Ht;if(Zt&&(Ht=B(function(){h?xt.emit("unhandledRejection",ee,qt):$e(Xt,qt,ee)}),Tt.rejection=h||Ae(Tt)?Mt:ie,Ht.error))throw Ht.value})},Ae=function(Tt){return Tt.rejection!==ie&&!Tt.parent},Te=function(Tt){y(L,p,function(){var qt=Tt.facade;h?xt.emit("rejectionHandled",qt):$e(Qt,qt,Tt.value)})},de=function(Tt,qt,ee){return function(Zt){Tt(qt,Zt,ee)}},Et=function(Tt,qt,ee){Tt.done||(Tt.done=!0,ee&&(Tt=ee),Tt.value=qt,Tt.state=ge,Pe(Tt,!0))},Bt=function(Tt,qt,ee){if(!Tt.done){Tt.done=!0,ee&&(Tt=ee);try{if(Tt.facade===qt)throw new pt("Promise can't be resolved itself");var Zt=fe(qt);Zt?F(function(){var Ht={done:!1};try{y(Zt,qt,de(Bt,Ht,Tt),de(Et,Ht,Tt))}catch(Ye){Et(Ht,Ye,Tt)}}):(Tt.value=qt,Tt.state=me,Pe(Tt,!1))}catch(Ht){Et({done:!1},Ht,Tt)}}};if(k&&(et=function(qt){w(this,ot),R(qt),y(Yt,this);var ee=rt(this);try{qt(de(Bt,ee),de(Et,ee))}catch(Zt){Et(ee,Zt)}},ot=et.prototype,Yt=function(qt){q(this,{type:J,done:!1,notified:!1,parent:!1,reactions:new U,rejection:!1,state:_t,value:null})},Yt.prototype=T(ot,"then",function(qt,ee){var Zt=rt(this),Ht=mt(D(this,et));return Zt.parent=!0,Ht.ok=O(qt)?qt:!0,Ht.fail=O(ee)&&ee,Ht.domain=h?xt.domain:void 0,Zt.state===_t?Zt.reactions.add(Ht):F(function(){Ie(Ht,Zt)}),Ht.promise}),re=function(){var Tt=new Yt,qt=rt(Tt);this.promise=Tt,this.resolve=de(Bt,qt),this.reject=de(Et,qt)},W.f=mt=function(Tt){return Tt===et||Tt===le?new re(Tt):zt(Tt)},!d&&O(j)&&tt!==Object.prototype)){ne=tt.then,nt||T(tt,"then",function(qt,ee){var Zt=this;return new et(function(Ht,Ye){y(ne,Zt,Ht,Ye)}).then(qt,ee)},{unsafe:!0});try{delete tt.constructor}catch(Tt){}$&&$(tt,ot)}f({global:!0,constructor:!0,wrap:!0,forced:k},{Promise:et}),A(et,J,!1,!0),b(J)},function(x,E,r){var f=r(4),d=r(94),h=r(84),p=r(21),y=r(38),T=r(7),$=r(74),A=r(76),b=r(42),R=r(342),O=r(343),C=r(182),w=f.setImmediate,D=f.clearImmediate,L=f.process,F=f.Dispatch,z=f.Function,B=f.MessageChannel,U=f.String,V=0,j={},G="onreadystatechange",W,J,k,Q;T(function(){W=f.location});var nt=function(et){if(y(j,et)){var ot=j[et];delete j[et],ot()}},rt=function(et){return function(){nt(et)}},q=function(et){nt(et.data)},tt=function(et){f.postMessage(U(et),W.protocol+"//"+W.host)};(!w||!D)&&(w=function(ot){R(arguments.length,1);var pt=p(ot)?ot:z(ot),gt=A(arguments,1);return j[++V]=function(){d(pt,void 0,gt)},J(V),V},D=function(ot){delete j[ot]},C?J=function(et){L.nextTick(rt(et))}:F&&F.now?J=function(et){F.now(rt(et))}:B&&!O?(k=new B,Q=k.port2,k.port1.onmessage=q,J=h(Q.postMessage,Q)):f.addEventListener&&p(f.postMessage)&&!f.importScripts&&W&&W.protocol!=="file:"&&!T(tt)?(J=tt,f.addEventListener("message",q,!1)):G in b("script")?J=function(et){$.appendChild(b("script"))[G]=function(){$.removeChild(this),nt(et)}}:J=function(et){setTimeout(rt(et),0)}),x.exports={set:w,clear:D}},function(x){var E=TypeError;x.exports=function(r,f){if(r<f)throw new E("Not enough arguments");return r}},function(x,E,r){var f=r(28);x.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(f)},function(x,E,r){var f=r(4),d=r(345),h=r(84),p=r(341).set,y=r(346),T=r(343),$=r(347),A=r(348),b=r(182),R=f.MutationObserver||f.WebKitMutationObserver,O=f.document,C=f.process,w=f.Promise,D=d("queueMicrotask"),L,F,z,B,U;if(!D){var V=new y,j=function(){var G,W;for(b&&(G=C.domain)&&G.exit();W=V.get();)try{W()}catch(J){throw V.head&&L(),J}G&&G.enter()};!T&&!b&&!A&&R&&O?(F=!0,z=O.createTextNode(""),new R(j).observe(z,{characterData:!0}),L=function(){z.data=F=!F}):!$&&w&&w.resolve?(B=w.resolve(void 0),B.constructor=w,U=h(B.then,B),L=function(){U(j)}):b?L=function(){C.nextTick(j)}:(p=h(p,f),L=function(){p(j)}),D=function(G){V.head||L(),V.add(G)}}x.exports=D},function(x,E,r){var f=r(4),d=r(6),h=Object.getOwnPropertyDescriptor;x.exports=function(p){if(!d)return f[p];var y=h(f,p);return y&&y.value}},function(x){var E=function(){this.head=null,this.tail=null};E.prototype={add:function(r){var f={item:r,next:null},d=this.tail;d?d.next=f:this.head=f,this.tail=f},get:function(){var r=this.head;if(r){var f=this.head=r.next;return f===null&&(this.tail=null),r.item}}},x.exports=E},function(x,E,r){var f=r(28);x.exports=/ipad|iphone|ipod/i.test(f)&&typeof Pebble!="undefined"},function(x,E,r){var f=r(28);x.exports=/web0s(?!.*chrome)/i.test(f)},function(x){x.exports=function(E,r){try{arguments.length===1?console.error(E):console.error(E,r)}catch(f){}}},function(x){x.exports=function(E){try{return{error:!1,value:E()}}catch(r){return{error:!0,value:r}}}},function(x,E,r){var f=r(4);x.exports=f.Promise},function(x,E,r){var f=r(4),d=r(351),h=r(21),p=r(67),y=r(50),T=r(33),$=r(183),A=r(36),b=r(27),R=d&&d.prototype,O=T("species"),C=!1,w=h(f.PromiseRejectionEvent),D=p("Promise",function(){var L=y(d),F=L!==String(d);if(!F&&b===66||A&&!(R.catch&&R.finally))return!0;if(!b||b<51||!/native code/.test(L)){var z=new d(function(V){V(1)}),B=function(V){V(function(){},function(){})},U=z.constructor={};if(U[O]=B,C=z.then(function(){})instanceof B,!C)return!0}return!F&&($==="BROWSER"||$==="DENO")&&!w});x.exports={CONSTRUCTOR:D,REJECTION_EVENT:w,SUBCLASSING:C}},function(x,E,r){var f=r(30),d=TypeError,h=function(p){var y,T;this.promise=new p(function($,A){if(y!==void 0||T!==void 0)throw new d("Bad Promise constructor");y=$,T=A}),this.resolve=f(y),this.reject=f(T)};x.exports.f=function(p){return new h(p)}},function(x,E,r){var f=r(3),d=r(8),h=r(30),p=r(353),y=r(350),T=r(130),$=r(355);f({target:"Promise",stat:!0,forced:$},{all:function(b){var R=this,O=p.f(R),C=O.resolve,w=O.reject,D=y(function(){var L=h(R.resolve),F=[],z=0,B=1;T(b,function(U){var V=z++,j=!1;B++,d(L,R,U).then(function(G){j||(j=!0,F[V]=G,--B||C(F))},w)}),--B||C(F)});return D.error&&w(D.value),O.promise}})},function(x,E,r){var f=r(351),d=r(164),h=r(352).CONSTRUCTOR;x.exports=h||!d(function(p){f.all(p).then(void 0,function(){})})},function(x,E,r){var f=r(3),d=r(36),h=r(352).CONSTRUCTOR,p=r(351),y=r(23),T=r(21),$=r(47),A=p&&p.prototype;if(f({target:"Promise",proto:!0,forced:h,real:!0},{catch:function(R){return this.then(void 0,R)}}),!d&&T(p)){var b=y("Promise").prototype.catch;A.catch!==b&&$(A,"catch",b,{unsafe:!0})}},function(x,E,r){var f=r(3),d=r(8),h=r(30),p=r(353),y=r(350),T=r(130),$=r(355);f({target:"Promise",stat:!0,forced:$},{race:function(b){var R=this,O=p.f(R),C=O.reject,w=y(function(){var D=h(R.resolve);T(b,function(L){d(D,R,L).then(O.resolve,C)})});return w.error&&C(w.value),O.promise}})},function(x,E,r){var f=r(3),d=r(353),h=r(352).CONSTRUCTOR;f({target:"Promise",stat:!0,forced:h},{reject:function(y){var T=d.f(this),$=T.reject;return $(y),T.promise}})},function(x,E,r){var f=r(3),d=r(23),h=r(36),p=r(351),y=r(352).CONSTRUCTOR,T=r(360),$=d("Promise"),A=h&&!y;f({target:"Promise",stat:!0,forced:h||y},{resolve:function(R){return T(A&&this===$?p:this,R)}})},function(x,E,r){var f=r(46),d=r(20),h=r(353);x.exports=function(p,y){if(f(p),d(y)&&y.constructor===p)return y;var T=h.f(p),$=T.resolve;return $(y),T.promise}},function(x,E,r){var f=r(3),d=r(8),h=r(30),p=r(353),y=r(350),T=r(130),$=r(355);f({target:"Promise",stat:!0,forced:$},{allSettled:function(b){var R=this,O=p.f(R),C=O.resolve,w=O.reject,D=y(function(){var L=h(R.resolve),F=[],z=0,B=1;T(b,function(U){var V=z++,j=!1;B++,d(L,R,U).then(function(G){j||(j=!0,F[V]={status:"fulfilled",value:G},--B||C(F))},function(G){j||(j=!0,F[V]={status:"rejected",reason:G},--B||C(F))})}),--B||C(F)});return D.error&&w(D.value),O.promise}})},function(x,E,r){var f=r(3),d=r(8),h=r(30),p=r(23),y=r(353),T=r(350),$=r(130),A=r(355),b="No one promise resolved";f({target:"Promise",stat:!0,forced:A},{any:function(O){var C=this,w=p("AggregateError"),D=y.f(C),L=D.resolve,F=D.reject,z=T(function(){var B=h(C.resolve),U=[],V=0,j=1,G=!1;$(O,function(W){var J=V++,k=!1;j++,d(B,C,W).then(function(Q){k||G||(G=!0,L(Q))},function(Q){k||G||(k=!0,U[J]=Q,--j||F(new w(U,b)))})}),--j||F(new w(U,b))});return z.error&&F(z.value),D.promise}})},function(x,E,r){var f=r(3),d=r(36),h=r(351),p=r(7),y=r(23),T=r(21),$=r(220),A=r(360),b=r(47),R=h&&h.prototype,O=!!h&&p(function(){R.finally.call({then:function(){}},function(){})});if(f({target:"Promise",proto:!0,real:!0,forced:O},{finally:function(w){var D=$(this,y("Promise")),L=T(w);return this.then(L?function(F){return A(D,w()).then(function(){return F})}:w,L?function(F){return A(D,w()).then(function(){throw F})}:w)}}),!d&&T(h)){var C=y("Promise").prototype.finally;R.finally!==C&&b(R,"finally",C,{unsafe:!0})}},function(x,E,r){var f=r(3),d=r(353);f({target:"Promise",stat:!0},{withResolvers:function(){var p=d.f(this);return{promise:p.promise,resolve:p.resolve,reject:p.reject}}})},function(x,E,r){var f=r(3),d=r(94),h=r(30),p=r(46),y=r(7),T=!y(function(){Reflect.apply(function(){})});f({target:"Reflect",stat:!0,forced:T},{apply:function(A,b,R){return d(h(A),b,p(R))}})},function(x,E,r){var f=r(3),d=r(23),h=r(94),p=r(248),y=r(221),T=r(46),$=r(20),A=r(71),b=r(7),R=d("Reflect","construct"),O=Object.prototype,C=[].push,w=b(function(){function F(){}return!(R(function(){},[],F)instanceof F)}),D=!b(function(){R(function(){})}),L=w||D;f({target:"Reflect",stat:!0,forced:L,sham:L},{construct:function(z,B){y(z),T(B);var U=arguments.length<3?z:y(arguments[2]);if(D&&!w)return R(z,B,U);if(z===U){switch(B.length){case 0:return new z;case 1:return new z(B[0]);case 2:return new z(B[0],B[1]);case 3:return new z(B[0],B[1],B[2]);case 4:return new z(B[0],B[1],B[2],B[3])}var V=[null];return h(C,V,B),new(h(p,z,V))}var j=U.prototype,G=A($(j)?j:O),W=h(z,G,B);return $(W)?W:G}})},function(x,E,r){var f=r(3),d=r(6),h=r(46),p=r(18),y=r(44),T=r(7),$=T(function(){Reflect.defineProperty(y.f({},1,{value:1}),1,{value:2})});f({target:"Reflect",stat:!0,forced:$,sham:!d},{defineProperty:function(b,R,O){h(b);var C=p(R);h(O);try{return y.f(b,C,O),!0}catch(w){return!1}}})},function(x,E,r){var f=r(3),d=r(46),h=r(5).f;f({target:"Reflect",stat:!0},{deleteProperty:function(y,T){var $=h(d(y),T);return $&&!$.configurable?!1:delete y[T]}})},function(x,E,r){var f=r(3),d=r(8),h=r(20),p=r(46),y=r(370),T=r(5),$=r(128);function A(b,R){var O=arguments.length<3?b:arguments[2],C,w;if(p(b)===O)return b[R];if(C=T.f(b,R),C)return y(C)?C.value:C.get===void 0?void 0:d(C.get,O);if(h(w=$(b)))return A(w,R,O)}f({target:"Reflect",stat:!0},{get:A})},function(x,E,r){var f=r(38);x.exports=function(d){return d!==void 0&&(f(d,"value")||f(d,"writable"))}},function(x,E,r){var f=r(3),d=r(6),h=r(46),p=r(5);f({target:"Reflect",stat:!0,sham:!d},{getOwnPropertyDescriptor:function(T,$){return p.f(h(T),$)}})},function(x,E,r){var f=r(3),d=r(46),h=r(128),p=r(129);f({target:"Reflect",stat:!0,sham:!p},{getPrototypeOf:function(T){return h(d(T))}})},function(x,E,r){var f=r(3);f({target:"Reflect",stat:!0},{has:function(h,p){return p in h}})},function(x,E,r){var f=r(3),d=r(46),h=r(257);f({target:"Reflect",stat:!0},{isExtensible:function(y){return d(y),h(y)}})},function(x,E,r){var f=r(3),d=r(56);f({target:"Reflect",stat:!0},{ownKeys:d})},function(x,E,r){var f=r(3),d=r(23),h=r(46),p=r(259);f({target:"Reflect",stat:!0,sham:!p},{preventExtensions:function(T){h(T);try{var $=d("Object","preventExtensions");return $&&$(T),!0}catch(A){return!1}}})},function(x,E,r){var f=r(3),d=r(8),h=r(46),p=r(20),y=r(370),T=r(7),$=r(44),A=r(5),b=r(128),R=r(11);function O(w,D,L){var F=arguments.length<4?w:arguments[3],z=A.f(h(w),D),B,U,V;if(!z){if(p(U=b(w)))return O(U,D,L,F);z=R(0)}if(y(z)){if(z.writable===!1||!p(F))return!1;if(B=A.f(F,D)){if(B.get||B.set||B.writable===!1)return!1;B.value=L,$.f(F,D,B)}else $.f(F,D,R(0,L))}else{if(V=z.set,V===void 0)return!1;d(V,F,L)}return!0}var C=T(function(){var w=function(){},D=$.f(new w,"a",{configurable:!0});return Reflect.set(w.prototype,"a",1,D)!==!1});f({target:"Reflect",stat:!0,forced:C},{set:O})},function(x,E,r){var f=r(3),d=r(46),h=r(115),p=r(113);p&&f({target:"Reflect",stat:!0},{setPrototypeOf:function(T,$){d(T),h($);try{return p(T,$),!0}catch(A){return!1}}})},function(x,E,r){var f=r(3),d=r(4),h=r(82);f({global:!0},{Reflect:{}}),h(d.Reflect,"Reflect",!0)},function(x,E,r){var f=r(6),d=r(4),h=r(14),p=r(67),y=r(118),T=r(43),$=r(71),A=r(57).f,b=r(24),R=r(381),O=r(68),C=r(382),w=r(384),D=r(117),L=r(47),F=r(7),z=r(38),B=r(51).enforce,U=r(194),V=r(33),j=r(385),G=r(386),W=V("match"),J=d.RegExp,k=J.prototype,Q=d.SyntaxError,nt=h(k.exec),rt=h("".charAt),q=h("".replace),tt=h("".indexOf),et=h("".slice),ot=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,pt=/a/g,gt=/a/g,xt=new J(pt)!==pt,mt=w.MISSED_STICKY,zt=w.UNSUPPORTED_Y,Lt=f&&(!xt||mt||j||G||F(function(){return gt[W]=!1,J(pt)!==pt||J(gt)===gt||String(J(pt,"i"))!=="/a/i"})),Xt=function(ie){for(var Mt=ie.length,Yt=0,re="",le=!1,ne;Yt<=Mt;Yt++){if(ne=rt(ie,Yt),ne==="\\"){re+=ne+rt(ie,++Yt);continue}!le&&ne==="."?re+="[\\s\\S]":(ne==="["?le=!0:ne==="]"&&(le=!1),re+=ne)}return re},Qt=function(ie){for(var Mt=ie.length,Yt=0,re="",le=[],ne=$(null),fe=!1,Ie=!1,Pe=0,$e="",ce;Yt<=Mt;Yt++){if(ce=rt(ie,Yt),ce==="\\")ce+=rt(ie,++Yt);else if(ce==="]")fe=!1;else if(!fe)switch(!0){case ce==="[":fe=!0;break;case ce==="(":if(re+=ce,et(ie,Yt+1,Yt+3)==="?:")continue;nt(ot,et(ie,Yt+1))&&(Yt+=2,Ie=!0),Pe++;continue;case(ce===">"&&Ie):if($e===""||z(ne,$e))throw new Q("Invalid capture group name");ne[$e]=!0,le[le.length]=[$e,Pe],Ie=!1,$e="";continue}Ie?$e+=ce:re+=ce}return[re,le]};if(p("RegExp",Lt)){for(var _t=function(Mt,Yt){var re=b(k,this),le=R(Mt),ne=Yt===void 0,fe=[],Ie=Mt,Pe,$e,ce,Ae,Te,de;if(!re&&le&&ne&&Mt.constructor===_t)return Mt;if((le||b(k,Mt))&&(Mt=Mt.source,ne&&(Yt=C(Ie))),Mt=Mt===void 0?"":O(Mt),Yt=Yt===void 0?"":O(Yt),Ie=Mt,j&&"dotAll"in pt&&($e=!!Yt&&tt(Yt,"s")>-1,$e&&(Yt=q(Yt,/s/g,""))),Pe=Yt,mt&&"sticky"in pt&&(ce=!!Yt&&tt(Yt,"y")>-1,ce&&zt&&(Yt=q(Yt,/y/g,""))),G&&(Ae=Qt(Mt),Mt=Ae[0],fe=Ae[1]),Te=y(J(Mt,Yt),re?this:k,_t),($e||ce||fe.length)&&(de=B(Te),$e&&(de.dotAll=!0,de.raw=_t(Xt(Mt),Pe)),ce&&(de.sticky=!0),fe.length&&(de.groups=fe)),Mt!==Ie)try{T(Te,"source",Ie===""?"(?:)":Ie)}catch(Et){}return Te},me=A(J),ge=0;me.length>ge;)D(_t,J,me[ge++]);k.constructor=_t,_t.prototype=k,L(d,"RegExp",_t,{constructor:!0})}U("RegExp")},function(x,E,r){var f=r(20),d=r(15),h=r(33),p=h("match");x.exports=function(y){var T;return f(y)&&((T=y[p])!==void 0?!!T:d(y)==="RegExp")}},function(x,E,r){var f=r(8),d=r(38),h=r(24),p=r(383),y=RegExp.prototype;x.exports=function(T){var $=T.flags;return $===void 0&&!("flags"in y)&&!d(T,"flags")&&h(y,T)?f(p,T):$}},function(x,E,r){var f=r(46);x.exports=function(){var d=f(this),h="";return d.hasIndices&&(h+="d"),d.global&&(h+="g"),d.ignoreCase&&(h+="i"),d.multiline&&(h+="m"),d.dotAll&&(h+="s"),d.unicode&&(h+="u"),d.unicodeSets&&(h+="v"),d.sticky&&(h+="y"),h}},function(x,E,r){var f=r(7),d=r(4),h=d.RegExp,p=f(function(){var $=h("a","y");return $.lastIndex=2,$.exec("abcd")!==null}),y=p||f(function(){return!h("a","y").sticky}),T=p||f(function(){var $=h("^r","gy");return $.lastIndex=2,$.exec("str")!==null});x.exports={BROKEN_CARET:T,MISSED_STICKY:y,UNSUPPORTED_Y:p}},function(x,E,r){var f=r(7),d=r(4),h=d.RegExp;x.exports=f(function(){var p=h(".","s");return!(p.dotAll&&p.test(`
|
|
28
|
-
`)&&p.flags==="s")})},function(x,E,r){var f=r(7),d=r(4),h=d.RegExp;x.exports=f(function(){var p=h("(?<a>b)","g");return p.exec("b").groups.a!=="b"||"b".replace(p,"$<a>c")!=="bc"})},function(x,E,r){var f=r(6),d=r(385),h=r(15),p=r(77),y=r(51).get,T=RegExp.prototype,$=TypeError;f&&d&&p(T,"dotAll",{configurable:!0,get:function(){if(this!==T){if(h(this)==="RegExp")return!!y(this).dotAll;throw new $("Incompatible receiver, RegExp required")}}})},function(x,E,r){var f=r(3),d=r(389);f({target:"RegExp",proto:!0,forced:/./.exec!==d},{exec:d})},function(x,E,r){var f=r(8),d=r(14),h=r(68),p=r(383),y=r(384),T=r(34),$=r(71),A=r(51).get,b=r(385),R=r(386),O=T("native-string-replace",String.prototype.replace),
|
|
29
|
-
`)&&(Lt="(?: "+Lt+")",Qt=" "+Qt,Xt++),q=new RegExp("^(?:"+Lt+")",zt)),V&&(q=new RegExp("^"+Lt+"$(?!\\s)",zt)),B&&(tt=J.lastIndex),et=f(C,mt?q:J,Qt),mt?et?(et.input=z(et.input,Xt),et[0]=z(et[0],Xt),et.index=J.lastIndex,J.lastIndex+=et[0].length):J.lastIndex=0:B&&et&&(J.lastIndex=J.global?et.index+et[0].length:tt),V&&et&&et.length>1&&f(O,et[0],q,function(){for(ot=1;ot<arguments.length-2;ot++)arguments[ot]===void 0&&(et[ot]=void 0)}),et&&xt)for(et.groups=pt=$(null),ot=0;ot<xt.length;ot++)gt=xt[ot],pt[gt[0]]=et[gt[1]];return et}),x.exports=w},function(x,E,r){var f=r(4),d=r(6),h=r(77),p=r(383),y=r(7),T=f.RegExp,$=T.prototype,A=d&&y(function(){var b=!0;try{T(".","d")}catch(z){b=!1}var R={},O="",C=b?"dgimsy":"gimsy",w=function(z,B){Object.defineProperty(R,z,{get:function(){return O+=B,!0}})},D={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};b&&(D.hasIndices="d");for(var L in D)w(L,D[L]);var F=Object.getOwnPropertyDescriptor($,"flags").get.call(R);return F!==C||O!==C});A&&h($,"flags",{configurable:!0,get:p})},function(x,E,r){var f=r(6),d=r(384).MISSED_STICKY,h=r(15),p=r(77),y=r(51).get,T=RegExp.prototype,$=TypeError;f&&d&&p(T,"sticky",{configurable:!0,get:function(){if(this!==T){if(h(this)==="RegExp")return!!y(this).sticky;throw new $("Incompatible receiver, RegExp required")}}})},function(x,E,r){r(388);var f=r(3),d=r(8),h=r(21),p=r(46),y=r(68),T=function(){var A=!1,b=/[ac]/;return b.exec=function(){return A=!0,/./.exec.apply(this,arguments)},b.test("abc")===!0&&A}(),$=/./.test;f({target:"RegExp",proto:!0,forced:!T},{test:function(A){var b=p(this),R=y(A),O=b.exec;if(!h(O))return d($,b,R);var C=d(O,b,R);return C===null?!1:(p(C),!0)}})},function(x,E,r){var f=r(49).PROPER,d=r(47),h=r(46),p=r(68),y=r(7),T=r(382),$="toString",A=RegExp.prototype,b=A[$],R=y(function(){return b.call({source:"a",flags:"b"})!=="/a/b"}),O=f&&b.name!==$;(R||O)&&d(A,$,function(){var w=h(this),D=p(w.source),L=p(T(w));return"/"+D+"/"+L},{unsafe:!0})},function(x,E,r){r(395)},function(x,E,r){var f=r(255),d=r(260);f("Set",function(h){return function(){return h(this,arguments.length?arguments[0]:void 0)}},d)},function(x,E,r){var f=r(3),d=r(397),h=r(406);f({target:"Set",proto:!0,real:!0,forced:!h("difference")},{difference:d})},function(x,E,r){var f=r(398),d=r(399),h=r(400),p=r(403),y=r(404),T=r(401),$=r(402),A=d.has,b=d.remove;x.exports=function(O){var C=f(this),w=y(O),D=h(C);return p(C)<=w.size?T(C,function(L){w.includes(L)&&b(D,L)}):$(w.getIterator(),function(L){A(C,L)&&b(D,L)}),D}},function(x,E,r){var f=r(399).has;x.exports=function(d){return f(d),d}},function(x,E,r){var f=r(14),d=Set.prototype;x.exports={Set,add:f(d.add),has:f(d.has),remove:f(d.delete),proto:d}},function(x,E,r){var f=r(399),d=r(401),h=f.Set,p=f.add;x.exports=function(y){var T=new h;return d(y,function($){p(T,$)}),T}},function(x,E,r){var f=r(14),d=r(402),h=r(399),p=h.Set,y=h.proto,T=f(y.forEach),$=f(y.keys),A=$(new p).next;x.exports=function(b,R,O){return O?d({iterator:$(b),next:A},R):T(b,R)}},function(x,E,r){var f=r(8);x.exports=function(d,h,p){for(var y=p?d:d.iterator,T=d.next,$,A;!($=f(T,y)).done;)if(A=h($.value),A!==void 0)return A}},function(x,E,r){var f=r(114),d=r(399);x.exports=f(d.proto,"size","get")||function(h){return h.size}},function(x,E,r){var f=r(30),d=r(46),h=r(8),p=r(61),y=r(405),T="Invalid size",$=RangeError,A=TypeError,b=Math.max,R=function(O,C){this.set=O,this.size=b(C,0),this.has=f(O.has),this.keys=f(O.keys)};R.prototype={getIterator:function(){return y(d(h(this.keys,this.set)))},includes:function(O){return h(this.has,this.set,O)}},x.exports=function(O){d(O);var C=+O.size;if(C!==C)throw new A(T);var w=p(C);if(w<0)throw new $(T);return new R(O,w)}},function(x){x.exports=function(E){return{iterator:E,next:E.next,done:!1}}},function(x,E,r){var f=r(23),d=function(h){return{size:h,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};x.exports=function(h){var p=f("Set");try{new p()[h](d(0));try{return new p()[h](d(-1)),!1}catch(y){return!0}}catch(y){return!1}}},function(x,E,r){var f=r(3),d=r(7),h=r(408),p=r(406),y=!p("intersection")||d(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});f({target:"Set",proto:!0,real:!0,forced:y},{intersection:h})},function(x,E,r){var f=r(398),d=r(399),h=r(403),p=r(404),y=r(401),T=r(402),$=d.Set,A=d.add,b=d.has;x.exports=function(O){var C=f(this),w=p(O),D=new $;return h(C)>w.size?T(w.getIterator(),function(L){b(C,L)&&A(D,L)}):y(C,function(L){w.includes(L)&&A(D,L)}),D}},function(x,E,r){var f=r(3),d=r(410),h=r(406);f({target:"Set",proto:!0,real:!0,forced:!h("isDisjointFrom")},{isDisjointFrom:d})},function(x,E,r){var f=r(398),d=r(399).has,h=r(403),p=r(404),y=r(401),T=r(402),$=r(135);x.exports=function(b){var R=f(this),O=p(b);if(h(R)<=O.size)return y(R,function(w){if(O.includes(w))return!1},!0)!==!1;var C=O.getIterator();return T(C,function(w){if(d(R,w))return $(C,"normal",!1)})!==!1}},function(x,E,r){var f=r(3),d=r(412),h=r(406);f({target:"Set",proto:!0,real:!0,forced:!h("isSubsetOf")},{isSubsetOf:d})},function(x,E,r){var f=r(398),d=r(403),h=r(401),p=r(404);x.exports=function(T){var $=f(this),A=p(T);return d($)>A.size?!1:h($,function(b){if(!A.includes(b))return!1},!0)!==!1}},function(x,E,r){var f=r(3),d=r(414),h=r(406);f({target:"Set",proto:!0,real:!0,forced:!h("isSupersetOf")},{isSupersetOf:d})},function(x,E,r){var f=r(398),d=r(399).has,h=r(403),p=r(404),y=r(402),T=r(135);x.exports=function(A){var b=f(this),R=p(A);if(h(b)<R.size)return!1;var O=R.getIterator();return y(O,function(C){if(!d(b,C))return T(O,"normal",!1)})!==!1}},function(x,E,r){var f=r(3),d=r(416),h=r(406);f({target:"Set",proto:!0,real:!0,forced:!h("symmetricDifference")},{symmetricDifference:d})},function(x,E,r){var f=r(398),d=r(399),h=r(400),p=r(404),y=r(402),T=d.add,$=d.has,A=d.remove;x.exports=function(R){var O=f(this),C=p(R).getIterator(),w=h(O);return y(C,function(D){$(O,D)?A(w,D):T(w,D)}),w}},function(x,E,r){var f=r(3),d=r(418),h=r(406);f({target:"Set",proto:!0,real:!0,forced:!h("union")},{union:d})},function(x,E,r){var f=r(398),d=r(399).add,h=r(400),p=r(404),y=r(402);x.exports=function($){var A=f(this),b=p($).getIterator(),R=h(A);return y(b,function(O){d(R,O)}),R}},function(x,E,r){var f=r(3),d=r(14),h=r(16),p=r(61),y=r(68),T=r(7),$=d("".charAt),A=T(function(){return"\u{20BB7}".at(-2)!=="\uD842"});f({target:"String",proto:!0,forced:A},{at:function(R){var O=y(h(this)),C=O.length,w=p(R),D=w>=0?w:C+w;return D<0||D>=C?void 0:$(O,D)}})},function(x,E,r){var f=r(3),d=r(421).codeAt;f({target:"String",proto:!0},{codePointAt:function(p){return d(this,p)}})},function(x,E,r){var f=r(14),d=r(61),h=r(68),p=r(16),y=f("".charAt),T=f("".charCodeAt),$=f("".slice),A=function(b){return function(R,O){var C=h(p(R)),w=d(O),D=C.length,L,F;return w<0||w>=D?b?"":void 0:(L=T(C,w),L<55296||L>56319||w+1===D||(F=T(C,w+1))<56320||F>57343?b?y(C,w):L:b?$(C,w,w+2):(L-55296<<10)+(F-56320)+65536)}};x.exports={codeAt:A(!1),charAt:A(!0)}},function(x,E,r){var f=r(3),d=r(85),h=r(5).f,p=r(64),y=r(68),T=r(423),$=r(16),A=r(424),b=r(36),R=d("".slice),O=Math.min,C=A("endsWith"),w=!b&&!C&&!!function(){var D=h(String.prototype,"endsWith");return D&&!D.writable}();f({target:"String",proto:!0,forced:!w&&!C},{endsWith:function(L){var F=y($(this));T(L);var z=arguments.length>1?arguments[1]:void 0,B=F.length,U=z===void 0?B:O(p(z),B),V=y(L);return R(F,U-V.length,U)===V}})},function(x,E,r){var f=r(381),d=TypeError;x.exports=function(h){if(f(h))throw new d("The method doesn't accept regular expressions");return h}},function(x,E,r){var f=r(33),d=f("match");x.exports=function(h){var p=/./;try{"/./"[h](p)}catch(y){try{return p[d]=!1,"/./"[h](p)}catch(T){}}return!1}},function(x,E,r){var f=r(3),d=r(14),h=r(60),p=RangeError,y=String.fromCharCode,T=String.fromCodePoint,$=d([].join),A=!!T&&T.length!==1;f({target:"String",stat:!0,arity:1,forced:A},{fromCodePoint:function(R){for(var O=[],C=arguments.length,w=0,D;C>w;){if(D=+arguments[w++],h(D,1114111)!==D)throw new p(D+" is not a valid code point");O[w]=D<65536?y(D):y(((D-=65536)>>10)+55296,D%1024+56320)}return $(O,"")}})},function(x,E,r){var f=r(3),d=r(14),h=r(423),p=r(16),y=r(68),T=r(424),$=d("".indexOf);f({target:"String",proto:!0,forced:!T("includes")},{includes:function(b){return!!~$(y(p(this)),y(h(b)),arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var f=r(3),d=r(14),h=r(16),p=r(68),y=d("".charCodeAt);f({target:"String",proto:!0},{isWellFormed:function(){for(var $=p(h(this)),A=$.length,b=0;b<A;b++){var R=y($,b);if((R&63488)===55296&&(R>=56320||++b>=A||(y($,b)&64512)!==56320))return!1}return!0}})},function(x,E,r){var f=r(421).charAt,d=r(68),h=r(51),p=r(169),y=r(172),T="String Iterator",$=h.set,A=h.getterFor(T);p(String,"String",function(b){$(this,{type:T,string:d(b),index:0})},function(){var R=A(this),O=R.string,C=R.index,w;return C>=O.length?y(void 0,!0):(w=f(O,C),R.index+=w.length,y(w,!1))})},function(x,E,r){var f=r(8),d=r(430),h=r(46),p=r(17),y=r(64),T=r(68),$=r(16),A=r(29),b=r(431),R=r(432);d("match",function(O,C,w){return[function(L){var F=$(this),z=p(L)?void 0:A(L,O);return z?f(z,L,F):new RegExp(L)[O](T(F))},function(D){var L=h(this),F=T(D),z=w(C,L,F);if(z.done)return z.value;if(!L.global)return R(L,F);var B=L.unicode;L.lastIndex=0;for(var U=[],V=0,j;(j=R(L,F))!==null;){var G=T(j[0]);U[V]=G,G===""&&(L.lastIndex=b(F,y(L.lastIndex),B)),V++}return V===0?null:U}]})},function(x,E,r){r(388);var f=r(8),d=r(47),h=r(389),p=r(7),y=r(33),T=r(43),$=y("species"),A=RegExp.prototype;x.exports=function(b,R,O,C){var w=y(b),D=!p(function(){var B={};return B[w]=function(){return 7},""[b](B)!==7}),L=D&&!p(function(){var B=!1,U=/a/;return b==="split"&&(U={},U.constructor={},U.constructor[$]=function(){return U},U.flags="",U[w]=/./[w]),U.exec=function(){return B=!0,null},U[w](""),!B});if(!D||!L||O){var F=/./[w],z=R(w,""[b],function(B,U,V,j,G){var W=U.exec;return W===h||W===A.exec?D&&!G?{done:!0,value:f(F,U,V,j)}:{done:!0,value:f(B,V,U,j)}:{done:!1}});d(String.prototype,b,z[0]),d(A,w,z[1])}C&&T(A[w],"sham",!0)}},function(x,E,r){var f=r(421).charAt;x.exports=function(d,h,p){return h+(p?f(d,h).length:1)}},function(x,E,r){var f=r(8),d=r(46),h=r(21),p=r(15),y=r(389),T=TypeError;x.exports=function($,A){var b=$.exec;if(h(b)){var R=f(b,$,A);return R!==null&&d(R),R}if(p($)==="RegExp")return f(y,$,A);throw new T("RegExp#exec called on incompatible receiver")}},function(x,E,r){var f=r(3),d=r(8),h=r(85),p=r(170),y=r(172),T=r(16),$=r(64),A=r(68),b=r(46),R=r(17),O=r(15),C=r(381),w=r(382),D=r(29),L=r(47),F=r(7),z=r(33),B=r(220),U=r(431),V=r(432),j=r(51),G=r(36),W=z("matchAll"),J="RegExp String",k=J+" Iterator",Q=j.set,nt=j.getterFor(k),rt=RegExp.prototype,q=TypeError,tt=h("".indexOf),et=h("".matchAll),ot=!!et&&!F(function(){et("a",/./)}),pt=p(function(mt,zt,Lt,Xt){Q(this,{type:k,regexp:mt,string:zt,global:Lt,unicode:Xt,done:!1})},J,function(){var mt=nt(this);if(mt.done)return y(void 0,!0);var zt=mt.regexp,Lt=mt.string,Xt=V(zt,Lt);return Xt===null?(mt.done=!0,y(void 0,!0)):mt.global?(A(Xt[0])===""&&(zt.lastIndex=U(Lt,$(zt.lastIndex),mt.unicode)),y(Xt,!1)):(mt.done=!0,y(Xt,!1))}),gt=function(xt){var mt=b(this),zt=A(xt),Lt=B(mt,RegExp),Xt=A(w(mt)),Qt,_t,me;return Qt=new Lt(Lt===RegExp?mt.source:mt,Xt),_t=!!~tt(Xt,"g"),me=!!~tt(Xt,"u"),Qt.lastIndex=$(mt.lastIndex),new pt(Qt,zt,_t,me)};f({target:"String",proto:!0,forced:ot},{matchAll:function(mt){var zt=T(this),Lt,Xt,Qt,_t;if(R(mt)){if(ot)return et(zt,mt)}else{if(C(mt)&&(Lt=A(T(w(mt))),!~tt(Lt,"g")))throw new q("`.matchAll` does not allow non-global regexes");if(ot)return et(zt,mt);if(Qt=D(mt,W),Qt===void 0&&G&&O(mt)==="RegExp"&&(Qt=gt),Qt)return d(Qt,mt,zt)}return Xt=A(zt),_t=new RegExp(mt,"g"),G?d(gt,_t,Xt):_t[W](Xt)}}),G||W in rt||L(rt,W,gt)},function(x,E,r){var f=r(3),d=r(240).end,h=r(435);f({target:"String",proto:!0,forced:h},{padEnd:function(y){return d(this,y,arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var f=r(28);x.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(f)},function(x,E,r){var f=r(3),d=r(240).start,h=r(435);f({target:"String",proto:!0,forced:h},{padStart:function(y){return d(this,y,arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var f=r(3),d=r(14),h=r(12),p=r(39),y=r(68),T=r(63),$=d([].push),A=d([].join);f({target:"String",stat:!0},{raw:function(R){var O=h(p(R).raw),C=T(O);if(!C)return"";for(var w=arguments.length,D=[],L=0;;){if($(D,y(O[L++])),L===C)return A(D,"");L<w&&$(D,y(arguments[L]))}}})},function(x,E,r){var f=r(3),d=r(241);f({target:"String",proto:!0},{repeat:d})},function(x,E,r){var f=r(94),d=r(8),h=r(14),p=r(430),y=r(7),T=r(46),$=r(21),A=r(17),b=r(61),R=r(64),O=r(68),C=r(16),w=r(431),D=r(29),L=r(440),F=r(432),z=r(33),B=z("replace"),U=Math.max,V=Math.min,j=h([].concat),G=h([].push),W=h("".indexOf),J=h("".slice),k=function(q){return q===void 0?q:String(q)},Q=function(){return"a".replace(/./,"$0")==="$0"}(),nt=function(){return/./[B]?/./[B]("a","$0")==="":!1}(),rt=!y(function(){var q=/./;return q.exec=function(){var tt=[];return tt.groups={a:"7"},tt},"".replace(q,"$<a>")!=="7"});p("replace",function(q,tt,et){var ot=nt?"$":"$0";return[function(gt,xt){var mt=C(this),zt=A(gt)?void 0:D(gt,B);return zt?d(zt,gt,mt,xt):d(tt,O(mt),gt,xt)},function(pt,gt){var xt=T(this),mt=O(pt);if(typeof gt=="string"&&W(gt,ot)===-1&&W(gt,"$<")===-1){var zt=et(tt,xt,mt,gt);if(zt.done)return zt.value}var Lt=$(gt);Lt||(gt=O(gt));var Xt=xt.global,Qt;Xt&&(Qt=xt.unicode,xt.lastIndex=0);for(var _t=[],me;me=F(xt,mt),!(me===null||(G(_t,me),!Xt));){var ge=O(me[0]);ge===""&&(xt.lastIndex=w(mt,R(xt.lastIndex),Qt))}for(var ie="",Mt=0,Yt=0;Yt<_t.length;Yt++){me=_t[Yt];for(var re=O(me[0]),le=U(V(b(me.index),mt.length),0),ne=[],fe,Ie=1;Ie<me.length;Ie++)G(ne,k(me[Ie]));var Pe=me.groups;if(Lt){var $e=j([re],ne,le,mt);Pe!==void 0&&G($e,Pe),fe=O(f(gt,void 0,$e))}else fe=L(re,mt,le,ne,Pe,gt);le>=Mt&&(ie+=J(mt,Mt,le)+fe,Mt=le+re.length)}return ie+J(mt,Mt)}]},!rt||!Q||nt)},function(x,E,r){var f=r(14),d=r(39),h=Math.floor,p=f("".charAt),y=f("".replace),T=f("".slice),$=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,A=/\$([$&'`]|\d{1,2})/g;x.exports=function(b,R,O,C,w,D){var L=O+b.length,F=C.length,z=A;return w!==void 0&&(w=d(w),z=$),y(D,z,function(B,U){var V;switch(p(U,0)){case"$":return"$";case"&":return b;case"`":return T(R,0,O);case"'":return T(R,L);case"<":V=w[T(U,1,-1)];break;default:var j=+U;if(j===0)return B;if(j>F){var G=h(j/10);return G===0?B:G<=F?C[G-1]===void 0?p(U,1):C[G-1]+p(U,1):B}V=C[j-1]}return V===void 0?"":V})}},function(x,E,r){var f=r(3),d=r(8),h=r(14),p=r(16),y=r(21),T=r(17),$=r(381),A=r(68),b=r(29),R=r(382),O=r(440),C=r(33),w=r(36),D=C("replace"),L=TypeError,F=h("".indexOf),z=h("".replace),B=h("".slice),U=Math.max;f({target:"String",proto:!0},{replaceAll:function(j,G){var W=p(this),J,k,Q,nt,rt,q,tt,et,ot,pt,gt=0,xt="";if(!T(j)){if(J=$(j),J&&(k=A(p(R(j))),!~F(k,"g")))throw new L("`.replaceAll` does not allow non-global regexes");if(Q=b(j,D),Q)return d(Q,j,W,G);if(w&&J)return z(A(W),j,G)}for(nt=A(W),rt=A(j),q=y(G),q||(G=A(G)),tt=rt.length,et=U(1,tt),ot=F(nt,rt);ot!==-1;)pt=q?A(G(rt,ot,nt)):O(rt,nt,ot,[],void 0,G),xt+=B(nt,gt,ot)+pt,gt=ot+tt,ot=ot+et>nt.length?-1:F(nt,rt,ot+et);return gt<nt.length&&(xt+=B(nt,gt)),xt}})},function(x,E,r){var f=r(8),d=r(430),h=r(46),p=r(17),y=r(16),T=r(323),$=r(68),A=r(29),b=r(432);d("search",function(R,O,C){return[function(D){var L=y(this),F=p(D)?void 0:A(D,R);return F?f(F,D,L):new RegExp(D)[R]($(L))},function(w){var D=h(this),L=$(w),F=C(O,D,L);if(F.done)return F.value;var z=D.lastIndex;T(z,0)||(D.lastIndex=0);var B=b(D,L);return T(D.lastIndex,z)||(D.lastIndex=z),B===null?-1:B.index}]})},function(x,E,r){var f=r(8),d=r(14),h=r(430),p=r(46),y=r(17),T=r(16),$=r(220),A=r(431),b=r(64),R=r(68),O=r(29),C=r(432),w=r(384),D=r(7),L=w.UNSUPPORTED_Y,F=4294967295,z=Math.min,B=d([].push),U=d("".slice),V=!D(function(){var G=/(?:)/,W=G.exec;G.exec=function(){return W.apply(this,arguments)};var J="ab".split(G);return J.length!==2||J[0]!=="a"||J[1]!=="b"}),j="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;h("split",function(G,W,J){var k="0".split(void 0,0).length?function(Q,nt){return Q===void 0&&nt===0?[]:f(W,this,Q,nt)}:W;return[function(nt,rt){var q=T(this),tt=y(nt)?void 0:O(nt,G);return tt?f(tt,nt,q,rt):f(k,R(q),nt,rt)},function(Q,nt){var rt=p(this),q=R(Q);if(!j){var tt=J(k,rt,q,nt,k!==W);if(tt.done)return tt.value}var et=$(rt,RegExp),ot=rt.unicode,pt=(rt.ignoreCase?"i":"")+(rt.multiline?"m":"")+(rt.unicode?"u":"")+(L?"g":"y"),gt=new et(L?"^(?:"+rt.source+")":rt,pt),xt=nt===void 0?F:nt>>>0;if(xt===0)return[];if(q.length===0)return C(gt,q)===null?[q]:[];for(var mt=0,zt=0,Lt=[];zt<q.length;){gt.lastIndex=L?0:zt;var Xt=C(gt,L?U(q,zt):q),Qt;if(Xt===null||(Qt=z(b(gt.lastIndex+(L?zt:0)),q.length))===mt)zt=A(q,zt,ot);else{if(B(Lt,U(q,mt,zt)),Lt.length===xt)return Lt;for(var _t=1;_t<=Xt.length-1;_t++)if(B(Lt,Xt[_t]),Lt.length===xt)return Lt;zt=mt=Qt}}return B(Lt,U(q,mt)),Lt}]},j||!V,L)},function(x,E,r){var f=r(3),d=r(85),h=r(5).f,p=r(64),y=r(68),T=r(423),$=r(16),A=r(424),b=r(36),R=d("".slice),O=Math.min,C=A("startsWith"),w=!b&&!C&&!!function(){var D=h(String.prototype,"startsWith");return D&&!D.writable}();f({target:"String",proto:!0,forced:!w&&!C},{startsWith:function(L){var F=y($(this));T(L);var z=p(O(arguments.length>1?arguments[1]:void 0,F.length)),B=y(L);return R(F,z,z+B.length)===B}})},function(x,E,r){var f=r(3),d=r(14),h=r(16),p=r(61),y=r(68),T=d("".slice),$=Math.max,A=Math.min,b=!"".substr||"ab".substr(-1)!=="b";f({target:"String",proto:!0,forced:b},{substr:function(O,C){var w=y(h(this)),D=w.length,L=p(O),F,z;return L===1/0&&(L=0),L<0&&(L=$(D+L,0)),F=C===void 0?D:p(C),F<=0||F===1/0?"":(z=A(L+F,D),L>=z?"":T(w,L,z))}})},function(x,E,r){var f=r(3),d=r(8),h=r(14),p=r(16),y=r(68),T=r(7),$=Array,A=h("".charAt),b=h("".charCodeAt),R=h([].join),O="".toWellFormed,C="\uFFFD",w=O&&T(function(){return d(O,1)!=="1"});f({target:"String",proto:!0,forced:w},{toWellFormed:function(){var L=y(p(this));if(w)return d(O,L);for(var F=L.length,z=$(F),B=0;B<F;B++){var U=b(L,B);(U&63488)!==55296?z[B]=A(L,B):U>=56320||B+1>=F||(b(L,B+1)&64512)!==56320?z[B]=C:(z[B]=A(L,B),z[++B]=A(L,B))}return R(z,"")}})},function(x,E,r){var f=r(3),d=r(286).trim,h=r(448);f({target:"String",proto:!0,forced:h("trim")},{trim:function(){return d(this)}})},function(x,E,r){var f=r(49).PROPER,d=r(7),h=r(287),p="\u200B\x85\u180E";x.exports=function(y){return d(function(){return!!h[y]()||p[y]()!==p||f&&h[y].name!==y})}},function(x,E,r){r(450);var f=r(3),d=r(451);f({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==d},{trimEnd:d})},function(x,E,r){var f=r(3),d=r(451);f({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==d},{trimRight:d})},function(x,E,r){var f=r(286).end,d=r(448);x.exports=d("trimEnd")?function(){return f(this)}:"".trimEnd},function(x,E,r){r(453);var f=r(3),d=r(454);f({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==d},{trimStart:d})},function(x,E,r){var f=r(3),d=r(454);f({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==d},{trimLeft:d})},function(x,E,r){var f=r(286).start,d=r(448);x.exports=d("trimStart")?function(){return f(this)}:"".trimStart},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("anchor")},{anchor:function(y){return d(this,"a","name",y)}})},function(x,E,r){var f=r(14),d=r(16),h=r(68),p=/"/g,y=f("".replace);x.exports=function(T,$,A,b){var R=h(d(T)),O="<"+$;return A!==""&&(O+=" "+A+'="'+y(h(b),p,""")+'"'),O+">"+R+"</"+$+">"}},function(x,E,r){var f=r(7);x.exports=function(d){return f(function(){var h=""[d]('"');return h!==h.toLowerCase()||h.split('"').length>3})}},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("big")},{big:function(){return d(this,"big","","")}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("blink")},{blink:function(){return d(this,"blink","","")}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("bold")},{bold:function(){return d(this,"b","","")}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("fixed")},{fixed:function(){return d(this,"tt","","")}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("fontcolor")},{fontcolor:function(y){return d(this,"font","color",y)}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("fontsize")},{fontsize:function(y){return d(this,"font","size",y)}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("italics")},{italics:function(){return d(this,"i","","")}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("link")},{link:function(y){return d(this,"a","href",y)}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("small")},{small:function(){return d(this,"small","","")}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("strike")},{strike:function(){return d(this,"strike","","")}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("sub")},{sub:function(){return d(this,"sub","","")}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("sup")},{sup:function(){return d(this,"sup","","")}})},function(x,E,r){var f=r(471);f("Float32",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var f=r(3),d=r(4),h=r(8),p=r(6),y=r(472),T=r(218),$=r(208),A=r(211),b=r(11),R=r(43),O=r(292),C=r(64),w=r(212),D=r(473),L=r(475),F=r(18),z=r(38),B=r(69),U=r(20),V=r(22),j=r(71),G=r(24),W=r(113),J=r(57).f,k=r(476),Q=r(83).forEach,nt=r(194),rt=r(77),q=r(44),tt=r(5),et=r(199),ot=r(51),pt=r(118),gt=ot.get,xt=ot.set,mt=ot.enforce,zt=q.f,Lt=tt.f,Xt=d.RangeError,Qt=$.ArrayBuffer,_t=Qt.prototype,me=$.DataView,ge=T.NATIVE_ARRAY_BUFFER_VIEWS,ie=T.TYPED_ARRAY_TAG,Mt=T.TypedArray,Yt=T.TypedArrayPrototype,re=T.isTypedArray,le="BYTES_PER_ELEMENT",ne="Wrong length",fe=function(Ae,Te){rt(Ae,Te,{configurable:!0,get:function(){return gt(this)[Te]}})},Ie=function(Ae){var Te;return G(_t,Ae)||(Te=B(Ae))==="ArrayBuffer"||Te==="SharedArrayBuffer"},Pe=function(Ae,Te){return re(Ae)&&!V(Te)&&Te in Ae&&O(+Te)&&Te>=0},$e=function(Te,de){return de=F(de),Pe(Te,de)?b(2,Te[de]):Lt(Te,de)},ce=function(Te,de,Et){return de=F(de),Pe(Te,de)&&U(Et)&&z(Et,"value")&&!z(Et,"get")&&!z(Et,"set")&&!Et.configurable&&(!z(Et,"writable")||Et.writable)&&(!z(Et,"enumerable")||Et.enumerable)?(Te[de]=Et.value,Te):zt(Te,de,Et)};p?(ge||(tt.f=$e,q.f=ce,fe(Yt,"buffer"),fe(Yt,"byteOffset"),fe(Yt,"byteLength"),fe(Yt,"length")),f({target:"Object",stat:!0,forced:!ge},{getOwnPropertyDescriptor:$e,defineProperty:ce}),x.exports=function(Ae,Te,de){var Et=Ae.match(/\d+/)[0]/8,Bt=Ae+(de?"Clamped":"")+"Array",Tt="get"+Ae,qt="set"+Ae,ee=d[Bt],Zt=ee,Ht=Zt&&Zt.prototype,Ye={},Ke=function(Ct,Nt){var bt=gt(Ct);return bt.view[Tt](Nt*Et+bt.byteOffset,!0)},ct=function(Ct,Nt,bt){var se=gt(Ct);se.view[qt](Nt*Et+se.byteOffset,de?L(bt):bt,!0)},Ot=function(Ct,Nt){zt(Ct,Nt,{get:function(){return Ke(this,Nt)},set:function(bt){return ct(this,Nt,bt)},enumerable:!0})};ge?y&&(Zt=Te(function(Ct,Nt,bt,se){return A(Ct,Ht),pt(function(){return U(Nt)?Ie(Nt)?se!==void 0?new ee(Nt,D(bt,Et),se):bt!==void 0?new ee(Nt,D(bt,Et)):new ee(Nt):re(Nt)?et(Zt,Nt):h(k,Zt,Nt):new ee(w(Nt))}(),Ct,Zt)}),W&&W(Zt,Mt),Q(J(ee),function(Ct){Ct in Zt||R(Zt,Ct,ee[Ct])}),Zt.prototype=Ht):(Zt=Te(function(Ct,Nt,bt,se){A(Ct,Ht);var Ce=0,Rt=0,Gt,Vt,Wt;if(!U(Nt))Wt=w(Nt),Vt=Wt*Et,Gt=new Qt(Vt);else if(Ie(Nt)){Gt=Nt,Rt=D(bt,Et);var ue=Nt.byteLength;if(se===void 0){if(ue%Et)throw new Xt(ne);if(Vt=ue-Rt,Vt<0)throw new Xt(ne)}else if(Vt=C(se)*Et,Vt+Rt>ue)throw new Xt(ne);Wt=Vt/Et}else return re(Nt)?et(Zt,Nt):h(k,Zt,Nt);for(xt(Ct,{buffer:Gt,byteOffset:Rt,byteLength:Vt,length:Wt,view:new me(Gt)});Ce<Wt;)Ot(Ct,Ce++)}),W&&W(Zt,Mt),Ht=Zt.prototype=j(Yt)),Ht.constructor!==Zt&&R(Ht,"constructor",Zt),mt(Ht).TypedArrayConstructor=Zt,ie&&R(Ht,ie,Bt);var Pt=Zt!==ee;Ye[Bt]=Zt,f({global:!0,constructor:!0,forced:Pt,sham:!ge},Ye),le in Zt||R(Zt,le,Et),le in Ht||R(Ht,le,Et),nt(Bt)}):x.exports=function(){}},function(x,E,r){var f=r(4),d=r(7),h=r(164),p=r(218).NATIVE_ARRAY_BUFFER_VIEWS,y=f.ArrayBuffer,T=f.Int8Array;x.exports=!p||!d(function(){T(1)})||!d(function(){new T(-1)})||!h(function($){new T,new T(null),new T(1.5),new T($)},!0)||d(function(){return new T(new y(2),1,void 0).length!==1})},function(x,E,r){var f=r(474),d=RangeError;x.exports=function(h,p){var y=f(h);if(y%p)throw new d("Wrong offset");return y}},function(x,E,r){var f=r(61),d=RangeError;x.exports=function(h){var p=f(h);if(p<0)throw new d("The argument can't be less than 0");return p}},function(x){var E=Math.round;x.exports=function(r){var f=E(r);return f<0?0:f>255?255:f&255}},function(x,E,r){var f=r(84),d=r(8),h=r(221),p=r(39),y=r(63),T=r(133),$=r(134),A=r(131),b=r(477),R=r(218).aTypedArrayConstructor,O=r(478);x.exports=function(w){var D=h(this),L=p(w),F=arguments.length,z=F>1?arguments[1]:void 0,B=z!==void 0,U=$(L),V,j,G,W,J,k,Q,nt;if(U&&!A(U))for(Q=T(L,U),nt=Q.next,L=[];!(k=d(nt,Q)).done;)L.push(k.value);for(B&&F>2&&(z=f(z,arguments[2])),j=y(L),G=new(R(D))(j),W=b(G),V=0;j>V;V++)J=B?z(L[V],V):L[V],G[V]=W?O(J):+J;return G}},function(x,E,r){var f=r(69);x.exports=function(d){var h=f(d);return h==="BigInt64Array"||h==="BigUint64Array"}},function(x,E,r){var f=r(19),d=TypeError;x.exports=function(h){var p=f(h,"number");if(typeof p=="number")throw new d("Can't convert number to bigint");return BigInt(p)}},function(x,E,r){var f=r(471);f("Float64",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var f=r(471);f("Int8",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var f=r(471);f("Int16",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var f=r(471);f("Int32",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var f=r(471);f("Uint8",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var f=r(471);f("Uint8",function(d){return function(p,y,T){return d(this,p,y,T)}},!0)},function(x,E,r){var f=r(471);f("Uint16",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var f=r(471);f("Uint32",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var f=r(218),d=r(63),h=r(61),p=f.aTypedArray,y=f.exportTypedArrayMethod;y("at",function($){var A=p(this),b=d(A),R=h($),O=R>=0?R:b+R;return O<0||O>=b?void 0:A[O]})},function(x,E,r){var f=r(14),d=r(218),h=r(144),p=f(h),y=d.aTypedArray,T=d.exportTypedArrayMethod;T("copyWithin",function(A,b){return p(y(this),A,b,arguments.length>2?arguments[2]:void 0)})},function(x,E,r){var f=r(218),d=r(83).every,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("every",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(218),d=r(149),h=r(478),p=r(69),y=r(8),T=r(14),$=r(7),A=f.aTypedArray,b=f.exportTypedArrayMethod,R=T("".slice),O=$(function(){var C=0;return new Int8Array(2).fill({valueOf:function(){return C++}}),C!==1});b("fill",function(w){var D=arguments.length;A(this);var L=R(p(this),0,3)==="Big"?h(w):+w;return y(d,this,L,D>1?arguments[1]:void 0,D>2?arguments[2]:void 0)},O)},function(x,E,r){var f=r(218),d=r(83).filter,h=r(492),p=f.aTypedArray,y=f.exportTypedArrayMethod;y("filter",function($){var A=d(p(this),$,arguments.length>1?arguments[1]:void 0);return h(this,A)})},function(x,E,r){var f=r(199),d=r(493);x.exports=function(h,p){return f(d(h),p)}},function(x,E,r){var f=r(218),d=r(220),h=f.aTypedArrayConstructor,p=f.getTypedArrayConstructor;x.exports=function(y){return h(d(y,p(y)))}},function(x,E,r){var f=r(218),d=r(83).find,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("find",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(218),d=r(83).findIndex,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("findIndex",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(218),d=r(154).findLast,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("findLast",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(218),d=r(154).findLastIndex,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("findLastIndex",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(218),d=r(83).forEach,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("forEach",function(T){d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(472),d=r(218).exportTypedArrayStaticMethod,h=r(476);d("from",h,f)},function(x,E,r){var f=r(218),d=r(59).includes,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("includes",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(218),d=r(59).indexOf,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("indexOf",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(4),d=r(7),h=r(14),p=r(218),y=r(168),T=r(33),$=T("iterator"),A=f.Uint8Array,b=h(y.values),R=h(y.keys),O=h(y.entries),C=p.aTypedArray,w=p.exportTypedArrayMethod,D=A&&A.prototype,L=!d(function(){D[$].call([1])}),F=!!D&&D.values&&D[$]===D.values&&D.values.name==="values",z=function(){return b(C(this))};w("entries",function(){return O(C(this))},L),w("keys",function(){return R(C(this))},L),w("values",z,L||!F,{name:"values"}),w($,z,L||!F,{name:"values"})},function(x,E,r){var f=r(218),d=r(14),h=f.aTypedArray,p=f.exportTypedArrayMethod,y=d([].join);p("join",function($){return y(h(this),$)})},function(x,E,r){var f=r(218),d=r(94),h=r(175),p=f.aTypedArray,y=f.exportTypedArrayMethod;y("lastIndexOf",function($){var A=arguments.length;return d(h,p(this),A>1?[$,arguments[1]]:[$])})},function(x,E,r){var f=r(218),d=r(83).map,h=r(493),p=f.aTypedArray,y=f.exportTypedArrayMethod;y("map",function($){return d(p(this),$,arguments.length>1?arguments[1]:void 0,function(A,b){return new(h(A))(b)})})},function(x,E,r){var f=r(218),d=r(472),h=f.aTypedArrayConstructor,p=f.exportTypedArrayStaticMethod;p("of",function(){for(var T=0,$=arguments.length,A=new(h(this))($);$>T;)A[T]=arguments[T++];return A},d)},function(x,E,r){var f=r(218),d=r(181).left,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("reduce",function(T){var $=arguments.length;return d(h(this),T,$,$>1?arguments[1]:void 0)})},function(x,E,r){var f=r(218),d=r(181).right,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("reduceRight",function(T){var $=arguments.length;return d(h(this),T,$,$>1?arguments[1]:void 0)})},function(x,E,r){var f=r(218),d=f.aTypedArray,h=f.exportTypedArrayMethod,p=Math.floor;h("reverse",function(){for(var T=this,$=d(T).length,A=p($/2),b=0,R;b<A;)R=T[b],T[b++]=T[--$],T[$]=R;return T})},function(x,E,r){var f=r(4),d=r(8),h=r(218),p=r(63),y=r(473),T=r(39),$=r(7),A=f.RangeError,b=f.Int8Array,R=b&&b.prototype,O=R&&R.set,C=h.aTypedArray,w=h.exportTypedArrayMethod,D=!$(function(){var F=new Uint8ClampedArray(2);return d(O,F,{length:1,0:3},1),F[1]!==3}),L=D&&h.NATIVE_ARRAY_BUFFER_VIEWS&&$(function(){var F=new b(2);return F.set(1),F.set("2",1),F[0]!==0||F[1]!==2});w("set",function(z){C(this);var B=y(arguments.length>1?arguments[1]:void 0,1),U=T(z);if(D)return d(O,this,U,B);var V=this.length,j=p(U),G=0;if(j+B>V)throw new A("Wrong length");for(;G<j;)this[B+G]=U[G++]},!D||L)},function(x,E,r){var f=r(218),d=r(493),h=r(7),p=r(76),y=f.aTypedArray,T=f.exportTypedArrayMethod,$=h(function(){new Int8Array(1).slice()});T("slice",function(b,R){for(var O=p(y(this),b,R),C=d(this),w=0,D=O.length,L=new C(D);D>w;)L[w]=O[w++];return L},$)},function(x,E,r){var f=r(218),d=r(83).some,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("some",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(4),d=r(85),h=r(7),p=r(30),y=r(189),T=r(218),$=r(190),A=r(191),b=r(27),R=r(192),O=T.aTypedArray,C=T.exportTypedArrayMethod,w=f.Uint16Array,D=w&&d(w.prototype.sort),L=!!D&&!(h(function(){D(new w(2),null)})&&h(function(){D(new w(2),{})})),F=!!D&&!h(function(){if(b)return b<74;if($)return $<67;if(A)return!0;if(R)return R<602;var B=new w(516),U=Array(516),V,j;for(V=0;V<516;V++)j=V%4,B[V]=515-V,U[V]=V-2*j+3;for(D(B,function(G,W){return(G/4|0)-(W/4|0)}),V=0;V<516;V++)if(B[V]!==U[V])return!0}),z=function(B){return function(U,V){return B!==void 0?+B(U,V)||0:V!==V?-1:U!==U?1:U===0&&V===0?1/U>0&&1/V<0?1:-1:U>V}};C("sort",function(U){return U!==void 0&&p(U),F?D(this,U):y(O(this),z(U))},!F||L)},function(x,E,r){var f=r(218),d=r(64),h=r(60),p=r(493),y=f.aTypedArray,T=f.exportTypedArrayMethod;T("subarray",function(A,b){var R=y(this),O=R.length,C=h(A,O),w=p(R);return new w(R.buffer,R.byteOffset+C*R.BYTES_PER_ELEMENT,d((b===void 0?O:h(b,O))-C))})},function(x,E,r){var f=r(4),d=r(94),h=r(218),p=r(7),y=r(76),T=f.Int8Array,$=h.aTypedArray,A=h.exportTypedArrayMethod,b=[].toLocaleString,R=!!T&&p(function(){b.call(new T(1))}),O=p(function(){return[1,2].toLocaleString()!==new T([1,2]).toLocaleString()})||!p(function(){T.prototype.toLocaleString.call([1,2])});A("toLocaleString",function(){return d(b,R?y($(this)):$(this),y(arguments))},O)},function(x,E,r){var f=r(197),d=r(218),h=d.aTypedArray,p=d.exportTypedArrayMethod,y=d.getTypedArrayConstructor;p("toReversed",function(){return f(h(this),y(this))})},function(x,E,r){var f=r(218),d=r(14),h=r(30),p=r(199),y=f.aTypedArray,T=f.getTypedArrayConstructor,$=f.exportTypedArrayMethod,A=d(f.TypedArrayPrototype.sort);$("toSorted",function(R){R!==void 0&&h(R);var O=y(this),C=p(T(O),O);return A(C,R)})},function(x,E,r){var f=r(218).exportTypedArrayMethod,d=r(7),h=r(4),p=r(14),y=h.Uint8Array,T=y&&y.prototype||{},$=[].toString,A=p([].join);d(function(){$.call({})})&&($=function(){return A(this)});var b=T.toString!==$;f("toString",$,b)},function(x,E,r){var f=r(206),d=r(218),h=r(477),p=r(61),y=r(478),T=d.aTypedArray,$=d.getTypedArrayConstructor,A=d.exportTypedArrayMethod,b=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(R){return R===8}}();A("with",function(R,O){var C=T(this),w=p(R),D=h(C)?y(O):+O;return f(C,$(C),w,D)},!b)},function(x,E,r){var f=r(3),d=r(14),h=r(68),p=String.fromCharCode,y=d("".charAt),T=d(/./.exec),$=d("".slice),A=/^[\da-f]{2}$/i,b=/^[\da-f]{4}$/i;f({global:!0},{unescape:function(O){for(var C=h(O),w="",D=C.length,L=0,F,z;L<D;){if(F=y(C,L++),F==="%"){if(y(C,L)==="u"){if(z=$(C,L+1,L+5),T(b,z)){w+=p(parseInt(z,16)),L+=5;continue}}else if(z=$(C,L,L+2),T(A,z)){w+=p(parseInt(z,16)),L+=2;continue}}w+=F}return w}})},function(x,E,r){r(522)},function(x,E,r){var f=r(259),d=r(4),h=r(14),p=r(210),y=r(256),T=r(255),$=r(523),A=r(20),b=r(51).enforce,R=r(7),O=r(52),C=Object,w=Array.isArray,D=C.isExtensible,L=C.isFrozen,F=C.isSealed,z=C.freeze,B=C.seal,U=!d.ActiveXObject&&"ActiveXObject"in d,V,j=function(q){return function(){return q(this,arguments.length?arguments[0]:void 0)}},G=T("WeakMap",j,$),W=G.prototype,J=h(W.set),k=function(){return f&&R(function(){var q=z([]);return J(new G,q,1),!L(q)})};if(O)if(U){V=$.getConstructor(j,"WeakMap",!0),y.enable();var Q=h(W.delete),nt=h(W.has),rt=h(W.get);p(W,{delete:function(q){if(A(q)&&!D(q)){var tt=b(this);return tt.frozen||(tt.frozen=new V),Q(this,q)||tt.frozen.delete(q)}return Q(this,q)},has:function(tt){if(A(tt)&&!D(tt)){var et=b(this);return et.frozen||(et.frozen=new V),nt(this,tt)||et.frozen.has(tt)}return nt(this,tt)},get:function(tt){if(A(tt)&&!D(tt)){var et=b(this);return et.frozen||(et.frozen=new V),nt(this,tt)?rt(this,tt):et.frozen.get(tt)}return rt(this,tt)},set:function(tt,et){if(A(tt)&&!D(tt)){var ot=b(this);ot.frozen||(ot.frozen=new V),nt(this,tt)?J(this,tt,et):ot.frozen.set(tt,et)}else J(this,tt,et);return this}})}else k()&&p(W,{set:function(tt,et){var ot;return w(tt)&&(L(tt)?ot=z:F(tt)&&(ot=B)),J(this,tt,et),ot&&ot(tt),this}})},function(x,E,r){var f=r(14),d=r(210),h=r(256).getWeakData,p=r(211),y=r(46),T=r(17),$=r(20),A=r(130),b=r(83),R=r(38),O=r(51),C=O.set,w=O.getterFor,D=b.find,L=b.findIndex,F=f([].splice),z=0,B=function(j){return j.frozen||(j.frozen=new U)},U=function(){this.entries=[]},V=function(j,G){return D(j.entries,function(W){return W[0]===G})};U.prototype={get:function(j){var G=V(this,j);if(G)return G[1]},has:function(j){return!!V(this,j)},set:function(j,G){var W=V(this,j);W?W[1]=G:this.entries.push([j,G])},delete:function(j){var G=L(this.entries,function(W){return W[0]===j});return~G&&F(this.entries,G,1),!!~G}},x.exports={getConstructor:function(j,G,W,J){var k=j(function(q,tt){p(q,Q),C(q,{type:G,id:z++,frozen:null}),T(tt)||A(tt,q[J],{that:q,AS_ENTRIES:W})}),Q=k.prototype,nt=w(G),rt=function(q,tt,et){var ot=nt(q),pt=h(y(tt),!0);return pt===!0?B(ot).set(tt,et):pt[ot.id]=et,q};return d(Q,{delete:function(q){var tt=nt(this);if(!$(q))return!1;var et=h(q);return et===!0?B(tt).delete(q):et&&R(et,tt.id)&&delete et[tt.id]},has:function(tt){var et=nt(this);if(!$(tt))return!1;var ot=h(tt);return ot===!0?B(et).has(tt):ot&&R(ot,et.id)}}),d(Q,W?{get:function(tt){var et=nt(this);if($(tt)){var ot=h(tt);if(ot===!0)return B(et).get(tt);if(ot)return ot[et.id]}},set:function(tt,et){return rt(this,tt,et)}}:{add:function(tt){return rt(this,tt,!0)}}),k}}},function(x,E,r){r(525)},function(x,E,r){var f=r(255),d=r(523);f("WeakSet",function(h){return function(){return h(this,arguments.length?arguments[0]:void 0)}},d)},function(x,E,r){var f=r(3),d=r(4),h=r(23),p=r(14),y=r(8),T=r(7),$=r(68),A=r(342),b=r(527).c2i,R=/[^\d+/a-z]/i,O=/[\t\n\f\r ]+/g,C=/[=]{1,2}$/,w=h("atob"),D=String.fromCharCode,L=p("".charAt),F=p("".replace),z=p(R.exec),B=!!w&&!T(function(){return w("aGk=")!=="hi"}),U=B&&T(function(){return w(" ")!==""}),V=B&&!T(function(){w("a")}),j=B&&!T(function(){w()}),G=B&&w.length!==1,W=!B||U||V||j||G;f({global:!0,bind:!0,enumerable:!0,forced:W},{atob:function(k){if(A(arguments.length,1),B&&!U&&!V)return y(w,d,k);var Q=F($(k),O,""),nt="",rt=0,q=0,tt,et,ot;if(Q.length%4===0&&(Q=F(Q,C,"")),tt=Q.length,tt%4===1||z(R,Q))throw new(h("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;rt<tt;)et=L(Q,rt++),ot=q%4?ot*64+b[et]:b[et],q++%4&&(nt+=D(255&ot>>(-2*q&6)));return nt}})},function(x){var E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=E+"+/",f=E+"-_",d=function(h){for(var p={},y=0;y<64;y++)p[h.charAt(y)]=y;return p};x.exports={i2c:r,c2i:d(r),i2cUrl:f,c2iUrl:d(f)}},function(x,E,r){var f=r(3),d=r(4),h=r(23),p=r(14),y=r(8),T=r(7),$=r(68),A=r(342),b=r(527).i2c,R=h("btoa"),O=p("".charAt),C=p("".charCodeAt),w=!!R&&!T(function(){return R("hi")!=="aGk="}),D=w&&!T(function(){R()}),L=w&&T(function(){return R(null)!=="bnVsbA=="}),F=w&&R.length!==1;f({global:!0,bind:!0,enumerable:!0,forced:!w||D||L||F},{btoa:function(B){if(A(arguments.length,1),w)return y(R,d,$(B));for(var U=$(B),V="",j=0,G=b,W,J;O(U,j)||(G="=",j%1);){if(J=C(U,j+=.75),J>255)throw new(h("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");W=W<<8|J,V+=O(G,63&W>>8-j%1*8)}return V}})},function(x,E,r){var f=r(4),d=r(530),h=r(531),p=r(160),y=r(43),T=function(A){if(A&&A.forEach!==p)try{y(A,"forEach",p)}catch(b){A.forEach=p}};for(var $ in d)d[$]&&T(f[$]&&f[$].prototype);T(h)},function(x){x.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(x,E,r){var f=r(42),d=f("span").classList,h=d&&d.constructor&&d.constructor.prototype;x.exports=h===Object.prototype?void 0:h},function(x,E,r){var f=r(4),d=r(530),h=r(531),p=r(168),y=r(43),T=r(82),$=r(33),A=$("iterator"),b=p.values,R=function(C,w){if(C){if(C[A]!==b)try{y(C,A,b)}catch(L){C[A]=b}if(T(C,w,!0),d[w]){for(var D in p)if(C[D]!==p[D])try{y(C,D,p[D])}catch(L){C[D]=p[D]}}}};for(var O in d)R(f[O]&&f[O].prototype,O);R(h,"DOMTokenList")},function(x,E,r){var f=r(3),d=r(23),h=r(231),p=r(7),y=r(71),T=r(11),$=r(44).f,A=r(47),b=r(77),R=r(38),O=r(211),C=r(46),w=r(125),D=r(119),L=r(534),F=r(122),z=r(51),B=r(6),U=r(36),V="DOMException",j="DATA_CLONE_ERR",G=d("Error"),W=d(V)||function(){try{var Mt=d("MessageChannel")||h("worker_threads").MessageChannel;new Mt().port1.postMessage(new WeakMap)}catch(Yt){if(Yt.name===j&&Yt.code===25)return Yt.constructor}}(),J=W&&W.prototype,k=G.prototype,Q=z.set,nt=z.getterFor(V),rt="stack"in new G(V),q=function(Mt){return R(L,Mt)&&L[Mt].m?L[Mt].c:0},tt=function(){O(this,et);var Yt=arguments.length,re=D(Yt<1?void 0:arguments[0]),le=D(Yt<2?void 0:arguments[1],"Error"),ne=q(le);if(Q(this,{type:V,name:le,message:re,code:ne}),B||(this.name=le,this.message=re,this.code=ne),rt){var fe=new G(re);fe.name=V,$(this,"stack",T(1,F(fe.stack,1)))}},et=tt.prototype=y(k),ot=function(Mt){return{enumerable:!0,configurable:!0,get:Mt}},pt=function(Mt){return ot(function(){return nt(this)[Mt]})};B&&(b(et,"code",pt("code")),b(et,"message",pt("message")),b(et,"name",pt("name"))),$(et,"constructor",T(1,tt));var gt=p(function(){return!(new W instanceof G)}),xt=gt||p(function(){return k.toString!==w||String(new W(1,2))!=="2: 1"}),mt=gt||p(function(){return new W(1,"DataCloneError").code!==25}),zt=gt||W[j]!==25||J[j]!==25,Lt=U?xt||mt||zt:gt;f({global:!0,constructor:!0,forced:Lt},{DOMException:Lt?tt:W});var Xt=d(V),Qt=Xt.prototype;xt&&(U||W===Xt)&&A(Qt,"toString",w),mt&&B&&W===Xt&&b(Qt,"code",ot(function(){return q(C(this).name)}));for(var _t in L)if(R(L,_t)){var me=L[_t],ge=me.s,ie=T(6,me.c);R(Xt,ge)||$(Xt,ge,ie),R(Qt,ge)||$(Qt,ge,ie)}},function(x){x.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},function(x,E,r){var f=r(3),d=r(4),h=r(23),p=r(11),y=r(44).f,T=r(38),$=r(211),A=r(118),b=r(119),R=r(534),O=r(122),C=r(6),w=r(36),D="DOMException",L=h("Error"),F=h(D),z=function(){$(this,B);var tt=arguments.length,et=b(tt<1?void 0:arguments[0]),ot=b(tt<2?void 0:arguments[1],"Error"),pt=new F(et,ot),gt=new L(et);return gt.name=D,y(pt,"stack",p(1,O(gt.stack,1))),A(pt,this,z),pt},B=z.prototype=F.prototype,U="stack"in new L(D),V="stack"in new F(1,2),j=F&&C&&Object.getOwnPropertyDescriptor(d,D),G=!!j&&!(j.writable&&j.configurable),W=U&&!G&&!V;f({global:!0,constructor:!0,forced:w||W},{DOMException:W?z:F});var J=h(D),k=J.prototype;if(k.constructor!==J){w||y(k,"constructor",p(1,J));for(var Q in R)if(T(R,Q)){var nt=R[Q],rt=nt.s;T(J,rt)||y(J,rt,p(6,nt.c))}}},function(x,E,r){var f=r(23),d=r(82),h="DOMException";d(f(h),h)},function(x,E,r){r(538),r(539)},function(x,E,r){var f=r(3),d=r(4),h=r(341).clear;f({global:!0,bind:!0,enumerable:!0,forced:d.clearImmediate!==h},{clearImmediate:h})},function(x,E,r){var f=r(3),d=r(4),h=r(341).set,p=r(540),y=d.setImmediate?p(h,!1):h;f({global:!0,bind:!0,enumerable:!0,forced:d.setImmediate!==y},{setImmediate:y})},function(x,E,r){var f=r(4),d=r(94),h=r(21),p=r(183),y=r(28),T=r(76),$=r(342),A=f.Function,b=/MSIE .\./.test(y)||p==="BUN"&&function(){var R=f.Bun.version.split(".");return R.length<3||R[0]==="0"&&(R[1]<3||R[1]==="3"&&R[2]==="0")}();x.exports=function(R,O){var C=O?2:1;return b?function(w,D){var L=$(arguments.length,1)>C,F=h(w)?w:A(w),z=L?T(arguments,C):[],B=L?function(){d(F,this,z)}:F;return O?R(B,D):R(B)}:R}},function(x,E,r){var f=r(3),d=r(4),h=r(344),p=r(30),y=r(342),T=r(7),$=r(6),A=T(function(){return $&&Object.getOwnPropertyDescriptor(d,"queueMicrotask").value.length!==1});f({global:!0,enumerable:!0,dontCallGetSet:!0,forced:A},{queueMicrotask:function(R){y(arguments.length,1),h(p(R))}})},function(x,E,r){var f=r(3),d=r(4),h=r(77),p=r(6),y=TypeError,T=Object.defineProperty,$=d.self!==d;try{if(p){var A=Object.getOwnPropertyDescriptor(d,"self");($||!A||!A.get||!A.enumerable)&&h(d,"self",{get:function(){return d},set:function(R){if(this!==d)throw new y("Illegal invocation");T(d,"self",{value:R,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else f({global:!0,simple:!0,forced:$},{self:d})}catch(b){}},function(x,E,r){var f=r(36),d=r(3),h=r(4),p=r(23),y=r(14),T=r(7),$=r(40),A=r(21),b=r(89),R=r(17),O=r(20),C=r(22),w=r(130),D=r(46),L=r(69),F=r(38),z=r(141),B=r(43),U=r(63),V=r(342),j=r(382),G=r(262),W=r(399),J=r(401),k=r(230),Q=r(123),nt=r(232),rt=h.Object,q=h.Array,tt=h.Date,et=h.Error,ot=h.TypeError,pt=h.PerformanceMark,gt=p("DOMException"),xt=G.Map,mt=G.has,zt=G.get,Lt=G.set,Xt=W.Set,Qt=W.add,_t=W.has,me=p("Object","keys"),ge=y([].push),ie=y((!0).valueOf),Mt=y(1 .valueOf),Yt=y("".valueOf),re=y(tt.prototype.getTime),le=$("structuredClone"),ne="DataCloneError",fe="Transferring",Ie=function(ct){return!T(function(){var Ot=new h.Set([7]),Pt=ct(Ot),Ct=ct(rt(7));return Pt===Ot||!Pt.has(7)||!O(Ct)||+Ct!=7})&&ct},Pe=function(ct,Ot){return!T(function(){var Pt=new Ot,Ct=ct({a:Pt,b:Pt});return!(Ct&&Ct.a===Ct.b&&Ct.a instanceof Ot&&Ct.a.stack===Pt.stack)})},$e=function(ct){return!T(function(){var Ot=ct(new h.AggregateError([1],le,{cause:3}));return Ot.name!=="AggregateError"||Ot.errors[0]!==1||Ot.message!==le||Ot.cause!==3})},ce=h.structuredClone,Ae=f||!Pe(ce,et)||!Pe(ce,gt)||!$e(ce),Te=!ce&&Ie(function(ct){return new pt(le,{detail:ct}).detail}),de=Ie(ce)||Te,Et=function(ct){throw new gt("Uncloneable type: "+ct,ne)},Bt=function(ct,Ot){throw new gt((Ot||"Cloning")+" of "+ct+" cannot be properly polyfilled in this engine",ne)},Tt=function(ct,Ot){return de||Bt(Ot),de(ct)},qt=function(){var ct;try{ct=new h.DataTransfer}catch(Ot){try{ct=new h.ClipboardEvent("").clipboardData}catch(Pt){}}return ct&&ct.items&&ct.files?ct:null},ee=function(ct,Ot,Pt){if(mt(Ot,ct))return zt(Ot,ct);var Ct=Pt||L(ct),Nt,bt,se,Ce,Rt,Gt;if(Ct==="SharedArrayBuffer")de?Nt=de(ct):Nt=ct;else{var Vt=h.DataView;!Vt&&!A(ct.slice)&&Bt("ArrayBuffer");try{if(A(ct.slice)&&!ct.resizable)Nt=ct.slice(0);else for(bt=ct.byteLength,se=("maxByteLength"in ct)?{maxByteLength:ct.maxByteLength}:void 0,Nt=new ArrayBuffer(bt,se),Ce=new Vt(ct),Rt=new Vt(Nt),Gt=0;Gt<bt;Gt++)Rt.setUint8(Gt,Ce.getUint8(Gt))}catch(Wt){throw new gt("ArrayBuffer is detached",ne)}}return Lt(Ot,ct,Nt),Nt},Zt=function(ct,Ot,Pt,Ct,Nt){var bt=h[Ot];return O(bt)||Bt(Ot),new bt(ee(ct.buffer,Nt),Pt,Ct)},Ht=function(ct,Ot){if(C(ct)&&Et("Symbol"),!O(ct))return ct;if(Ot){if(mt(Ot,ct))return zt(Ot,ct)}else Ot=new xt;var Pt=L(ct),Ct,Nt,bt,se,Ce,Rt,Gt,Vt;switch(Pt){case"Array":bt=q(U(ct));break;case"Object":bt={};break;case"Map":bt=new xt;break;case"Set":bt=new Xt;break;case"RegExp":bt=new RegExp(ct.source,j(ct));break;case"Error":switch(Nt=ct.name,Nt){case"AggregateError":bt=new(p(Nt))([]);break;case"EvalError":case"RangeError":case"ReferenceError":case"SuppressedError":case"SyntaxError":case"TypeError":case"URIError":bt=new(p(Nt));break;case"CompileError":case"LinkError":case"RuntimeError":bt=new(p("WebAssembly",Nt));break;default:bt=new et}break;case"DOMException":bt=new gt(ct.message,ct.name);break;case"ArrayBuffer":case"SharedArrayBuffer":bt=ee(ct,Ot,Pt);break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float16Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":Rt=Pt==="DataView"?ct.byteLength:ct.length,bt=Zt(ct,Pt,ct.byteOffset,Rt,Ot);break;case"DOMQuad":try{bt=new DOMQuad(Ht(ct.p1,Ot),Ht(ct.p2,Ot),Ht(ct.p3,Ot),Ht(ct.p4,Ot))}catch(Wt){bt=Tt(ct,Pt)}break;case"File":if(de)try{bt=de(ct),L(bt)!==Pt&&(bt=void 0)}catch(Wt){}if(!bt)try{bt=new File([ct],ct.name,ct)}catch(Wt){}bt||Bt(Pt);break;case"FileList":if(se=qt(),se){for(Ce=0,Rt=U(ct);Ce<Rt;Ce++)se.items.add(Ht(ct[Ce],Ot));bt=se.files}else bt=Tt(ct,Pt);break;case"ImageData":try{bt=new ImageData(Ht(ct.data,Ot),ct.width,ct.height,{colorSpace:ct.colorSpace})}catch(Wt){bt=Tt(ct,Pt)}break;default:if(de)bt=de(ct);else switch(Pt){case"BigInt":bt=rt(ct.valueOf());break;case"Boolean":bt=rt(ie(ct));break;case"Number":bt=rt(Mt(ct));break;case"String":bt=rt(Yt(ct));break;case"Date":bt=new tt(re(ct));break;case"Blob":try{bt=ct.slice(0,ct.size,ct.type)}catch(Wt){Bt(Pt)}break;case"DOMPoint":case"DOMPointReadOnly":Ct=h[Pt];try{bt=Ct.fromPoint?Ct.fromPoint(ct):new Ct(ct.x,ct.y,ct.z,ct.w)}catch(Wt){Bt(Pt)}break;case"DOMRect":case"DOMRectReadOnly":Ct=h[Pt];try{bt=Ct.fromRect?Ct.fromRect(ct):new Ct(ct.x,ct.y,ct.width,ct.height)}catch(Wt){Bt(Pt)}break;case"DOMMatrix":case"DOMMatrixReadOnly":Ct=h[Pt];try{bt=Ct.fromMatrix?Ct.fromMatrix(ct):new Ct(ct)}catch(Wt){Bt(Pt)}break;case"AudioData":case"VideoFrame":A(ct.clone)||Bt(Pt);try{bt=ct.clone()}catch(Wt){Et(Pt)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":Bt(Pt);default:Et(Pt)}}switch(Lt(Ot,ct,bt),Pt){case"Array":case"Object":for(Gt=me(ct),Ce=0,Rt=U(Gt);Ce<Rt;Ce++)Vt=Gt[Ce],z(bt,Vt,Ht(ct[Vt],Ot));break;case"Map":ct.forEach(function(Wt,ue){Lt(bt,Ht(ue,Ot),Ht(Wt,Ot))});break;case"Set":ct.forEach(function(Wt){Qt(bt,Ht(Wt,Ot))});break;case"Error":B(bt,"message",Ht(ct.message,Ot)),F(ct,"cause")&&B(bt,"cause",Ht(ct.cause,Ot)),Nt==="AggregateError"?bt.errors=Ht(ct.errors,Ot):Nt==="SuppressedError"&&(bt.error=Ht(ct.error,Ot),bt.suppressed=Ht(ct.suppressed,Ot));case"DOMException":Q&&B(bt,"stack",Ht(ct.stack,Ot))}return bt},Ye=function(ct,Ot){if(!O(ct))throw new ot("Transfer option cannot be converted to a sequence");var Pt=[];w(ct,function(ue){ge(Pt,D(ue))});for(var Ct=0,Nt=U(Pt),bt=new Xt,se,Ce,Rt,Gt,Vt,Wt;Ct<Nt;){if(se=Pt[Ct++],Ce=L(se),Ce==="ArrayBuffer"?_t(bt,se):mt(Ot,se))throw new gt("Duplicate transferable",ne);if(Ce==="ArrayBuffer"){Qt(bt,se);continue}if(nt)Gt=ce(se,{transfer:[se]});else switch(Ce){case"ImageBitmap":Rt=h.OffscreenCanvas,b(Rt)||Bt(Ce,fe);try{Vt=new Rt(se.width,se.height),Wt=Vt.getContext("bitmaprenderer"),Wt.transferFromImageBitmap(se),Gt=Vt.transferToImageBitmap()}catch(ue){}break;case"AudioData":case"VideoFrame":(!A(se.clone)||!A(se.close))&&Bt(Ce,fe);try{Gt=se.clone(),se.close()}catch(ue){}break;case"MediaSourceHandle":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":Bt(Ce,fe)}if(Gt===void 0)throw new gt("This object cannot be transferred: "+Ce,ne);Lt(Ot,se,Gt)}return bt},Ke=function(ct){J(ct,function(Ot){nt?de(Ot,{transfer:[Ot]}):A(Ot.transfer)?Ot.transfer():k?k(Ot):Bt("ArrayBuffer",fe)})};d({global:!0,enumerable:!0,sham:!nt,forced:Ae},{structuredClone:function(Ot){var Pt=V(arguments.length,1)>1&&!R(arguments[1])?D(arguments[1]):void 0,Ct=Pt?Pt.transfer:void 0,Nt,bt;Ct!==void 0&&(Nt=new xt,bt=Ye(Ct,Nt));var se=Ht(Ot,Nt);return bt&&Ke(bt),se}})},function(x,E,r){r(545),r(546)},function(x,E,r){var f=r(3),d=r(4),h=r(540),p=h(d.setInterval,!0);f({global:!0,bind:!0,forced:d.setInterval!==p},{setInterval:p})},function(x,E,r){var f=r(3),d=r(4),h=r(540),p=h(d.setTimeout,!0);f({global:!0,bind:!0,forced:d.setTimeout!==p},{setTimeout:p})},function(x,E,r){r(548)},function(x,E,r){r(428);var f=r(3),d=r(6),h=r(549),p=r(4),y=r(84),T=r(14),$=r(47),A=r(77),b=r(211),R=r(38),O=r(305),C=r(162),w=r(76),D=r(421).codeAt,L=r(550),F=r(68),z=r(82),B=r(342),U=r(551),V=r(51),j=V.set,G=V.getterFor("URL"),W=U.URLSearchParams,J=U.getState,k=p.URL,Q=p.TypeError,nt=p.parseInt,rt=Math.floor,q=Math.pow,tt=T("".charAt),et=T(/./.exec),ot=T([].join),pt=T(1 .toString),gt=T([].pop),xt=T([].push),mt=T("".replace),zt=T([].shift),Lt=T("".split),Xt=T("".slice),Qt=T("".toLowerCase),_t=T([].unshift),me="Invalid authority",ge="Invalid scheme",ie="Invalid host",Mt="Invalid port",Yt=/[a-z]/i,re=/[\d+-.a-z]/i,le=/\d/,ne=/^0x/i,fe=/^[0-7]+$/,Ie=/^\d+$/,Pe=/^[\da-f]+$/i,$e=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ce=/[\0\t\n\r #/:<>?@[\\\]^|]/,Ae=/^[\u0000-\u0020]+/,Te=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,de=/[\t\n\r]/g,Et,Bt=function(ut){var wt=Lt(ut,"."),vt,it,It,ye,te,Re,nn;if(wt.length&&wt[wt.length-1]===""&&wt.length--,vt=wt.length,vt>4)return ut;for(it=[],It=0;It<vt;It++){if(ye=wt[It],ye==="")return ut;if(te=10,ye.length>1&&tt(ye,0)==="0"&&(te=et(ne,ye)?16:8,ye=Xt(ye,te===8?1:2)),ye==="")Re=0;else{if(!et(te===10?Ie:te===8?fe:Pe,ye))return ut;Re=nt(ye,te)}xt(it,Re)}for(It=0;It<vt;It++)if(Re=it[It],It===vt-1){if(Re>=q(256,5-vt))return null}else if(Re>255)return null;for(nn=gt(it),It=0;It<it.length;It++)nn+=it[It]*q(256,3-It);return nn},Tt=function(ut){var wt=[0,0,0,0,0,0,0,0],vt=0,it=null,It=0,ye,te,Re,nn,gn,mn,st,rn=function(){return tt(ut,It)};if(rn()===":"){if(tt(ut,1)!==":")return;It+=2,vt++,it=vt}for(;rn();){if(vt===8)return;if(rn()===":"){if(it!==null)return;It++,vt++,it=vt;continue}for(ye=te=0;te<4&&et(Pe,rn());)ye=ye*16+nt(rn(),16),It++,te++;if(rn()==="."){if(te===0||(It-=te,vt>6))return;for(Re=0;rn();){if(nn=null,Re>0)if(rn()==="."&&Re<4)It++;else return;if(!et(le,rn()))return;for(;et(le,rn());){if(gn=nt(rn(),10),nn===null)nn=gn;else{if(nn===0)return;nn=nn*10+gn}if(nn>255)return;It++}wt[vt]=wt[vt]*256+nn,Re++,(Re===2||Re===4)&&vt++}if(Re!==4)return;break}else if(rn()===":"){if(It++,!rn())return}else if(rn())return;wt[vt++]=ye}if(it!==null)for(mn=vt-it,vt=7;vt!==0&&mn>0;)st=wt[vt],wt[vt--]=wt[it+mn-1],wt[it+--mn]=st;else if(vt!==8)return;return wt},qt=function(ut){for(var wt=null,vt=1,it=null,It=0,ye=0;ye<8;ye++)ut[ye]!==0?(It>vt&&(wt=it,vt=It),it=null,It=0):(it===null&&(it=ye),++It);return It>vt?it:wt},ee=function(ut){var wt,vt,it,It;if(typeof ut=="number"){for(wt=[],vt=0;vt<4;vt++)_t(wt,ut%256),ut=rt(ut/256);return ot(wt,".")}if(typeof ut=="object"){for(wt="",it=qt(ut),vt=0;vt<8;vt++)It&&ut[vt]===0||(It&&(It=!1),it===vt?(wt+=vt?":":"::",It=!0):(wt+=pt(ut[vt],16),vt<7&&(wt+=":")));return"["+wt+"]"}return ut},Zt={},Ht=O({},Zt,{" ":1,'"':1,"<":1,">":1,"`":1}),Ye=O({},Ht,{"#":1,"?":1,"{":1,"}":1}),Ke=O({},Ye,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ct=function(ut,wt){var vt=D(ut,0);return vt>32&&vt<127&&!R(wt,ut)?ut:encodeURIComponent(ut)},Ot={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Pt=function(ut,wt){var vt;return ut.length===2&&et(Yt,tt(ut,0))&&((vt=tt(ut,1))===":"||!wt&&vt==="|")},Ct=function(ut){var wt;return ut.length>1&&Pt(Xt(ut,0,2))&&(ut.length===2||(wt=tt(ut,2))==="/"||wt==="\\"||wt==="?"||wt==="#")},Nt=function(ut){return ut==="."||Qt(ut)==="%2e"},bt=function(ut){return ut=Qt(ut),ut===".."||ut==="%2e."||ut===".%2e"||ut==="%2e%2e"},se={},Ce={},Rt={},Gt={},Vt={},Wt={},ue={},be={},je={},Ze={},en={},pn={},Gn={},Yr={},Ya={},ga={},yr={},Vn={},Ha={},ir={},Wn={},va=function(ut,wt,vt){var it=F(ut),It,ye,te;if(wt){if(ye=this.parse(it),ye)throw new Q(ye);this.searchParams=null}else{if(vt!==void 0&&(It=new va(vt,!0)),ye=this.parse(it,null,It),ye)throw new Q(ye);te=J(new W),te.bindURL(this),this.searchParams=te}};va.prototype={type:"URL",parse:function(ut,wt,vt){var it=this,It=wt||se,ye=0,te="",Re=!1,nn=!1,gn=!1,mn,st,rn,Fn;for(ut=F(ut),wt||(it.scheme="",it.username="",it.password="",it.host=null,it.port=null,it.path=[],it.query=null,it.fragment=null,it.cannotBeABaseURL=!1,ut=mt(ut,Ae,""),ut=mt(ut,Te,"$1")),ut=mt(ut,de,""),mn=C(ut);ye<=mn.length;){switch(st=mn[ye],It){case se:if(st&&et(Yt,st))te+=Qt(st),It=Ce;else{if(wt)return ge;It=Rt;continue}break;case Ce:if(st&&(et(re,st)||st==="+"||st==="-"||st==="."))te+=Qt(st);else if(st===":"){if(wt&&(it.isSpecial()!==R(Ot,te)||te==="file"&&(it.includesCredentials()||it.port!==null)||it.scheme==="file"&&!it.host))return;if(it.scheme=te,wt){it.isSpecial()&&Ot[it.scheme]===it.port&&(it.port=null);return}te="",it.scheme==="file"?It=Yr:it.isSpecial()&&vt&&vt.scheme===it.scheme?It=Gt:it.isSpecial()?It=be:mn[ye+1]==="/"?(It=Vt,ye++):(it.cannotBeABaseURL=!0,xt(it.path,""),It=Ha)}else{if(wt)return ge;te="",It=Rt,ye=0;continue}break;case Rt:if(!vt||vt.cannotBeABaseURL&&st!=="#")return ge;if(vt.cannotBeABaseURL&&st==="#"){it.scheme=vt.scheme,it.path=w(vt.path),it.query=vt.query,it.fragment="",it.cannotBeABaseURL=!0,It=Wn;break}It=vt.scheme==="file"?Yr:Wt;continue;case Gt:if(st==="/"&&mn[ye+1]==="/")It=je,ye++;else{It=Wt;continue}break;case Vt:if(st==="/"){It=Ze;break}else{It=Vn;continue}case Wt:if(it.scheme=vt.scheme,st===Et)it.username=vt.username,it.password=vt.password,it.host=vt.host,it.port=vt.port,it.path=w(vt.path),it.query=vt.query;else if(st==="/"||st==="\\"&&it.isSpecial())It=ue;else if(st==="?")it.username=vt.username,it.password=vt.password,it.host=vt.host,it.port=vt.port,it.path=w(vt.path),it.query="",It=ir;else if(st==="#")it.username=vt.username,it.password=vt.password,it.host=vt.host,it.port=vt.port,it.path=w(vt.path),it.query=vt.query,it.fragment="",It=Wn;else{it.username=vt.username,it.password=vt.password,it.host=vt.host,it.port=vt.port,it.path=w(vt.path),it.path.length--,It=Vn;continue}break;case ue:if(it.isSpecial()&&(st==="/"||st==="\\"))It=je;else if(st==="/")It=Ze;else{it.username=vt.username,it.password=vt.password,it.host=vt.host,it.port=vt.port,It=Vn;continue}break;case be:if(It=je,st!=="/"||tt(te,ye+1)!=="/")continue;ye++;break;case je:if(st!=="/"&&st!=="\\"){It=Ze;continue}break;case Ze:if(st==="@"){Re&&(te="%40"+te),Re=!0,rn=C(te);for(var tn=0;tn<rn.length;tn++){var Xn=rn[tn];if(Xn===":"&&!gn){gn=!0;continue}var On=ct(Xn,Ke);gn?it.password+=On:it.username+=On}te=""}else if(st===Et||st==="/"||st==="?"||st==="#"||st==="\\"&&it.isSpecial()){if(Re&&te==="")return me;ye-=C(te).length+1,te="",It=en}else te+=st;break;case en:case pn:if(wt&&it.scheme==="file"){It=ga;continue}else if(st===":"&&!nn){if(te==="")return ie;if(Fn=it.parseHost(te),Fn)return Fn;if(te="",It=Gn,wt===pn)return}else if(st===Et||st==="/"||st==="?"||st==="#"||st==="\\"&&it.isSpecial()){if(it.isSpecial()&&te==="")return ie;if(wt&&te===""&&(it.includesCredentials()||it.port!==null))return;if(Fn=it.parseHost(te),Fn)return Fn;if(te="",It=yr,wt)return;continue}else st==="["?nn=!0:st==="]"&&(nn=!1),te+=st;break;case Gn:if(et(le,st))te+=st;else if(st===Et||st==="/"||st==="?"||st==="#"||st==="\\"&&it.isSpecial()||wt){if(te!==""){var Bn=nt(te,10);if(Bn>65535)return Mt;it.port=it.isSpecial()&&Bn===Ot[it.scheme]?null:Bn,te=""}if(wt)return;It=yr;continue}else return Mt;break;case Yr:if(it.scheme="file",st==="/"||st==="\\")It=Ya;else if(vt&&vt.scheme==="file")switch(st){case Et:it.host=vt.host,it.path=w(vt.path),it.query=vt.query;break;case"?":it.host=vt.host,it.path=w(vt.path),it.query="",It=ir;break;case"#":it.host=vt.host,it.path=w(vt.path),it.query=vt.query,it.fragment="",It=Wn;break;default:Ct(ot(w(mn,ye),""))||(it.host=vt.host,it.path=w(vt.path),it.shortenPath()),It=Vn;continue}else{It=Vn;continue}break;case Ya:if(st==="/"||st==="\\"){It=ga;break}vt&&vt.scheme==="file"&&!Ct(ot(w(mn,ye),""))&&(Pt(vt.path[0],!0)?xt(it.path,vt.path[0]):it.host=vt.host),It=Vn;continue;case ga:if(st===Et||st==="/"||st==="\\"||st==="?"||st==="#"){if(!wt&&Pt(te))It=Vn;else if(te===""){if(it.host="",wt)return;It=yr}else{if(Fn=it.parseHost(te),Fn)return Fn;if(it.host==="localhost"&&(it.host=""),wt)return;te="",It=yr}continue}else te+=st;break;case yr:if(it.isSpecial()){if(It=Vn,st!=="/"&&st!=="\\")continue}else if(!wt&&st==="?")it.query="",It=ir;else if(!wt&&st==="#")it.fragment="",It=Wn;else if(st!==Et&&(It=Vn,st!=="/"))continue;break;case Vn:if(st===Et||st==="/"||st==="\\"&&it.isSpecial()||!wt&&(st==="?"||st==="#")){if(bt(te)?(it.shortenPath(),st!=="/"&&!(st==="\\"&&it.isSpecial())&&xt(it.path,"")):Nt(te)?st!=="/"&&!(st==="\\"&&it.isSpecial())&&xt(it.path,""):(it.scheme==="file"&&!it.path.length&&Pt(te)&&(it.host&&(it.host=""),te=tt(te,0)+":"),xt(it.path,te)),te="",it.scheme==="file"&&(st===Et||st==="?"||st==="#"))for(;it.path.length>1&&it.path[0]==="";)zt(it.path);st==="?"?(it.query="",It=ir):st==="#"&&(it.fragment="",It=Wn)}else te+=ct(st,Ye);break;case Ha:st==="?"?(it.query="",It=ir):st==="#"?(it.fragment="",It=Wn):st!==Et&&(it.path[0]+=ct(st,Zt));break;case ir:!wt&&st==="#"?(it.fragment="",It=Wn):st!==Et&&(st==="'"&&it.isSpecial()?it.query+="%27":st==="#"?it.query+="%23":it.query+=ct(st,Zt));break;case Wn:st!==Et&&(it.fragment+=ct(st,Ht));break}ye++}},parseHost:function(ut){var wt,vt,it;if(tt(ut,0)==="["){if(tt(ut,ut.length-1)!=="]"||(wt=Tt(Xt(ut,1,-1)),!wt))return ie;this.host=wt}else if(this.isSpecial()){if(ut=L(ut),et($e,ut)||(wt=Bt(ut),wt===null))return ie;this.host=wt}else{if(et(ce,ut))return ie;for(wt="",vt=C(ut),it=0;it<vt.length;it++)wt+=ct(vt[it],Zt);this.host=wt}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||this.scheme==="file"},includesCredentials:function(){return this.username!==""||this.password!==""},isSpecial:function(){return R(Ot,this.scheme)},shortenPath:function(){var ut=this.path,wt=ut.length;wt&&(this.scheme!=="file"||wt!==1||!Pt(ut[0],!0))&&ut.length--},serialize:function(){var ut=this,wt=ut.scheme,vt=ut.username,it=ut.password,It=ut.host,ye=ut.port,te=ut.path,Re=ut.query,nn=ut.fragment,gn=wt+":";return It!==null?(gn+="//",ut.includesCredentials()&&(gn+=vt+(it?":"+it:"")+"@"),gn+=ee(It),ye!==null&&(gn+=":"+ye)):wt==="file"&&(gn+="//"),gn+=ut.cannotBeABaseURL?te[0]:te.length?"/"+ot(te,"/"):"",Re!==null&&(gn+="?"+Re),nn!==null&&(gn+="#"+nn),gn},setHref:function(ut){var wt=this.parse(ut);if(wt)throw new Q(wt);this.searchParams.update()},getOrigin:function(){var ut=this.scheme,wt=this.port;if(ut==="blob")try{return new xr(ut.path[0]).origin}catch(vt){return"null"}return ut==="file"||!this.isSpecial()?"null":ut+"://"+ee(this.host)+(wt!==null?":"+wt:"")},getProtocol:function(){return this.scheme+":"},setProtocol:function(ut){this.parse(F(ut)+":",se)},getUsername:function(){return this.username},setUsername:function(ut){var wt=C(F(ut));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var vt=0;vt<wt.length;vt++)this.username+=ct(wt[vt],Ke)}},getPassword:function(){return this.password},setPassword:function(ut){var wt=C(F(ut));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var vt=0;vt<wt.length;vt++)this.password+=ct(wt[vt],Ke)}},getHost:function(){var ut=this.host,wt=this.port;return ut===null?"":wt===null?ee(ut):ee(ut)+":"+wt},setHost:function(ut){this.cannotBeABaseURL||this.parse(ut,en)},getHostname:function(){var ut=this.host;return ut===null?"":ee(ut)},setHostname:function(ut){this.cannotBeABaseURL||this.parse(ut,pn)},getPort:function(){var ut=this.port;return ut===null?"":F(ut)},setPort:function(ut){this.cannotHaveUsernamePasswordPort()||(ut=F(ut),ut===""?this.port=null:this.parse(ut,Gn))},getPathname:function(){var ut=this.path;return this.cannotBeABaseURL?ut[0]:ut.length?"/"+ot(ut,"/"):""},setPathname:function(ut){this.cannotBeABaseURL||(this.path=[],this.parse(ut,yr))},getSearch:function(){var ut=this.query;return ut?"?"+ut:""},setSearch:function(ut){ut=F(ut),ut===""?this.query=null:(tt(ut,0)==="?"&&(ut=Xt(ut,1)),this.query="",this.parse(ut,ir)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var ut=this.fragment;return ut?"#"+ut:""},setHash:function(ut){if(ut=F(ut),ut===""){this.fragment=null;return}tt(ut,0)==="#"&&(ut=Xt(ut,1)),this.fragment="",this.parse(ut,Wn)},update:function(){this.query=this.searchParams.serialize()||null}};var xr=function(wt){var vt=b(this,Tn),it=B(arguments.length,1)>1?arguments[1]:void 0,It=j(vt,new va(wt,!1,it));d||(vt.href=It.serialize(),vt.origin=It.getOrigin(),vt.protocol=It.getProtocol(),vt.username=It.getUsername(),vt.password=It.getPassword(),vt.host=It.getHost(),vt.hostname=It.getHostname(),vt.port=It.getPort(),vt.pathname=It.getPathname(),vt.search=It.getSearch(),vt.searchParams=It.getSearchParams(),vt.hash=It.getHash())},Tn=xr.prototype,wn=function(ut,wt){return{get:function(){return G(this)[ut]()},set:wt&&function(vt){return G(this)[wt](vt)},configurable:!0,enumerable:!0}};if(d&&(A(Tn,"href",wn("serialize","setHref")),A(Tn,"origin",wn("getOrigin")),A(Tn,"protocol",wn("getProtocol","setProtocol")),A(Tn,"username",wn("getUsername","setUsername")),A(Tn,"password",wn("getPassword","setPassword")),A(Tn,"host",wn("getHost","setHost")),A(Tn,"hostname",wn("getHostname","setHostname")),A(Tn,"port",wn("getPort","setPort")),A(Tn,"pathname",wn("getPathname","setPathname")),A(Tn,"search",wn("getSearch","setSearch")),A(Tn,"searchParams",wn("getSearchParams")),A(Tn,"hash",wn("getHash","setHash"))),$(Tn,"toJSON",function(){return G(this).serialize()},{enumerable:!0}),$(Tn,"toString",function(){return G(this).serialize()},{enumerable:!0}),k){var Wa=k.createObjectURL,Ka=k.revokeObjectURL;Wa&&$(xr,"createObjectURL",y(Wa,k)),Ka&&$(xr,"revokeObjectURL",y(Ka,k))}z(xr,"URL"),f({global:!0,constructor:!0,forced:!h,sham:!d},{URL:xr})},function(x,E,r){var f=r(7),d=r(33),h=r(6),p=r(36),y=d("iterator");x.exports=!f(function(){var T=new URL("b?a=1&b=2&c=3","https://a"),$=T.searchParams,A=new URLSearchParams("a=1&a=2&b=3"),b="";return T.pathname="c%20d",$.forEach(function(R,O){$.delete("b"),b+=O+R}),A.delete("a",2),A.delete("b",void 0),p&&(!T.toJSON||!A.has("a",1)||A.has("a",2)||!A.has("a",void 0)||A.has("b"))||!$.size&&(p||!h)||!$.sort||T.href!=="https://a/c%20d?a=1&c=3"||$.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!$[y]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("https://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("https://a#\u0431").hash!=="#%D0%B1"||b!=="a1c3"||new URL("https://x",void 0).host!=="x"})},function(x,E,r){var f=r(14),d=2147483647,h=36,p=1,y=26,T=38,$=700,A=72,b=128,R="-",O=/[^\0-\u007E]/,C=/[.\u3002\uFF0E\uFF61]/g,w="Overflow: input needs wider integers to process",D=h-p,L=RangeError,F=f(C.exec),z=Math.floor,B=String.fromCharCode,U=f("".charCodeAt),V=f([].join),j=f([].push),G=f("".replace),W=f("".split),J=f("".toLowerCase),k=function(q){for(var tt=[],et=0,ot=q.length;et<ot;){var pt=U(q,et++);if(pt>=55296&&pt<=56319&&et<ot){var gt=U(q,et++);(gt&64512)===56320?j(tt,((pt&1023)<<10)+(gt&1023)+65536):(j(tt,pt),et--)}else j(tt,pt)}return tt},Q=function(q){return q+22+75*(q<26)},nt=function(q,tt,et){var ot=0;for(q=et?z(q/$):q>>1,q+=z(q/tt);q>D*y>>1;)q=z(q/D),ot+=h;return z(ot+(D+1)*q/(q+T))},rt=function(q){var tt=[];q=k(q);var et=q.length,ot=b,pt=0,gt=A,xt,mt;for(xt=0;xt<q.length;xt++)mt=q[xt],mt<128&&j(tt,B(mt));var zt=tt.length,Lt=zt;for(zt&&j(tt,R);Lt<et;){var Xt=d;for(xt=0;xt<q.length;xt++)mt=q[xt],mt>=ot&&mt<Xt&&(Xt=mt);var Qt=Lt+1;if(Xt-ot>z((d-pt)/Qt))throw new L(w);for(pt+=(Xt-ot)*Qt,ot=Xt,xt=0;xt<q.length;xt++){if(mt=q[xt],mt<ot&&++pt>d)throw new L(w);if(mt===ot){for(var _t=pt,me=h;;){var ge=me<=gt?p:me>=gt+y?y:me-gt;if(_t<ge)break;var ie=_t-ge,Mt=h-ge;j(tt,B(Q(ge+ie%Mt))),_t=z(ie/Mt),me+=h}j(tt,B(Q(_t))),gt=nt(pt,Qt,Lt===zt),pt=0,Lt++}}pt++,ot++}return V(tt,"")};x.exports=function(q){var tt=[],et=W(G(J(q),C,"."),"."),ot,pt;for(ot=0;ot<et.length;ot++)pt=et[ot],j(tt,F(O,pt)?"xn--"+rt(pt):pt);return V(tt,".")}},function(x,E,r){r(168),r(425);var f=r(3),d=r(4),h=r(345),p=r(23),y=r(8),T=r(14),$=r(6),A=r(549),b=r(47),R=r(77),O=r(210),C=r(82),w=r(170),D=r(51),L=r(211),F=r(21),z=r(38),B=r(84),U=r(69),V=r(46),j=r(20),G=r(68),W=r(71),J=r(11),k=r(133),Q=r(134),nt=r(172),rt=r(342),q=r(33),tt=r(189),et=q("iterator"),ot="URLSearchParams",pt=ot+"Iterator",gt=D.set,xt=D.getterFor(ot),mt=D.getterFor(pt),zt=h("fetch"),Lt=h("Request"),Xt=h("Headers"),Qt=Lt&&Lt.prototype,_t=Xt&&Xt.prototype,me=d.TypeError,ge=d.encodeURIComponent,ie=String.fromCharCode,Mt=p("String","fromCodePoint"),Yt=parseInt,re=T("".charAt),le=T([].join),ne=T([].push),fe=T("".replace),Ie=T([].shift),Pe=T([].splice),$e=T("".split),ce=T("".slice),Ae=T(/./.exec),Te=/\+/g,de="\uFFFD",Et=/^[0-9a-f]+$/i,Bt=function(Rt,Gt){var Vt=ce(Rt,Gt,Gt+2);return Ae(Et,Vt)?Yt(Vt,16):NaN},Tt=function(Rt){for(var Gt=0,Vt=128;Vt>0&&Rt&Vt;Vt>>=1)Gt++;return Gt},qt=function(Rt){var Gt=null;switch(Rt.length){case 1:Gt=Rt[0];break;case 2:Gt=(Rt[0]&31)<<6|Rt[1]&63;break;case 3:Gt=(Rt[0]&15)<<12|(Rt[1]&63)<<6|Rt[2]&63;break;case 4:Gt=(Rt[0]&7)<<18|(Rt[1]&63)<<12|(Rt[2]&63)<<6|Rt[3]&63;break}return Gt>1114111?null:Gt},ee=function(Rt){Rt=fe(Rt,Te," ");for(var Gt=Rt.length,Vt="",Wt=0;Wt<Gt;){var ue=re(Rt,Wt);if(ue==="%"){if(re(Rt,Wt+1)==="%"||Wt+3>Gt){Vt+="%",Wt++;continue}var be=Bt(Rt,Wt+1);if(be!==be){Vt+=ue,Wt++;continue}Wt+=2;var je=Tt(be);if(je===0)ue=ie(be);else{if(je===1||je>4){Vt+=de,Wt++;continue}for(var Ze=[be],en=1;en<je&&(Wt++,!(Wt+3>Gt||re(Rt,Wt)!=="%"));){var pn=Bt(Rt,Wt+1);if(pn!==pn){Wt+=3;break}if(pn>191||pn<128)break;ne(Ze,pn),Wt+=2,en++}if(Ze.length!==je){Vt+=de;continue}var Gn=qt(Ze);Gn===null?Vt+=de:ue=Mt(Gn)}}Vt+=ue,Wt++}return Vt},Zt=/[!'()~]|%20/g,Ht={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Ye=function(Rt){return Ht[Rt]},Ke=function(Rt){return fe(ge(Rt),Zt,Ye)},ct=w(function(Gt,Vt){gt(this,{type:pt,target:xt(Gt).entries,index:0,kind:Vt})},ot,function(){var Gt=mt(this),Vt=Gt.target,Wt=Gt.index++;if(!Vt||Wt>=Vt.length)return Gt.target=null,nt(void 0,!0);var ue=Vt[Wt];switch(Gt.kind){case"keys":return nt(ue.key,!1);case"values":return nt(ue.value,!1)}return nt([ue.key,ue.value],!1)},!0),Ot=function(Rt){this.entries=[],this.url=null,Rt!==void 0&&(j(Rt)?this.parseObject(Rt):this.parseQuery(typeof Rt=="string"?re(Rt,0)==="?"?ce(Rt,1):Rt:G(Rt)))};Ot.prototype={type:ot,bindURL:function(Rt){this.url=Rt,this.update()},parseObject:function(Rt){var Gt=this.entries,Vt=Q(Rt),Wt,ue,be,je,Ze,en,pn;if(Vt)for(Wt=k(Rt,Vt),ue=Wt.next;!(be=y(ue,Wt)).done;){if(je=k(V(be.value)),Ze=je.next,(en=y(Ze,je)).done||(pn=y(Ze,je)).done||!y(Ze,je).done)throw new me("Expected sequence with length 2");ne(Gt,{key:G(en.value),value:G(pn.value)})}else for(var Gn in Rt)z(Rt,Gn)&&ne(Gt,{key:Gn,value:G(Rt[Gn])})},parseQuery:function(Rt){if(Rt)for(var Gt=this.entries,Vt=$e(Rt,"&"),Wt=0,ue,be;Wt<Vt.length;)ue=Vt[Wt++],ue.length&&(be=$e(ue,"="),ne(Gt,{key:ee(Ie(be)),value:ee(le(be,"="))}))},serialize:function(){for(var Rt=this.entries,Gt=[],Vt=0,Wt;Vt<Rt.length;)Wt=Rt[Vt++],ne(Gt,Ke(Wt.key)+"="+Ke(Wt.value));return le(Gt,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Pt=function(){L(this,Ct);var Gt=arguments.length>0?arguments[0]:void 0,Vt=gt(this,new Ot(Gt));$||(this.size=Vt.entries.length)},Ct=Pt.prototype;if(O(Ct,{append:function(Gt,Vt){var Wt=xt(this);rt(arguments.length,2),ne(Wt.entries,{key:G(Gt),value:G(Vt)}),$||this.length++,Wt.updateURL()},delete:function(Rt){for(var Gt=xt(this),Vt=rt(arguments.length,1),Wt=Gt.entries,ue=G(Rt),be=Vt<2?void 0:arguments[1],je=be===void 0?be:G(be),Ze=0;Ze<Wt.length;){var en=Wt[Ze];if(en.key===ue&&(je===void 0||en.value===je)){if(Pe(Wt,Ze,1),je!==void 0)break}else Ze++}$||(this.size=Wt.length),Gt.updateURL()},get:function(Gt){var Vt=xt(this).entries;rt(arguments.length,1);for(var Wt=G(Gt),ue=0;ue<Vt.length;ue++)if(Vt[ue].key===Wt)return Vt[ue].value;return null},getAll:function(Gt){var Vt=xt(this).entries;rt(arguments.length,1);for(var Wt=G(Gt),ue=[],be=0;be<Vt.length;be++)Vt[be].key===Wt&&ne(ue,Vt[be].value);return ue},has:function(Gt){for(var Vt=xt(this).entries,Wt=rt(arguments.length,1),ue=G(Gt),be=Wt<2?void 0:arguments[1],je=be===void 0?be:G(be),Ze=0;Ze<Vt.length;){var en=Vt[Ze++];if(en.key===ue&&(je===void 0||en.value===je))return!0}return!1},set:function(Gt,Vt){var Wt=xt(this);rt(arguments.length,1);for(var ue=Wt.entries,be=!1,je=G(Gt),Ze=G(Vt),en=0,pn;en<ue.length;en++)pn=ue[en],pn.key===je&&(be?Pe(ue,en--,1):(be=!0,pn.value=Ze));be||ne(ue,{key:je,value:Ze}),$||(this.size=ue.length),Wt.updateURL()},sort:function(){var Gt=xt(this);tt(Gt.entries,function(Vt,Wt){return Vt.key>Wt.key?1:-1}),Gt.updateURL()},forEach:function(Gt){for(var Vt=xt(this).entries,Wt=B(Gt,arguments.length>1?arguments[1]:void 0),ue=0,be;ue<Vt.length;)be=Vt[ue++],Wt(be.value,be.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}),b(Ct,et,Ct.entries,{name:"entries"}),b(Ct,"toString",function(){return xt(this).serialize()},{enumerable:!0}),$&&R(Ct,"size",{get:function(){return xt(this).entries.length},configurable:!0,enumerable:!0}),C(Pt,ot),f({global:!0,constructor:!0,forced:!A},{URLSearchParams:Pt}),!A&&F(Xt)){var Nt=T(_t.has),bt=T(_t.set),se=function(Rt){if(j(Rt)){var Gt=Rt.body,Vt;if(U(Gt)===ot)return Vt=Rt.headers?new Xt(Rt.headers):new Xt,Nt(Vt,"content-type")||bt(Vt,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),W(Rt,{body:J(0,G(Gt)),headers:J(0,Vt)})}return Rt};if(F(zt)&&f({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(Gt){return zt(Gt,arguments.length>1?se(arguments[1]):{})}}),F(Lt)){var Ce=function(Gt){return L(this,Qt),new Lt(Gt,arguments.length>1?se(arguments[1]):{})};Qt.constructor=Ce,Ce.prototype=Qt,f({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Ce})}}x.exports={URLSearchParams:Pt,getState:xt}},function(x,E,r){var f=r(3),d=r(23),h=r(7),p=r(342),y=r(68),T=r(549),$=d("URL"),A=T&&h(function(){$.canParse()}),b=h(function(){return $.canParse.length!==1});f({target:"URL",stat:!0,forced:!A||b},{canParse:function(O){var C=p(arguments.length,1),w=y(O),D=C<2||arguments[1]===void 0?void 0:y(arguments[1]);try{return!!new $(w,D)}catch(L){return!1}}})},function(x,E,r){var f=r(3),d=r(23),h=r(342),p=r(68),y=r(549),T=d("URL");f({target:"URL",stat:!0,forced:!y},{parse:function(A){var b=h(arguments.length,1),R=p(A),O=b<2||arguments[1]===void 0?void 0:p(arguments[1]);try{return new T(R,O)}catch(C){return null}}})},function(x,E,r){var f=r(3),d=r(8);f({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return d(URL.prototype.toString,this)}})},function(x,E,r){r(551)},function(x,E,r){var f=r(47),d=r(14),h=r(68),p=r(342),y=URLSearchParams,T=y.prototype,$=d(T.append),A=d(T.delete),b=d(T.forEach),R=d([].push),O=new y("a=1&a=2&b=3");O.delete("a",1),O.delete("b",void 0),O+""!="a=2"&&f(T,"delete",function(C){var w=arguments.length,D=w<2?void 0:arguments[1];if(w&&D===void 0)return A(this,C);var L=[];b(this,function(W,J){R(L,{key:J,value:W})}),p(w,1);for(var F=h(C),z=h(D),B=0,U=0,V=!1,j=L.length,G;B<j;)G=L[B++],V||G.key===F?(V=!0,A(this,G.key)):U++;for(;U<j;)G=L[U++],G.key===F&&G.value===z||$(this,G.key,G.value)},{enumerable:!0,unsafe:!0})},function(x,E,r){var f=r(47),d=r(14),h=r(68),p=r(342),y=URLSearchParams,T=y.prototype,$=d(T.getAll),A=d(T.has),b=new y("a=1");(b.has("a",2)||!b.has("a",void 0))&&f(T,"has",function(O){var C=arguments.length,w=C<2?void 0:arguments[1];if(C&&w===void 0)return A(this,O);var D=$(this,O);p(C,1);for(var L=h(w),F=0;F<D.length;)if(D[F++]===L)return!0;return!1},{enumerable:!0,unsafe:!0})},function(x,E,r){var f=r(6),d=r(14),h=r(77),p=URLSearchParams.prototype,y=d(p.forEach);f&&!("size"in p)&&h(p,"size",{get:function(){var $=0;return y(this,function(){$++}),$},configurable:!0,enumerable:!0})},function(x,E,r){r.r(E),r.d(E,{bb:function(){return Sf},default:function(){return Sf}});var f={};r.r(f),r.d(f,{selection:function(){return du},subchart:function(){return hu},zoom:function(){return gu}});var d={};r.r(d),r.d(d,{area:function(){return ef},areaLineRange:function(){return nf},areaSpline:function(){return af},areaSplineRange:function(){return sf},areaStep:function(){return of},areaStepRange:function(){return rf},bar:function(){return pf},bubble:function(){return mf},candlestick:function(){return yf},donut:function(){return ff},funnel:function(){return Tf},gauge:function(){return df},line:function(){return lf},pie:function(){return hf},polar:function(){return gf},radar:function(){return vf},scatter:function(){return xf},spline:function(){return cf},step:function(){return uf},treemap:function(){return $f}});function h(){}function p(t){return t==null?h:function(){return this.querySelector(t)}}function y(t){typeof t!="function"&&(t=p(t));for(var e=this._groups,n=e.length,a=new Array(n),i=0;i<n;++i)for(var s=e[i],o=s.length,l=a[i]=new Array(o),c,u,g=0;g<o;++g)(c=s[g])&&(u=t.call(c,c.__data__,g,s))&&("__data__"in c&&(u.__data__=c.__data__),l[g]=u);return new Re(a,this._parents)}function T(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function $(){return[]}function A(t){return t==null?$:function(){return this.querySelectorAll(t)}}function b(t){return function(){return T(t.apply(this,arguments))}}function R(t){typeof t=="function"?t=b(t):t=A(t);for(var e=this._groups,n=e.length,a=[],i=[],s=0;s<n;++s)for(var o=e[s],l=o.length,c,u=0;u<l;++u)(c=o[u])&&(a.push(t.call(c,c.__data__,u,o)),i.push(c));return new Re(a,i)}function O(t){return function(){return this.matches(t)}}function C(t){return function(e){return e.matches(t)}}var w=Array.prototype.find;function D(t){return function(){return w.call(this.children,t)}}function L(){return this.firstElementChild}function F(t){return this.select(t==null?L:D(typeof t=="function"?t:C(t)))}var z=Array.prototype.filter;function B(){return Array.from(this.children)}function U(t){return function(){return z.call(this.children,t)}}function V(t){return this.selectAll(t==null?B:U(typeof t=="function"?t:C(t)))}function j(t){typeof t!="function"&&(t=O(t));for(var e=this._groups,n=e.length,a=new Array(n),i=0;i<n;++i)for(var s=e[i],o=s.length,l=a[i]=[],c,u=0;u<o;++u)(c=s[u])&&t.call(c,c.__data__,u,s)&&l.push(c);return new Re(a,this._parents)}function G(t){return new Array(t.length)}function W(){return new Re(this._enter||this._groups.map(G),this._parents)}function J(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}J.prototype={constructor:J,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)}};function k(t){return function(){return t}}function Q(t,e,n,a,i,s){for(var o=0,l,c=e.length,u=s.length;o<u;++o)(l=e[o])?(l.__data__=s[o],a[o]=l):n[o]=new J(t,s[o]);for(;o<c;++o)(l=e[o])&&(i[o]=l)}function nt(t,e,n,a,i,s,o){var l,c,u=new Map,g=e.length,v=s.length,m=new Array(g),S;for(l=0;l<g;++l)(c=e[l])&&(m[l]=S=o.call(c,c.__data__,l,e)+"",u.has(S)?i[l]=c:u.set(S,c));for(l=0;l<v;++l)S=o.call(t,s[l],l,s)+"",(c=u.get(S))?(a[l]=c,c.__data__=s[l],u.delete(S)):n[l]=new J(t,s[l]);for(l=0;l<g;++l)(c=e[l])&&u.get(m[l])===c&&(i[l]=c)}function rt(t){return t.__data__}function q(t,e){if(!arguments.length)return Array.from(this,rt);var n=e?nt:Q,a=this._parents,i=this._groups;typeof t!="function"&&(t=k(t));for(var s=i.length,o=new Array(s),l=new Array(s),c=new Array(s),u=0;u<s;++u){var g=a[u],v=i[u],m=v.length,S=tt(t.call(g,g&&g.__data__,u,a)),I=S.length,N=l[u]=new Array(I),M=o[u]=new Array(I),P=c[u]=new Array(m);n(g,v,N,M,P,S,e);for(var X=0,H=0,Y,_;X<I;++X)if(Y=N[X]){for(X>=H&&(H=X+1);!(_=M[H])&&++H<I;);Y._next=_||null}}return o=new Re(o,a),o._enter=l,o._exit=c,o}function tt(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function et(){return new Re(this._exit||this._groups.map(G),this._parents)}function ot(t,e,n){var a=this.enter(),i=this,s=this.exit();return typeof t=="function"?(a=t(a),a&&(a=a.selection())):a=a.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),n==null?s.remove():n(s),a&&i?a.merge(i).order():i}function pt(t){for(var e=t.selection?t.selection():t,n=this._groups,a=e._groups,i=n.length,s=a.length,o=Math.min(i,s),l=new Array(i),c=0;c<o;++c)for(var u=n[c],g=a[c],v=u.length,m=l[c]=new Array(v),S,I=0;I<v;++I)(S=u[I]||g[I])&&(m[I]=S);for(;c<i;++c)l[c]=n[c];return new Re(l,this._parents)}function gt(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var a=t[e],i=a.length-1,s=a[i],o;--i>=0;)(o=a[i])&&(s&&o.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(o,s),s=o);return this}function xt(t){t||(t=mt);function e(v,m){return v&&m?t(v.__data__,m.__data__):!v-!m}for(var n=this._groups,a=n.length,i=new Array(a),s=0;s<a;++s){for(var o=n[s],l=o.length,c=i[s]=new Array(l),u,g=0;g<l;++g)(u=o[g])&&(c[g]=u);c.sort(e)}return new Re(i,this._parents).order()}function mt(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function zt(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Lt(){return Array.from(this)}function Xt(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var a=t[e],i=0,s=a.length;i<s;++i){var o=a[i];if(o)return o}return null}function Qt(){let t=0;for(const e of this)++t;return t}function _t(){return!this.node()}function me(t){for(var e=this._groups,n=0,a=e.length;n<a;++n)for(var i=e[n],s=0,o=i.length,l;s<o;++s)(l=i[s])&&t.call(l,l.__data__,s,i);return this}var ge="http://www.w3.org/1999/xhtml",ie={svg:"http://www.w3.org/2000/svg",xhtml:ge,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Mt(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),ie.hasOwnProperty(e)?{space:ie[e],local:t}:t}function Yt(t){return function(){this.removeAttribute(t)}}function re(t){return function(){this.removeAttributeNS(t.space,t.local)}}function le(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);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function Ie(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Pe(t,e){var n=Mt(t);if(arguments.length<2){var a=this.node();return n.local?a.getAttributeNS(n.space,n.local):a.getAttribute(n)}return this.each((e==null?n.local?re:Yt:typeof e=="function"?n.local?Ie:fe:n.local?ne:le)(n,e))}function $e(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function ce(t){return function(){this.style.removeProperty(t)}}function Ae(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Te(t,e,n){return function(){var a=e.apply(this,arguments);a==null?this.style.removeProperty(t):this.style.setProperty(t,a,n)}}function de(t,e,n){return arguments.length>1?this.each((e==null?ce:typeof e=="function"?Te:Ae)(t,e,n==null?"":n)):Et(this.node(),t)}function Et(t,e){return t.style.getPropertyValue(e)||$e(t).getComputedStyle(t,null).getPropertyValue(e)}function Bt(t){return function(){delete this[t]}}function Tt(t,e){return function(){this[t]=e}}function qt(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function ee(t,e){return arguments.length>1?this.each((e==null?Bt:typeof e=="function"?qt:Tt)(t,e)):this.node()[t]}function Zt(t){return t.trim().split(/^|\s+/)}function Ht(t){return t.classList||new Ye(t)}function Ye(t){this._node=t,this._names=Zt(t.getAttribute("class")||"")}Ye.prototype={add:function(t){var e=this._names.indexOf(t);e<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}};function Ke(t,e){for(var n=Ht(t),a=-1,i=e.length;++a<i;)n.add(e[a])}function ct(t,e){for(var n=Ht(t),a=-1,i=e.length;++a<i;)n.remove(e[a])}function Ot(t){return function(){Ke(this,t)}}function Pt(t){return function(){ct(this,t)}}function Ct(t,e){return function(){(e.apply(this,arguments)?Ke:ct)(this,t)}}function Nt(t,e){var n=Zt(t+"");if(arguments.length<2){for(var a=Ht(this.node()),i=-1,s=n.length;++i<s;)if(!a.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?Ct:e?Ot:Pt)(n,e))}function bt(){this.textContent=""}function se(t){return function(){this.textContent=t}}function Ce(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function Rt(t){return arguments.length?this.each(t==null?bt:(typeof t=="function"?Ce:se)(t)):this.node().textContent}function Gt(){this.innerHTML=""}function Vt(t){return function(){this.innerHTML=t}}function Wt(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function ue(t){return arguments.length?this.each(t==null?Gt:(typeof t=="function"?Wt:Vt)(t)):this.node().innerHTML}function be(){this.nextSibling&&this.parentNode.appendChild(this)}function je(){return this.each(be)}function Ze(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function en(){return this.each(Ze)}function pn(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===ge&&e.documentElement.namespaceURI===ge?e.createElement(t):e.createElementNS(n,t)}}function Gn(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Yr(t){var e=Mt(t);return(e.local?Gn:pn)(e)}function Ya(t){var e=typeof t=="function"?t:Yr(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function ga(){return null}function yr(t,e){var n=typeof t=="function"?t:Yr(t),a=e==null?ga:typeof e=="function"?e:p(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),a.apply(this,arguments)||null)})}function Vn(){var t=this.parentNode;t&&t.removeChild(this)}function Ha(){return this.each(Vn)}function ir(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Wn(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function va(t){return this.select(t?Wn:ir)}function xr(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Tn(t){return function(e){t.call(this,e,this.__data__)}}function wn(t){return t.trim().split(/^|\s+/).map(function(e){var n="",a=e.indexOf(".");return a>=0&&(n=e.slice(a+1),e=e.slice(0,a)),{type:e,name:n}})}function Wa(t){return function(){var e=this.__on;if(e){for(var n=0,a=-1,i=e.length,s;n<i;++n)s=e[n],(!t.type||s.type===t.type)&&s.name===t.name?this.removeEventListener(s.type,s.listener,s.options):e[++a]=s;++a?e.length=a:delete this.__on}}}function Ka(t,e,n){return function(){var a=this.__on,i,s=Tn(e);if(a){for(var o=0,l=a.length;o<l;++o)if((i=a[o]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=s,i.options=n),i.value=e;return}}this.addEventListener(t.type,s,n),i={type:t.type,name:t.name,value:e,listener:s,options:n},a?a.push(i):this.__on=[i]}}function ut(t,e,n){var a=wn(t+""),i,s=a.length,o;if(arguments.length<2){var l=this.node().__on;if(l){for(var c=0,u=l.length,g;c<u;++c)for(i=0,g=l[c];i<s;++i)if((o=a[i]).type===g.type&&o.name===g.name)return g.value}return}for(l=e?Ka:Wa,i=0;i<s;++i)this.each(l(a[i],e,n));return this}function wt(t,e,n){var a=$e(t),i=a.CustomEvent;typeof i=="function"?i=new i(e,n):(i=a.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function vt(t,e){return function(){return wt(this,t,e)}}function it(t,e){return function(){return wt(this,t,e.apply(this,arguments))}}function It(t,e){return this.each((typeof e=="function"?it:vt)(t,e))}function*ye(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var a=t[e],i=0,s=a.length,o;i<s;++i)(o=a[i])&&(yield o)}var te=[null];function Re(t,e){this._groups=t,this._parents=e}function nn(){return new Re([[document.documentElement]],te)}function gn(){return this}Re.prototype=nn.prototype={constructor:Re,select:y,selectAll:R,selectChild:F,selectChildren:V,filter:j,data:q,enter:W,exit:et,join:ot,merge:pt,selection:gn,order:gt,sort:xt,call:zt,nodes:Lt,node:Xt,size:Qt,empty:_t,each:me,attr:Pe,style:de,property:ee,classed:Nt,text:Rt,html:ue,raise:je,lower:en,append:Ya,insert:yr,remove:Ha,clone:va,datum:xr,on:ut,dispatch:It,[Symbol.iterator]:ye};var mn=nn;function st(t){return typeof t=="string"?new Re([[document.querySelector(t)]],[document.documentElement]):new Re([[t]],te)}const rn=new Date,Fn=new Date;function tn(t,e,n,a){function i(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return i.floor=s=>(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const o=i(s),l=i.ceil(s);return s-o<l-s?o:l},i.offset=(s,o)=>(e(s=new Date(+s),o==null?1:Math.floor(o)),s),i.range=(s,o,l)=>{const c=[];if(s=i.ceil(s),l=l==null?1:Math.floor(l),!(s<o)||!(l>0))return c;let u;do c.push(u=new Date(+s)),e(s,l),t(s);while(u<s&&s<o);return c},i.filter=s=>tn(o=>{if(o>=o)for(;t(o),!s(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;e(o,-1),!s(o););else for(;--l>=0;)for(;e(o,1),!s(o););}),n&&(i.count=(s,o)=>(rn.setTime(+s),Fn.setTime(+o),t(rn),t(Fn),Math.floor(n(rn,Fn))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(a?o=>a(o)%s===0:o=>i.count(0,o)%s===0):i)),i}const Xn=1e3,On=Xn*60,Bn=On*60,sr=Bn*24,qi=sr*7,Io=sr*30,ts=sr*365;function Rr(t){return tn(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*On)/qi)}const Za=Rr(0),ka=Rr(1),bf=Rr(2),Ef=Rr(3),Hr=Rr(4),Rf=Rr(5),Of=Rr(6),b0=Za.range,E0=ka.range,R0=bf.range,O0=Ef.range,I0=Hr.range,C0=Rf.range,P0=Of.range;function Or(t){return tn(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/qi)}const Ja=Or(0),Qa=Or(1),If=Or(2),Cf=Or(3),Wr=Or(4),Pf=Or(5),wf=Or(6),w0=Ja.range,M0=Qa.range,L0=If.range,D0=Cf.range,N0=Wr.range,F0=Pf.range,B0=wf.range,pa=tn(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*On)/sr,t=>t.getDate()-1),U0=pa.range,_a=tn(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/sr,t=>t.getUTCDate()-1),z0=_a.range,Co=tn(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/sr,t=>Math.floor(t/sr)),j0=Co.range,or=tn(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());or.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:tn(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});const G0=or.range,lr=tn(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());lr.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:tn(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});const V0=lr.range;function es(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 ns(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 ma(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Mf(t){var e=t.dateTime,n=t.date,a=t.time,i=t.periods,s=t.days,o=t.shortDays,l=t.months,c=t.shortMonths,u=ya(i),g=xa(i),v=ya(s),m=xa(s),S=ya(o),I=xa(o),N=ya(l),M=xa(l),P=ya(c),X=xa(c),H={a:At,A:jt,b:Ut,B:kt,c:null,d:No,e:No,f:ed,g:fd,G:hd,H:_f,I:qf,j:td,L:Fo,m:nd,M:rd,p:Kt,q:ae,Q:Vo,s:Xo,S:ad,u:id,U:sd,V:od,w:ld,W:cd,x:null,X:null,y:ud,Y:dd,Z:gd,"%":Go},Y={a:Ve,A:Oe,b:Xe,B:hn,c:null,d:Uo,e:Uo,f:yd,g:Id,G:Pd,H:vd,I:pd,j:md,L:zo,m:xd,M:Td,p:De,q:dn,Q:Vo,s:Xo,S:$d,u:Sd,U:Ad,V:bd,w:Ed,W:Rd,x:null,X:null,y:Od,Y:Cd,Z:wd,"%":Go},_={a:dt,A:ft,b:Ft,B:ht,c:Z,d:Lo,e:Lo,f:Zf,g:Mo,G:wo,H:Do,I:Do,j:Yf,L:Kf,m:Xf,M:Hf,p:$t,q:Vf,Q:Jf,s:Qf,S:Wf,u:Bf,U:Uf,V:zf,w:Ff,W:jf,x:St,X:lt,y:Mo,Y:wo,Z:Gf,"%":kf};H.x=K(n,H),H.X=K(a,H),H.c=K(e,H),Y.x=K(n,Y),Y.X=K(a,Y),Y.c=K(e,Y);function K(Jt,xe){return function(Ee){var Dt=[],cn=-1,ze=0,Cn=Jt.length,Pn,pe,un;for(Ee instanceof Date||(Ee=new Date(+Ee));++cn<Cn;)Jt.charCodeAt(cn)===37&&(Dt.push(Jt.slice(ze,cn)),(pe=Po[Pn=Jt.charAt(++cn)])!=null?Pn=Jt.charAt(++cn):pe=Pn==="e"?" ":"0",(un=xe[Pn])&&(Pn=un(Ee,pe)),Dt.push(Pn),ze=cn+1);return Dt.push(Jt.slice(ze,cn)),Dt.join("")}}function at(Jt,xe){return function(Ee){var Dt=ma(1900,void 0,1),cn=yt(Dt,Jt,Ee+="",0),ze,Cn;if(cn!=Ee.length)return null;if("Q"in Dt)return new Date(Dt.Q);if("s"in Dt)return new Date(Dt.s*1e3+("L"in Dt?Dt.L:0));if(xe&&!("Z"in Dt)&&(Dt.Z=0),"p"in Dt&&(Dt.H=Dt.H%12+Dt.p*12),Dt.m===void 0&&(Dt.m="q"in Dt?Dt.q:0),"V"in Dt){if(Dt.V<1||Dt.V>53)return null;"w"in Dt||(Dt.w=1),"Z"in Dt?(ze=ns(ma(Dt.y,0,1)),Cn=ze.getUTCDay(),ze=Cn>4||Cn===0?Qa.ceil(ze):Qa(ze),ze=_a.offset(ze,(Dt.V-1)*7),Dt.y=ze.getUTCFullYear(),Dt.m=ze.getUTCMonth(),Dt.d=ze.getUTCDate()+(Dt.w+6)%7):(ze=es(ma(Dt.y,0,1)),Cn=ze.getDay(),ze=Cn>4||Cn===0?ka.ceil(ze):ka(ze),ze=pa.offset(ze,(Dt.V-1)*7),Dt.y=ze.getFullYear(),Dt.m=ze.getMonth(),Dt.d=ze.getDate()+(Dt.w+6)%7)}else("W"in Dt||"U"in Dt)&&("w"in Dt||(Dt.w="u"in Dt?Dt.u%7:"W"in Dt?1:0),Cn="Z"in Dt?ns(ma(Dt.y,0,1)).getUTCDay():es(ma(Dt.y,0,1)).getDay(),Dt.m=0,Dt.d="W"in Dt?(Dt.w+6)%7+Dt.W*7-(Cn+5)%7:Dt.w+Dt.U*7-(Cn+6)%7);return"Z"in Dt?(Dt.H+=Dt.Z/100|0,Dt.M+=Dt.Z%100,ns(Dt)):es(Dt)}}function yt(Jt,xe,Ee,Dt){for(var cn=0,ze=xe.length,Cn=Ee.length,Pn,pe;cn<ze;){if(Dt>=Cn)return-1;if(Pn=xe.charCodeAt(cn++),Pn===37){if(Pn=xe.charAt(cn++),pe=_[Pn in Po?xe.charAt(cn++):Pn],!pe||(Dt=pe(Jt,Ee,Dt))<0)return-1}else if(Pn!=Ee.charCodeAt(Dt++))return-1}return Dt}function $t(Jt,xe,Ee){var Dt=u.exec(xe.slice(Ee));return Dt?(Jt.p=g.get(Dt[0].toLowerCase()),Ee+Dt[0].length):-1}function dt(Jt,xe,Ee){var Dt=S.exec(xe.slice(Ee));return Dt?(Jt.w=I.get(Dt[0].toLowerCase()),Ee+Dt[0].length):-1}function ft(Jt,xe,Ee){var Dt=v.exec(xe.slice(Ee));return Dt?(Jt.w=m.get(Dt[0].toLowerCase()),Ee+Dt[0].length):-1}function Ft(Jt,xe,Ee){var Dt=P.exec(xe.slice(Ee));return Dt?(Jt.m=X.get(Dt[0].toLowerCase()),Ee+Dt[0].length):-1}function ht(Jt,xe,Ee){var Dt=N.exec(xe.slice(Ee));return Dt?(Jt.m=M.get(Dt[0].toLowerCase()),Ee+Dt[0].length):-1}function Z(Jt,xe,Ee){return yt(Jt,e,xe,Ee)}function St(Jt,xe,Ee){return yt(Jt,n,xe,Ee)}function lt(Jt,xe,Ee){return yt(Jt,a,xe,Ee)}function At(Jt){return o[Jt.getDay()]}function jt(Jt){return s[Jt.getDay()]}function Ut(Jt){return c[Jt.getMonth()]}function kt(Jt){return l[Jt.getMonth()]}function Kt(Jt){return i[+(Jt.getHours()>=12)]}function ae(Jt){return 1+~~(Jt.getMonth()/3)}function Ve(Jt){return o[Jt.getUTCDay()]}function Oe(Jt){return s[Jt.getUTCDay()]}function Xe(Jt){return c[Jt.getUTCMonth()]}function hn(Jt){return l[Jt.getUTCMonth()]}function De(Jt){return i[+(Jt.getUTCHours()>=12)]}function dn(Jt){return 1+~~(Jt.getUTCMonth()/3)}return{format:function(Jt){var xe=K(Jt+="",H);return xe.toString=function(){return Jt},xe},parse:function(Jt){var xe=at(Jt+="",!1);return xe.toString=function(){return Jt},xe},utcFormat:function(Jt){var xe=K(Jt+="",Y);return xe.toString=function(){return Jt},xe},utcParse:function(Jt){var xe=at(Jt+="",!0);return xe.toString=function(){return Jt},xe}}}var Po={"-":"",_:" ",0:"0"},yn=/^\s*\d+/,Lf=/^%/,Df=/[\\^$*+?|[\]().{}]/g;function Le(t,e,n){var a=t<0?"-":"",i=(a?-t:t)+"",s=i.length;return a+(s<n?new Array(n-s+1).join(e)+i:i)}function Nf(t){return t.replace(Df,"\\$&")}function ya(t){return new RegExp("^(?:"+t.map(Nf).join("|")+")","i")}function xa(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function Ff(t,e,n){var a=yn.exec(e.slice(n,n+1));return a?(t.w=+a[0],n+a[0].length):-1}function Bf(t,e,n){var a=yn.exec(e.slice(n,n+1));return a?(t.u=+a[0],n+a[0].length):-1}function Uf(t,e,n){var a=yn.exec(e.slice(n,n+2));return a?(t.U=+a[0],n+a[0].length):-1}function zf(t,e,n){var a=yn.exec(e.slice(n,n+2));return a?(t.V=+a[0],n+a[0].length):-1}function jf(t,e,n){var a=yn.exec(e.slice(n,n+2));return a?(t.W=+a[0],n+a[0].length):-1}function wo(t,e,n){var a=yn.exec(e.slice(n,n+4));return a?(t.y=+a[0],n+a[0].length):-1}function Mo(t,e,n){var a=yn.exec(e.slice(n,n+2));return a?(t.y=+a[0]+(+a[0]>68?1900:2e3),n+a[0].length):-1}function Gf(t,e,n){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return a?(t.Z=a[1]?0:-(a[2]+(a[3]||"00")),n+a[0].length):-1}function Vf(t,e,n){var a=yn.exec(e.slice(n,n+1));return a?(t.q=a[0]*3-3,n+a[0].length):-1}function Xf(t,e,n){var a=yn.exec(e.slice(n,n+2));return a?(t.m=a[0]-1,n+a[0].length):-1}function Lo(t,e,n){var a=yn.exec(e.slice(n,n+2));return a?(t.d=+a[0],n+a[0].length):-1}function Yf(t,e,n){var a=yn.exec(e.slice(n,n+3));return a?(t.m=0,t.d=+a[0],n+a[0].length):-1}function Do(t,e,n){var a=yn.exec(e.slice(n,n+2));return a?(t.H=+a[0],n+a[0].length):-1}function Hf(t,e,n){var a=yn.exec(e.slice(n,n+2));return a?(t.M=+a[0],n+a[0].length):-1}function Wf(t,e,n){var a=yn.exec(e.slice(n,n+2));return a?(t.S=+a[0],n+a[0].length):-1}function Kf(t,e,n){var a=yn.exec(e.slice(n,n+3));return a?(t.L=+a[0],n+a[0].length):-1}function Zf(t,e,n){var a=yn.exec(e.slice(n,n+6));return a?(t.L=Math.floor(a[0]/1e3),n+a[0].length):-1}function kf(t,e,n){var a=Lf.exec(e.slice(n,n+1));return a?n+a[0].length:-1}function Jf(t,e,n){var a=yn.exec(e.slice(n));return a?(t.Q=+a[0],n+a[0].length):-1}function Qf(t,e,n){var a=yn.exec(e.slice(n));return a?(t.s=+a[0],n+a[0].length):-1}function No(t,e){return Le(t.getDate(),e,2)}function _f(t,e){return Le(t.getHours(),e,2)}function qf(t,e){return Le(t.getHours()%12||12,e,2)}function td(t,e){return Le(1+pa.count(or(t),t),e,3)}function Fo(t,e){return Le(t.getMilliseconds(),e,3)}function ed(t,e){return Fo(t,e)+"000"}function nd(t,e){return Le(t.getMonth()+1,e,2)}function rd(t,e){return Le(t.getMinutes(),e,2)}function ad(t,e){return Le(t.getSeconds(),e,2)}function id(t){var e=t.getDay();return e===0?7:e}function sd(t,e){return Le(Za.count(or(t)-1,t),e,2)}function Bo(t){var e=t.getDay();return e>=4||e===0?Hr(t):Hr.ceil(t)}function od(t,e){return t=Bo(t),Le(Hr.count(or(t),t)+(or(t).getDay()===4),e,2)}function ld(t){return t.getDay()}function cd(t,e){return Le(ka.count(or(t)-1,t),e,2)}function ud(t,e){return Le(t.getFullYear()%100,e,2)}function fd(t,e){return t=Bo(t),Le(t.getFullYear()%100,e,2)}function dd(t,e){return Le(t.getFullYear()%1e4,e,4)}function hd(t,e){var n=t.getDay();return t=n>=4||n===0?Hr(t):Hr.ceil(t),Le(t.getFullYear()%1e4,e,4)}function gd(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Le(e/60|0,"0",2)+Le(e%60,"0",2)}function Uo(t,e){return Le(t.getUTCDate(),e,2)}function vd(t,e){return Le(t.getUTCHours(),e,2)}function pd(t,e){return Le(t.getUTCHours()%12||12,e,2)}function md(t,e){return Le(1+_a.count(lr(t),t),e,3)}function zo(t,e){return Le(t.getUTCMilliseconds(),e,3)}function yd(t,e){return zo(t,e)+"000"}function xd(t,e){return Le(t.getUTCMonth()+1,e,2)}function Td(t,e){return Le(t.getUTCMinutes(),e,2)}function $d(t,e){return Le(t.getUTCSeconds(),e,2)}function Sd(t){var e=t.getUTCDay();return e===0?7:e}function Ad(t,e){return Le(Ja.count(lr(t)-1,t),e,2)}function jo(t){var e=t.getUTCDay();return e>=4||e===0?Wr(t):Wr.ceil(t)}function bd(t,e){return t=jo(t),Le(Wr.count(lr(t),t)+(lr(t).getUTCDay()===4),e,2)}function Ed(t){return t.getUTCDay()}function Rd(t,e){return Le(Qa.count(lr(t)-1,t),e,2)}function Od(t,e){return Le(t.getUTCFullYear()%100,e,2)}function Id(t,e){return t=jo(t),Le(t.getUTCFullYear()%100,e,2)}function Cd(t,e){return Le(t.getUTCFullYear()%1e4,e,4)}function Pd(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Wr(t):Wr.ceil(t),Le(t.getUTCFullYear()%1e4,e,4)}function wd(){return"+0000"}function Go(){return"%"}function Vo(t){return+t}function Xo(t){return Math.floor(+t/1e3)}var Kr,rs,Yo,as,Ho;Md({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"]});function Md(t){return Kr=Mf(t),rs=Kr.format,Yo=Kr.parse,as=Kr.utcFormat,Ho=Kr.utcParse,Kr}var Ld=Object.defineProperty,Wo=Object.getOwnPropertySymbols,Dd=Object.prototype.hasOwnProperty,Nd=Object.prototype.propertyIsEnumerable,Ko=(t,e,n)=>e in t?Ld(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Je=(t,e)=>{for(var n in e||(e={}))Dd.call(e,n)&&Ko(t,n,e[n]);if(Wo)for(var n of Wo(e))Nd.call(e,n)&&Ko(t,n,e[n]);return t};const Se={button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_"},Ue={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcRange:"bb-arc-range",arcs:"bb-arcs",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsTitle:"bb-chart-arcs-title",needle:"bb-needle"},qa={area:"bb-area",areas:"bb-areas"},fn={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",axisXTooltip:"bb-axis-x-tooltip",axisYTooltip:"bb-axis-y-tooltip",axisY2Tooltip:"bb-axis-y2-tooltip"},Kn={bar:"bb-bar",bars:"bb-bars",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars"},cr={candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"},$n={chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"},is={colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"},Ir={dragarea:"bb-dragarea",INCLUDED:"_included_"},Ta={funnel:"bb-funnel",chartFunnel:"bb-chart-funnel",chartFunnels:"bb-chart-funnels",funnelBackground:"bb-funnel-background"},Un={chartArcsGaugeMax:"bb-chart-arcs-gauge-max",chartArcsGaugeMin:"bb-chart-arcs-gauge-min",chartArcsGaugeUnit:"bb-chart-arcs-gauge-unit",chartArcsGaugeTitle:"bb-chart-arcs-gauge-title",gaugeValue:"bb-gauge-value"},He={legend:"bb-legend",legendBackground:"bb-legend-background",legendItem:"bb-legend-item",legendItemEvent:"bb-legend-item-event",legendItemHidden:"bb-legend-item-hidden",legendItemPoint:"bb-legend-item-point",legendItemTile:"bb-legend-item-tile"},ur={chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"},Zn={eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"},Qe={focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",ygridFocus:"bb-ygrid-focus"},an={grid:"bb-grid",gridLines:"bb-grid-lines",xgrid:"bb-xgrid",xgridLine:"bb-xgrid-line",xgridLines:"bb-xgrid-lines",xgrids:"bb-xgrids",ygrid:"bb-ygrid",ygridLine:"bb-ygrid-line",ygridLines:"bb-ygrid-lines",ygrids:"bb-ygrids"},Tr={level:"bb-level",levels:"bb-levels"},Zo={chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"},$a={region:"bb-region",regions:"bb-regions"},qe={selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"},sn={shape:"bb-shape",shapes:"bb-shapes"},ko={brush:"bb-brush",subchart:"bb-subchart"},In={chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",TextOverlapping:"text-overlapping"},ti={tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"},Jo={treemap:"bb-treemap",chartTreemap:"bb-chart-treemap",chartTreemaps:"bb-chart-treemaps"},ss={buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"};var Fe=Je(Je(Je(Je(Je(Je(Je(Je(Je(Je(Je(Je(Je(Je(Je(Je(Je(Je(Je(Je(Je(Je(Je(Je(Je({},Se),Ue),qa),fn),Kn),cr),$n),is),Ir),Un),He),ur),Zn),Qe),Ta),an),Zo),$a),qe),sn),ko),In),ti),Jo),ss),Fd={boost_useCssRule:!1,boost_useWorker:!1},Bd={color_pattern:[],color_tiles:void 0,color_threshold:{},color_onover:void 0},Ud={legend_contents_bindto:void 0,legend_contents_template:"<span style='color:#fff;padding:5px;background-color:{=COLOR}'>{=TITLE}</span>",legend_equally:!1,legend_hide:!1,legend_inset_anchor:"top-left",legend_inset_x:10,legend_inset_y:0,legend_inset_step:void 0,legend_item_interaction:!0,legend_item_dblclick:!1,legend_item_onclick:void 0,legend_item_onover:void 0,legend_item_onout:void 0,legend_item_tile_width:10,legend_item_tile_height:10,legend_item_tile_r:5,legend_item_tile_type:"rectangle",legend_format:void 0,legend_padding:0,legend_position:"bottom",legend_show:!0,legend_tooltip:!1,legend_usePoint:!1},zd={bindto:"#chart",background:{},clipPath:!0,svg_classname:void 0,size_width:void 0,size_height:void 0,padding:!0,padding_mode:void 0,padding_left:void 0,padding_right:void 0,padding_top:void 0,padding_bottom:void 0,resize_auto:!0,resize_timer:!0,onclick:void 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:[]},jd={title_text:void 0,title_padding:{top:0,right:0,bottom:0,left:0},title_position:"center"},Gd={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:void 0,tooltip_linked:!1,tooltip_linked_name:"",tooltip_onshow:()=>{},tooltip_onhide:()=>{},tooltip_onshown:()=>{},tooltip_onhidden:()=>{},tooltip_order:null},Vd={data_x:void 0,data_idConverter:t=>t,data_names:{},data_classes:{},data_type:void 0,data_types:{},data_order:"desc",data_groups:[],data_groupsZeroAs:"positive",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:()=>{},data_onover:()=>{},data_onout:()=>{},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:""},Xd={interaction_enabled:!0,interaction_brighten:!0,interaction_inputType_mouse:!0,interaction_inputType_touch:{}},Yd={value:()=>{}};function Qo(){for(var t=0,e=arguments.length,n={},a;t<e;++t){if(!(a=arguments[t]+"")||a in n||/[\s.]/.test(a))throw new Error("illegal type: "+a);n[a]=[]}return new ei(n)}function ei(t){this._=t}function Hd(t,e){return t.trim().split(/^|\s+/).map(function(n){var a="",i=n.indexOf(".");if(i>=0&&(a=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:a}})}ei.prototype=Qo.prototype={constructor:ei,on:function(t,e){var n=this._,a=Hd(t+"",n),i,s=-1,o=a.length;if(arguments.length<2){for(;++s<o;)if((i=(t=a[s]).type)&&(i=Wd(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++s<o;)if(i=(t=a[s]).type)n[i]=_o(n[i],t.name,e);else if(e==null)for(i in n)n[i]=_o(n[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new ei(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),a=0,i,s;a<i;++a)n[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=this._[t],a=0,i=s.length;a<i;++a)s[a].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var a=this._[t],i=0,s=a.length;i<s;++i)a[i].value.apply(e,n)}};function Wd(t,e){for(var n=0,a=t.length,i;n<a;++n)if((i=t[n]).name===e)return i.value}function _o(t,e,n){for(var a=0,i=t.length;a<i;++a)if(t[a].name===e){t[a]=Yd,t=t.slice(0,a).concat(t.slice(a+1));break}return n!=null&&t.push({name:e,value:n}),t}var ni=Qo;const Kd={passive:!1},Sa={capture:!0,passive:!1};function os(t){t.stopImmediatePropagation()}function Zr(t){t.preventDefault(),t.stopImmediatePropagation()}function ls(t){var e=t.document.documentElement,n=st(t).on("dragstart.drag",Zr,Sa);"onselectstart"in e?n.on("selectstart.drag",Zr,Sa):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function cs(t,e){var n=t.document.documentElement,a=st(t).on("dragstart.drag",null);e&&(a.on("click.drag",Zr,Sa),setTimeout(function(){a.on("click.drag",null)},0)),"onselectstart"in n?a.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function us(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function qo(t,e){var n=Object.create(t.prototype);for(var a in e)n[a]=e[a];return n}function Aa(){}var ba=.7,ri=1/ba,kr="\\s*([+-]?\\d+)\\s*",Ea="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",tr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Zd=/^#([0-9a-f]{3,8})$/,kd=new RegExp(`^rgb\\(${kr},${kr},${kr}\\)$`),Jd=new RegExp(`^rgb\\(${tr},${tr},${tr}\\)$`),Qd=new RegExp(`^rgba\\(${kr},${kr},${kr},${Ea}\\)$`),_d=new RegExp(`^rgba\\(${tr},${tr},${tr},${Ea}\\)$`),qd=new RegExp(`^hsl\\(${Ea},${tr},${tr}\\)$`),th=new RegExp(`^hsla\\(${Ea},${tr},${tr},${Ea}\\)$`),tl={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};us(Aa,Cr,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:el,formatHex:el,formatHex8:eh,formatHsl:nh,formatRgb:nl,toString:nl});function el(){return this.rgb().formatHex()}function eh(){return this.rgb().formatHex8()}function nh(){return ol(this).formatHsl()}function nl(){return this.rgb().formatRgb()}function Cr(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Zd.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?rl(e):n===3?new Mn(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?ai(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?ai(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=kd.exec(t))?new Mn(e[1],e[2],e[3],1):(e=Jd.exec(t))?new Mn(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Qd.exec(t))?ai(e[1],e[2],e[3],e[4]):(e=_d.exec(t))?ai(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=qd.exec(t))?sl(e[1],e[2]/100,e[3]/100,1):(e=th.exec(t))?sl(e[1],e[2]/100,e[3]/100,e[4]):tl.hasOwnProperty(t)?rl(tl[t]):t==="transparent"?new Mn(NaN,NaN,NaN,0):null}function rl(t){return new Mn(t>>16&255,t>>8&255,t&255,1)}function ai(t,e,n,a){return a<=0&&(t=e=n=NaN),new Mn(t,e,n,a)}function rh(t){return t instanceof Aa||(t=Cr(t)),t?(t=t.rgb(),new Mn(t.r,t.g,t.b,t.opacity)):new Mn}function ii(t,e,n,a){return arguments.length===1?rh(t):new Mn(t,e,n,a==null?1:a)}function Mn(t,e,n,a){this.r=+t,this.g=+e,this.b=+n,this.opacity=+a}us(Mn,ii,qo(Aa,{brighter(t){return t=t==null?ri:Math.pow(ri,t),new Mn(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?ba:Math.pow(ba,t),new Mn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Mn(Pr(this.r),Pr(this.g),Pr(this.b),si(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:al,formatHex:al,formatHex8:ah,formatRgb:il,toString:il}));function al(){return`#${wr(this.r)}${wr(this.g)}${wr(this.b)}`}function ah(){return`#${wr(this.r)}${wr(this.g)}${wr(this.b)}${wr((isNaN(this.opacity)?1:this.opacity)*255)}`}function il(){const t=si(this.opacity);return`${t===1?"rgb(":"rgba("}${Pr(this.r)}, ${Pr(this.g)}, ${Pr(this.b)}${t===1?")":`, ${t})`}`}function si(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Pr(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function wr(t){return t=Pr(t),(t<16?"0":"")+t.toString(16)}function sl(t,e,n,a){return a<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new kn(t,e,n,a)}function ol(t){if(t instanceof kn)return new kn(t.h,t.s,t.l,t.opacity);if(t instanceof Aa||(t=Cr(t)),!t)return new kn;if(t instanceof kn)return t;t=t.rgb();var e=t.r/255,n=t.g/255,a=t.b/255,i=Math.min(e,n,a),s=Math.max(e,n,a),o=NaN,l=s-i,c=(s+i)/2;return l?(e===s?o=(n-a)/l+(n<a)*6:n===s?o=(a-e)/l+2:o=(e-n)/l+4,l/=c<.5?s+i:2-s-i,o*=60):l=c>0&&c<1?0:o,new kn(o,l,c,t.opacity)}function ih(t,e,n,a){return arguments.length===1?ol(t):new kn(t,e,n,a==null?1:a)}function kn(t,e,n,a){this.h=+t,this.s=+e,this.l=+n,this.opacity=+a}us(kn,ih,qo(Aa,{brighter(t){return t=t==null?ri:Math.pow(ri,t),new kn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?ba:Math.pow(ba,t),new kn(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,a=n+(n<.5?n:1-n)*e,i=2*n-a;return new Mn(fs(t>=240?t-240:t+120,i,a),fs(t,i,a),fs(t<120?t+240:t-120,i,a),this.opacity)},clamp(){return new kn(ll(this.h),oi(this.s),oi(this.l),si(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=si(this.opacity);return`${t===1?"hsl(":"hsla("}${ll(this.h)}, ${oi(this.s)*100}%, ${oi(this.l)*100}%${t===1?")":`, ${t})`}`}}));function ll(t){return t=(t||0)%360,t<0?t+360:t}function oi(t){return Math.max(0,Math.min(1,t||0))}function fs(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function cl(t,e,n,a,i){var s=t*t,o=s*t;return((1-3*t+3*s-o)*e+(4-6*s+3*o)*n+(1+3*t+3*s-3*o)*a+o*i)/6}function sh(t){var e=t.length-1;return function(n){var a=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[a],s=t[a+1],o=a>0?t[a-1]:2*i-s,l=a<e-1?t[a+2]:2*s-i;return cl((n-a/e)*e,o,i,s,l)}}function oh(t){var e=t.length;return function(n){var a=Math.floor(((n%=1)<0?++n:n)*e),i=t[(a+e-1)%e],s=t[a%e],o=t[(a+1)%e],l=t[(a+2)%e];return cl((n-a/e)*e,i,s,o,l)}}var li=t=>()=>t;function ul(t,e){return function(n){return t+n*e}}function lh(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(a){return Math.pow(t+a*e,n)}}function X0(t,e){var n=e-t;return n?ul(t,n>180||n<-180?n-360*Math.round(n/360):n):li(isNaN(t)?e:t)}function ch(t){return(t=+t)==1?fl:function(e,n){return n-e?lh(e,n,t):li(isNaN(e)?n:e)}}function fl(t,e){var n=e-t;return n?ul(t,n):li(isNaN(t)?e:t)}var ci=function t(e){var n=ch(e);function a(i,s){var o=n((i=ii(i)).r,(s=ii(s)).r),l=n(i.g,s.g),c=n(i.b,s.b),u=fl(i.opacity,s.opacity);return function(g){return i.r=o(g),i.g=l(g),i.b=c(g),i.opacity=u(g),i+""}}return a.gamma=t,a}(1);function dl(t){return function(e){var n=e.length,a=new Array(n),i=new Array(n),s=new Array(n),o,l;for(o=0;o<n;++o)l=ii(e[o]),a[o]=l.r||0,i[o]=l.g||0,s[o]=l.b||0;return a=t(a),i=t(i),s=t(s),l.opacity=1,function(c){return l.r=a(c),l.g=i(c),l.b=s(c),l+""}}}var Y0=dl(sh),H0=dl(oh);function hl(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,a=e.slice(),i;return function(s){for(i=0;i<n;++i)a[i]=t[i]*(1-s)+e[i]*s;return a}}function gl(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function W0(t,e){return(gl(e)?hl:vl)(t,e)}function vl(t,e){var n=e?e.length:0,a=t?Math.min(n,t.length):0,i=new Array(a),s=new Array(n),o;for(o=0;o<a;++o)i[o]=Jr(t[o],e[o]);for(;o<n;++o)s[o]=e[o];return function(l){for(o=0;o<a;++o)s[o]=i[o](l);return s}}function uh(t,e){var n=new Date;return t=+t,e=+e,function(a){return n.setTime(t*(1-a)+e*a),n}}function Jn(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function fh(t,e){var n={},a={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?n[i]=Jr(t[i],e[i]):a[i]=e[i];return function(s){for(i in n)a[i]=n[i](s);return a}}var ds=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,hs=new RegExp(ds.source,"g");function dh(t){return function(){return t}}function hh(t){return function(e){return t(e)+""}}function pl(t,e){var n=ds.lastIndex=hs.lastIndex=0,a,i,s,o=-1,l=[],c=[];for(t=t+"",e=e+"";(a=ds.exec(t))&&(i=hs.exec(e));)(s=i.index)>n&&(s=e.slice(n,s),l[o]?l[o]+=s:l[++o]=s),(a=a[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,c.push({i:o,x:Jn(a,i)})),n=hs.lastIndex;return n<e.length&&(s=e.slice(n),l[o]?l[o]+=s:l[++o]=s),l.length<2?c[0]?hh(c[0].x):dh(e):(e=c.length,function(u){for(var g=0,v;g<e;++g)l[(v=c[g]).i]=v.x(u);return l.join("")})}function Jr(t,e){var n=typeof e,a;return e==null||n==="boolean"?li(e):(n==="number"?Jn:n==="string"?(a=Cr(e))?(e=a,ci):pl:e instanceof Cr?ci:e instanceof Date?uh:gl(e)?hl:Array.isArray(e)?vl:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?fh:Jn)(t,e)}function gh(t){let e;for(;e=t.sourceEvent;)t=e;return t}function Yn(t,e){if(t=gh(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var a=n.createSVGPoint();return a.x=t.clientX,a.y=t.clientY,a=a.matrixTransform(e.getScreenCTM().inverse()),[a.x,a.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 Qr=0,Ra=0,Oa=0,ml=1e3,ui,Ia,fi=0,Mr=0,di=0,Ca=typeof performance=="object"&&performance.now?performance:Date,yl=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function gs(){return Mr||(yl(vh),Mr=Ca.now()+di)}function vh(){Mr=0}function hi(){this._call=this._time=this._next=null}hi.prototype=xl.prototype={constructor:hi,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?gs():+n)+(e==null?0:+e),!this._next&&Ia!==this&&(Ia?Ia._next=this:ui=this,Ia=this),this._call=t,this._time=n,vs()},stop:function(){this._call&&(this._call=null,this._time=1/0,vs())}};function xl(t,e,n){var a=new hi;return a.restart(t,e,n),a}function ph(){gs(),++Qr;for(var t=ui,e;t;)(e=Mr-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Qr}function Tl(){Mr=(fi=Ca.now())+di,Qr=Ra=0;try{ph()}finally{Qr=0,yh(),Mr=0}}function mh(){var t=Ca.now(),e=t-fi;e>ml&&(di-=e,fi=t)}function yh(){for(var t,e=ui,n,a=1/0;e;)e._call?(a>e._time&&(a=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:ui=n);Ia=t,vs(a)}function vs(t){if(!Qr){Ra&&(Ra=clearTimeout(Ra));var e=t-Mr;e>24?(t<1/0&&(Ra=setTimeout(Tl,t-Ca.now()-di)),Oa&&(Oa=clearInterval(Oa))):(Oa||(fi=Ca.now(),Oa=setInterval(mh,ml)),Qr=1,yl(Tl))}}function $l(t,e,n){var a=new hi;return e=e==null?0:+e,a.restart(i=>{a.stop(),t(i+e)},e,n),a}var xh=ni("start","end","cancel","interrupt"),Th=[],Sl=0,Al=1,ps=2,gi=3,bl=4,ms=5,vi=6;function pi(t,e,n,a,i,s){var o=t.__transition;if(!o)t.__transition={};else if(n in o)return;$h(t,n,{name:e,index:a,group:i,on:xh,tween:Th,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:Sl})}function ys(t,e){var n=Qn(t,e);if(n.state>Sl)throw new Error("too late; already scheduled");return n}function er(t,e){var n=Qn(t,e);if(n.state>gi)throw new Error("too late; already running");return n}function Qn(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function $h(t,e,n){var a=t.__transition,i;a[e]=n,n.timer=xl(s,0,n.time);function s(u){n.state=Al,n.timer.restart(o,n.delay,n.time),n.delay<=u&&o(u-n.delay)}function o(u){var g,v,m,S;if(n.state!==Al)return c();for(g in a)if(S=a[g],S.name===n.name){if(S.state===gi)return $l(o);S.state===bl?(S.state=vi,S.timer.stop(),S.on.call("interrupt",t,t.__data__,S.index,S.group),delete a[g]):+g<e&&(S.state=vi,S.timer.stop(),S.on.call("cancel",t,t.__data__,S.index,S.group),delete a[g])}if($l(function(){n.state===gi&&(n.state=bl,n.timer.restart(l,n.delay,n.time),l(u))}),n.state=ps,n.on.call("start",t,t.__data__,n.index,n.group),n.state===ps){for(n.state=gi,i=new Array(m=n.tween.length),g=0,v=-1;g<m;++g)(S=n.tween[g].value.call(t,t.__data__,n.index,n.group))&&(i[++v]=S);i.length=v+1}}function l(u){for(var g=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(c),n.state=ms,1),v=-1,m=i.length;++v<m;)i[v].call(t,g);n.state===ms&&(n.on.call("end",t,t.__data__,n.index,n.group),c())}function c(){n.state=vi,n.timer.stop(),delete a[e];for(var u in a)return;delete t.__transition}}function _r(t,e){var n=t.__transition,a,i,s=!0,o;if(n){e=e==null?null:e+"";for(o in n){if((a=n[o]).name!==e){s=!1;continue}i=a.state>ps&&a.state<ms,a.state=vi,a.timer.stop(),a.on.call(i?"interrupt":"cancel",t,t.__data__,a.index,a.group),delete n[o]}s&&delete t.__transition}}function Sh(t){return this.each(function(){_r(this,t)})}var El=180/Math.PI,xs={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Rl(t,e,n,a,i,s){var o,l,c;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(c=t*n+e*a)&&(n-=t*c,a-=e*c),(l=Math.sqrt(n*n+a*a))&&(n/=l,a/=l,c/=l),t*a<e*n&&(t=-t,e=-e,c=-c,o=-o),{translateX:i,translateY:s,rotate:Math.atan2(e,t)*El,skewX:Math.atan(c)*El,scaleX:o,scaleY:l}}var mi;function Ah(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?xs:Rl(e.a,e.b,e.c,e.d,e.e,e.f)}function bh(t){return t==null||(mi||(mi=document.createElementNS("http://www.w3.org/2000/svg","g")),mi.setAttribute("transform",t),!(t=mi.transform.baseVal.consolidate()))?xs:(t=t.matrix,Rl(t.a,t.b,t.c,t.d,t.e,t.f))}function Ol(t,e,n,a){function i(u){return u.length?u.pop()+" ":""}function s(u,g,v,m,S,I){if(u!==v||g!==m){var N=S.push("translate(",null,e,null,n);I.push({i:N-4,x:Jn(u,v)},{i:N-2,x:Jn(g,m)})}else(v||m)&&S.push("translate("+v+e+m+n)}function o(u,g,v,m){u!==g?(u-g>180?g+=360:g-u>180&&(u+=360),m.push({i:v.push(i(v)+"rotate(",null,a)-2,x:Jn(u,g)})):g&&v.push(i(v)+"rotate("+g+a)}function l(u,g,v,m){u!==g?m.push({i:v.push(i(v)+"skewX(",null,a)-2,x:Jn(u,g)}):g&&v.push(i(v)+"skewX("+g+a)}function c(u,g,v,m,S,I){if(u!==v||g!==m){var N=S.push(i(S)+"scale(",null,",",null,")");I.push({i:N-4,x:Jn(u,v)},{i:N-2,x:Jn(g,m)})}else(v!==1||m!==1)&&S.push(i(S)+"scale("+v+","+m+")")}return function(u,g){var v=[],m=[];return u=t(u),g=t(g),s(u.translateX,u.translateY,g.translateX,g.translateY,v,m),o(u.rotate,g.rotate,v,m),l(u.skewX,g.skewX,v,m),c(u.scaleX,u.scaleY,g.scaleX,g.scaleY,v,m),u=g=null,function(S){for(var I=-1,N=m.length,M;++I<N;)v[(M=m[I]).i]=M.x(S);return v.join("")}}}var Eh=Ol(Ah,"px, ","px)","deg)"),Rh=Ol(bh,", ",")",")");function Oh(t,e){var n,a;return function(){var i=er(this,t),s=i.tween;if(s!==n){a=n=s;for(var o=0,l=a.length;o<l;++o)if(a[o].name===e){a=a.slice(),a.splice(o,1);break}}i.tween=a}}function Ih(t,e,n){var a,i;if(typeof n!="function")throw new Error;return function(){var s=er(this,t),o=s.tween;if(o!==a){i=(a=o).slice();for(var l={name:e,value:n},c=0,u=i.length;c<u;++c)if(i[c].name===e){i[c]=l;break}c===u&&i.push(l)}s.tween=i}}function Ch(t,e){var n=this._id;if(t+="",arguments.length<2){for(var a=Qn(this.node(),n).tween,i=0,s=a.length,o;i<s;++i)if((o=a[i]).name===t)return o.value;return null}return this.each((e==null?Oh:Ih)(n,t,e))}function Ts(t,e,n){var a=t._id;return t.each(function(){var i=er(this,a);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return Qn(i,a).value[e]}}function Il(t,e){var n;return(typeof e=="number"?Jn:e instanceof Cr?ci:(n=Cr(e))?(e=n,ci):pl)(t,e)}function Ph(t){return function(){this.removeAttribute(t)}}function wh(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Mh(t,e,n){var a,i=n+"",s;return function(){var o=this.getAttribute(t);return o===i?null:o===a?s:s=e(a=o,n)}}function Lh(t,e,n){var a,i=n+"",s;return function(){var o=this.getAttributeNS(t.space,t.local);return o===i?null:o===a?s:s=e(a=o,n)}}function Dh(t,e,n){var a,i,s;return function(){var o,l=n(this),c;return l==null?void this.removeAttribute(t):(o=this.getAttribute(t),c=l+"",o===c?null:o===a&&c===i?s:(i=c,s=e(a=o,l)))}}function Nh(t,e,n){var a,i,s;return function(){var o,l=n(this),c;return l==null?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local),c=l+"",o===c?null:o===a&&c===i?s:(i=c,s=e(a=o,l)))}}function Fh(t,e){var n=Mt(t),a=n==="transform"?Rh:Il;return this.attrTween(t,typeof e=="function"?(n.local?Nh:Dh)(n,a,Ts(this,"attr."+t,e)):e==null?(n.local?wh:Ph)(n):(n.local?Lh:Mh)(n,a,e))}function Bh(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Uh(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function zh(t,e){var n,a;function i(){var s=e.apply(this,arguments);return s!==a&&(n=(a=s)&&Uh(t,s)),n}return i._value=e,i}function jh(t,e){var n,a;function i(){var s=e.apply(this,arguments);return s!==a&&(n=(a=s)&&Bh(t,s)),n}return i._value=e,i}function Gh(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var a=Mt(t);return this.tween(n,(a.local?zh:jh)(a,e))}function Vh(t,e){return function(){ys(this,t).delay=+e.apply(this,arguments)}}function Xh(t,e){return e=+e,function(){ys(this,t).delay=e}}function Yh(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Vh:Xh)(e,t)):Qn(this.node(),e).delay}function Hh(t,e){return function(){er(this,t).duration=+e.apply(this,arguments)}}function Wh(t,e){return e=+e,function(){er(this,t).duration=e}}function Kh(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Hh:Wh)(e,t)):Qn(this.node(),e).duration}function Zh(t,e){if(typeof e!="function")throw new Error;return function(){er(this,t).ease=e}}function kh(t){var e=this._id;return arguments.length?this.each(Zh(e,t)):Qn(this.node(),e).ease}function Jh(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;er(this,t).ease=n}}function Qh(t){if(typeof t!="function")throw new Error;return this.each(Jh(this._id,t))}function _h(t){typeof t!="function"&&(t=O(t));for(var e=this._groups,n=e.length,a=new Array(n),i=0;i<n;++i)for(var s=e[i],o=s.length,l=a[i]=[],c,u=0;u<o;++u)(c=s[u])&&t.call(c,c.__data__,u,s)&&l.push(c);return new fr(a,this._parents,this._name,this._id)}function qh(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,a=e.length,i=n.length,s=Math.min(a,i),o=new Array(a),l=0;l<s;++l)for(var c=e[l],u=n[l],g=c.length,v=o[l]=new Array(g),m,S=0;S<g;++S)(m=c[S]||u[S])&&(v[S]=m);for(;l<a;++l)o[l]=e[l];return new fr(o,this._parents,this._name,this._id)}function tg(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function eg(t,e,n){var a,i,s=tg(e)?ys:er;return function(){var o=s(this,t),l=o.on;l!==a&&(i=(a=l).copy()).on(e,n),o.on=i}}function ng(t,e){var n=this._id;return arguments.length<2?Qn(this.node(),n).on.on(t):this.each(eg(n,t,e))}function rg(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function ag(){return this.on("end.remove",rg(this._id))}function ig(t){var e=this._name,n=this._id;typeof t!="function"&&(t=p(t));for(var a=this._groups,i=a.length,s=new Array(i),o=0;o<i;++o)for(var l=a[o],c=l.length,u=s[o]=new Array(c),g,v,m=0;m<c;++m)(g=l[m])&&(v=t.call(g,g.__data__,m,l))&&("__data__"in g&&(v.__data__=g.__data__),u[m]=v,pi(u[m],e,n,m,u,Qn(g,n)));return new fr(s,this._parents,e,n)}function sg(t){var e=this._name,n=this._id;typeof t!="function"&&(t=A(t));for(var a=this._groups,i=a.length,s=[],o=[],l=0;l<i;++l)for(var c=a[l],u=c.length,g,v=0;v<u;++v)if(g=c[v]){for(var m=t.call(g,g.__data__,v,c),S,I=Qn(g,n),N=0,M=m.length;N<M;++N)(S=m[N])&&pi(S,e,n,N,m,I);s.push(m),o.push(g)}return new fr(s,o,e,n)}var og=mn.prototype.constructor;function lg(){return new og(this._groups,this._parents)}function cg(t,e){var n,a,i;return function(){var s=Et(this,t),o=(this.style.removeProperty(t),Et(this,t));return s===o?null:s===n&&o===a?i:i=e(n=s,a=o)}}function Cl(t){return function(){this.style.removeProperty(t)}}function ug(t,e,n){var a,i=n+"",s;return function(){var o=Et(this,t);return o===i?null:o===a?s:s=e(a=o,n)}}function fg(t,e,n){var a,i,s;return function(){var o=Et(this,t),l=n(this),c=l+"";return l==null&&(c=l=(this.style.removeProperty(t),Et(this,t))),o===c?null:o===a&&c===i?s:(i=c,s=e(a=o,l))}}function dg(t,e){var n,a,i,s="style."+e,o="end."+s,l;return function(){var c=er(this,t),u=c.on,g=c.value[s]==null?l||(l=Cl(e)):void 0;(u!==n||i!==g)&&(a=(n=u).copy()).on(o,i=g),c.on=a}}function hg(t,e,n){var a=(t+="")=="transform"?Eh:Il;return e==null?this.styleTween(t,cg(t,a)).on("end.style."+t,Cl(t)):typeof e=="function"?this.styleTween(t,fg(t,a,Ts(this,"style."+t,e))).each(dg(this._id,t)):this.styleTween(t,ug(t,a,e),n).on("end.style."+t,null)}function gg(t,e,n){return function(a){this.style.setProperty(t,e.call(this,a),n)}}function vg(t,e,n){var a,i;function s(){var o=e.apply(this,arguments);return o!==i&&(a=(i=o)&&gg(t,o,n)),a}return s._value=e,s}function pg(t,e,n){var a="style."+(t+="");if(arguments.length<2)return(a=this.tween(a))&&a._value;if(e==null)return this.tween(a,null);if(typeof e!="function")throw new Error;return this.tween(a,vg(t,e,n==null?"":n))}function mg(t){return function(){this.textContent=t}}function yg(t){return function(){var e=t(this);this.textContent=e==null?"":e}}function xg(t){return this.tween("text",typeof t=="function"?yg(Ts(this,"text",t)):mg(t==null?"":t+""))}function Tg(t){return function(e){this.textContent=t.call(this,e)}}function $g(t){var e,n;function a(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&Tg(i)),e}return a._value=t,a}function Sg(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,$g(t))}function Ag(){for(var t=this._name,e=this._id,n=wl(),a=this._groups,i=a.length,s=0;s<i;++s)for(var o=a[s],l=o.length,c,u=0;u<l;++u)if(c=o[u]){var g=Qn(c,e);pi(c,t,n,u,o,{time:g.time+g.delay+g.duration,delay:0,duration:g.duration,ease:g.ease})}return new fr(a,this._parents,t,n)}function bg(){var t,e,n=this,a=n._id,i=n.size();return new Promise(function(s,o){var l={value:o},c={value:function(){--i===0&&s()}};n.each(function(){var u=er(this,a),g=u.on;g!==t&&(e=(t=g).copy(),e._.cancel.push(l),e._.interrupt.push(l),e._.end.push(c)),u.on=e}),i===0&&s()})}var Eg=0;function fr(t,e,n,a){this._groups=t,this._parents=e,this._name=n,this._id=a}function Pl(t){return mn().transition(t)}function wl(){return++Eg}var dr=mn.prototype;fr.prototype=Pl.prototype={constructor:fr,select:ig,selectAll:sg,selectChild:dr.selectChild,selectChildren:dr.selectChildren,filter:_h,merge:qh,selection:lg,transition:Ag,call:dr.call,nodes:dr.nodes,node:dr.node,size:dr.size,empty:dr.empty,each:dr.each,on:ng,attr:Fh,attrTween:Gh,style:hg,styleTween:pg,text:xg,textTween:Sg,remove:ag,tween:Ch,delay:Yh,duration:Kh,ease:kh,easeVarying:Qh,end:bg,[Symbol.iterator]:dr[Symbol.iterator]};function K0(t){return t*t*t}function Z0(t){return--t*t*t+1}function Rg(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Og={time:null,delay:0,duration:250,ease:Rg};function Ig(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function Cg(t){var e,n;t instanceof fr?(e=t._id,t=t._name):(e=wl(),(n=Og).time=gs(),t=t==null?null:t+"");for(var a=this._groups,i=a.length,s=0;s<i;++s)for(var o=a[s],l=o.length,c,u=0;u<l;++u)(c=o[u])&&pi(c,t,e,u,o,n||Ig(c,e));return new fr(a,this._parents,t,e)}mn.prototype.interrupt=Sh,mn.prototype.transition=Cg;var $s=t=>()=>t;function Pg(t,{sourceEvent:e,target:n,selection:a,mode:i,dispatch:s}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:a,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:s}})}function wg(t){t.stopImmediatePropagation()}function Ss(t){t.preventDefault(),t.stopImmediatePropagation()}var Ml={name:"drag"},As={name:"space"},qr={name:"handle"},ta={name:"center"};const{abs:Ll,max:Sn,min:An}=Math;function Dl(t){return[+t[0],+t[1]]}function bs(t){return[Dl(t[0]),Dl(t[1])]}var yi={name:"x",handles:["w","e"].map(Pa),input:function(t,e){return t==null?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},xi={name:"y",handles:["n","s"].map(Pa),input:function(t,e){return t==null?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},Mg={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Pa),input:function(t){return t==null?null:bs(t)},output:function(t){return t}},hr={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"},Nl={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Fl={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Lg={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Dg={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Pa(t){return{type:t}}function Ng(t){return!t.ctrlKey&&!t.button}function Fg(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function Bg(){return navigator.maxTouchPoints||"ontouchstart"in this}function Es(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Ug(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function Bl(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function zg(){return Rs(yi)}function jg(){return Rs(xi)}function k0(){return Rs(Mg)}function Rs(t){var e=Fg,n=Ng,a=Bg,i=!0,s=ni("start","brush","end"),o=6,l;function c(M){var P=M.property("__brush",N).selectAll(".overlay").data([Pa("overlay")]);P.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",hr.overlay).merge(P).each(function(){var H=Es(this).extent;st(this).attr("x",H[0][0]).attr("y",H[0][1]).attr("width",H[1][0]-H[0][0]).attr("height",H[1][1]-H[0][1])}),M.selectAll(".selection").data([Pa("selection")]).enter().append("rect").attr("class","selection").attr("cursor",hr.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var X=M.selectAll(".handle").data(t.handles,function(H){return H.type});X.exit().remove(),X.enter().append("rect").attr("class",function(H){return"handle handle--"+H.type}).attr("cursor",function(H){return hr[H.type]}),M.each(u).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",m).filter(a).on("touchstart.brush",m).on("touchmove.brush",S).on("touchend.brush touchcancel.brush",I).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}c.move=function(M,P,X){M.tween?M.on("start.brush",function(H){g(this,arguments).beforestart().start(H)}).on("interrupt.brush end.brush",function(H){g(this,arguments).end(H)}).tween("brush",function(){var H=this,Y=H.__brush,_=g(H,arguments),K=Y.selection,at=t.input(typeof P=="function"?P.apply(this,arguments):P,Y.extent),yt=Jr(K,at);function $t(dt){Y.selection=dt===1&&at===null?null:yt(dt),u.call(H),_.brush()}return K!==null&&at!==null?$t:$t(1)}):M.each(function(){var H=this,Y=arguments,_=H.__brush,K=t.input(typeof P=="function"?P.apply(H,Y):P,_.extent),at=g(H,Y).beforestart();_r(H),_.selection=K===null?null:K,u.call(H),at.start(X).brush(X).end(X)})},c.clear=function(M,P){c.move(M,null,P)};function u(){var M=st(this),P=Es(this).selection;P?(M.selectAll(".selection").style("display",null).attr("x",P[0][0]).attr("y",P[0][1]).attr("width",P[1][0]-P[0][0]).attr("height",P[1][1]-P[0][1]),M.selectAll(".handle").style("display",null).attr("x",function(X){return X.type[X.type.length-1]==="e"?P[1][0]-o/2:P[0][0]-o/2}).attr("y",function(X){return X.type[0]==="s"?P[1][1]-o/2:P[0][1]-o/2}).attr("width",function(X){return X.type==="n"||X.type==="s"?P[1][0]-P[0][0]+o:o}).attr("height",function(X){return X.type==="e"||X.type==="w"?P[1][1]-P[0][1]+o:o})):M.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function g(M,P,X){var H=M.__brush.emitter;return H&&(!X||!H.clean)?H:new v(M,P,X)}function v(M,P,X){this.that=M,this.args=P,this.state=M.__brush,this.active=0,this.clean=X}v.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(M,P){return this.starting?(this.starting=!1,this.emit("start",M,P)):this.emit("brush",M),this},brush:function(M,P){return this.emit("brush",M,P),this},end:function(M,P){return--this.active===0&&(delete this.state.emitter,this.emit("end",M,P)),this},emit:function(M,P,X){var H=st(this.that).datum();s.call(M,this.that,new Pg(M,{sourceEvent:P,target:c,selection:t.output(this.state.selection),mode:X,dispatch:s}),H)}};function m(M){if(l&&!M.touches||!n.apply(this,arguments))return;var P=this,X=M.target.__data__.type,H=(i&&M.metaKey?X="overlay":X)==="selection"?Ml:i&&M.altKey?ta:qr,Y=t===xi?null:Lg[X],_=t===yi?null:Dg[X],K=Es(P),at=K.extent,yt=K.selection,$t=at[0][0],dt,ft,Ft=at[0][1],ht,Z,St=at[1][0],lt,At,jt=at[1][1],Ut,kt,Kt=0,ae=0,Ve,Oe=Y&&_&&i&&M.shiftKey,Xe,hn,De=Array.from(M.touches||[M],pe=>{const un=pe.identifier;return pe=Yn(pe,P),pe.point0=pe.slice(),pe.identifier=un,pe});_r(P);var dn=g(P,arguments,!0).beforestart();if(X==="overlay"){yt&&(Ve=!0);const pe=[De[0],De[1]||De[0]];K.selection=yt=[[dt=t===xi?$t:An(pe[0][0],pe[1][0]),ht=t===yi?Ft:An(pe[0][1],pe[1][1])],[lt=t===xi?St:Sn(pe[0][0],pe[1][0]),Ut=t===yi?jt:Sn(pe[0][1],pe[1][1])]],De.length>1&&cn(M)}else dt=yt[0][0],ht=yt[0][1],lt=yt[1][0],Ut=yt[1][1];ft=dt,Z=ht,At=lt,kt=Ut;var Jt=st(P).attr("pointer-events","none"),xe=Jt.selectAll(".overlay").attr("cursor",hr[X]);if(M.touches)dn.moved=Dt,dn.ended=ze;else{var Ee=st(M.view).on("mousemove.brush",Dt,!0).on("mouseup.brush",ze,!0);i&&Ee.on("keydown.brush",Cn,!0).on("keyup.brush",Pn,!0),ls(M.view)}u.call(P),dn.start(M,H.name);function Dt(pe){for(const un of pe.changedTouches||[pe])for(const Ga of De)Ga.identifier===un.identifier&&(Ga.cur=Yn(un,P));if(Oe&&!Xe&&!hn&&De.length===1){const un=De[0];Ll(un.cur[0]-un[0])>Ll(un.cur[1]-un[1])?hn=!0:Xe=!0}for(const un of De)un.cur&&(un[0]=un.cur[0],un[1]=un.cur[1]);Ve=!0,Ss(pe),cn(pe)}function cn(pe){const un=De[0],Ga=un.point0;var Er;switch(Kt=un[0]-Ga[0],ae=un[1]-Ga[1],H){case As:case Ml:{Y&&(Kt=Sn($t-dt,An(St-lt,Kt)),ft=dt+Kt,At=lt+Kt),_&&(ae=Sn(Ft-ht,An(jt-Ut,ae)),Z=ht+ae,kt=Ut+ae);break}case qr:{De[1]?(Y&&(ft=Sn($t,An(St,De[0][0])),At=Sn($t,An(St,De[1][0])),Y=1),_&&(Z=Sn(Ft,An(jt,De[0][1])),kt=Sn(Ft,An(jt,De[1][1])),_=1)):(Y<0?(Kt=Sn($t-dt,An(St-dt,Kt)),ft=dt+Kt,At=lt):Y>0&&(Kt=Sn($t-lt,An(St-lt,Kt)),ft=dt,At=lt+Kt),_<0?(ae=Sn(Ft-ht,An(jt-ht,ae)),Z=ht+ae,kt=Ut):_>0&&(ae=Sn(Ft-Ut,An(jt-Ut,ae)),Z=ht,kt=Ut+ae));break}case ta:{Y&&(ft=Sn($t,An(St,dt-Kt*Y)),At=Sn($t,An(St,lt+Kt*Y))),_&&(Z=Sn(Ft,An(jt,ht-ae*_)),kt=Sn(Ft,An(jt,Ut+ae*_)));break}}At<ft&&(Y*=-1,Er=dt,dt=lt,lt=Er,Er=ft,ft=At,At=Er,X in Nl&&xe.attr("cursor",hr[X=Nl[X]])),kt<Z&&(_*=-1,Er=ht,ht=Ut,Ut=Er,Er=Z,Z=kt,kt=Er,X in Fl&&xe.attr("cursor",hr[X=Fl[X]])),K.selection&&(yt=K.selection),Xe&&(ft=yt[0][0],At=yt[1][0]),hn&&(Z=yt[0][1],kt=yt[1][1]),(yt[0][0]!==ft||yt[0][1]!==Z||yt[1][0]!==At||yt[1][1]!==kt)&&(K.selection=[[ft,Z],[At,kt]],u.call(P),dn.brush(pe,H.name))}function ze(pe){if(wg(pe),pe.touches){if(pe.touches.length)return;l&&clearTimeout(l),l=setTimeout(function(){l=null},500)}else cs(pe.view,Ve),Ee.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);Jt.attr("pointer-events","all"),xe.attr("cursor",hr.overlay),K.selection&&(yt=K.selection),Ug(yt)&&(K.selection=null,u.call(P)),dn.end(pe,H.name)}function Cn(pe){switch(pe.keyCode){case 16:{Oe=Y&&_;break}case 18:{H===qr&&(Y&&(lt=At-Kt*Y,dt=ft+Kt*Y),_&&(Ut=kt-ae*_,ht=Z+ae*_),H=ta,cn(pe));break}case 32:{(H===qr||H===ta)&&(Y<0?lt=At-Kt:Y>0&&(dt=ft-Kt),_<0?Ut=kt-ae:_>0&&(ht=Z-ae),H=As,xe.attr("cursor",hr.selection),cn(pe));break}default:return}Ss(pe)}function Pn(pe){switch(pe.keyCode){case 16:{Oe&&(Xe=hn=Oe=!1,cn(pe));break}case 18:{H===ta&&(Y<0?lt=At:Y>0&&(dt=ft),_<0?Ut=kt:_>0&&(ht=Z),H=qr,cn(pe));break}case 32:{H===As&&(pe.altKey?(Y&&(lt=At-Kt*Y,dt=ft+Kt*Y),_&&(Ut=kt-ae*_,ht=Z+ae*_),H=ta):(Y<0?lt=At:Y>0&&(dt=ft),_<0?Ut=kt:_>0&&(ht=Z),H=qr),xe.attr("cursor",hr[X]),cn(pe));break}default:return}Ss(pe)}}function S(M){g(this,arguments).moved(M)}function I(M){g(this,arguments).ended(M)}function N(){var M=this.__brush||{selection:null};return M.extent=bs(e.apply(this,arguments)),M.dim=t,M}return c.extent=function(M){return arguments.length?(e=typeof M=="function"?M:$s(bs(M)),c):e},c.filter=function(M){return arguments.length?(n=typeof M=="function"?M:$s(!!M),c):n},c.touchable=function(M){return arguments.length?(a=typeof M=="function"?M:$s(!!M),c):a},c.handleSize=function(M){return arguments.length?(o=+M,c):o},c.keyModifiers=function(M){return arguments.length?(i=!!M,c):i},c.on=function(){var M=s.on.apply(s,arguments);return M===s?c:M},c}function Gg(){return typeof globalThis=="object"&&globalThis!==null&&globalThis.Object===Object&&globalThis||typeof global=="object"&&global!==null&&global.Object===Object&&global||typeof self=="object"&&self!==null&&self.Object===Object&&self||Function("return this")()}function Vg(t){const e=typeof(t==null?void 0:t.requestAnimationFrame)=="function"&&typeof(t==null?void 0:t.cancelAnimationFrame)=="function",n=typeof(t==null?void 0:t.requestIdleCallback)=="function"&&typeof(t==null?void 0:t.cancelIdleCallback)=="function",a=s=>setTimeout(s,1),i=s=>clearTimeout(s);return[e?t.requestAnimationFrame:a,e?t.cancelAnimationFrame:i,n?t.requestIdleCallback:a,n?t.cancelIdleCallback:i]}const We=Gg(),vn=We==null?void 0:We.document,[Xg,J0,Ul,Q0]=Vg(We);var Yg=Object.defineProperty,zl=Object.getOwnPropertySymbols,Hg=Object.prototype.hasOwnProperty,Wg=Object.prototype.propertyIsEnumerable,jl=(t,e,n)=>e in t?Yg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Gl=(t,e)=>{for(var n in e||(e={}))Hg.call(e,n)&&jl(t,n,e[n]);if(zl)for(var n of zl(e))Wg.call(e,n)&&jl(t,n,e[n]);return t};const we=t=>t||t===0,ve=t=>typeof t=="function",Ge=t=>typeof t=="string",he=t=>typeof t=="number",on=t=>typeof t=="undefined",ke=t=>typeof t!="undefined",Os=t=>typeof t=="boolean",Kg=t=>Math.ceil(t/10)*10,Ti=t=>Math.ceil(t)+.5,Lr=t=>t[1]-t[0],nr=t=>typeof t=="object",_n=t=>on(t)||t===null||Ge(t)&&t.length===0||nr(t)&&!(t instanceof Date)&&Object.keys(t).length===0||he(t)&&isNaN(t),ln=t=>!_n(t),Be=t=>Array.isArray(t),Ne=t=>t&&!(t!=null&&t.nodeType)&&nr(t)&&!Be(t);function $r(t,e,n){return ke(t[e])?t[e]:n}function Zg(t,e){let n=!1;return Object.keys(t).forEach(a=>t[a]===e&&(n=!0)),n}function _e(t,e,...n){const a=ve(t);return a&&t.call(e,...n),a}function $i(t,e){let n=0;const a=function(...i){!--n&&e.apply(this,...i)};"duration"in t?t.each(()=>++n).on("end",a):(++n,t.call(a))}function Is(t){return Ge(t)?t.replace(/<(script|img)?/ig,"<").replace(/(script)?>/ig,">"):t}function wa(t,e,n=[-1,1],a=!1){if(!(!t||!Ge(e)))if(e.indexOf(`
|
|
26
|
+
*/(function(Va,jn){if(typeof exports=="object"&&typeof module=="object")module.exports=jn();else if(typeof define=="function"&&define.amd)define([],jn);else{var Xa=jn();for(var x in Xa)(typeof exports=="object"?exports:Va)[x]=Xa[x]}})(this,function(){return function(){"use strict";var Co=[function(x,E,r){r(1),r(97),r(98),r(99),r(100),r(101),r(102),r(103),r(104),r(105),r(106),r(107),r(108),r(109),r(110),r(111),r(124),r(126),r(136),r(137),r(139),r(143),r(146),r(148),r(150),r(151),r(152),r(153),r(155),r(156),r(158),r(159),r(161),r(165),r(166),r(167),r(168),r(173),r(174),r(176),r(177),r(178),r(180),r(184),r(185),r(186),r(187),r(188),r(193),r(195),r(196),r(198),r(201),r(202),r(203),r(204),r(205),r(207),r(217),r(219),r(222),r(224),r(227),r(233),r(234),r(235),r(236),r(237),r(238),r(242),r(243),r(245),r(246),r(247),r(249),r(250),r(251),r(93),r(252),r(253),r(261),r(263),r(265),r(266),r(267),r(268),r(269),r(271),r(272),r(273),r(274),r(275),r(277),r(278),r(279),r(280),r(281),r(282),r(283),r(284),r(288),r(289),r(291),r(293),r(294),r(295),r(296),r(297),r(299),r(301),r(302),r(303),r(304),r(306),r(307),r(309),r(310),r(311),r(312),r(314),r(315),r(316),r(317),r(318),r(319),r(320),r(321),r(322),r(324),r(325),r(326),r(327),r(328),r(329),r(330),r(331),r(332),r(333),r(334),r(336),r(337),r(338),r(339),r(361),r(362),r(363),r(364),r(365),r(366),r(367),r(368),r(369),r(371),r(372),r(373),r(374),r(375),r(376),r(377),r(378),r(379),r(380),r(387),r(388),r(390),r(391),r(392),r(393),r(394),r(396),r(407),r(409),r(411),r(413),r(415),r(417),r(419),r(420),r(422),r(425),r(426),r(427),r(428),r(429),r(433),r(434),r(436),r(437),r(438),r(439),r(441),r(442),r(443),r(444),r(445),r(446),r(447),r(449),r(452),r(455),r(458),r(459),r(460),r(461),r(462),r(463),r(464),r(465),r(466),r(467),r(468),r(469),r(470),r(479),r(480),r(481),r(482),r(483),r(484),r(485),r(486),r(487),r(488),r(489),r(490),r(491),r(494),r(495),r(496),r(497),r(498),r(499),r(500),r(501),r(502),r(503),r(504),r(505),r(506),r(507),r(508),r(509),r(510),r(511),r(512),r(513),r(514),r(515),r(516),r(517),r(518),r(519),r(520),r(521),r(524),r(526),r(528),r(529),r(532),r(533),r(535),r(536),r(537),r(541),r(542),r(543),r(544),r(547),r(552),r(553),r(554),r(555),r(556),r(557),r(558),r(80)},function(x,E,r){r(2),r(90),r(92),r(93),r(96)},function(x,E,r){var f=r(3),d=r(4),h=r(8),p=r(14),y=r(36),T=r(6),$=r(26),A=r(7),b=r(38),R=r(24),O=r(46),P=r(12),w=r(18),D=r(68),M=r(11),F=r(71),z=r(73),B=r(57),U=r(75),X=r(66),j=r(5),G=r(44),W=r(72),J=r(10),k=r(47),Q=r(77),nt=r(34),rt=r(53),q=r(54),tt=r(40),et=r(33),ot=r(78),pt=r(79),ht=r(81),xt=r(82),yt=r(51),Ut=r(83).forEach,Lt=rt("hidden"),Xt="Symbol",Jt="prototype",Qt=yt.set,me=yt.getterFor(Xt),ve=Object[Jt],ae=d.Symbol,Mt=ae&&ae[Jt],Yt=d.RangeError,re=d.TypeError,oe=d.QObject,ee=j.f,fe=G.f,Pe=U.f,Me=J.f,$e=p([].push),ce=nt("symbols"),Ae=nt("op-symbols"),Te=nt("wks"),de=!oe||!oe[Jt]||!oe[Jt].findChild,Et=function(Ot,Pt,Ct){var Nt=ee(ve,Pt);Nt&&delete ve[Pt],fe(Ot,Pt,Ct),Nt&&Ot!==ve&&fe(ve,Pt,Nt)},Ft=T&&A(function(){return F(fe({},"a",{get:function(){return fe(this,"a",{value:7}).a}})).a!==7})?Et:fe,Tt=function(Ot,Pt){var Ct=ce[Ot]=F(Mt);return Qt(Ct,{type:Xt,tag:Ot,description:Pt}),T||(Ct.description=Pt),Ct},_t=function(Pt,Ct,Nt){Pt===ve&&_t(Ae,Ct,Nt),O(Pt);var bt=w(Ct);return O(Nt),b(ce,bt)?(Nt.enumerable?(b(Pt,Lt)&&Pt[Lt][bt]&&(Pt[Lt][bt]=!1),Nt=F(Nt,{enumerable:M(0,!1)})):(b(Pt,Lt)||fe(Pt,Lt,M(1,F(null))),Pt[Lt][bt]=!0),Ft(Pt,bt,Nt)):fe(Pt,bt,Nt)},te=function(Pt,Ct){O(Pt);var Nt=P(Ct),bt=z(Nt).concat(ut(Nt));return Ut(bt,function(ie){(!T||h(Ht,Nt,ie))&&_t(Pt,ie,Nt[ie])}),Pt},Zt=function(Pt,Ct){return Ct===void 0?F(Pt):te(F(Pt),Ct)},Ht=function(Pt){var Ct=w(Pt),Nt=h(Me,this,Ct);return this===ve&&b(ce,Ct)&&!b(Ae,Ct)?!1:Nt||!b(this,Ct)||!b(ce,Ct)||b(this,Lt)&&this[Lt][Ct]?Nt:!0},He=function(Pt,Ct){var Nt=P(Pt),bt=w(Ct);if(!(Nt===ve&&b(ce,bt)&&!b(Ae,bt))){var ie=ee(Nt,bt);return ie&&b(ce,bt)&&!(b(Nt,Lt)&&Nt[Lt][bt])&&(ie.enumerable=!0),ie}},Ze=function(Pt){var Ct=Pe(P(Pt)),Nt=[];return Ut(Ct,function(bt){!b(ce,bt)&&!b(q,bt)&&$e(Nt,bt)}),Nt},ut=function(Ot){var Pt=Ot===ve,Ct=Pe(Pt?Ae:P(Ot)),Nt=[];return Ut(Ct,function(bt){b(ce,bt)&&(!Pt||b(ve,bt))&&$e(Nt,ce[bt])}),Nt};$||(ae=function(){if(R(Mt,this))throw new re("Symbol is not a constructor");var Pt=!arguments.length||arguments[0]===void 0?void 0:D(arguments[0]),Ct=tt(Pt),Nt=function(bt){var ie=this===void 0?d:this;ie===ve&&h(Nt,Ae,bt),b(ie,Lt)&&b(ie[Lt],Ct)&&(ie[Lt][Ct]=!1);var we=M(1,bt);try{Ft(ie,Ct,we)}catch(Rt){if(!(Rt instanceof Yt))throw Rt;Et(ie,Ct,we)}};return T&&de&&Ft(ve,Ct,{configurable:!0,set:Nt}),Tt(Ct,Pt)},Mt=ae[Jt],k(Mt,"toString",function(){return me(this).tag}),k(ae,"withoutSetter",function(Ot){return Tt(tt(Ot),Ot)}),J.f=Ht,G.f=_t,W.f=te,j.f=He,B.f=U.f=Ze,X.f=ut,ot.f=function(Ot){return Tt(et(Ot),Ot)},T&&(Q(Mt,"description",{configurable:!0,get:function(){return me(this).description}}),y||k(ve,"propertyIsEnumerable",Ht,{unsafe:!0}))),f({global:!0,constructor:!0,wrap:!0,forced:!$,sham:!$},{Symbol:ae}),Ut(z(Te),function(Ot){pt(Ot)}),f({target:Xt,stat:!0,forced:!$},{useSetter:function(){de=!0},useSimple:function(){de=!1}}),f({target:"Object",stat:!0,forced:!$,sham:!T},{create:Zt,defineProperty:_t,defineProperties:te,getOwnPropertyDescriptor:He}),f({target:"Object",stat:!0,forced:!$},{getOwnPropertyNames:Ze}),ht(),xt(ae,Xt),q[Lt]=!0},function(x,E,r){var f=r(4),d=r(5).f,h=r(43),p=r(47),y=r(37),T=r(55),$=r(67);x.exports=function(A,b){var R=A.target,O=A.global,P=A.stat,w,D,M,F,z,B;if(O?D=f:P?D=f[R]||y(R,{}):D=f[R]&&f[R].prototype,D)for(M in b){if(z=b[M],A.dontCallGetSet?(B=d(D,M),F=B&&B.value):F=D[M],w=$(O?M:R+(P?".":"#")+M,A.forced),!w&&F!==void 0){if(typeof z==typeof F)continue;T(z,F)}(A.sham||F&&F.sham)&&h(z,"sham",!0),p(D,M,z,A)}}},function(x){var E=function(r){return r&&r.Math===Math&&r};x.exports=E(typeof globalThis=="object"&&globalThis)||E(typeof window=="object"&&window)||E(typeof self=="object"&&self)||E(typeof global=="object"&&global)||E(typeof this=="object"&&this)||function(){return this}()||Function("return this")()},function(x,E,r){var f=r(6),d=r(8),h=r(10),p=r(11),y=r(12),T=r(18),$=r(38),A=r(41),b=Object.getOwnPropertyDescriptor;E.f=f?b:function(O,P){if(O=y(O),P=T(P),A)try{return b(O,P)}catch(w){}if($(O,P))return p(!d(h.f,O,P),O[P])}},function(x,E,r){var f=r(7);x.exports=!f(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},function(x){x.exports=function(E){try{return!!E()}catch(r){return!0}}},function(x,E,r){var f=r(9),d=Function.prototype.call;x.exports=f?d.bind(d):function(){return d.apply(d,arguments)}},function(x,E,r){var f=r(7);x.exports=!f(function(){var d=function(){}.bind();return typeof d!="function"||d.hasOwnProperty("prototype")})},function(x,E){var r={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,d=f&&!r.call({1:2},1);E.f=d?function(p){var y=f(this,p);return!!y&&y.enumerable}:r},function(x){x.exports=function(E,r){return{enumerable:!(E&1),configurable:!(E&2),writable:!(E&4),value:r}}},function(x,E,r){var f=r(13),d=r(16);x.exports=function(h){return f(d(h))}},function(x,E,r){var f=r(14),d=r(7),h=r(15),p=Object,y=f("".split);x.exports=d(function(){return!p("z").propertyIsEnumerable(0)})?function(T){return h(T)==="String"?y(T,""):p(T)}:p},function(x,E,r){var f=r(9),d=Function.prototype,h=d.call,p=f&&d.bind.bind(h,h);x.exports=f?p:function(y){return function(){return h.apply(y,arguments)}}},function(x,E,r){var f=r(14),d=f({}.toString),h=f("".slice);x.exports=function(p){return h(d(p),8,-1)}},function(x,E,r){var f=r(17),d=TypeError;x.exports=function(h){if(f(h))throw new d("Can't call method on "+h);return h}},function(x){x.exports=function(E){return E==null}},function(x,E,r){var f=r(19),d=r(22);x.exports=function(h){var p=f(h,"string");return d(p)?p:p+""}},function(x,E,r){var f=r(8),d=r(20),h=r(22),p=r(29),y=r(32),T=r(33),$=TypeError,A=T("toPrimitive");x.exports=function(b,R){if(!d(b)||h(b))return b;var O=p(b,A),P;if(O){if(R===void 0&&(R="default"),P=f(O,b,R),!d(P)||h(P))return P;throw new $("Can't convert object to primitive value")}return R===void 0&&(R="number"),y(b,R)}},function(x,E,r){var f=r(21);x.exports=function(d){return typeof d=="object"?d!==null:f(d)}},function(x){var E=typeof document=="object"&&document.all;x.exports=typeof E=="undefined"&&E!==void 0?function(r){return typeof r=="function"||r===E}:function(r){return typeof r=="function"}},function(x,E,r){var f=r(23),d=r(21),h=r(24),p=r(25),y=Object;x.exports=p?function(T){return typeof T=="symbol"}:function(T){var $=f("Symbol");return d($)&&h($.prototype,y(T))}},function(x,E,r){var f=r(4),d=r(21),h=function(p){return d(p)?p:void 0};x.exports=function(p,y){return arguments.length<2?h(f[p]):f[p]&&f[p][y]}},function(x,E,r){var f=r(14);x.exports=f({}.isPrototypeOf)},function(x,E,r){var f=r(26);x.exports=f&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},function(x,E,r){var f=r(27),d=r(7),h=r(4),p=h.String;x.exports=!!Object.getOwnPropertySymbols&&!d(function(){var y=Symbol("symbol detection");return!p(y)||!(Object(y)instanceof Symbol)||!Symbol.sham&&f&&f<41})},function(x,E,r){var f=r(4),d=r(28),h=f.process,p=f.Deno,y=h&&h.versions||p&&p.version,T=y&&y.v8,$,A;T&&($=T.split("."),A=$[0]>0&&$[0]<4?1:+($[0]+$[1])),!A&&d&&($=d.match(/Edge\/(\d+)/),(!$||$[1]>=74)&&($=d.match(/Chrome\/(\d+)/),$&&(A=+$[1]))),x.exports=A},function(x,E,r){var f=r(4),d=f.navigator,h=d&&d.userAgent;x.exports=h?String(h):""},function(x,E,r){var f=r(30),d=r(17);x.exports=function(h,p){var y=h[p];return d(y)?void 0:f(y)}},function(x,E,r){var f=r(21),d=r(31),h=TypeError;x.exports=function(p){if(f(p))return p;throw new h(d(p)+" is not a function")}},function(x){var E=String;x.exports=function(r){try{return E(r)}catch(f){return"Object"}}},function(x,E,r){var f=r(8),d=r(21),h=r(20),p=TypeError;x.exports=function(y,T){var $,A;if(T==="string"&&d($=y.toString)&&!h(A=f($,y))||d($=y.valueOf)&&!h(A=f($,y))||T!=="string"&&d($=y.toString)&&!h(A=f($,y)))return A;throw new p("Can't convert object to primitive value")}},function(x,E,r){var f=r(4),d=r(34),h=r(38),p=r(40),y=r(26),T=r(25),$=f.Symbol,A=d("wks"),b=T?$.for||$:$&&$.withoutSetter||p;x.exports=function(R){return h(A,R)||(A[R]=y&&h($,R)?$[R]:b("Symbol."+R)),A[R]}},function(x,E,r){var f=r(35);x.exports=function(d,h){return f[d]||(f[d]=h||{})}},function(x,E,r){var f=r(36),d=r(4),h=r(37),p="__core-js_shared__",y=x.exports=d[p]||h(p,{});(y.versions||(y.versions=[])).push({version:"3.38.1",mode:f?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(x){x.exports=!1},function(x,E,r){var f=r(4),d=Object.defineProperty;x.exports=function(h,p){try{d(f,h,{value:p,configurable:!0,writable:!0})}catch(y){f[h]=p}return p}},function(x,E,r){var f=r(14),d=r(39),h=f({}.hasOwnProperty);x.exports=Object.hasOwn||function(y,T){return h(d(y),T)}},function(x,E,r){var f=r(16),d=Object;x.exports=function(h){return d(f(h))}},function(x,E,r){var f=r(14),d=0,h=Math.random(),p=f(1 .toString);x.exports=function(y){return"Symbol("+(y===void 0?"":y)+")_"+p(++d+h,36)}},function(x,E,r){var f=r(6),d=r(7),h=r(42);x.exports=!f&&!d(function(){return Object.defineProperty(h("div"),"a",{get:function(){return 7}}).a!==7})},function(x,E,r){var f=r(4),d=r(20),h=f.document,p=d(h)&&d(h.createElement);x.exports=function(y){return p?h.createElement(y):{}}},function(x,E,r){var f=r(6),d=r(44),h=r(11);x.exports=f?function(p,y,T){return d.f(p,y,h(1,T))}:function(p,y,T){return p[y]=T,p}},function(x,E,r){var f=r(6),d=r(41),h=r(45),p=r(46),y=r(18),T=TypeError,$=Object.defineProperty,A=Object.getOwnPropertyDescriptor,b="enumerable",R="configurable",O="writable";E.f=f?h?function(w,D,M){if(p(w),D=y(D),p(M),typeof w=="function"&&D==="prototype"&&"value"in M&&O in M&&!M[O]){var F=A(w,D);F&&F[O]&&(w[D]=M.value,M={configurable:R in M?M[R]:F[R],enumerable:b in M?M[b]:F[b],writable:!1})}return $(w,D,M)}:$:function(w,D,M){if(p(w),D=y(D),p(M),d)try{return $(w,D,M)}catch(F){}if("get"in M||"set"in M)throw new T("Accessors not supported");return"value"in M&&(w[D]=M.value),w}},function(x,E,r){var f=r(6),d=r(7);x.exports=f&&d(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},function(x,E,r){var f=r(20),d=String,h=TypeError;x.exports=function(p){if(f(p))return p;throw new h(d(p)+" is not an object")}},function(x,E,r){var f=r(21),d=r(44),h=r(48),p=r(37);x.exports=function(y,T,$,A){A||(A={});var b=A.enumerable,R=A.name!==void 0?A.name:T;if(f($)&&h($,R,A),A.global)b?y[T]=$:p(T,$);else{try{A.unsafe?y[T]&&(b=!0):delete y[T]}catch(O){}b?y[T]=$:d.f(y,T,{value:$,enumerable:!1,configurable:!A.nonConfigurable,writable:!A.nonWritable})}return y}},function(x,E,r){var f=r(14),d=r(7),h=r(21),p=r(38),y=r(6),T=r(49).CONFIGURABLE,$=r(50),A=r(51),b=A.enforce,R=A.get,O=String,P=Object.defineProperty,w=f("".slice),D=f("".replace),M=f([].join),F=y&&!d(function(){return P(function(){},"length",{value:8}).length!==8}),z=String(String).split("String"),B=x.exports=function(U,X,j){w(O(X),0,7)==="Symbol("&&(X="["+D(O(X),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),j&&j.getter&&(X="get "+X),j&&j.setter&&(X="set "+X),(!p(U,"name")||T&&U.name!==X)&&(y?P(U,"name",{value:X,configurable:!0}):U.name=X),F&&j&&p(j,"arity")&&U.length!==j.arity&&P(U,"length",{value:j.arity});try{j&&p(j,"constructor")&&j.constructor?y&&P(U,"prototype",{writable:!1}):U.prototype&&(U.prototype=void 0)}catch(W){}var G=b(U);return p(G,"source")||(G.source=M(z,typeof X=="string"?X:"")),U};Function.prototype.toString=B(function(){return h(this)&&R(this).source||$(this)},"toString")},function(x,E,r){var f=r(6),d=r(38),h=Function.prototype,p=f&&Object.getOwnPropertyDescriptor,y=d(h,"name"),T=y&&function(){}.name==="something",$=y&&(!f||f&&p(h,"name").configurable);x.exports={EXISTS:y,PROPER:T,CONFIGURABLE:$}},function(x,E,r){var f=r(14),d=r(21),h=r(35),p=f(Function.toString);d(h.inspectSource)||(h.inspectSource=function(y){return p(y)}),x.exports=h.inspectSource},function(x,E,r){var f=r(52),d=r(4),h=r(20),p=r(43),y=r(38),T=r(35),$=r(53),A=r(54),b="Object already initialized",R=d.TypeError,O=d.WeakMap,P,w,D,M=function(U){return D(U)?w(U):P(U,{})},F=function(U){return function(X){var j;if(!h(X)||(j=w(X)).type!==U)throw new R("Incompatible receiver, "+U+" required");return j}};if(f||T.state){var z=T.state||(T.state=new O);z.get=z.get,z.has=z.has,z.set=z.set,P=function(U,X){if(z.has(U))throw new R(b);return X.facade=U,z.set(U,X),X},w=function(U){return z.get(U)||{}},D=function(U){return z.has(U)}}else{var B=$("state");A[B]=!0,P=function(U,X){if(y(U,B))throw new R(b);return X.facade=U,p(U,B,X),X},w=function(U){return y(U,B)?U[B]:{}},D=function(U){return y(U,B)}}x.exports={set:P,get:w,has:D,enforce:M,getterFor:F}},function(x,E,r){var f=r(4),d=r(21),h=f.WeakMap;x.exports=d(h)&&/native code/.test(String(h))},function(x,E,r){var f=r(34),d=r(40),h=f("keys");x.exports=function(p){return h[p]||(h[p]=d(p))}},function(x){x.exports={}},function(x,E,r){var f=r(38),d=r(56),h=r(5),p=r(44);x.exports=function(y,T,$){for(var A=d(T),b=p.f,R=h.f,O=0;O<A.length;O++){var P=A[O];!f(y,P)&&!($&&f($,P))&&b(y,P,R(T,P))}}},function(x,E,r){var f=r(23),d=r(14),h=r(57),p=r(66),y=r(46),T=d([].concat);x.exports=f("Reflect","ownKeys")||function(A){var b=h.f(y(A)),R=p.f;return R?T(b,R(A)):b}},function(x,E,r){var f=r(58),d=r(65),h=d.concat("length","prototype");E.f=Object.getOwnPropertyNames||function(y){return f(y,h)}},function(x,E,r){var f=r(14),d=r(38),h=r(12),p=r(59).indexOf,y=r(54),T=f([].push);x.exports=function($,A){var b=h($),R=0,O=[],P;for(P in b)!d(y,P)&&d(b,P)&&T(O,P);for(;A.length>R;)d(b,P=A[R++])&&(~p(O,P)||T(O,P));return O}},function(x,E,r){var f=r(12),d=r(60),h=r(63),p=function(y){return function(T,$,A){var b=f(T),R=h(b);if(R===0)return!y&&-1;var O=d(A,R),P;if(y&&$!==$){for(;R>O;)if(P=b[O++],P!==P)return!0}else for(;R>O;O++)if((y||O in b)&&b[O]===$)return y||O||0;return!y&&-1}};x.exports={includes:p(!0),indexOf:p(!1)}},function(x,E,r){var f=r(61),d=Math.max,h=Math.min;x.exports=function(p,y){var T=f(p);return T<0?d(T+y,0):h(T,y)}},function(x,E,r){var f=r(62);x.exports=function(d){var h=+d;return h!==h||h===0?0:f(h)}},function(x){var E=Math.ceil,r=Math.floor;x.exports=Math.trunc||function(d){var h=+d;return(h>0?r:E)(h)}},function(x,E,r){var f=r(64);x.exports=function(d){return f(d.length)}},function(x,E,r){var f=r(61),d=Math.min;x.exports=function(h){var p=f(h);return p>0?d(p,9007199254740991):0}},function(x){x.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(x,E){E.f=Object.getOwnPropertySymbols},function(x,E,r){var f=r(7),d=r(21),h=/#|\.prototype\./,p=function(b,R){var O=T[y(b)];return O===A?!0:O===$?!1:d(R)?f(R):!!R},y=p.normalize=function(b){return String(b).replace(h,".").toLowerCase()},T=p.data={},$=p.NATIVE="N",A=p.POLYFILL="P";x.exports=p},function(x,E,r){var f=r(69),d=String;x.exports=function(h){if(f(h)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return d(h)}},function(x,E,r){var f=r(70),d=r(21),h=r(15),p=r(33),y=p("toStringTag"),T=Object,$=h(function(){return arguments}())==="Arguments",A=function(b,R){try{return b[R]}catch(O){}};x.exports=f?h:function(b){var R,O,P;return b===void 0?"Undefined":b===null?"Null":typeof(O=A(R=T(b),y))=="string"?O:$?h(R):(P=h(R))==="Object"&&d(R.callee)?"Arguments":P}},function(x,E,r){var f=r(33),d=f("toStringTag"),h={};h[d]="z",x.exports=String(h)==="[object z]"},function(x,E,r){var f=r(46),d=r(72),h=r(65),p=r(54),y=r(74),T=r(42),$=r(53),A=">",b="<",R="prototype",O="script",P=$("IE_PROTO"),w=function(){},D=function(U){return b+O+A+U+b+"/"+O+A},M=function(U){U.write(D("")),U.close();var X=U.parentWindow.Object;return U=null,X},F=function(){var U=T("iframe"),X="java"+O+":",j;return U.style.display="none",y.appendChild(U),U.src=String(X),j=U.contentWindow.document,j.open(),j.write(D("document.F=Object")),j.close(),j.F},z,B=function(){try{z=new ActiveXObject("htmlfile")}catch(X){}B=typeof document!="undefined"?document.domain&&z?M(z):F():M(z);for(var U=h.length;U--;)delete B[R][h[U]];return B()};p[P]=!0,x.exports=Object.create||function(X,j){var G;return X!==null?(w[R]=f(X),G=new w,w[R]=null,G[P]=X):G=B(),j===void 0?G:d.f(G,j)}},function(x,E,r){var f=r(6),d=r(45),h=r(44),p=r(46),y=r(12),T=r(73);E.f=f&&!d?Object.defineProperties:function(A,b){p(A);for(var R=y(b),O=T(b),P=O.length,w=0,D;P>w;)h.f(A,D=O[w++],R[D]);return A}},function(x,E,r){var f=r(58),d=r(65);x.exports=Object.keys||function(p){return f(p,d)}},function(x,E,r){var f=r(23);x.exports=f("document","documentElement")},function(x,E,r){var f=r(15),d=r(12),h=r(57).f,p=r(76),y=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],T=function($){try{return h($)}catch(A){return p(y)}};x.exports.f=function(A){return y&&f(A)==="Window"?T(A):h(d(A))}},function(x,E,r){var f=r(14);x.exports=f([].slice)},function(x,E,r){var f=r(48),d=r(44);x.exports=function(h,p,y){return y.get&&f(y.get,p,{getter:!0}),y.set&&f(y.set,p,{setter:!0}),d.f(h,p,y)}},function(x,E,r){var f=r(33);E.f=f},function(x,E,r){var f=r(80),d=r(38),h=r(78),p=r(44).f;x.exports=function(y){var T=f.Symbol||(f.Symbol={});d(T,y)||p(T,y,{value:h.f(y)})}},function(x,E,r){var f=r(4);x.exports=f},function(x,E,r){var f=r(8),d=r(23),h=r(33),p=r(47);x.exports=function(){var y=d("Symbol"),T=y&&y.prototype,$=T&&T.valueOf,A=h("toPrimitive");T&&!T[A]&&p(T,A,function(b){return f($,this)},{arity:1})}},function(x,E,r){var f=r(44).f,d=r(38),h=r(33),p=h("toStringTag");x.exports=function(y,T,$){y&&!$&&(y=y.prototype),y&&!d(y,p)&&f(y,p,{configurable:!0,value:T})}},function(x,E,r){var f=r(84),d=r(14),h=r(13),p=r(39),y=r(63),T=r(86),$=d([].push),A=function(b){var R=b===1,O=b===2,P=b===3,w=b===4,D=b===6,M=b===7,F=b===5||D;return function(z,B,U,X){for(var j=p(z),G=h(j),W=y(G),J=f(B,U),k=0,Q=X||T,nt=R?Q(z,W):O||M?Q(z,0):void 0,rt,q;W>k;k++)if((F||k in G)&&(rt=G[k],q=J(rt,k,j),b))if(R)nt[k]=q;else if(q)switch(b){case 3:return!0;case 5:return rt;case 6:return k;case 2:$(nt,rt)}else switch(b){case 4:return!1;case 7:$(nt,rt)}return D?-1:P||w?w:nt}};x.exports={forEach:A(0),map:A(1),filter:A(2),some:A(3),every:A(4),find:A(5),findIndex:A(6),filterReject:A(7)}},function(x,E,r){var f=r(85),d=r(30),h=r(9),p=f(f.bind);x.exports=function(y,T){return d(y),T===void 0?y:h?p(y,T):function(){return y.apply(T,arguments)}}},function(x,E,r){var f=r(15),d=r(14);x.exports=function(h){if(f(h)==="Function")return d(h)}},function(x,E,r){var f=r(87);x.exports=function(d,h){return new(f(d))(h===0?0:h)}},function(x,E,r){var f=r(88),d=r(89),h=r(20),p=r(33),y=p("species"),T=Array;x.exports=function($){var A;return f($)&&(A=$.constructor,d(A)&&(A===T||f(A.prototype))?A=void 0:h(A)&&(A=A[y],A===null&&(A=void 0))),A===void 0?T:A}},function(x,E,r){var f=r(15);x.exports=Array.isArray||function(h){return f(h)==="Array"}},function(x,E,r){var f=r(14),d=r(7),h=r(21),p=r(69),y=r(23),T=r(50),$=function(){},A=y("Reflect","construct"),b=/^\s*(?:class|function)\b/,R=f(b.exec),O=!b.test($),P=function(M){if(!h(M))return!1;try{return A($,[],M),!0}catch(F){return!1}},w=function(M){if(!h(M))return!1;switch(p(M)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return O||!!R(b,T(M))}catch(F){return!0}};w.sham=!0,x.exports=!A||d(function(){var D;return P(P.call)||!P(Object)||!P(function(){D=!0})||D})?w:P},function(x,E,r){var f=r(3),d=r(23),h=r(38),p=r(68),y=r(34),T=r(91),$=y("string-to-symbol-registry"),A=y("symbol-to-string-registry");f({target:"Symbol",stat:!0,forced:!T},{for:function(b){var R=p(b);if(h($,R))return $[R];var O=d("Symbol")(R);return $[R]=O,A[O]=R,O}})},function(x,E,r){var f=r(26);x.exports=f&&!!Symbol.for&&!!Symbol.keyFor},function(x,E,r){var f=r(3),d=r(38),h=r(22),p=r(31),y=r(34),T=r(91),$=y("symbol-to-string-registry");f({target:"Symbol",stat:!0,forced:!T},{keyFor:function(b){if(!h(b))throw new TypeError(p(b)+" is not a symbol");if(d($,b))return $[b]}})},function(x,E,r){var f=r(3),d=r(23),h=r(94),p=r(8),y=r(14),T=r(7),$=r(21),A=r(22),b=r(76),R=r(95),O=r(26),P=String,w=d("JSON","stringify"),D=y(/./.exec),M=y("".charAt),F=y("".charCodeAt),z=y("".replace),B=y(1 .toString),U=/[\uD800-\uDFFF]/g,X=/^[\uD800-\uDBFF]$/,j=/^[\uDC00-\uDFFF]$/,G=!O||T(function(){var Q=d("Symbol")("stringify detection");return w([Q])!=="[null]"||w({a:Q})!=="{}"||w(Object(Q))!=="{}"}),W=T(function(){return w("\uDF06\uD834")!=='"\\udf06\\ud834"'||w("\uDEAD")!=='"\\udead"'}),J=function(Q,nt){var rt=b(arguments),q=R(nt);if(!(!$(q)&&(Q===void 0||A(Q))))return rt[1]=function(tt,et){if($(q)&&(et=p(q,this,P(tt),et)),!A(et))return et},h(w,null,rt)},k=function(Q,nt,rt){var q=M(rt,nt-1),tt=M(rt,nt+1);return D(X,Q)&&!D(j,tt)||D(j,Q)&&!D(X,q)?"\\u"+B(F(Q,0),16):Q};w&&f({target:"JSON",stat:!0,arity:3,forced:G||W},{stringify:function(nt,rt,q){var tt=b(arguments),et=h(G?J:w,null,tt);return W&&typeof et=="string"?z(et,U,k):et}})},function(x,E,r){var f=r(9),d=Function.prototype,h=d.apply,p=d.call;x.exports=typeof Reflect=="object"&&Reflect.apply||(f?p.bind(h):function(){return p.apply(h,arguments)})},function(x,E,r){var f=r(14),d=r(88),h=r(21),p=r(15),y=r(68),T=f([].push);x.exports=function($){if(h($))return $;if(d($)){for(var A=$.length,b=[],R=0;R<A;R++){var O=$[R];typeof O=="string"?T(b,O):(typeof O=="number"||p(O)==="Number"||p(O)==="String")&&T(b,y(O))}var P=b.length,w=!0;return function(D,M){if(w)return w=!1,M;if(d(this))return M;for(var F=0;F<P;F++)if(b[F]===D)return M}}}},function(x,E,r){var f=r(3),d=r(26),h=r(7),p=r(66),y=r(39),T=!d||h(function(){p.f(1)});f({target:"Object",stat:!0,forced:T},{getOwnPropertySymbols:function(A){var b=p.f;return b?b(y(A)):[]}})},function(x,E,r){var f=r(3),d=r(6),h=r(4),p=r(14),y=r(38),T=r(21),$=r(24),A=r(68),b=r(77),R=r(55),O=h.Symbol,P=O&&O.prototype;if(d&&T(O)&&(!("description"in P)||O().description!==void 0)){var w={},D=function(){var G=arguments.length<1||arguments[0]===void 0?void 0:A(arguments[0]),W=$(P,this)?new O(G):G===void 0?O():O(G);return G===""&&(w[W]=!0),W};R(D,O),D.prototype=P,P.constructor=D;var M=String(O("description detection"))==="Symbol(description detection)",F=p(P.valueOf),z=p(P.toString),B=/^Symbol\((.*)\)[^)]+$/,U=p("".replace),X=p("".slice);b(P,"description",{configurable:!0,get:function(){var G=F(this);if(y(w,G))return"";var W=z(G),J=M?X(W,7,-1):U(W,B,"$1");return J===""?void 0:J}}),f({global:!0,constructor:!0,forced:!0},{Symbol:D})}},function(x,E,r){var f=r(79);f("asyncIterator")},function(x,E,r){var f=r(79);f("hasInstance")},function(x,E,r){var f=r(79);f("isConcatSpreadable")},function(x,E,r){var f=r(79);f("iterator")},function(x,E,r){var f=r(79);f("match")},function(x,E,r){var f=r(79);f("matchAll")},function(x,E,r){var f=r(79);f("replace")},function(x,E,r){var f=r(79);f("search")},function(x,E,r){var f=r(79);f("species")},function(x,E,r){var f=r(79);f("split")},function(x,E,r){var f=r(79),d=r(81);f("toPrimitive"),d()},function(x,E,r){var f=r(23),d=r(79),h=r(82);d("toStringTag"),h(f("Symbol"),"Symbol")},function(x,E,r){var f=r(79);f("unscopables")},function(x,E,r){var f=r(3),d=r(4),h=r(94),p=r(112),y="WebAssembly",T=d[y],$=new Error("e",{cause:7}).cause!==7,A=function(R,O){var P={};P[R]=p(R,O,$),f({global:!0,constructor:!0,arity:1,forced:$},P)},b=function(R,O){if(T&&T[R]){var P={};P[R]=p(y+"."+R,O,$),f({target:y,stat:!0,constructor:!0,arity:1,forced:$},P)}};A("Error",function(R){return function(P){return h(R,this,arguments)}}),A("EvalError",function(R){return function(P){return h(R,this,arguments)}}),A("RangeError",function(R){return function(P){return h(R,this,arguments)}}),A("ReferenceError",function(R){return function(P){return h(R,this,arguments)}}),A("SyntaxError",function(R){return function(P){return h(R,this,arguments)}}),A("TypeError",function(R){return function(P){return h(R,this,arguments)}}),A("URIError",function(R){return function(P){return h(R,this,arguments)}}),b("CompileError",function(R){return function(P){return h(R,this,arguments)}}),b("LinkError",function(R){return function(P){return h(R,this,arguments)}}),b("RuntimeError",function(R){return function(P){return h(R,this,arguments)}})},function(x,E,r){var f=r(23),d=r(38),h=r(43),p=r(24),y=r(113),T=r(55),$=r(117),A=r(118),b=r(119),R=r(120),O=r(121),P=r(6),w=r(36);x.exports=function(D,M,F,z){var B="stackTraceLimit",U=z?2:1,X=D.split("."),j=X[X.length-1],G=f.apply(null,X);if(G){var W=G.prototype;if(!w&&d(W,"cause")&&delete W.cause,!F)return G;var J=f("Error"),k=M(function(Q,nt){var rt=b(z?nt:Q,void 0),q=z?new G(Q):new G;return rt!==void 0&&h(q,"message",rt),O(q,k,q.stack,2),this&&p(W,this)&&A(q,this,k),arguments.length>U&&R(q,arguments[U]),q});if(k.prototype=W,j!=="Error"?y?y(k,J):T(k,J,{name:!0}):P&&B in G&&($(k,G,B),$(k,G,"prepareStackTrace")),T(k,G),!w)try{W.name!==j&&h(W,"name",j),W.constructor=k}catch(Q){}return k}}},function(x,E,r){var f=r(114),d=r(20),h=r(16),p=r(115);x.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var y=!1,T={},$;try{$=f(Object.prototype,"__proto__","set"),$(T,[]),y=T instanceof Array}catch(A){}return function(b,R){return h(b),p(R),d(b)&&(y?$(b,R):b.__proto__=R),b}}():void 0)},function(x,E,r){var f=r(14),d=r(30);x.exports=function(h,p,y){try{return f(d(Object.getOwnPropertyDescriptor(h,p)[y]))}catch(T){}}},function(x,E,r){var f=r(116),d=String,h=TypeError;x.exports=function(p){if(f(p))return p;throw new h("Can't set "+d(p)+" as a prototype")}},function(x,E,r){var f=r(20);x.exports=function(d){return f(d)||d===null}},function(x,E,r){var f=r(44).f;x.exports=function(d,h,p){p in d||f(d,p,{configurable:!0,get:function(){return h[p]},set:function(y){h[p]=y}})}},function(x,E,r){var f=r(21),d=r(20),h=r(113);x.exports=function(p,y,T){var $,A;return h&&f($=y.constructor)&&$!==T&&d(A=$.prototype)&&A!==T.prototype&&h(p,A),p}},function(x,E,r){var f=r(68);x.exports=function(d,h){return d===void 0?arguments.length<2?"":h:f(d)}},function(x,E,r){var f=r(20),d=r(43);x.exports=function(h,p){f(p)&&"cause"in p&&d(h,"cause",p.cause)}},function(x,E,r){var f=r(43),d=r(122),h=r(123),p=Error.captureStackTrace;x.exports=function(y,T,$,A){h&&(p?p(y,T):f(y,"stack",d($,A)))}},function(x,E,r){var f=r(14),d=Error,h=f("".replace),p=function($){return String(new d($).stack)}("zxcasd"),y=/\n\s*at [^:]*:[^\n]*/,T=y.test(p);x.exports=function($,A){if(T&&typeof $=="string"&&!d.prepareStackTrace)for(;A--;)$=h($,y,"");return $}},function(x,E,r){var f=r(7),d=r(11);x.exports=!f(function(){var h=new Error("a");return"stack"in h?(Object.defineProperty(h,"stack",d(1,7)),h.stack!==7):!0})},function(x,E,r){var f=r(47),d=r(125),h=Error.prototype;h.toString!==d&&f(h,"toString",d)},function(x,E,r){var f=r(6),d=r(7),h=r(46),p=r(119),y=Error.prototype.toString,T=d(function(){if(f){var $=Object.create(Object.defineProperty({},"name",{get:function(){return this===$}}));if(y.call($)!=="true")return!0}return y.call({message:1,name:2})!=="2: 1"||y.call({})!=="Error"});x.exports=T?function(){var A=h(this),b=p(A.name,"Error"),R=p(A.message);return b?R?b+": "+R:b:R}:y},function(x,E,r){r(127)},function(x,E,r){var f=r(3),d=r(24),h=r(128),p=r(113),y=r(55),T=r(71),$=r(43),A=r(11),b=r(120),R=r(121),O=r(130),P=r(119),w=r(33),D=w("toStringTag"),M=Error,F=[].push,z=function(X,j){var G=d(B,this),W;p?W=p(new M,G?h(this):B):(W=G?this:T(B),$(W,D,"Error")),j!==void 0&&$(W,"message",P(j)),R(W,z,W.stack,1),arguments.length>2&&b(W,arguments[2]);var J=[];return O(X,F,{that:J}),$(W,"errors",J),W};p?p(z,M):y(z,M,{name:!0});var B=z.prototype=T(M.prototype,{constructor:A(1,z),message:A(1,""),name:A(1,"AggregateError")});f({global:!0,constructor:!0,arity:2},{AggregateError:z})},function(x,E,r){var f=r(38),d=r(21),h=r(39),p=r(53),y=r(129),T=p("IE_PROTO"),$=Object,A=$.prototype;x.exports=y?$.getPrototypeOf:function(b){var R=h(b);if(f(R,T))return R[T];var O=R.constructor;return d(O)&&R instanceof O?O.prototype:R instanceof $?A:null}},function(x,E,r){var f=r(7);x.exports=!f(function(){function d(){}return d.prototype.constructor=null,Object.getPrototypeOf(new d)!==d.prototype})},function(x,E,r){var f=r(84),d=r(8),h=r(46),p=r(31),y=r(131),T=r(63),$=r(24),A=r(133),b=r(134),R=r(135),O=TypeError,P=function(D,M){this.stopped=D,this.result=M},w=P.prototype;x.exports=function(D,M,F){var z=F&&F.that,B=!!(F&&F.AS_ENTRIES),U=!!(F&&F.IS_RECORD),X=!!(F&&F.IS_ITERATOR),j=!!(F&&F.INTERRUPTED),G=f(M,z),W,J,k,Q,nt,rt,q,tt=function(ot){return W&&R(W,"normal",ot),new P(!0,ot)},et=function(ot){return B?(h(ot),j?G(ot[0],ot[1],tt):G(ot[0],ot[1])):j?G(ot,tt):G(ot)};if(U)W=D.iterator;else if(X)W=D;else{if(J=b(D),!J)throw new O(p(D)+" is not iterable");if(y(J)){for(k=0,Q=T(D);Q>k;k++)if(nt=et(D[k]),nt&&$(w,nt))return nt;return new P(!1)}W=A(D,J)}for(rt=U?D.next:W.next;!(q=d(rt,W)).done;){try{nt=et(q.value)}catch(ot){R(W,"throw",ot)}if(typeof nt=="object"&&nt&&$(w,nt))return nt}return new P(!1)}},function(x,E,r){var f=r(33),d=r(132),h=f("iterator"),p=Array.prototype;x.exports=function(y){return y!==void 0&&(d.Array===y||p[h]===y)}},function(x){x.exports={}},function(x,E,r){var f=r(8),d=r(30),h=r(46),p=r(31),y=r(134),T=TypeError;x.exports=function($,A){var b=arguments.length<2?y($):A;if(d(b))return h(f(b,$));throw new T(p($)+" is not iterable")}},function(x,E,r){var f=r(69),d=r(29),h=r(17),p=r(132),y=r(33),T=y("iterator");x.exports=function($){if(!h($))return d($,T)||d($,"@@iterator")||p[f($)]}},function(x,E,r){var f=r(8),d=r(46),h=r(29);x.exports=function(p,y,T){var $,A;d(p);try{if($=h(p,"return"),!$){if(y==="throw")throw T;return T}$=f($,p)}catch(b){A=!0,$=b}if(y==="throw")throw T;if(A)throw $;return d($),T}},function(x,E,r){var f=r(3),d=r(23),h=r(94),p=r(7),y=r(112),T="AggregateError",$=d(T),A=!p(function(){return $([1]).errors[0]!==1})&&p(function(){return $([1],T,{cause:7}).cause!==7});f({global:!0,constructor:!0,arity:2,forced:A},{AggregateError:y(T,function(b){return function(O,P){return h(b,this,arguments)}},A,!0)})},function(x,E,r){var f=r(3),d=r(39),h=r(63),p=r(61),y=r(138);f({target:"Array",proto:!0},{at:function($){var A=d(this),b=h(A),R=p($),O=R>=0?R:b+R;return O<0||O>=b?void 0:A[O]}}),y("at")},function(x,E,r){var f=r(33),d=r(71),h=r(44).f,p=f("unscopables"),y=Array.prototype;y[p]===void 0&&h(y,p,{configurable:!0,value:d(null)}),x.exports=function(T){y[p][T]=!0}},function(x,E,r){var f=r(3),d=r(7),h=r(88),p=r(20),y=r(39),T=r(63),$=r(140),A=r(141),b=r(86),R=r(142),O=r(33),P=r(27),w=O("isConcatSpreadable"),D=P>=51||!d(function(){var z=[];return z[w]=!1,z.concat()[0]!==z}),M=function(z){if(!p(z))return!1;var B=z[w];return B!==void 0?!!B:h(z)},F=!D||!R("concat");f({target:"Array",proto:!0,arity:1,forced:F},{concat:function(B){var U=y(this),X=b(U,0),j=0,G,W,J,k,Q;for(G=-1,J=arguments.length;G<J;G++)if(Q=G===-1?U:arguments[G],M(Q))for(k=T(Q),$(j+k),W=0;W<k;W++,j++)W in Q&&A(X,j,Q[W]);else $(j+1),A(X,j++,Q);return X.length=j,X}})},function(x){var E=TypeError,r=9007199254740991;x.exports=function(f){if(f>r)throw E("Maximum allowed index exceeded");return f}},function(x,E,r){var f=r(6),d=r(44),h=r(11);x.exports=function(p,y,T){f?d.f(p,y,h(0,T)):p[y]=T}},function(x,E,r){var f=r(7),d=r(33),h=r(27),p=d("species");x.exports=function(y){return h>=51||!f(function(){var T=[],$=T.constructor={};return $[p]=function(){return{foo:1}},T[y](Boolean).foo!==1})}},function(x,E,r){var f=r(3),d=r(144),h=r(138);f({target:"Array",proto:!0},{copyWithin:d}),h("copyWithin")},function(x,E,r){var f=r(39),d=r(60),h=r(63),p=r(145),y=Math.min;x.exports=[].copyWithin||function($,A){var b=f(this),R=h(b),O=d($,R),P=d(A,R),w=arguments.length>2?arguments[2]:void 0,D=y((w===void 0?R:d(w,R))-P,R-O),M=1;for(P<O&&O<P+D&&(M=-1,P+=D-1,O+=D-1);D-- >0;)P in b?b[O]=b[P]:p(b,O),O+=M,P+=M;return b}},function(x,E,r){var f=r(31),d=TypeError;x.exports=function(h,p){if(!delete h[p])throw new d("Cannot delete property "+f(p)+" of "+f(h))}},function(x,E,r){var f=r(3),d=r(83).every,h=r(147),p=h("every");f({target:"Array",proto:!0,forced:!p},{every:function(T){return d(this,T,arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var f=r(7);x.exports=function(d,h){var p=[][d];return!!p&&f(function(){p.call(null,h||function(){return 1},1)})}},function(x,E,r){var f=r(3),d=r(149),h=r(138);f({target:"Array",proto:!0},{fill:d}),h("fill")},function(x,E,r){var f=r(39),d=r(60),h=r(63);x.exports=function(y){for(var T=f(this),$=h(T),A=arguments.length,b=d(A>1?arguments[1]:void 0,$),R=A>2?arguments[2]:void 0,O=R===void 0?$:d(R,$);O>b;)T[b++]=y;return T}},function(x,E,r){var f=r(3),d=r(83).filter,h=r(142),p=h("filter");f({target:"Array",proto:!0,forced:!p},{filter:function(T){return d(this,T,arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var f=r(3),d=r(83).find,h=r(138),p="find",y=!0;p in[]&&Array(1)[p](function(){y=!1}),f({target:"Array",proto:!0,forced:y},{find:function($){return d(this,$,arguments.length>1?arguments[1]:void 0)}}),h(p)},function(x,E,r){var f=r(3),d=r(83).findIndex,h=r(138),p="findIndex",y=!0;p in[]&&Array(1)[p](function(){y=!1}),f({target:"Array",proto:!0,forced:y},{findIndex:function($){return d(this,$,arguments.length>1?arguments[1]:void 0)}}),h(p)},function(x,E,r){var f=r(3),d=r(154).findLast,h=r(138);f({target:"Array",proto:!0},{findLast:function(y){return d(this,y,arguments.length>1?arguments[1]:void 0)}}),h("findLast")},function(x,E,r){var f=r(84),d=r(13),h=r(39),p=r(63),y=function(T){var $=T===1;return function(A,b,R){for(var O=h(A),P=d(O),w=p(P),D=f(b,R),M,F;w-- >0;)if(M=P[w],F=D(M,w,O),F)switch(T){case 0:return M;case 1:return w}return $?-1:void 0}};x.exports={findLast:y(0),findLastIndex:y(1)}},function(x,E,r){var f=r(3),d=r(154).findLastIndex,h=r(138);f({target:"Array",proto:!0},{findLastIndex:function(y){return d(this,y,arguments.length>1?arguments[1]:void 0)}}),h("findLastIndex")},function(x,E,r){var f=r(3),d=r(157),h=r(39),p=r(63),y=r(61),T=r(86);f({target:"Array",proto:!0},{flat:function(){var A=arguments.length?arguments[0]:void 0,b=h(this),R=p(b),O=T(b,0);return O.length=d(O,b,b,R,0,A===void 0?1:y(A)),O}})},function(x,E,r){var f=r(88),d=r(63),h=r(140),p=r(84),y=function(T,$,A,b,R,O,P,w){for(var D=R,M=0,F=P?p(P,w):!1,z,B;M<b;)M in A&&(z=F?F(A[M],M,$):A[M],O>0&&f(z)?(B=d(z),D=y(T,$,z,B,D,O-1)-1):(h(D+1),T[D]=z),D++),M++;return D};x.exports=y},function(x,E,r){var f=r(3),d=r(157),h=r(30),p=r(39),y=r(63),T=r(86);f({target:"Array",proto:!0},{flatMap:function(A){var b=p(this),R=y(b),O;return h(A),O=T(b,0),O.length=d(O,b,b,R,0,1,A,arguments.length>1?arguments[1]:void 0),O}})},function(x,E,r){var f=r(3),d=r(160);f({target:"Array",proto:!0,forced:[].forEach!==d},{forEach:d})},function(x,E,r){var f=r(83).forEach,d=r(147),h=d("forEach");x.exports=h?[].forEach:function(y){return f(this,y,arguments.length>1?arguments[1]:void 0)}},function(x,E,r){var f=r(3),d=r(162),h=r(164),p=!h(function(y){Array.from(y)});f({target:"Array",stat:!0,forced:p},{from:d})},function(x,E,r){var f=r(84),d=r(8),h=r(39),p=r(163),y=r(131),T=r(89),$=r(63),A=r(141),b=r(133),R=r(134),O=Array;x.exports=function(w){var D=h(w),M=T(this),F=arguments.length,z=F>1?arguments[1]:void 0,B=z!==void 0;B&&(z=f(z,F>2?arguments[2]:void 0));var U=R(D),X=0,j,G,W,J,k,Q;if(U&&!(this===O&&y(U)))for(G=M?new this:[],J=b(D,U),k=J.next;!(W=d(k,J)).done;X++)Q=B?p(J,z,[W.value,X],!0):W.value,A(G,X,Q);else for(j=$(D),G=M?new this(j):O(j);j>X;X++)Q=B?z(D[X],X):D[X],A(G,X,Q);return G.length=X,G}},function(x,E,r){var f=r(46),d=r(135);x.exports=function(h,p,y,T){try{return T?p(f(y)[0],y[1]):p(y)}catch($){d(h,"throw",$)}}},function(x,E,r){var f=r(33),d=f("iterator"),h=!1;try{var p=0,y={next:function(){return{done:!!p++}},return:function(){h=!0}};y[d]=function(){return this},Array.from(y,function(){throw 2})}catch(T){}x.exports=function(T,$){try{if(!$&&!h)return!1}catch(R){return!1}var A=!1;try{var b={};b[d]=function(){return{next:function(){return{done:A=!0}}}},T(b)}catch(R){}return A}},function(x,E,r){var f=r(3),d=r(59).includes,h=r(7),p=r(138),y=h(function(){return!Array(1).includes()});f({target:"Array",proto:!0,forced:y},{includes:function($){return d(this,$,arguments.length>1?arguments[1]:void 0)}}),p("includes")},function(x,E,r){var f=r(3),d=r(85),h=r(59).indexOf,p=r(147),y=d([].indexOf),T=!!y&&1/y([1],1,-0)<0,$=T||!p("indexOf");f({target:"Array",proto:!0,forced:$},{indexOf:function(b){var R=arguments.length>1?arguments[1]:void 0;return T?y(this,b,R)||0:h(this,b,R)}})},function(x,E,r){var f=r(3),d=r(88);f({target:"Array",stat:!0},{isArray:d})},function(x,E,r){var f=r(12),d=r(138),h=r(132),p=r(51),y=r(44).f,T=r(169),$=r(172),A=r(36),b=r(6),R="Array Iterator",O=p.set,P=p.getterFor(R);x.exports=T(Array,"Array",function(D,M){O(this,{type:R,target:f(D),index:0,kind:M})},function(){var D=P(this),M=D.target,F=D.index++;if(!M||F>=M.length)return D.target=null,$(void 0,!0);switch(D.kind){case"keys":return $(F,!1);case"values":return $(M[F],!1)}return $([F,M[F]],!1)},"values");var w=h.Arguments=h.Array;if(d("keys"),d("values"),d("entries"),!A&&b&&w.name!=="values")try{y(w,"name",{value:"values"})}catch(D){}},function(x,E,r){var f=r(3),d=r(8),h=r(36),p=r(49),y=r(21),T=r(170),$=r(128),A=r(113),b=r(82),R=r(43),O=r(47),P=r(33),w=r(132),D=r(171),M=p.PROPER,F=p.CONFIGURABLE,z=D.IteratorPrototype,B=D.BUGGY_SAFARI_ITERATORS,U=P("iterator"),X="keys",j="values",G="entries",W=function(){return this};x.exports=function(J,k,Q,nt,rt,q,tt){T(Q,k,nt);var et=function(Qt){if(Qt===rt&&yt)return yt;if(!B&&Qt&&Qt in ht)return ht[Qt];switch(Qt){case X:return function(){return new Q(this,Qt)};case j:return function(){return new Q(this,Qt)};case G:return function(){return new Q(this,Qt)}}return function(){return new Q(this)}},ot=k+" Iterator",pt=!1,ht=J.prototype,xt=ht[U]||ht["@@iterator"]||rt&&ht[rt],yt=!B&&xt||et(rt),Ut=k==="Array"&&ht.entries||xt,Lt,Xt,Jt;if(Ut&&(Lt=$(Ut.call(new J)),Lt!==Object.prototype&&Lt.next&&(!h&&$(Lt)!==z&&(A?A(Lt,z):y(Lt[U])||O(Lt,U,W)),b(Lt,ot,!0,!0),h&&(w[ot]=W))),M&&rt===j&&xt&&xt.name!==j&&(!h&&F?R(ht,"name",j):(pt=!0,yt=function(){return d(xt,this)})),rt)if(Xt={values:et(j),keys:q?yt:et(X),entries:et(G)},tt)for(Jt in Xt)(B||pt||!(Jt in ht))&&O(ht,Jt,Xt[Jt]);else f({target:k,proto:!0,forced:B||pt},Xt);return(!h||tt)&&ht[U]!==yt&&O(ht,U,yt,{name:rt}),w[k]=yt,Xt}},function(x,E,r){var f=r(171).IteratorPrototype,d=r(71),h=r(11),p=r(82),y=r(132),T=function(){return this};x.exports=function($,A,b,R){var O=A+" Iterator";return $.prototype=d(f,{next:h(+!R,b)}),p($,O,!1,!0),y[O]=T,$}},function(x,E,r){var f=r(7),d=r(21),h=r(20),p=r(71),y=r(128),T=r(47),$=r(33),A=r(36),b=$("iterator"),R=!1,O,P,w;[].keys&&(w=[].keys(),"next"in w?(P=y(y(w)),P!==Object.prototype&&(O=P)):R=!0);var D=!h(O)||f(function(){var M={};return O[b].call(M)!==M});D?O={}:A&&(O=p(O)),d(O[b])||T(O,b,function(){return this}),x.exports={IteratorPrototype:O,BUGGY_SAFARI_ITERATORS:R}},function(x){x.exports=function(E,r){return{value:E,done:r}}},function(x,E,r){var f=r(3),d=r(14),h=r(13),p=r(12),y=r(147),T=d([].join),$=h!==Object,A=$||!y("join",",");f({target:"Array",proto:!0,forced:A},{join:function(R){return T(p(this),R===void 0?",":R)}})},function(x,E,r){var f=r(3),d=r(175);f({target:"Array",proto:!0,forced:d!==[].lastIndexOf},{lastIndexOf:d})},function(x,E,r){var f=r(94),d=r(12),h=r(61),p=r(63),y=r(147),T=Math.min,$=[].lastIndexOf,A=!!$&&1/[1].lastIndexOf(1,-0)<0,b=y("lastIndexOf"),R=A||!b;x.exports=R?function(P){if(A)return f($,this,arguments)||0;var w=d(this),D=p(w);if(D===0)return-1;var M=D-1;for(arguments.length>1&&(M=T(M,h(arguments[1]))),M<0&&(M=D+M);M>=0;M--)if(M in w&&w[M]===P)return M||0;return-1}:$},function(x,E,r){var f=r(3),d=r(83).map,h=r(142),p=h("map");f({target:"Array",proto:!0,forced:!p},{map:function(T){return d(this,T,arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var f=r(3),d=r(7),h=r(89),p=r(141),y=Array,T=d(function(){function $(){}return!(y.of.call($)instanceof $)});f({target:"Array",stat:!0,forced:T},{of:function(){for(var A=0,b=arguments.length,R=new(h(this)?this:y)(b);b>A;)p(R,A,arguments[A++]);return R.length=b,R}})},function(x,E,r){var f=r(3),d=r(39),h=r(63),p=r(179),y=r(140),T=r(7),$=T(function(){return[].push.call({length:4294967296},1)!==4294967297}),A=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(R){return R instanceof TypeError}},b=$||!A();f({target:"Array",proto:!0,arity:1,forced:b},{push:function(O){var P=d(this),w=h(P),D=arguments.length;y(w+D);for(var M=0;M<D;M++)P[w]=arguments[M],w++;return p(P,w),w}})},function(x,E,r){var f=r(6),d=r(88),h=TypeError,p=Object.getOwnPropertyDescriptor,y=f&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(T){return T instanceof TypeError}}();x.exports=y?function(T,$){if(d(T)&&!p(T,"length").writable)throw new h("Cannot set read only .length");return T.length=$}:function(T,$){return T.length=$}},function(x,E,r){var f=r(3),d=r(181).left,h=r(147),p=r(27),y=r(182),T=!y&&p>79&&p<83,$=T||!h("reduce");f({target:"Array",proto:!0,forced:$},{reduce:function(b){var R=arguments.length;return d(this,b,R,R>1?arguments[1]:void 0)}})},function(x,E,r){var f=r(30),d=r(39),h=r(13),p=r(63),y=TypeError,T="Reduce of empty array with no initial value",$=function(A){return function(b,R,O,P){var w=d(b),D=h(w),M=p(w);if(f(R),M===0&&O<2)throw new y(T);var F=A?M-1:0,z=A?-1:1;if(O<2)for(;;){if(F in D){P=D[F],F+=z;break}if(F+=z,A?F<0:M<=F)throw new y(T)}for(;A?F>=0:M>F;F+=z)F in D&&(P=R(P,D[F],F,w));return P}};x.exports={left:$(!1),right:$(!0)}},function(x,E,r){var f=r(183);x.exports=f==="NODE"},function(x,E,r){var f=r(4),d=r(28),h=r(15),p=function(y){return d.slice(0,y.length)===y};x.exports=function(){return p("Bun/")?"BUN":p("Cloudflare-Workers")?"CLOUDFLARE":p("Deno/")?"DENO":p("Node.js/")?"NODE":f.Bun&&typeof Bun.version=="string"?"BUN":f.Deno&&typeof Deno.version=="object"?"DENO":h(f.process)==="process"?"NODE":f.window&&f.document?"BROWSER":"REST"}()},function(x,E,r){var f=r(3),d=r(181).right,h=r(147),p=r(27),y=r(182),T=!y&&p>79&&p<83,$=T||!h("reduceRight");f({target:"Array",proto:!0,forced:$},{reduceRight:function(b){return d(this,b,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var f=r(3),d=r(14),h=r(88),p=d([].reverse),y=[1,2];f({target:"Array",proto:!0,forced:String(y)===String(y.reverse())},{reverse:function(){return h(this)&&(this.length=this.length),p(this)}})},function(x,E,r){var f=r(3),d=r(88),h=r(89),p=r(20),y=r(60),T=r(63),$=r(12),A=r(141),b=r(33),R=r(142),O=r(76),P=R("slice"),w=b("species"),D=Array,M=Math.max;f({target:"Array",proto:!0,forced:!P},{slice:function(z,B){var U=$(this),X=T(U),j=y(z,X),G=y(B===void 0?X:B,X),W,J,k;if(d(U)&&(W=U.constructor,h(W)&&(W===D||d(W.prototype))?W=void 0:p(W)&&(W=W[w],W===null&&(W=void 0)),W===D||W===void 0))return O(U,j,G);for(J=new(W===void 0?D:W)(M(G-j,0)),k=0;j<G;j++,k++)j in U&&A(J,k,U[j]);return J.length=k,J}})},function(x,E,r){var f=r(3),d=r(83).some,h=r(147),p=h("some");f({target:"Array",proto:!0,forced:!p},{some:function(T){return d(this,T,arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var f=r(3),d=r(14),h=r(30),p=r(39),y=r(63),T=r(145),$=r(68),A=r(7),b=r(189),R=r(147),O=r(190),P=r(191),w=r(27),D=r(192),M=[],F=d(M.sort),z=d(M.push),B=A(function(){M.sort(void 0)}),U=A(function(){M.sort(null)}),X=R("sort"),j=!A(function(){if(w)return w<70;if(!(O&&O>3)){if(P)return!0;if(D)return D<603;var J="",k,Q,nt,rt;for(k=65;k<76;k++){switch(Q=String.fromCharCode(k),k){case 66:case 69:case 70:case 72:nt=3;break;case 68:case 71:nt=4;break;default:nt=2}for(rt=0;rt<47;rt++)M.push({k:Q+rt,v:nt})}for(M.sort(function(q,tt){return tt.v-q.v}),rt=0;rt<M.length;rt++)Q=M[rt].k.charAt(0),J.charAt(J.length-1)!==Q&&(J+=Q);return J!=="DGBEFHACIJK"}}),G=B||!U||!X||!j,W=function(J){return function(k,Q){return Q===void 0?-1:k===void 0?1:J!==void 0?+J(k,Q)||0:$(k)>$(Q)?1:-1}};f({target:"Array",proto:!0,forced:G},{sort:function(k){k!==void 0&&h(k);var Q=p(this);if(j)return k===void 0?F(Q):F(Q,k);var nt=[],rt=y(Q),q,tt;for(tt=0;tt<rt;tt++)tt in Q&&z(nt,Q[tt]);for(b(nt,W(k)),q=y(nt),tt=0;tt<q;)Q[tt]=nt[tt++];for(;tt<rt;)T(Q,tt++);return Q}})},function(x,E,r){var f=r(76),d=Math.floor,h=function(p,y){var T=p.length;if(T<8)for(var $=1,A,b;$<T;){for(b=$,A=p[$];b&&y(p[b-1],A)>0;)p[b]=p[--b];b!==$++&&(p[b]=A)}else for(var R=d(T/2),O=h(f(p,0,R),y),P=h(f(p,R),y),w=O.length,D=P.length,M=0,F=0;M<w||F<D;)p[M+F]=M<w&&F<D?y(O[M],P[F])<=0?O[M++]:P[F++]:M<w?O[M++]:P[F++];return p};x.exports=h},function(x,E,r){var f=r(28),d=f.match(/firefox\/(\d+)/i);x.exports=!!d&&+d[1]},function(x,E,r){var f=r(28);x.exports=/MSIE|Trident/.test(f)},function(x,E,r){var f=r(28),d=f.match(/AppleWebKit\/(\d+)\./);x.exports=!!d&&+d[1]},function(x,E,r){var f=r(194);f("Array")},function(x,E,r){var f=r(23),d=r(77),h=r(33),p=r(6),y=h("species");x.exports=function(T){var $=f(T);p&&$&&!$[y]&&d($,y,{configurable:!0,get:function(){return this}})}},function(x,E,r){var f=r(3),d=r(39),h=r(60),p=r(61),y=r(63),T=r(179),$=r(140),A=r(86),b=r(141),R=r(145),O=r(142),P=O("splice"),w=Math.max,D=Math.min;f({target:"Array",proto:!0,forced:!P},{splice:function(F,z){var B=d(this),U=y(B),X=h(F,U),j=arguments.length,G,W,J,k,Q,nt;for(j===0?G=W=0:j===1?(G=0,W=U-X):(G=j-2,W=D(w(p(z),0),U-X)),$(U+G-W),J=A(B,W),k=0;k<W;k++)Q=X+k,Q in B&&b(J,k,B[Q]);if(J.length=W,G<W){for(k=X;k<U-W;k++)Q=k+W,nt=k+G,Q in B?B[nt]=B[Q]:R(B,nt);for(k=U;k>U-W+G;k--)R(B,k-1)}else if(G>W)for(k=U-W;k>X;k--)Q=k+W-1,nt=k+G-1,Q in B?B[nt]=B[Q]:R(B,nt);for(k=0;k<G;k++)B[k+X]=arguments[k+2];return T(B,U-W+G),J}})},function(x,E,r){var f=r(3),d=r(197),h=r(12),p=r(138),y=Array;f({target:"Array",proto:!0},{toReversed:function(){return d(h(this),y)}}),p("toReversed")},function(x,E,r){var f=r(63);x.exports=function(d,h){for(var p=f(d),y=new h(p),T=0;T<p;T++)y[T]=d[p-T-1];return y}},function(x,E,r){var f=r(3),d=r(14),h=r(30),p=r(12),y=r(199),T=r(200),$=r(138),A=Array,b=d(T("Array","sort"));f({target:"Array",proto:!0},{toSorted:function(O){O!==void 0&&h(O);var P=p(this),w=y(A,P);return b(w,O)}}),$("toSorted")},function(x,E,r){var f=r(63);x.exports=function(d,h,p){for(var y=0,T=arguments.length>2?p:f(h),$=new d(T);T>y;)$[y]=h[y++];return $}},function(x,E,r){var f=r(4);x.exports=function(d,h){var p=f[d],y=p&&p.prototype;return y&&y[h]}},function(x,E,r){var f=r(3),d=r(138),h=r(140),p=r(63),y=r(60),T=r(12),$=r(61),A=Array,b=Math.max,R=Math.min;f({target:"Array",proto:!0},{toSpliced:function(P,w){var D=T(this),M=p(D),F=y(P,M),z=arguments.length,B=0,U,X,j,G;for(z===0?U=X=0:z===1?(U=0,X=M-F):(U=z-2,X=R(b($(w),0),M-F)),j=h(M+U-X),G=A(j);B<F;B++)G[B]=D[B];for(;B<F+U;B++)G[B]=arguments[B-F+2];for(;B<j;B++)G[B]=D[B+X-U];return G}}),d("toSpliced")},function(x,E,r){var f=r(138);f("flat")},function(x,E,r){var f=r(138);f("flatMap")},function(x,E,r){var f=r(3),d=r(39),h=r(63),p=r(179),y=r(145),T=r(140),$=[].unshift(0)!==1,A=function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(R){return R instanceof TypeError}},b=$||!A();f({target:"Array",proto:!0,arity:1,forced:b},{unshift:function(O){var P=d(this),w=h(P),D=arguments.length;if(D){T(w+D);for(var M=w;M--;){var F=M+D;M in P?P[F]=P[M]:y(P,F)}for(var z=0;z<D;z++)P[z]=arguments[z]}return p(P,w+D)}})},function(x,E,r){var f=r(3),d=r(206),h=r(12),p=Array;f({target:"Array",proto:!0},{with:function(y,T){return d(h(this),p,y,T)}})},function(x,E,r){var f=r(63),d=r(61),h=RangeError;x.exports=function(p,y,T,$){var A=f(p),b=d(T),R=b<0?A+b:b;if(R>=A||R<0)throw new h("Incorrect index");for(var O=new y(A),P=0;P<A;P++)O[P]=P===R?$:p[P];return O}},function(x,E,r){var f=r(3),d=r(4),h=r(208),p=r(194),y="ArrayBuffer",T=h[y],$=d[y];f({global:!0,constructor:!0,forced:$!==T},{ArrayBuffer:T}),p(y)},function(x,E,r){var f=r(4),d=r(14),h=r(6),p=r(209),y=r(49),T=r(43),$=r(77),A=r(210),b=r(7),R=r(211),O=r(61),P=r(64),w=r(212),D=r(213),M=r(216),F=r(128),z=r(113),B=r(149),U=r(76),X=r(118),j=r(55),G=r(82),W=r(51),J=y.PROPER,k=y.CONFIGURABLE,Q="ArrayBuffer",nt="DataView",rt="prototype",q="Wrong length",tt="Wrong index",et=W.getterFor(Q),ot=W.getterFor(nt),pt=W.set,ht=f[Q],xt=ht,yt=xt&&xt[rt],Ut=f[nt],Lt=Ut&&Ut[rt],Xt=Object.prototype,Jt=f.Array,Qt=f.RangeError,me=d(B),ve=d([].reverse),ae=M.pack,Mt=M.unpack,Yt=function(Et){return[Et&255]},re=function(Et){return[Et&255,Et>>8&255]},oe=function(Et){return[Et&255,Et>>8&255,Et>>16&255,Et>>24&255]},ee=function(Et){return Et[3]<<24|Et[2]<<16|Et[1]<<8|Et[0]},fe=function(Et){return ae(D(Et),23,4)},Pe=function(Et){return ae(Et,52,8)},Me=function(Et,Ft,Tt){$(Et[rt],Ft,{configurable:!0,get:function(){return Tt(this)[Ft]}})},$e=function(Et,Ft,Tt,_t){var te=ot(Et),Zt=w(Tt),Ht=!!_t;if(Zt+Ft>te.byteLength)throw new Qt(tt);var He=te.bytes,Ze=Zt+te.byteOffset,ut=U(He,Ze,Ze+Ft);return Ht?ut:ve(ut)},ce=function(Et,Ft,Tt,_t,te,Zt){var Ht=ot(Et),He=w(Tt),Ze=_t(+te),ut=!!Zt;if(He+Ft>Ht.byteLength)throw new Qt(tt);for(var Ot=Ht.bytes,Pt=He+Ht.byteOffset,Ct=0;Ct<Ft;Ct++)Ot[Pt+Ct]=Ze[ut?Ct:Ft-Ct-1]};if(!p)xt=function(Ft){R(this,yt);var Tt=w(Ft);pt(this,{type:Q,bytes:me(Jt(Tt),0),byteLength:Tt}),h||(this.byteLength=Tt,this.detached=!1)},yt=xt[rt],Ut=function(Ft,Tt,_t){R(this,Lt),R(Ft,yt);var te=et(Ft),Zt=te.byteLength,Ht=O(Tt);if(Ht<0||Ht>Zt)throw new Qt("Wrong offset");if(_t=_t===void 0?Zt-Ht:P(_t),Ht+_t>Zt)throw new Qt(q);pt(this,{type:nt,buffer:Ft,byteLength:_t,byteOffset:Ht,bytes:te.bytes}),h||(this.buffer=Ft,this.byteLength=_t,this.byteOffset=Ht)},Lt=Ut[rt],h&&(Me(xt,"byteLength",et),Me(Ut,"buffer",ot),Me(Ut,"byteLength",ot),Me(Ut,"byteOffset",ot)),A(Lt,{getInt8:function(Ft){return $e(this,1,Ft)[0]<<24>>24},getUint8:function(Ft){return $e(this,1,Ft)[0]},getInt16:function(Ft){var Tt=$e(this,2,Ft,arguments.length>1?arguments[1]:!1);return(Tt[1]<<8|Tt[0])<<16>>16},getUint16:function(Ft){var Tt=$e(this,2,Ft,arguments.length>1?arguments[1]:!1);return Tt[1]<<8|Tt[0]},getInt32:function(Ft){return ee($e(this,4,Ft,arguments.length>1?arguments[1]:!1))},getUint32:function(Ft){return ee($e(this,4,Ft,arguments.length>1?arguments[1]:!1))>>>0},getFloat32:function(Ft){return Mt($e(this,4,Ft,arguments.length>1?arguments[1]:!1),23)},getFloat64:function(Ft){return Mt($e(this,8,Ft,arguments.length>1?arguments[1]:!1),52)},setInt8:function(Ft,Tt){ce(this,1,Ft,Yt,Tt)},setUint8:function(Ft,Tt){ce(this,1,Ft,Yt,Tt)},setInt16:function(Ft,Tt){ce(this,2,Ft,re,Tt,arguments.length>2?arguments[2]:!1)},setUint16:function(Ft,Tt){ce(this,2,Ft,re,Tt,arguments.length>2?arguments[2]:!1)},setInt32:function(Ft,Tt){ce(this,4,Ft,oe,Tt,arguments.length>2?arguments[2]:!1)},setUint32:function(Ft,Tt){ce(this,4,Ft,oe,Tt,arguments.length>2?arguments[2]:!1)},setFloat32:function(Ft,Tt){ce(this,4,Ft,fe,Tt,arguments.length>2?arguments[2]:!1)},setFloat64:function(Ft,Tt){ce(this,8,Ft,Pe,Tt,arguments.length>2?arguments[2]:!1)}});else{var Ae=J&&ht.name!==Q;!b(function(){ht(1)})||!b(function(){new ht(-1)})||b(function(){return new ht,new ht(1.5),new ht(NaN),ht.length!==1||Ae&&!k})?(xt=function(Ft){return R(this,yt),X(new ht(w(Ft)),this,xt)},xt[rt]=yt,yt.constructor=xt,j(xt,ht)):Ae&&k&&T(ht,"name",Q),z&&F(Lt)!==Xt&&z(Lt,Xt);var Te=new Ut(new xt(2)),de=d(Lt.setInt8);Te.setInt8(0,2147483648),Te.setInt8(1,2147483649),(Te.getInt8(0)||!Te.getInt8(1))&&A(Lt,{setInt8:function(Ft,Tt){de(this,Ft,Tt<<24>>24)},setUint8:function(Ft,Tt){de(this,Ft,Tt<<24>>24)}},{unsafe:!0})}G(xt,Q),G(Ut,nt),x.exports={ArrayBuffer:xt,DataView:Ut}},function(x){x.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},function(x,E,r){var f=r(47);x.exports=function(d,h,p){for(var y in h)f(d,y,h[y],p);return d}},function(x,E,r){var f=r(24),d=TypeError;x.exports=function(h,p){if(f(p,h))return h;throw new d("Incorrect invocation")}},function(x,E,r){var f=r(61),d=r(64),h=RangeError;x.exports=function(p){if(p===void 0)return 0;var y=f(p),T=d(y);if(y!==T)throw new h("Wrong length or index");return T}},function(x,E,r){var f=r(214),d=11920928955078125e-23,h=34028234663852886e22,p=11754943508222875e-54;x.exports=Math.fround||function(T){return f(T,d,h,p)}},function(x,E,r){var f=r(215),d=Math.abs,h=2220446049250313e-31,p=1/h,y=function(T){return T+p-p};x.exports=function(T,$,A,b){var R=+T,O=d(R),P=f(R);if(O<b)return P*y(O/b/$)*b*$;var w=(1+$/h)*O,D=w-(w-O);return D>A||D!==D?P*(1/0):P*D}},function(x){x.exports=Math.sign||function(r){var f=+r;return f===0||f!==f?f:f<0?-1:1}},function(x){var E=Array,r=Math.abs,f=Math.pow,d=Math.floor,h=Math.log,p=Math.LN2,y=function($,A,b){var R=E(b),O=b*8-A-1,P=(1<<O)-1,w=P>>1,D=A===23?f(2,-24)-f(2,-77):0,M=$<0||$===0&&1/$<0?1:0,F=0,z,B,U;for($=r($),$!==$||$===1/0?(B=$!==$?1:0,z=P):(z=d(h($)/p),U=f(2,-z),$*U<1&&(z--,U*=2),z+w>=1?$+=D/U:$+=D*f(2,1-w),$*U>=2&&(z++,U/=2),z+w>=P?(B=0,z=P):z+w>=1?(B=($*U-1)*f(2,A),z+=w):(B=$*f(2,w-1)*f(2,A),z=0));A>=8;)R[F++]=B&255,B/=256,A-=8;for(z=z<<A|B,O+=A;O>0;)R[F++]=z&255,z/=256,O-=8;return R[F-1]|=M*128,R},T=function($,A){var b=$.length,R=b*8-A-1,O=(1<<R)-1,P=O>>1,w=R-7,D=b-1,M=$[D--],F=M&127,z;for(M>>=7;w>0;)F=F*256+$[D--],w-=8;for(z=F&(1<<-w)-1,F>>=-w,w+=A;w>0;)z=z*256+$[D--],w-=8;if(F===0)F=1-P;else{if(F===O)return z?NaN:M?-1/0:1/0;z+=f(2,A),F-=P}return(M?-1:1)*z*f(2,F-A)};x.exports={pack:y,unpack:T}},function(x,E,r){var f=r(3),d=r(218),h=d.NATIVE_ARRAY_BUFFER_VIEWS;f({target:"ArrayBuffer",stat:!0,forced:!h},{isView:d.isView})},function(x,E,r){var f=r(209),d=r(6),h=r(4),p=r(21),y=r(20),T=r(38),$=r(69),A=r(31),b=r(43),R=r(47),O=r(77),P=r(24),w=r(128),D=r(113),M=r(33),F=r(40),z=r(51),B=z.enforce,U=z.get,X=h.Int8Array,j=X&&X.prototype,G=h.Uint8ClampedArray,W=G&&G.prototype,J=X&&w(X),k=j&&w(j),Q=Object.prototype,nt=h.TypeError,rt=M("toStringTag"),q=F("TYPED_ARRAY_TAG"),tt="TypedArrayConstructor",et=f&&!!D&&$(h.opera)!=="Opera",ot=!1,pt,ht,xt,yt={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Ut={BigInt64Array:8,BigUint64Array:8},Lt=function(Yt){if(!y(Yt))return!1;var re=$(Yt);return re==="DataView"||T(yt,re)||T(Ut,re)},Xt=function(Mt){var Yt=w(Mt);if(y(Yt)){var re=U(Yt);return re&&T(re,tt)?re[tt]:Xt(Yt)}},Jt=function(Mt){if(!y(Mt))return!1;var Yt=$(Mt);return T(yt,Yt)||T(Ut,Yt)},Qt=function(Mt){if(Jt(Mt))return Mt;throw new nt("Target is not a typed array")},me=function(Mt){if(p(Mt)&&(!D||P(J,Mt)))return Mt;throw new nt(A(Mt)+" is not a typed array constructor")},ve=function(Mt,Yt,re,oe){if(d){if(re)for(var ee in yt){var fe=h[ee];if(fe&&T(fe.prototype,Mt))try{delete fe.prototype[Mt]}catch(Pe){try{fe.prototype[Mt]=Yt}catch(Me){}}}(!k[Mt]||re)&&R(k,Mt,re?Yt:et&&j[Mt]||Yt,oe)}},ae=function(Mt,Yt,re){var oe,ee;if(d){if(D){if(re){for(oe in yt)if(ee=h[oe],ee&&T(ee,Mt))try{delete ee[Mt]}catch(fe){}}if(!J[Mt]||re)try{return R(J,Mt,re?Yt:et&&J[Mt]||Yt)}catch(fe){}else return}for(oe in yt)ee=h[oe],ee&&(!ee[Mt]||re)&&R(ee,Mt,Yt)}};for(pt in yt)ht=h[pt],xt=ht&&ht.prototype,xt?B(xt)[tt]=ht:et=!1;for(pt in Ut)ht=h[pt],xt=ht&&ht.prototype,xt&&(B(xt)[tt]=ht);if((!et||!p(J)||J===Function.prototype)&&(J=function(){throw new nt("Incorrect invocation")},et))for(pt in yt)h[pt]&&D(h[pt],J);if((!et||!k||k===Q)&&(k=J.prototype,et))for(pt in yt)h[pt]&&D(h[pt].prototype,k);if(et&&w(W)!==k&&D(W,k),d&&!T(k,rt)){ot=!0,O(k,rt,{configurable:!0,get:function(){return y(this)?this[q]:void 0}});for(pt in yt)h[pt]&&b(h[pt],q,pt)}x.exports={NATIVE_ARRAY_BUFFER_VIEWS:et,TYPED_ARRAY_TAG:ot&&q,aTypedArray:Qt,aTypedArrayConstructor:me,exportTypedArrayMethod:ve,exportTypedArrayStaticMethod:ae,getTypedArrayConstructor:Xt,isView:Lt,isTypedArray:Jt,TypedArray:J,TypedArrayPrototype:k}},function(x,E,r){var f=r(3),d=r(85),h=r(7),p=r(208),y=r(46),T=r(60),$=r(64),A=r(220),b=p.ArrayBuffer,R=p.DataView,O=R.prototype,P=d(b.prototype.slice),w=d(O.getUint8),D=d(O.setUint8),M=h(function(){return!new b(2).slice(1,void 0).byteLength});f({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:M},{slice:function(z,B){if(P&&B===void 0)return P(y(this),z);for(var U=y(this).byteLength,X=T(z,U),j=T(B===void 0?U:B,U),G=new(A(this,b))($(j-X)),W=new R(this),J=new R(G),k=0;X<j;)D(J,k++,w(W,X++));return G}})},function(x,E,r){var f=r(46),d=r(221),h=r(17),p=r(33),y=p("species");x.exports=function(T,$){var A=f(T).constructor,b;return A===void 0||h(b=f(A)[y])?$:d(b)}},function(x,E,r){var f=r(89),d=r(31),h=TypeError;x.exports=function(p){if(f(p))return p;throw new h(d(p)+" is not a constructor")}},function(x,E,r){r(223)},function(x,E,r){var f=r(3),d=r(208),h=r(209);f({global:!0,constructor:!0,forced:!h},{DataView:d.DataView})},function(x,E,r){var f=r(6),d=r(77),h=r(225),p=ArrayBuffer.prototype;f&&!("detached"in p)&&d(p,"detached",{configurable:!0,get:function(){return h(this)}})},function(x,E,r){var f=r(4),d=r(85),h=r(226),p=f.ArrayBuffer,y=p&&p.prototype,T=y&&d(y.slice);x.exports=function($){if(h($)!==0||!T)return!1;try{return T($,0,0),!1}catch(A){return!0}}},function(x,E,r){var f=r(4),d=r(114),h=r(15),p=f.ArrayBuffer,y=f.TypeError;x.exports=p&&d(p.prototype,"byteLength","get")||function(T){if(h(T)!=="ArrayBuffer")throw new y("ArrayBuffer expected");return T.byteLength}},function(x,E,r){var f=r(3),d=r(228);d&&f({target:"ArrayBuffer",proto:!0},{transfer:function(){return d(this,arguments.length?arguments[0]:void 0,!0)}})},function(x,E,r){var f=r(4),d=r(14),h=r(114),p=r(212),y=r(229),T=r(226),$=r(230),A=r(232),b=f.structuredClone,R=f.ArrayBuffer,O=f.DataView,P=Math.min,w=R.prototype,D=O.prototype,M=d(w.slice),F=h(w,"resizable","get"),z=h(w,"maxByteLength","get"),B=d(D.getInt8),U=d(D.setInt8);x.exports=(A||$)&&function(X,j,G){var W=T(X),J=j===void 0?W:p(j),k=!F||!F(X),Q;if(y(X),A&&(X=b(X,{transfer:[X]}),W===J&&(G||k)))return X;if(W>=J&&(!G||k))Q=M(X,0,J);else{var nt=G&&!k&&z?{maxByteLength:z(X)}:void 0;Q=new R(J,nt);for(var rt=new O(X),q=new O(Q),tt=P(J,W),et=0;et<tt;et++)U(q,et,B(rt,et))}return A||$(X),Q}},function(x,E,r){var f=r(225),d=TypeError;x.exports=function(h){if(f(h))throw new d("ArrayBuffer is detached");return h}},function(x,E,r){var f=r(4),d=r(231),h=r(232),p=f.structuredClone,y=f.ArrayBuffer,T=f.MessageChannel,$=!1,A,b,R,O;if(h)$=function(P){p(P,{transfer:[P]})};else if(y)try{T||(A=d("worker_threads"),A&&(T=A.MessageChannel)),T&&(b=new T,R=new y(2),O=function(P){b.port1.postMessage(null,[P])},R.byteLength===2&&(O(R),R.byteLength===0&&($=O)))}catch(P){}x.exports=$},function(x,E,r){var f=r(4),d=r(182);x.exports=function(h){if(d){try{return f.process.getBuiltinModule(h)}catch(p){}try{return Function('return require("'+h+'")')()}catch(p){}}}},function(x,E,r){var f=r(4),d=r(7),h=r(27),p=r(183),y=f.structuredClone;x.exports=!!y&&!d(function(){if(p==="DENO"&&h>92||p==="NODE"&&h>94||p==="BROWSER"&&h>97)return!1;var T=new ArrayBuffer(8),$=y(T,{transfer:[T]});return T.byteLength!==0||$.byteLength!==8})},function(x,E,r){var f=r(3),d=r(228);d&&f({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return d(this,arguments.length?arguments[0]:void 0,!1)}})},function(x,E,r){var f=r(3),d=r(14),h=r(7),p=h(function(){return new Date(16e11).getYear()!==120}),y=d(Date.prototype.getFullYear);f({target:"Date",proto:!0,forced:p},{getYear:function(){return y(this)-1900}})},function(x,E,r){var f=r(3),d=r(14),h=Date,p=d(h.prototype.getTime);f({target:"Date",stat:!0},{now:function(){return p(new h)}})},function(x,E,r){var f=r(3),d=r(14),h=r(61),p=Date.prototype,y=d(p.getTime),T=d(p.setFullYear);f({target:"Date",proto:!0},{setYear:function(A){y(this);var b=h(A),R=b>=0&&b<=99?b+1900:b;return T(this,R)}})},function(x,E,r){var f=r(3);f({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})},function(x,E,r){var f=r(3),d=r(239);f({target:"Date",proto:!0,forced:Date.prototype.toISOString!==d},{toISOString:d})},function(x,E,r){var f=r(14),d=r(7),h=r(240).start,p=RangeError,y=isFinite,T=Math.abs,$=Date.prototype,A=$.toISOString,b=f($.getTime),R=f($.getUTCDate),O=f($.getUTCFullYear),P=f($.getUTCHours),w=f($.getUTCMilliseconds),D=f($.getUTCMinutes),M=f($.getUTCMonth),F=f($.getUTCSeconds);x.exports=d(function(){return A.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!d(function(){A.call(new Date(NaN))})?function(){if(!y(b(this)))throw new p("Invalid time value");var B=this,U=O(B),X=w(B),j=U<0?"-":U>9999?"+":"";return j+h(T(U),j?6:4,0)+"-"+h(M(B)+1,2,0)+"-"+h(R(B),2,0)+"T"+h(P(B),2,0)+":"+h(D(B),2,0)+":"+h(F(B),2,0)+"."+h(X,3,0)+"Z"}:A},function(x,E,r){var f=r(14),d=r(64),h=r(68),p=r(241),y=r(16),T=f(p),$=f("".slice),A=Math.ceil,b=function(R){return function(O,P,w){var D=h(y(O)),M=d(P),F=D.length,z=w===void 0?" ":h(w),B,U;return M<=F||z===""?D:(B=M-F,U=T(z,A(B/z.length)),U.length>B&&(U=$(U,0,B)),R?D+U:U+D)}};x.exports={start:b(!1),end:b(!0)}},function(x,E,r){var f=r(61),d=r(68),h=r(16),p=RangeError;x.exports=function(T){var $=d(h(this)),A="",b=f(T);if(b<0||b===1/0)throw new p("Wrong number of repetitions");for(;b>0;(b>>>=1)&&($+=$))b&1&&(A+=$);return A}},function(x,E,r){var f=r(3),d=r(7),h=r(39),p=r(19),y=d(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){return 1}})!==1});f({target:"Date",proto:!0,arity:1,forced:y},{toJSON:function($){var A=h(this),b=p(A,"number");return typeof b=="number"&&!isFinite(b)?null:A.toISOString()}})},function(x,E,r){var f=r(38),d=r(47),h=r(244),p=r(33),y=p("toPrimitive"),T=Date.prototype;f(T,y)||d(T,y,h)},function(x,E,r){var f=r(46),d=r(32),h=TypeError;x.exports=function(p){if(f(this),p==="string"||p==="default")p="string";else if(p!=="number")throw new h("Incorrect hint");return d(this,p)}},function(x,E,r){var f=r(14),d=r(47),h=Date.prototype,p="Invalid Date",y="toString",T=f(h[y]),$=f(h.getTime);String(new Date(NaN))!==p&&d(h,y,function(){var b=$(this);return b===b?T(this):p})},function(x,E,r){var f=r(3),d=r(14),h=r(68),p=d("".charAt),y=d("".charCodeAt),T=d(/./.exec),$=d(1 .toString),A=d("".toUpperCase),b=/[\w*+\-./@]/,R=function(O,P){for(var w=$(O,16);w.length<P;)w="0"+w;return w};f({global:!0},{escape:function(P){for(var w=h(P),D="",M=w.length,F=0,z,B;F<M;)z=p(w,F++),T(b,z)?D+=z:(B=y(z,0),B<256?D+="%"+R(B,2):D+="%u"+A(R(B,4)));return D}})},function(x,E,r){var f=r(3),d=r(248);f({target:"Function",proto:!0,forced:Function.bind!==d},{bind:d})},function(x,E,r){var f=r(14),d=r(30),h=r(20),p=r(38),y=r(76),T=r(9),$=Function,A=f([].concat),b=f([].join),R={},O=function(P,w,D){if(!p(R,w)){for(var M=[],F=0;F<w;F++)M[F]="a["+F+"]";R[w]=$("C,a","return new C("+b(M,",")+")")}return R[w](P,D)};x.exports=T?$.bind:function(w){var D=d(this),M=D.prototype,F=y(arguments,1),z=function(){var U=A(F,y(arguments));return this instanceof z?O(D,U.length,U):D.apply(w,U)};return h(M)&&(z.prototype=M),z}},function(x,E,r){var f=r(21),d=r(20),h=r(44),p=r(24),y=r(33),T=r(48),$=y("hasInstance"),A=Function.prototype;$ in A||h.f(A,$,{value:T(function(b){if(!f(this)||!d(b))return!1;var R=this.prototype;return d(R)?p(R,b):b instanceof this},$)})},function(x,E,r){var f=r(6),d=r(49).EXISTS,h=r(14),p=r(77),y=Function.prototype,T=h(y.toString),$=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,A=h($.exec),b="name";f&&!d&&p(y,b,{configurable:!0,get:function(){try{return A($,T(this))[1]}catch(R){return""}}})},function(x,E,r){var f=r(3),d=r(4);f({global:!0,forced:d.globalThis!==d},{globalThis:d})},function(x,E,r){var f=r(4),d=r(82);d(f.JSON,"JSON",!0)},function(x,E,r){r(254)},function(x,E,r){var f=r(255),d=r(260);f("Map",function(h){return function(){return h(this,arguments.length?arguments[0]:void 0)}},d)},function(x,E,r){var f=r(3),d=r(4),h=r(14),p=r(67),y=r(47),T=r(256),$=r(130),A=r(211),b=r(21),R=r(17),O=r(20),P=r(7),w=r(164),D=r(82),M=r(118);x.exports=function(F,z,B){var U=F.indexOf("Map")!==-1,X=F.indexOf("Weak")!==-1,j=U?"set":"add",G=d[F],W=G&&G.prototype,J=G,k={},Q=function(pt){var ht=h(W[pt]);y(W,pt,pt==="add"?function(yt){return ht(this,yt===0?0:yt),this}:pt==="delete"?function(xt){return X&&!O(xt)?!1:ht(this,xt===0?0:xt)}:pt==="get"?function(yt){return X&&!O(yt)?void 0:ht(this,yt===0?0:yt)}:pt==="has"?function(yt){return X&&!O(yt)?!1:ht(this,yt===0?0:yt)}:function(yt,Ut){return ht(this,yt===0?0:yt,Ut),this})},nt=p(F,!b(G)||!(X||W.forEach&&!P(function(){new G().entries().next()})));if(nt)J=B.getConstructor(z,F,U,j),T.enable();else if(p(F,!0)){var rt=new J,q=rt[j](X?{}:-0,1)!==rt,tt=P(function(){rt.has(1)}),et=w(function(pt){new G(pt)}),ot=!X&&P(function(){for(var pt=new G,ht=5;ht--;)pt[j](ht,ht);return!pt.has(-0)});et||(J=z(function(pt,ht){A(pt,W);var xt=M(new G,pt,J);return R(ht)||$(ht,xt[j],{that:xt,AS_ENTRIES:U}),xt}),J.prototype=W,W.constructor=J),(tt||ot)&&(Q("delete"),Q("has"),U&&Q("get")),(ot||q)&&Q(j),X&&W.clear&&delete W.clear}return k[F]=J,f({global:!0,constructor:!0,forced:J!==G},k),D(J,F),X||B.setStrong(J,F,U),J}},function(x,E,r){var f=r(3),d=r(14),h=r(54),p=r(20),y=r(38),T=r(44).f,$=r(57),A=r(75),b=r(257),R=r(40),O=r(259),P=!1,w=R("meta"),D=0,M=function(j){T(j,w,{value:{objectID:"O"+D++,weakData:{}}})},F=function(j,G){if(!p(j))return typeof j=="symbol"?j:(typeof j=="string"?"S":"P")+j;if(!y(j,w)){if(!b(j))return"F";if(!G)return"E";M(j)}return j[w].objectID},z=function(j,G){if(!y(j,w)){if(!b(j))return!0;if(!G)return!1;M(j)}return j[w].weakData},B=function(j){return O&&P&&b(j)&&!y(j,w)&&M(j),j},U=function(){X.enable=function(){},P=!0;var j=$.f,G=d([].splice),W={};W[w]=1,j(W).length&&($.f=function(J){for(var k=j(J),Q=0,nt=k.length;Q<nt;Q++)if(k[Q]===w){G(k,Q,1);break}return k},f({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:A.f}))},X=x.exports={enable:U,fastKey:F,getWeakData:z,onFreeze:B};h[w]=!0},function(x,E,r){var f=r(7),d=r(20),h=r(15),p=r(258),y=Object.isExtensible,T=f(function(){y(1)});x.exports=T||p?function(A){return!d(A)||p&&h(A)==="ArrayBuffer"?!1:y?y(A):!0}:y},function(x,E,r){var f=r(7);x.exports=f(function(){if(typeof ArrayBuffer=="function"){var d=new ArrayBuffer(8);Object.isExtensible(d)&&Object.defineProperty(d,"a",{value:8})}})},function(x,E,r){var f=r(7);x.exports=!f(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(x,E,r){var f=r(71),d=r(77),h=r(210),p=r(84),y=r(211),T=r(17),$=r(130),A=r(169),b=r(172),R=r(194),O=r(6),P=r(256).fastKey,w=r(51),D=w.set,M=w.getterFor;x.exports={getConstructor:function(F,z,B,U){var X=F(function(k,Q){y(k,j),D(k,{type:z,index:f(null),first:null,last:null,size:0}),O||(k.size=0),T(Q)||$(Q,k[U],{that:k,AS_ENTRIES:B})}),j=X.prototype,G=M(z),W=function(k,Q,nt){var rt=G(k),q=J(k,Q),tt,et;return q?q.value=nt:(rt.last=q={index:et=P(Q,!0),key:Q,value:nt,previous:tt=rt.last,next:null,removed:!1},rt.first||(rt.first=q),tt&&(tt.next=q),O?rt.size++:k.size++,et!=="F"&&(rt.index[et]=q)),k},J=function(k,Q){var nt=G(k),rt=P(Q),q;if(rt!=="F")return nt.index[rt];for(q=nt.first;q;q=q.next)if(q.key===Q)return q};return h(j,{clear:function(){for(var Q=this,nt=G(Q),rt=nt.first;rt;)rt.removed=!0,rt.previous&&(rt.previous=rt.previous.next=null),rt=rt.next;nt.first=nt.last=null,nt.index=f(null),O?nt.size=0:Q.size=0},delete:function(k){var Q=this,nt=G(Q),rt=J(Q,k);if(rt){var q=rt.next,tt=rt.previous;delete nt.index[rt.index],rt.removed=!0,tt&&(tt.next=q),q&&(q.previous=tt),nt.first===rt&&(nt.first=q),nt.last===rt&&(nt.last=tt),O?nt.size--:Q.size--}return!!rt},forEach:function(Q){for(var nt=G(this),rt=p(Q,arguments.length>1?arguments[1]:void 0),q;q=q?q.next:nt.first;)for(rt(q.value,q.key,this);q&&q.removed;)q=q.previous},has:function(Q){return!!J(this,Q)}}),h(j,B?{get:function(Q){var nt=J(this,Q);return nt&&nt.value},set:function(Q,nt){return W(this,Q===0?0:Q,nt)}}:{add:function(Q){return W(this,Q=Q===0?0:Q,Q)}}),O&&d(j,"size",{configurable:!0,get:function(){return G(this).size}}),X},setStrong:function(F,z,B){var U=z+" Iterator",X=M(z),j=M(U);A(F,z,function(G,W){D(this,{type:U,target:G,state:X(G),kind:W,last:null})},function(){for(var G=j(this),W=G.kind,J=G.last;J&&J.removed;)J=J.previous;return!G.target||!(G.last=J=J?J.next:G.state.first)?(G.target=null,b(void 0,!0)):b(W==="keys"?J.key:W==="values"?J.value:[J.key,J.value],!1)},B?"entries":"values",!B,!0),R(z)}}},function(x,E,r){var f=r(3),d=r(14),h=r(30),p=r(16),y=r(130),T=r(262),$=r(36),A=r(7),b=T.Map,R=T.has,O=T.get,P=T.set,w=d([].push),D=$||A(function(){return b.groupBy("ab",function(M){return M}).get("a").length!==1});f({target:"Map",stat:!0,forced:$||D},{groupBy:function(F,z){p(F),h(z);var B=new b,U=0;return y(F,function(X){var j=z(X,U++);R(B,j)?w(O(B,j),X):P(B,j,[X])}),B}})},function(x,E,r){var f=r(14),d=Map.prototype;x.exports={Map,set:f(d.set),get:f(d.get),has:f(d.has),remove:f(d.delete),proto:d}},function(x,E,r){var f=r(3),d=r(264),h=Math.acosh,p=Math.log,y=Math.sqrt,T=Math.LN2,$=!h||Math.floor(h(Number.MAX_VALUE))!==710||h(1/0)!==1/0;f({target:"Math",stat:!0,forced:$},{acosh:function(b){var R=+b;return R<1?NaN:R>9490626562425156e-8?p(R)+T:d(R-1+y(R-1)*y(R+1))}})},function(x){var E=Math.log;x.exports=Math.log1p||function(f){var d=+f;return d>-1e-8&&d<1e-8?d-d*d/2:E(1+d)}},function(x,E,r){var f=r(3),d=Math.asinh,h=Math.log,p=Math.sqrt;function y($){var A=+$;return!isFinite(A)||A===0?A:A<0?-y(-A):h(A+p(A*A+1))}var T=!(d&&1/d(0)>0);f({target:"Math",stat:!0,forced:T},{asinh:y})},function(x,E,r){var f=r(3),d=Math.atanh,h=Math.log,p=!(d&&1/d(-0)<0);f({target:"Math",stat:!0,forced:p},{atanh:function(T){var $=+T;return $===0?$:h((1+$)/(1-$))/2}})},function(x,E,r){var f=r(3),d=r(215),h=Math.abs,p=Math.pow;f({target:"Math",stat:!0},{cbrt:function(T){var $=+T;return d($)*p(h($),.3333333333333333)}})},function(x,E,r){var f=r(3),d=Math.floor,h=Math.log,p=Math.LOG2E;f({target:"Math",stat:!0},{clz32:function(T){var $=T>>>0;return $?31-d(h($+.5)*p):32}})},function(x,E,r){var f=r(3),d=r(270),h=Math.cosh,p=Math.abs,y=Math.E,T=!h||h(710)===1/0;f({target:"Math",stat:!0,forced:T},{cosh:function(A){var b=d(p(A)-1)+1;return(b+1/(b*y*y))*(y/2)}})},function(x){var E=Math.expm1,r=Math.exp;x.exports=!E||E(10)>22025.465794806718||E(10)<22025.465794806718||E(-2e-17)!==-2e-17?function(d){var h=+d;return h===0?h:h>-1e-6&&h<1e-6?h+h*h/2:r(h)-1}:E},function(x,E,r){var f=r(3),d=r(270);f({target:"Math",stat:!0,forced:d!==Math.expm1},{expm1:d})},function(x,E,r){var f=r(3),d=r(213);f({target:"Math",stat:!0},{fround:d})},function(x,E,r){var f=r(3),d=Math.hypot,h=Math.abs,p=Math.sqrt,y=!!d&&d(1/0,NaN)!==1/0;f({target:"Math",stat:!0,arity:2,forced:y},{hypot:function($,A){for(var b=0,R=0,O=arguments.length,P=0,w,D;R<O;)w=h(arguments[R++]),P<w?(D=P/w,b=b*D*D+1,P=w):w>0?(D=w/P,b+=D*D):b+=w;return P===1/0?1/0:P*p(b)}})},function(x,E,r){var f=r(3),d=r(7),h=Math.imul,p=d(function(){return h(4294967295,5)!==-5||h.length!==2});f({target:"Math",stat:!0,forced:p},{imul:function(T,$){var A=65535,b=+T,R=+$,O=A&b,P=A&R;return 0|O*P+((A&b>>>16)*P+O*(A&R>>>16)<<16>>>0)}})},function(x,E,r){var f=r(3),d=r(276);f({target:"Math",stat:!0},{log10:d})},function(x){var E=Math.log,r=Math.LOG10E;x.exports=Math.log10||function(d){return E(d)*r}},function(x,E,r){var f=r(3),d=r(264);f({target:"Math",stat:!0},{log1p:d})},function(x,E,r){var f=r(3),d=Math.log,h=Math.LN2;f({target:"Math",stat:!0},{log2:function(y){return d(y)/h}})},function(x,E,r){var f=r(3),d=r(215);f({target:"Math",stat:!0},{sign:d})},function(x,E,r){var f=r(3),d=r(7),h=r(270),p=Math.abs,y=Math.exp,T=Math.E,$=d(function(){return Math.sinh(-2e-17)!==-2e-17});f({target:"Math",stat:!0,forced:$},{sinh:function(b){var R=+b;return p(R)<1?(h(R)-h(-R))/2:(y(R-1)-y(-R-1))*(T/2)}})},function(x,E,r){var f=r(3),d=r(270),h=Math.exp;f({target:"Math",stat:!0},{tanh:function(y){var T=+y,$=d(T),A=d(-T);return $===1/0?1:A===1/0?-1:($-A)/(h(T)+h(-T))}})},function(x,E,r){var f=r(82);f(Math,"Math",!0)},function(x,E,r){var f=r(3),d=r(62);f({target:"Math",stat:!0},{trunc:d})},function(x,E,r){var f=r(3),d=r(36),h=r(6),p=r(4),y=r(80),T=r(14),$=r(67),A=r(38),b=r(118),R=r(24),O=r(22),P=r(19),w=r(7),D=r(57).f,M=r(5).f,F=r(44).f,z=r(285),B=r(286).trim,U="Number",X=p[U],j=y[U],G=X.prototype,W=p.TypeError,J=T("".slice),k=T("".charCodeAt),Q=function(ot){var pt=P(ot,"number");return typeof pt=="bigint"?pt:nt(pt)},nt=function(ot){var pt=P(ot,"number"),ht,xt,yt,Ut,Lt,Xt,Jt,Qt;if(O(pt))throw new W("Cannot convert a Symbol value to a number");if(typeof pt=="string"&&pt.length>2){if(pt=B(pt),ht=k(pt,0),ht===43||ht===45){if(xt=k(pt,2),xt===88||xt===120)return NaN}else if(ht===48){switch(k(pt,1)){case 66:case 98:yt=2,Ut=49;break;case 79:case 111:yt=8,Ut=55;break;default:return+pt}for(Lt=J(pt,2),Xt=Lt.length,Jt=0;Jt<Xt;Jt++)if(Qt=k(Lt,Jt),Qt<48||Qt>Ut)return NaN;return parseInt(Lt,yt)}}return+pt},rt=$(U,!X(" 0o1")||!X("0b1")||X("+0x1")),q=function(ot){return R(G,ot)&&w(function(){z(ot)})},tt=function(pt){var ht=arguments.length<1?0:X(Q(pt));return q(this)?b(Object(ht),this,tt):ht};tt.prototype=G,rt&&!d&&(G.constructor=tt),f({global:!0,constructor:!0,wrap:!0,forced:rt},{Number:tt});var et=function(ot,pt){for(var ht=h?D(pt):"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(","),xt=0,yt;ht.length>xt;xt++)A(pt,yt=ht[xt])&&!A(ot,yt)&&F(ot,yt,M(pt,yt))};d&&j&&et(y[U],j),(rt||d)&&et(y[U],X)},function(x,E,r){var f=r(14);x.exports=f(1 .valueOf)},function(x,E,r){var f=r(14),d=r(16),h=r(68),p=r(287),y=f("".replace),T=RegExp("^["+p+"]+"),$=RegExp("(^|[^"+p+"])["+p+"]+$"),A=function(b){return function(R){var O=h(d(R));return b&1&&(O=y(O,T,"")),b&2&&(O=y(O,$,"$1")),O}};x.exports={start:A(1),end:A(2),trim:A(3)}},function(x){x.exports=`
|
|
27
|
+
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},function(x,E,r){var f=r(3);f({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},function(x,E,r){var f=r(3),d=r(290);f({target:"Number",stat:!0},{isFinite:d})},function(x,E,r){var f=r(4),d=f.isFinite;x.exports=Number.isFinite||function(p){return typeof p=="number"&&d(p)}},function(x,E,r){var f=r(3),d=r(292);f({target:"Number",stat:!0},{isInteger:d})},function(x,E,r){var f=r(20),d=Math.floor;x.exports=Number.isInteger||function(p){return!f(p)&&isFinite(p)&&d(p)===p}},function(x,E,r){var f=r(3);f({target:"Number",stat:!0},{isNaN:function(h){return h!==h}})},function(x,E,r){var f=r(3),d=r(292),h=Math.abs;f({target:"Number",stat:!0},{isSafeInteger:function(y){return d(y)&&h(y)<=9007199254740991}})},function(x,E,r){var f=r(3);f({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(x,E,r){var f=r(3);f({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(x,E,r){var f=r(3),d=r(298);f({target:"Number",stat:!0,forced:Number.parseFloat!==d},{parseFloat:d})},function(x,E,r){var f=r(4),d=r(7),h=r(14),p=r(68),y=r(286).trim,T=r(287),$=h("".charAt),A=f.parseFloat,b=f.Symbol,R=b&&b.iterator,O=1/A(T+"-0")!==-1/0||R&&!d(function(){A(Object(R))});x.exports=O?function(w){var D=y(p(w)),M=A(D);return M===0&&$(D,0)==="-"?-0:M}:A},function(x,E,r){var f=r(3),d=r(300);f({target:"Number",stat:!0,forced:Number.parseInt!==d},{parseInt:d})},function(x,E,r){var f=r(4),d=r(7),h=r(14),p=r(68),y=r(286).trim,T=r(287),$=f.parseInt,A=f.Symbol,b=A&&A.iterator,R=/^[+-]?0x/i,O=h(R.exec),P=$(T+"08")!==8||$(T+"0x16")!==22||b&&!d(function(){$(Object(b))});x.exports=P?function(D,M){var F=y(p(D));return $(F,M>>>0||(O(R,F)?16:10))}:$},function(x,E,r){var f=r(3),d=r(14),h=r(61),p=r(285),y=r(241),T=r(276),$=r(7),A=RangeError,b=String,R=isFinite,O=Math.abs,P=Math.floor,w=Math.pow,D=Math.round,M=d(1 .toExponential),F=d(y),z=d("".slice),B=M(-69e-12,4)==="-6.9000e-11"&&M(1.255,2)==="1.25e+0"&&M(12345,3)==="1.235e+4"&&M(25,0)==="3e+1",U=function(){return $(function(){M(1,1/0)})&&$(function(){M(1,-1/0)})},X=function(){return!$(function(){M(1/0,1/0),M(NaN,1/0)})},j=!B||!U()||!X();f({target:"Number",proto:!0,forced:j},{toExponential:function(W){var J=p(this);if(W===void 0)return M(J);var k=h(W);if(!R(J))return String(J);if(k<0||k>20)throw new A("Incorrect fraction digits");if(B)return M(J,k);var Q="",nt,rt,q,tt;if(J<0&&(Q="-",J=-J),J===0)rt=0,nt=F("0",k+1);else{var et=T(J);rt=P(et);var ot=w(10,rt-k),pt=D(J/ot);2*J>=(2*pt+1)*ot&&(pt+=1),pt>=w(10,k+1)&&(pt/=10,rt+=1),nt=b(pt)}return k!==0&&(nt=z(nt,0,1)+"."+z(nt,1)),rt===0?(q="+",tt="0"):(q=rt>0?"+":"-",tt=b(O(rt))),nt+="e"+q+tt,Q+nt}})},function(x,E,r){var f=r(3),d=r(14),h=r(61),p=r(285),y=r(241),T=r(7),$=RangeError,A=String,b=Math.floor,R=d(y),O=d("".slice),P=d(1 .toFixed),w=function(U,X,j){return X===0?j:X%2===1?w(U,X-1,j*U):w(U*U,X/2,j)},D=function(U){for(var X=0,j=U;j>=4096;)X+=12,j/=4096;for(;j>=2;)X+=1,j/=2;return X},M=function(U,X,j){for(var G=-1,W=j;++G<6;)W+=X*U[G],U[G]=W%1e7,W=b(W/1e7)},F=function(U,X){for(var j=6,G=0;--j>=0;)G+=U[j],U[j]=b(G/X),G=G%X*1e7},z=function(U){for(var X=6,j="";--X>=0;)if(j!==""||X===0||U[X]!==0){var G=A(U[X]);j=j===""?G:j+R("0",7-G.length)+G}return j},B=T(function(){return P(8e-5,3)!=="0.000"||P(.9,0)!=="1"||P(1.255,2)!=="1.25"||P(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!T(function(){P({})});f({target:"Number",proto:!0,forced:B},{toFixed:function(X){var j=p(this),G=h(X),W=[0,0,0,0,0,0],J="",k="0",Q,nt,rt,q;if(G<0||G>20)throw new $("Incorrect fraction digits");if(j!==j)return"NaN";if(j<=-1e21||j>=1e21)return A(j);if(j<0&&(J="-",j=-j),j>1e-21)if(Q=D(j*w(2,69,1))-69,nt=Q<0?j*w(2,-Q,1):j/w(2,Q,1),nt*=4503599627370496,Q=52-Q,Q>0){for(M(W,0,nt),rt=G;rt>=7;)M(W,1e7,0),rt-=7;for(M(W,w(10,rt,1),0),rt=Q-1;rt>=23;)F(W,8388608),rt-=23;F(W,1<<rt),M(W,1,1),F(W,2),k=z(W)}else M(W,0,nt),M(W,1<<-Q,0),k=z(W)+R("0",G);return G>0?(q=k.length,k=J+(q<=G?"0."+R("0",G-q)+k:O(k,0,q-G)+"."+O(k,q-G))):k=J+k,k}})},function(x,E,r){var f=r(3),d=r(14),h=r(7),p=r(285),y=d(1 .toPrecision),T=h(function(){return y(1,void 0)!=="1"})||!h(function(){y({})});f({target:"Number",proto:!0,forced:T},{toPrecision:function(A){return A===void 0?y(p(this)):y(p(this),A)}})},function(x,E,r){var f=r(3),d=r(305);f({target:"Object",stat:!0,arity:2,forced:Object.assign!==d},{assign:d})},function(x,E,r){var f=r(6),d=r(14),h=r(8),p=r(7),y=r(73),T=r(66),$=r(10),A=r(39),b=r(13),R=Object.assign,O=Object.defineProperty,P=d([].concat);x.exports=!R||p(function(){if(f&&R({b:1},R(O({},"a",{enumerable:!0,get:function(){O(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var w={},D={},M=Symbol("assign detection"),F="abcdefghijklmnopqrst";return w[M]=7,F.split("").forEach(function(z){D[z]=z}),R({},w)[M]!==7||y(R({},D)).join("")!==F})?function(D,M){for(var F=A(D),z=arguments.length,B=1,U=T.f,X=$.f;z>B;)for(var j=b(arguments[B++]),G=U?P(y(j),U(j)):y(j),W=G.length,J=0,k;W>J;)k=G[J++],(!f||h(X,j,k))&&(F[k]=j[k]);return F}:R},function(x,E,r){var f=r(3),d=r(6),h=r(71);f({target:"Object",stat:!0,sham:!d},{create:h})},function(x,E,r){var f=r(3),d=r(6),h=r(308),p=r(30),y=r(39),T=r(44);d&&f({target:"Object",proto:!0,forced:h},{__defineGetter__:function(A,b){T.f(y(this),A,{get:p(b),enumerable:!0,configurable:!0})}})},function(x,E,r){var f=r(36),d=r(4),h=r(7),p=r(192);x.exports=f||!h(function(){if(!(p&&p<535)){var y=Math.random();__defineSetter__.call(null,y,function(){}),delete d[y]}})},function(x,E,r){var f=r(3),d=r(6),h=r(72).f;f({target:"Object",stat:!0,forced:Object.defineProperties!==h,sham:!d},{defineProperties:h})},function(x,E,r){var f=r(3),d=r(6),h=r(44).f;f({target:"Object",stat:!0,forced:Object.defineProperty!==h,sham:!d},{defineProperty:h})},function(x,E,r){var f=r(3),d=r(6),h=r(308),p=r(30),y=r(39),T=r(44);d&&f({target:"Object",proto:!0,forced:h},{__defineSetter__:function(A,b){T.f(y(this),A,{set:p(b),enumerable:!0,configurable:!0})}})},function(x,E,r){var f=r(3),d=r(313).entries;f({target:"Object",stat:!0},{entries:function(p){return d(p)}})},function(x,E,r){var f=r(6),d=r(7),h=r(14),p=r(128),y=r(73),T=r(12),$=r(10).f,A=h($),b=h([].push),R=f&&d(function(){var P=Object.create(null);return P[2]=2,!A(P,2)}),O=function(P){return function(w){for(var D=T(w),M=y(D),F=R&&p(D)===null,z=M.length,B=0,U=[],X;z>B;)X=M[B++],(!f||(F?X in D:A(D,X)))&&b(U,P?[X,D[X]]:D[X]);return U}};x.exports={entries:O(!0),values:O(!1)}},function(x,E,r){var f=r(3),d=r(259),h=r(7),p=r(20),y=r(256).onFreeze,T=Object.freeze,$=h(function(){T(1)});f({target:"Object",stat:!0,forced:$,sham:!d},{freeze:function(b){return T&&p(b)?T(y(b)):b}})},function(x,E,r){var f=r(3),d=r(130),h=r(141);f({target:"Object",stat:!0},{fromEntries:function(y){var T={};return d(y,function($,A){h(T,$,A)},{AS_ENTRIES:!0}),T}})},function(x,E,r){var f=r(3),d=r(7),h=r(12),p=r(5).f,y=r(6),T=!y||d(function(){p(1)});f({target:"Object",stat:!0,forced:T,sham:!y},{getOwnPropertyDescriptor:function(A,b){return p(h(A),b)}})},function(x,E,r){var f=r(3),d=r(6),h=r(56),p=r(12),y=r(5),T=r(141);f({target:"Object",stat:!0,sham:!d},{getOwnPropertyDescriptors:function(A){for(var b=p(A),R=y.f,O=h(b),P={},w=0,D,M;O.length>w;)M=R(b,D=O[w++]),M!==void 0&&T(P,D,M);return P}})},function(x,E,r){var f=r(3),d=r(7),h=r(75).f,p=d(function(){return!Object.getOwnPropertyNames(1)});f({target:"Object",stat:!0,forced:p},{getOwnPropertyNames:h})},function(x,E,r){var f=r(3),d=r(7),h=r(39),p=r(128),y=r(129),T=d(function(){p(1)});f({target:"Object",stat:!0,forced:T,sham:!y},{getPrototypeOf:function(A){return p(h(A))}})},function(x,E,r){var f=r(3),d=r(23),h=r(14),p=r(30),y=r(16),T=r(18),$=r(130),A=r(7),b=Object.groupBy,R=d("Object","create"),O=h([].push),P=!b||A(function(){return b("ab",function(w){return w}).a.length!==1});f({target:"Object",stat:!0,forced:P},{groupBy:function(D,M){y(D),p(M);var F=R(null),z=0;return $(D,function(B){var U=T(M(B,z++));U in F?O(F[U],B):F[U]=[B]}),F}})},function(x,E,r){var f=r(3),d=r(38);f({target:"Object",stat:!0},{hasOwn:d})},function(x,E,r){var f=r(3),d=r(323);f({target:"Object",stat:!0},{is:d})},function(x){x.exports=Object.is||function(r,f){return r===f?r!==0||1/r===1/f:r!==r&&f!==f}},function(x,E,r){var f=r(3),d=r(257);f({target:"Object",stat:!0,forced:Object.isExtensible!==d},{isExtensible:d})},function(x,E,r){var f=r(3),d=r(7),h=r(20),p=r(15),y=r(258),T=Object.isFrozen,$=y||d(function(){T(1)});f({target:"Object",stat:!0,forced:$},{isFrozen:function(b){return!h(b)||y&&p(b)==="ArrayBuffer"?!0:T?T(b):!1}})},function(x,E,r){var f=r(3),d=r(7),h=r(20),p=r(15),y=r(258),T=Object.isSealed,$=y||d(function(){T(1)});f({target:"Object",stat:!0,forced:$},{isSealed:function(b){return!h(b)||y&&p(b)==="ArrayBuffer"?!0:T?T(b):!1}})},function(x,E,r){var f=r(3),d=r(39),h=r(73),p=r(7),y=p(function(){h(1)});f({target:"Object",stat:!0,forced:y},{keys:function($){return h(d($))}})},function(x,E,r){var f=r(3),d=r(6),h=r(308),p=r(39),y=r(18),T=r(128),$=r(5).f;d&&f({target:"Object",proto:!0,forced:h},{__lookupGetter__:function(b){var R=p(this),O=y(b),P;do if(P=$(R,O))return P.get;while(R=T(R))}})},function(x,E,r){var f=r(3),d=r(6),h=r(308),p=r(39),y=r(18),T=r(128),$=r(5).f;d&&f({target:"Object",proto:!0,forced:h},{__lookupSetter__:function(b){var R=p(this),O=y(b),P;do if(P=$(R,O))return P.set;while(R=T(R))}})},function(x,E,r){var f=r(3),d=r(20),h=r(256).onFreeze,p=r(259),y=r(7),T=Object.preventExtensions,$=y(function(){T(1)});f({target:"Object",stat:!0,forced:$,sham:!p},{preventExtensions:function(b){return T&&d(b)?T(h(b)):b}})},function(x,E,r){var f=r(6),d=r(77),h=r(20),p=r(116),y=r(39),T=r(16),$=Object.getPrototypeOf,A=Object.setPrototypeOf,b=Object.prototype,R="__proto__";if(f&&$&&A&&!(R in b))try{d(b,R,{configurable:!0,get:function(){return $(y(this))},set:function(P){var w=T(this);p(P)&&h(w)&&A(w,P)}})}catch(O){}},function(x,E,r){var f=r(3),d=r(20),h=r(256).onFreeze,p=r(259),y=r(7),T=Object.seal,$=y(function(){T(1)});f({target:"Object",stat:!0,forced:$,sham:!p},{seal:function(b){return T&&d(b)?T(h(b)):b}})},function(x,E,r){var f=r(3),d=r(113);f({target:"Object",stat:!0},{setPrototypeOf:d})},function(x,E,r){var f=r(70),d=r(47),h=r(335);f||d(Object.prototype,"toString",h,{unsafe:!0})},function(x,E,r){var f=r(70),d=r(69);x.exports=f?{}.toString:function(){return"[object "+d(this)+"]"}},function(x,E,r){var f=r(3),d=r(313).values;f({target:"Object",stat:!0},{values:function(p){return d(p)}})},function(x,E,r){var f=r(3),d=r(298);f({global:!0,forced:parseFloat!==d},{parseFloat:d})},function(x,E,r){var f=r(3),d=r(300);f({global:!0,forced:parseInt!==d},{parseInt:d})},function(x,E,r){r(340),r(354),r(356),r(357),r(358),r(359)},function(x,E,r){var f=r(3),d=r(36),h=r(182),p=r(4),y=r(8),T=r(47),$=r(113),A=r(82),b=r(194),R=r(30),O=r(21),P=r(20),w=r(211),D=r(220),M=r(341).set,F=r(344),z=r(349),B=r(350),U=r(346),X=r(51),j=r(351),G=r(352),W=r(353),J="Promise",k=G.CONSTRUCTOR,Q=G.REJECTION_EVENT,nt=G.SUBCLASSING,rt=X.getterFor(J),q=X.set,tt=j&&j.prototype,et=j,ot=tt,pt=p.TypeError,ht=p.document,xt=p.process,yt=W.f,Ut=yt,Lt=!!(ht&&ht.createEvent&&p.dispatchEvent),Xt="unhandledrejection",Jt="rejectionhandled",Qt=0,me=1,ve=2,ae=1,Mt=2,Yt,re,oe,ee,fe=function(Tt){var _t;return P(Tt)&&O(_t=Tt.then)?_t:!1},Pe=function(Tt,_t){var te=_t.value,Zt=_t.state===me,Ht=Zt?Tt.ok:Tt.fail,He=Tt.resolve,Ze=Tt.reject,ut=Tt.domain,Ot,Pt,Ct;try{Ht?(Zt||(_t.rejection===Mt&&Te(_t),_t.rejection=ae),Ht===!0?Ot=te:(ut&&ut.enter(),Ot=Ht(te),ut&&(ut.exit(),Ct=!0)),Ot===Tt.promise?Ze(new pt("Promise-chain cycle")):(Pt=fe(Ot))?y(Pt,Ot,He,Ze):He(Ot)):Ze(te)}catch(Nt){ut&&!Ct&&ut.exit(),Ze(Nt)}},Me=function(Tt,_t){Tt.notified||(Tt.notified=!0,F(function(){for(var te=Tt.reactions,Zt;Zt=te.get();)Pe(Zt,Tt);Tt.notified=!1,_t&&!Tt.rejection&&ce(Tt)}))},$e=function(Tt,_t,te){var Zt,Ht;Lt?(Zt=ht.createEvent("Event"),Zt.promise=_t,Zt.reason=te,Zt.initEvent(Tt,!1,!0),p.dispatchEvent(Zt)):Zt={promise:_t,reason:te},!Q&&(Ht=p["on"+Tt])?Ht(Zt):Tt===Xt&&z("Unhandled promise rejection",te)},ce=function(Tt){y(M,p,function(){var _t=Tt.facade,te=Tt.value,Zt=Ae(Tt),Ht;if(Zt&&(Ht=B(function(){h?xt.emit("unhandledRejection",te,_t):$e(Xt,_t,te)}),Tt.rejection=h||Ae(Tt)?Mt:ae,Ht.error))throw Ht.value})},Ae=function(Tt){return Tt.rejection!==ae&&!Tt.parent},Te=function(Tt){y(M,p,function(){var _t=Tt.facade;h?xt.emit("rejectionHandled",_t):$e(Jt,_t,Tt.value)})},de=function(Tt,_t,te){return function(Zt){Tt(_t,Zt,te)}},Et=function(Tt,_t,te){Tt.done||(Tt.done=!0,te&&(Tt=te),Tt.value=_t,Tt.state=ve,Me(Tt,!0))},Ft=function(Tt,_t,te){if(!Tt.done){Tt.done=!0,te&&(Tt=te);try{if(Tt.facade===_t)throw new pt("Promise can't be resolved itself");var Zt=fe(_t);Zt?F(function(){var Ht={done:!1};try{y(Zt,_t,de(Ft,Ht,Tt),de(Et,Ht,Tt))}catch(He){Et(Ht,He,Tt)}}):(Tt.value=_t,Tt.state=me,Me(Tt,!1))}catch(Ht){Et({done:!1},Ht,Tt)}}};if(k&&(et=function(_t){w(this,ot),R(_t),y(Yt,this);var te=rt(this);try{_t(de(Ft,te),de(Et,te))}catch(Zt){Et(te,Zt)}},ot=et.prototype,Yt=function(_t){q(this,{type:J,done:!1,notified:!1,parent:!1,reactions:new U,rejection:!1,state:Qt,value:null})},Yt.prototype=T(ot,"then",function(_t,te){var Zt=rt(this),Ht=yt(D(this,et));return Zt.parent=!0,Ht.ok=O(_t)?_t:!0,Ht.fail=O(te)&&te,Ht.domain=h?xt.domain:void 0,Zt.state===Qt?Zt.reactions.add(Ht):F(function(){Pe(Ht,Zt)}),Ht.promise}),re=function(){var Tt=new Yt,_t=rt(Tt);this.promise=Tt,this.resolve=de(Ft,_t),this.reject=de(Et,_t)},W.f=yt=function(Tt){return Tt===et||Tt===oe?new re(Tt):Ut(Tt)},!d&&O(j)&&tt!==Object.prototype)){ee=tt.then,nt||T(tt,"then",function(_t,te){var Zt=this;return new et(function(Ht,He){y(ee,Zt,Ht,He)}).then(_t,te)},{unsafe:!0});try{delete tt.constructor}catch(Tt){}$&&$(tt,ot)}f({global:!0,constructor:!0,wrap:!0,forced:k},{Promise:et}),A(et,J,!1,!0),b(J)},function(x,E,r){var f=r(4),d=r(94),h=r(84),p=r(21),y=r(38),T=r(7),$=r(74),A=r(76),b=r(42),R=r(342),O=r(343),P=r(182),w=f.setImmediate,D=f.clearImmediate,M=f.process,F=f.Dispatch,z=f.Function,B=f.MessageChannel,U=f.String,X=0,j={},G="onreadystatechange",W,J,k,Q;T(function(){W=f.location});var nt=function(et){if(y(j,et)){var ot=j[et];delete j[et],ot()}},rt=function(et){return function(){nt(et)}},q=function(et){nt(et.data)},tt=function(et){f.postMessage(U(et),W.protocol+"//"+W.host)};(!w||!D)&&(w=function(ot){R(arguments.length,1);var pt=p(ot)?ot:z(ot),ht=A(arguments,1);return j[++X]=function(){d(pt,void 0,ht)},J(X),X},D=function(ot){delete j[ot]},P?J=function(et){M.nextTick(rt(et))}:F&&F.now?J=function(et){F.now(rt(et))}:B&&!O?(k=new B,Q=k.port2,k.port1.onmessage=q,J=h(Q.postMessage,Q)):f.addEventListener&&p(f.postMessage)&&!f.importScripts&&W&&W.protocol!=="file:"&&!T(tt)?(J=tt,f.addEventListener("message",q,!1)):G in b("script")?J=function(et){$.appendChild(b("script"))[G]=function(){$.removeChild(this),nt(et)}}:J=function(et){setTimeout(rt(et),0)}),x.exports={set:w,clear:D}},function(x){var E=TypeError;x.exports=function(r,f){if(r<f)throw new E("Not enough arguments");return r}},function(x,E,r){var f=r(28);x.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(f)},function(x,E,r){var f=r(4),d=r(345),h=r(84),p=r(341).set,y=r(346),T=r(343),$=r(347),A=r(348),b=r(182),R=f.MutationObserver||f.WebKitMutationObserver,O=f.document,P=f.process,w=f.Promise,D=d("queueMicrotask"),M,F,z,B,U;if(!D){var X=new y,j=function(){var G,W;for(b&&(G=P.domain)&&G.exit();W=X.get();)try{W()}catch(J){throw X.head&&M(),J}G&&G.enter()};!T&&!b&&!A&&R&&O?(F=!0,z=O.createTextNode(""),new R(j).observe(z,{characterData:!0}),M=function(){z.data=F=!F}):!$&&w&&w.resolve?(B=w.resolve(void 0),B.constructor=w,U=h(B.then,B),M=function(){U(j)}):b?M=function(){P.nextTick(j)}:(p=h(p,f),M=function(){p(j)}),D=function(G){X.head||M(),X.add(G)}}x.exports=D},function(x,E,r){var f=r(4),d=r(6),h=Object.getOwnPropertyDescriptor;x.exports=function(p){if(!d)return f[p];var y=h(f,p);return y&&y.value}},function(x){var E=function(){this.head=null,this.tail=null};E.prototype={add:function(r){var f={item:r,next:null},d=this.tail;d?d.next=f:this.head=f,this.tail=f},get:function(){var r=this.head;if(r){var f=this.head=r.next;return f===null&&(this.tail=null),r.item}}},x.exports=E},function(x,E,r){var f=r(28);x.exports=/ipad|iphone|ipod/i.test(f)&&typeof Pebble!="undefined"},function(x,E,r){var f=r(28);x.exports=/web0s(?!.*chrome)/i.test(f)},function(x){x.exports=function(E,r){try{arguments.length===1?console.error(E):console.error(E,r)}catch(f){}}},function(x){x.exports=function(E){try{return{error:!1,value:E()}}catch(r){return{error:!0,value:r}}}},function(x,E,r){var f=r(4);x.exports=f.Promise},function(x,E,r){var f=r(4),d=r(351),h=r(21),p=r(67),y=r(50),T=r(33),$=r(183),A=r(36),b=r(27),R=d&&d.prototype,O=T("species"),P=!1,w=h(f.PromiseRejectionEvent),D=p("Promise",function(){var M=y(d),F=M!==String(d);if(!F&&b===66||A&&!(R.catch&&R.finally))return!0;if(!b||b<51||!/native code/.test(M)){var z=new d(function(X){X(1)}),B=function(X){X(function(){},function(){})},U=z.constructor={};if(U[O]=B,P=z.then(function(){})instanceof B,!P)return!0}return!F&&($==="BROWSER"||$==="DENO")&&!w});x.exports={CONSTRUCTOR:D,REJECTION_EVENT:w,SUBCLASSING:P}},function(x,E,r){var f=r(30),d=TypeError,h=function(p){var y,T;this.promise=new p(function($,A){if(y!==void 0||T!==void 0)throw new d("Bad Promise constructor");y=$,T=A}),this.resolve=f(y),this.reject=f(T)};x.exports.f=function(p){return new h(p)}},function(x,E,r){var f=r(3),d=r(8),h=r(30),p=r(353),y=r(350),T=r(130),$=r(355);f({target:"Promise",stat:!0,forced:$},{all:function(b){var R=this,O=p.f(R),P=O.resolve,w=O.reject,D=y(function(){var M=h(R.resolve),F=[],z=0,B=1;T(b,function(U){var X=z++,j=!1;B++,d(M,R,U).then(function(G){j||(j=!0,F[X]=G,--B||P(F))},w)}),--B||P(F)});return D.error&&w(D.value),O.promise}})},function(x,E,r){var f=r(351),d=r(164),h=r(352).CONSTRUCTOR;x.exports=h||!d(function(p){f.all(p).then(void 0,function(){})})},function(x,E,r){var f=r(3),d=r(36),h=r(352).CONSTRUCTOR,p=r(351),y=r(23),T=r(21),$=r(47),A=p&&p.prototype;if(f({target:"Promise",proto:!0,forced:h,real:!0},{catch:function(R){return this.then(void 0,R)}}),!d&&T(p)){var b=y("Promise").prototype.catch;A.catch!==b&&$(A,"catch",b,{unsafe:!0})}},function(x,E,r){var f=r(3),d=r(8),h=r(30),p=r(353),y=r(350),T=r(130),$=r(355);f({target:"Promise",stat:!0,forced:$},{race:function(b){var R=this,O=p.f(R),P=O.reject,w=y(function(){var D=h(R.resolve);T(b,function(M){d(D,R,M).then(O.resolve,P)})});return w.error&&P(w.value),O.promise}})},function(x,E,r){var f=r(3),d=r(353),h=r(352).CONSTRUCTOR;f({target:"Promise",stat:!0,forced:h},{reject:function(y){var T=d.f(this),$=T.reject;return $(y),T.promise}})},function(x,E,r){var f=r(3),d=r(23),h=r(36),p=r(351),y=r(352).CONSTRUCTOR,T=r(360),$=d("Promise"),A=h&&!y;f({target:"Promise",stat:!0,forced:h||y},{resolve:function(R){return T(A&&this===$?p:this,R)}})},function(x,E,r){var f=r(46),d=r(20),h=r(353);x.exports=function(p,y){if(f(p),d(y)&&y.constructor===p)return y;var T=h.f(p),$=T.resolve;return $(y),T.promise}},function(x,E,r){var f=r(3),d=r(8),h=r(30),p=r(353),y=r(350),T=r(130),$=r(355);f({target:"Promise",stat:!0,forced:$},{allSettled:function(b){var R=this,O=p.f(R),P=O.resolve,w=O.reject,D=y(function(){var M=h(R.resolve),F=[],z=0,B=1;T(b,function(U){var X=z++,j=!1;B++,d(M,R,U).then(function(G){j||(j=!0,F[X]={status:"fulfilled",value:G},--B||P(F))},function(G){j||(j=!0,F[X]={status:"rejected",reason:G},--B||P(F))})}),--B||P(F)});return D.error&&w(D.value),O.promise}})},function(x,E,r){var f=r(3),d=r(8),h=r(30),p=r(23),y=r(353),T=r(350),$=r(130),A=r(355),b="No one promise resolved";f({target:"Promise",stat:!0,forced:A},{any:function(O){var P=this,w=p("AggregateError"),D=y.f(P),M=D.resolve,F=D.reject,z=T(function(){var B=h(P.resolve),U=[],X=0,j=1,G=!1;$(O,function(W){var J=X++,k=!1;j++,d(B,P,W).then(function(Q){k||G||(G=!0,M(Q))},function(Q){k||G||(k=!0,U[J]=Q,--j||F(new w(U,b)))})}),--j||F(new w(U,b))});return z.error&&F(z.value),D.promise}})},function(x,E,r){var f=r(3),d=r(36),h=r(351),p=r(7),y=r(23),T=r(21),$=r(220),A=r(360),b=r(47),R=h&&h.prototype,O=!!h&&p(function(){R.finally.call({then:function(){}},function(){})});if(f({target:"Promise",proto:!0,real:!0,forced:O},{finally:function(w){var D=$(this,y("Promise")),M=T(w);return this.then(M?function(F){return A(D,w()).then(function(){return F})}:w,M?function(F){return A(D,w()).then(function(){throw F})}:w)}}),!d&&T(h)){var P=y("Promise").prototype.finally;R.finally!==P&&b(R,"finally",P,{unsafe:!0})}},function(x,E,r){var f=r(3),d=r(353);f({target:"Promise",stat:!0},{withResolvers:function(){var p=d.f(this);return{promise:p.promise,resolve:p.resolve,reject:p.reject}}})},function(x,E,r){var f=r(3),d=r(94),h=r(30),p=r(46),y=r(7),T=!y(function(){Reflect.apply(function(){})});f({target:"Reflect",stat:!0,forced:T},{apply:function(A,b,R){return d(h(A),b,p(R))}})},function(x,E,r){var f=r(3),d=r(23),h=r(94),p=r(248),y=r(221),T=r(46),$=r(20),A=r(71),b=r(7),R=d("Reflect","construct"),O=Object.prototype,P=[].push,w=b(function(){function F(){}return!(R(function(){},[],F)instanceof F)}),D=!b(function(){R(function(){})}),M=w||D;f({target:"Reflect",stat:!0,forced:M,sham:M},{construct:function(z,B){y(z),T(B);var U=arguments.length<3?z:y(arguments[2]);if(D&&!w)return R(z,B,U);if(z===U){switch(B.length){case 0:return new z;case 1:return new z(B[0]);case 2:return new z(B[0],B[1]);case 3:return new z(B[0],B[1],B[2]);case 4:return new z(B[0],B[1],B[2],B[3])}var X=[null];return h(P,X,B),new(h(p,z,X))}var j=U.prototype,G=A($(j)?j:O),W=h(z,G,B);return $(W)?W:G}})},function(x,E,r){var f=r(3),d=r(6),h=r(46),p=r(18),y=r(44),T=r(7),$=T(function(){Reflect.defineProperty(y.f({},1,{value:1}),1,{value:2})});f({target:"Reflect",stat:!0,forced:$,sham:!d},{defineProperty:function(b,R,O){h(b);var P=p(R);h(O);try{return y.f(b,P,O),!0}catch(w){return!1}}})},function(x,E,r){var f=r(3),d=r(46),h=r(5).f;f({target:"Reflect",stat:!0},{deleteProperty:function(y,T){var $=h(d(y),T);return $&&!$.configurable?!1:delete y[T]}})},function(x,E,r){var f=r(3),d=r(8),h=r(20),p=r(46),y=r(370),T=r(5),$=r(128);function A(b,R){var O=arguments.length<3?b:arguments[2],P,w;if(p(b)===O)return b[R];if(P=T.f(b,R),P)return y(P)?P.value:P.get===void 0?void 0:d(P.get,O);if(h(w=$(b)))return A(w,R,O)}f({target:"Reflect",stat:!0},{get:A})},function(x,E,r){var f=r(38);x.exports=function(d){return d!==void 0&&(f(d,"value")||f(d,"writable"))}},function(x,E,r){var f=r(3),d=r(6),h=r(46),p=r(5);f({target:"Reflect",stat:!0,sham:!d},{getOwnPropertyDescriptor:function(T,$){return p.f(h(T),$)}})},function(x,E,r){var f=r(3),d=r(46),h=r(128),p=r(129);f({target:"Reflect",stat:!0,sham:!p},{getPrototypeOf:function(T){return h(d(T))}})},function(x,E,r){var f=r(3);f({target:"Reflect",stat:!0},{has:function(h,p){return p in h}})},function(x,E,r){var f=r(3),d=r(46),h=r(257);f({target:"Reflect",stat:!0},{isExtensible:function(y){return d(y),h(y)}})},function(x,E,r){var f=r(3),d=r(56);f({target:"Reflect",stat:!0},{ownKeys:d})},function(x,E,r){var f=r(3),d=r(23),h=r(46),p=r(259);f({target:"Reflect",stat:!0,sham:!p},{preventExtensions:function(T){h(T);try{var $=d("Object","preventExtensions");return $&&$(T),!0}catch(A){return!1}}})},function(x,E,r){var f=r(3),d=r(8),h=r(46),p=r(20),y=r(370),T=r(7),$=r(44),A=r(5),b=r(128),R=r(11);function O(w,D,M){var F=arguments.length<4?w:arguments[3],z=A.f(h(w),D),B,U,X;if(!z){if(p(U=b(w)))return O(U,D,M,F);z=R(0)}if(y(z)){if(z.writable===!1||!p(F))return!1;if(B=A.f(F,D)){if(B.get||B.set||B.writable===!1)return!1;B.value=M,$.f(F,D,B)}else $.f(F,D,R(0,M))}else{if(X=z.set,X===void 0)return!1;d(X,F,M)}return!0}var P=T(function(){var w=function(){},D=$.f(new w,"a",{configurable:!0});return Reflect.set(w.prototype,"a",1,D)!==!1});f({target:"Reflect",stat:!0,forced:P},{set:O})},function(x,E,r){var f=r(3),d=r(46),h=r(115),p=r(113);p&&f({target:"Reflect",stat:!0},{setPrototypeOf:function(T,$){d(T),h($);try{return p(T,$),!0}catch(A){return!1}}})},function(x,E,r){var f=r(3),d=r(4),h=r(82);f({global:!0},{Reflect:{}}),h(d.Reflect,"Reflect",!0)},function(x,E,r){var f=r(6),d=r(4),h=r(14),p=r(67),y=r(118),T=r(43),$=r(71),A=r(57).f,b=r(24),R=r(381),O=r(68),P=r(382),w=r(384),D=r(117),M=r(47),F=r(7),z=r(38),B=r(51).enforce,U=r(194),X=r(33),j=r(385),G=r(386),W=X("match"),J=d.RegExp,k=J.prototype,Q=d.SyntaxError,nt=h(k.exec),rt=h("".charAt),q=h("".replace),tt=h("".indexOf),et=h("".slice),ot=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,pt=/a/g,ht=/a/g,xt=new J(pt)!==pt,yt=w.MISSED_STICKY,Ut=w.UNSUPPORTED_Y,Lt=f&&(!xt||yt||j||G||F(function(){return ht[W]=!1,J(pt)!==pt||J(ht)===ht||String(J(pt,"i"))!=="/a/i"})),Xt=function(ae){for(var Mt=ae.length,Yt=0,re="",oe=!1,ee;Yt<=Mt;Yt++){if(ee=rt(ae,Yt),ee==="\\"){re+=ee+rt(ae,++Yt);continue}!oe&&ee==="."?re+="[\\s\\S]":(ee==="["?oe=!0:ee==="]"&&(oe=!1),re+=ee)}return re},Jt=function(ae){for(var Mt=ae.length,Yt=0,re="",oe=[],ee=$(null),fe=!1,Pe=!1,Me=0,$e="",ce;Yt<=Mt;Yt++){if(ce=rt(ae,Yt),ce==="\\")ce+=rt(ae,++Yt);else if(ce==="]")fe=!1;else if(!fe)switch(!0){case ce==="[":fe=!0;break;case ce==="(":if(re+=ce,et(ae,Yt+1,Yt+3)==="?:")continue;nt(ot,et(ae,Yt+1))&&(Yt+=2,Pe=!0),Me++;continue;case(ce===">"&&Pe):if($e===""||z(ee,$e))throw new Q("Invalid capture group name");ee[$e]=!0,oe[oe.length]=[$e,Me],Pe=!1,$e="";continue}Pe?$e+=ce:re+=ce}return[re,oe]};if(p("RegExp",Lt)){for(var Qt=function(Mt,Yt){var re=b(k,this),oe=R(Mt),ee=Yt===void 0,fe=[],Pe=Mt,Me,$e,ce,Ae,Te,de;if(!re&&oe&&ee&&Mt.constructor===Qt)return Mt;if((oe||b(k,Mt))&&(Mt=Mt.source,ee&&(Yt=P(Pe))),Mt=Mt===void 0?"":O(Mt),Yt=Yt===void 0?"":O(Yt),Pe=Mt,j&&"dotAll"in pt&&($e=!!Yt&&tt(Yt,"s")>-1,$e&&(Yt=q(Yt,/s/g,""))),Me=Yt,yt&&"sticky"in pt&&(ce=!!Yt&&tt(Yt,"y")>-1,ce&&Ut&&(Yt=q(Yt,/y/g,""))),G&&(Ae=Jt(Mt),Mt=Ae[0],fe=Ae[1]),Te=y(J(Mt,Yt),re?this:k,Qt),($e||ce||fe.length)&&(de=B(Te),$e&&(de.dotAll=!0,de.raw=Qt(Xt(Mt),Me)),ce&&(de.sticky=!0),fe.length&&(de.groups=fe)),Mt!==Pe)try{T(Te,"source",Pe===""?"(?:)":Pe)}catch(Et){}return Te},me=A(J),ve=0;me.length>ve;)D(Qt,J,me[ve++]);k.constructor=Qt,Qt.prototype=k,M(d,"RegExp",Qt,{constructor:!0})}U("RegExp")},function(x,E,r){var f=r(20),d=r(15),h=r(33),p=h("match");x.exports=function(y){var T;return f(y)&&((T=y[p])!==void 0?!!T:d(y)==="RegExp")}},function(x,E,r){var f=r(8),d=r(38),h=r(24),p=r(383),y=RegExp.prototype;x.exports=function(T){var $=T.flags;return $===void 0&&!("flags"in y)&&!d(T,"flags")&&h(y,T)?f(p,T):$}},function(x,E,r){var f=r(46);x.exports=function(){var d=f(this),h="";return d.hasIndices&&(h+="d"),d.global&&(h+="g"),d.ignoreCase&&(h+="i"),d.multiline&&(h+="m"),d.dotAll&&(h+="s"),d.unicode&&(h+="u"),d.unicodeSets&&(h+="v"),d.sticky&&(h+="y"),h}},function(x,E,r){var f=r(7),d=r(4),h=d.RegExp,p=f(function(){var $=h("a","y");return $.lastIndex=2,$.exec("abcd")!==null}),y=p||f(function(){return!h("a","y").sticky}),T=p||f(function(){var $=h("^r","gy");return $.lastIndex=2,$.exec("str")!==null});x.exports={BROKEN_CARET:T,MISSED_STICKY:y,UNSUPPORTED_Y:p}},function(x,E,r){var f=r(7),d=r(4),h=d.RegExp;x.exports=f(function(){var p=h(".","s");return!(p.dotAll&&p.test(`
|
|
28
|
+
`)&&p.flags==="s")})},function(x,E,r){var f=r(7),d=r(4),h=d.RegExp;x.exports=f(function(){var p=h("(?<a>b)","g");return p.exec("b").groups.a!=="b"||"b".replace(p,"$<a>c")!=="bc"})},function(x,E,r){var f=r(6),d=r(385),h=r(15),p=r(77),y=r(51).get,T=RegExp.prototype,$=TypeError;f&&d&&p(T,"dotAll",{configurable:!0,get:function(){if(this!==T){if(h(this)==="RegExp")return!!y(this).dotAll;throw new $("Incompatible receiver, RegExp required")}}})},function(x,E,r){var f=r(3),d=r(389);f({target:"RegExp",proto:!0,forced:/./.exec!==d},{exec:d})},function(x,E,r){var f=r(8),d=r(14),h=r(68),p=r(383),y=r(384),T=r(34),$=r(71),A=r(51).get,b=r(385),R=r(386),O=T("native-string-replace",String.prototype.replace),P=RegExp.prototype.exec,w=P,D=d("".charAt),M=d("".indexOf),F=d("".replace),z=d("".slice),B=function(){var G=/a/,W=/b*/g;return f(P,G,"a"),f(P,W,"a"),G.lastIndex!==0||W.lastIndex!==0}(),U=y.BROKEN_CARET,X=/()??/.exec("")[1]!==void 0,j=B||X||U||b||R;j&&(w=function(W){var J=this,k=A(J),Q=h(W),nt=k.raw,rt,q,tt,et,ot,pt,ht;if(nt)return nt.lastIndex=J.lastIndex,rt=f(w,nt,Q),J.lastIndex=nt.lastIndex,rt;var xt=k.groups,yt=U&&J.sticky,Ut=f(p,J),Lt=J.source,Xt=0,Jt=Q;if(yt&&(Ut=F(Ut,"y",""),M(Ut,"g")===-1&&(Ut+="g"),Jt=z(Q,J.lastIndex),J.lastIndex>0&&(!J.multiline||J.multiline&&D(Q,J.lastIndex-1)!==`
|
|
29
|
+
`)&&(Lt="(?: "+Lt+")",Jt=" "+Jt,Xt++),q=new RegExp("^(?:"+Lt+")",Ut)),X&&(q=new RegExp("^"+Lt+"$(?!\\s)",Ut)),B&&(tt=J.lastIndex),et=f(P,yt?q:J,Jt),yt?et?(et.input=z(et.input,Xt),et[0]=z(et[0],Xt),et.index=J.lastIndex,J.lastIndex+=et[0].length):J.lastIndex=0:B&&et&&(J.lastIndex=J.global?et.index+et[0].length:tt),X&&et&&et.length>1&&f(O,et[0],q,function(){for(ot=1;ot<arguments.length-2;ot++)arguments[ot]===void 0&&(et[ot]=void 0)}),et&&xt)for(et.groups=pt=$(null),ot=0;ot<xt.length;ot++)ht=xt[ot],pt[ht[0]]=et[ht[1]];return et}),x.exports=w},function(x,E,r){var f=r(4),d=r(6),h=r(77),p=r(383),y=r(7),T=f.RegExp,$=T.prototype,A=d&&y(function(){var b=!0;try{T(".","d")}catch(z){b=!1}var R={},O="",P=b?"dgimsy":"gimsy",w=function(z,B){Object.defineProperty(R,z,{get:function(){return O+=B,!0}})},D={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};b&&(D.hasIndices="d");for(var M in D)w(M,D[M]);var F=Object.getOwnPropertyDescriptor($,"flags").get.call(R);return F!==P||O!==P});A&&h($,"flags",{configurable:!0,get:p})},function(x,E,r){var f=r(6),d=r(384).MISSED_STICKY,h=r(15),p=r(77),y=r(51).get,T=RegExp.prototype,$=TypeError;f&&d&&p(T,"sticky",{configurable:!0,get:function(){if(this!==T){if(h(this)==="RegExp")return!!y(this).sticky;throw new $("Incompatible receiver, RegExp required")}}})},function(x,E,r){r(388);var f=r(3),d=r(8),h=r(21),p=r(46),y=r(68),T=function(){var A=!1,b=/[ac]/;return b.exec=function(){return A=!0,/./.exec.apply(this,arguments)},b.test("abc")===!0&&A}(),$=/./.test;f({target:"RegExp",proto:!0,forced:!T},{test:function(A){var b=p(this),R=y(A),O=b.exec;if(!h(O))return d($,b,R);var P=d(O,b,R);return P===null?!1:(p(P),!0)}})},function(x,E,r){var f=r(49).PROPER,d=r(47),h=r(46),p=r(68),y=r(7),T=r(382),$="toString",A=RegExp.prototype,b=A[$],R=y(function(){return b.call({source:"a",flags:"b"})!=="/a/b"}),O=f&&b.name!==$;(R||O)&&d(A,$,function(){var w=h(this),D=p(w.source),M=p(T(w));return"/"+D+"/"+M},{unsafe:!0})},function(x,E,r){r(395)},function(x,E,r){var f=r(255),d=r(260);f("Set",function(h){return function(){return h(this,arguments.length?arguments[0]:void 0)}},d)},function(x,E,r){var f=r(3),d=r(397),h=r(406);f({target:"Set",proto:!0,real:!0,forced:!h("difference")},{difference:d})},function(x,E,r){var f=r(398),d=r(399),h=r(400),p=r(403),y=r(404),T=r(401),$=r(402),A=d.has,b=d.remove;x.exports=function(O){var P=f(this),w=y(O),D=h(P);return p(P)<=w.size?T(P,function(M){w.includes(M)&&b(D,M)}):$(w.getIterator(),function(M){A(P,M)&&b(D,M)}),D}},function(x,E,r){var f=r(399).has;x.exports=function(d){return f(d),d}},function(x,E,r){var f=r(14),d=Set.prototype;x.exports={Set,add:f(d.add),has:f(d.has),remove:f(d.delete),proto:d}},function(x,E,r){var f=r(399),d=r(401),h=f.Set,p=f.add;x.exports=function(y){var T=new h;return d(y,function($){p(T,$)}),T}},function(x,E,r){var f=r(14),d=r(402),h=r(399),p=h.Set,y=h.proto,T=f(y.forEach),$=f(y.keys),A=$(new p).next;x.exports=function(b,R,O){return O?d({iterator:$(b),next:A},R):T(b,R)}},function(x,E,r){var f=r(8);x.exports=function(d,h,p){for(var y=p?d:d.iterator,T=d.next,$,A;!($=f(T,y)).done;)if(A=h($.value),A!==void 0)return A}},function(x,E,r){var f=r(114),d=r(399);x.exports=f(d.proto,"size","get")||function(h){return h.size}},function(x,E,r){var f=r(30),d=r(46),h=r(8),p=r(61),y=r(405),T="Invalid size",$=RangeError,A=TypeError,b=Math.max,R=function(O,P){this.set=O,this.size=b(P,0),this.has=f(O.has),this.keys=f(O.keys)};R.prototype={getIterator:function(){return y(d(h(this.keys,this.set)))},includes:function(O){return h(this.has,this.set,O)}},x.exports=function(O){d(O);var P=+O.size;if(P!==P)throw new A(T);var w=p(P);if(w<0)throw new $(T);return new R(O,w)}},function(x){x.exports=function(E){return{iterator:E,next:E.next,done:!1}}},function(x,E,r){var f=r(23),d=function(h){return{size:h,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};x.exports=function(h){var p=f("Set");try{new p()[h](d(0));try{return new p()[h](d(-1)),!1}catch(y){return!0}}catch(y){return!1}}},function(x,E,r){var f=r(3),d=r(7),h=r(408),p=r(406),y=!p("intersection")||d(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});f({target:"Set",proto:!0,real:!0,forced:y},{intersection:h})},function(x,E,r){var f=r(398),d=r(399),h=r(403),p=r(404),y=r(401),T=r(402),$=d.Set,A=d.add,b=d.has;x.exports=function(O){var P=f(this),w=p(O),D=new $;return h(P)>w.size?T(w.getIterator(),function(M){b(P,M)&&A(D,M)}):y(P,function(M){w.includes(M)&&A(D,M)}),D}},function(x,E,r){var f=r(3),d=r(410),h=r(406);f({target:"Set",proto:!0,real:!0,forced:!h("isDisjointFrom")},{isDisjointFrom:d})},function(x,E,r){var f=r(398),d=r(399).has,h=r(403),p=r(404),y=r(401),T=r(402),$=r(135);x.exports=function(b){var R=f(this),O=p(b);if(h(R)<=O.size)return y(R,function(w){if(O.includes(w))return!1},!0)!==!1;var P=O.getIterator();return T(P,function(w){if(d(R,w))return $(P,"normal",!1)})!==!1}},function(x,E,r){var f=r(3),d=r(412),h=r(406);f({target:"Set",proto:!0,real:!0,forced:!h("isSubsetOf")},{isSubsetOf:d})},function(x,E,r){var f=r(398),d=r(403),h=r(401),p=r(404);x.exports=function(T){var $=f(this),A=p(T);return d($)>A.size?!1:h($,function(b){if(!A.includes(b))return!1},!0)!==!1}},function(x,E,r){var f=r(3),d=r(414),h=r(406);f({target:"Set",proto:!0,real:!0,forced:!h("isSupersetOf")},{isSupersetOf:d})},function(x,E,r){var f=r(398),d=r(399).has,h=r(403),p=r(404),y=r(402),T=r(135);x.exports=function(A){var b=f(this),R=p(A);if(h(b)<R.size)return!1;var O=R.getIterator();return y(O,function(P){if(!d(b,P))return T(O,"normal",!1)})!==!1}},function(x,E,r){var f=r(3),d=r(416),h=r(406);f({target:"Set",proto:!0,real:!0,forced:!h("symmetricDifference")},{symmetricDifference:d})},function(x,E,r){var f=r(398),d=r(399),h=r(400),p=r(404),y=r(402),T=d.add,$=d.has,A=d.remove;x.exports=function(R){var O=f(this),P=p(R).getIterator(),w=h(O);return y(P,function(D){$(O,D)?A(w,D):T(w,D)}),w}},function(x,E,r){var f=r(3),d=r(418),h=r(406);f({target:"Set",proto:!0,real:!0,forced:!h("union")},{union:d})},function(x,E,r){var f=r(398),d=r(399).add,h=r(400),p=r(404),y=r(402);x.exports=function($){var A=f(this),b=p($).getIterator(),R=h(A);return y(b,function(O){d(R,O)}),R}},function(x,E,r){var f=r(3),d=r(14),h=r(16),p=r(61),y=r(68),T=r(7),$=d("".charAt),A=T(function(){return"\u{20BB7}".at(-2)!=="\uD842"});f({target:"String",proto:!0,forced:A},{at:function(R){var O=y(h(this)),P=O.length,w=p(R),D=w>=0?w:P+w;return D<0||D>=P?void 0:$(O,D)}})},function(x,E,r){var f=r(3),d=r(421).codeAt;f({target:"String",proto:!0},{codePointAt:function(p){return d(this,p)}})},function(x,E,r){var f=r(14),d=r(61),h=r(68),p=r(16),y=f("".charAt),T=f("".charCodeAt),$=f("".slice),A=function(b){return function(R,O){var P=h(p(R)),w=d(O),D=P.length,M,F;return w<0||w>=D?b?"":void 0:(M=T(P,w),M<55296||M>56319||w+1===D||(F=T(P,w+1))<56320||F>57343?b?y(P,w):M:b?$(P,w,w+2):(M-55296<<10)+(F-56320)+65536)}};x.exports={codeAt:A(!1),charAt:A(!0)}},function(x,E,r){var f=r(3),d=r(85),h=r(5).f,p=r(64),y=r(68),T=r(423),$=r(16),A=r(424),b=r(36),R=d("".slice),O=Math.min,P=A("endsWith"),w=!b&&!P&&!!function(){var D=h(String.prototype,"endsWith");return D&&!D.writable}();f({target:"String",proto:!0,forced:!w&&!P},{endsWith:function(M){var F=y($(this));T(M);var z=arguments.length>1?arguments[1]:void 0,B=F.length,U=z===void 0?B:O(p(z),B),X=y(M);return R(F,U-X.length,U)===X}})},function(x,E,r){var f=r(381),d=TypeError;x.exports=function(h){if(f(h))throw new d("The method doesn't accept regular expressions");return h}},function(x,E,r){var f=r(33),d=f("match");x.exports=function(h){var p=/./;try{"/./"[h](p)}catch(y){try{return p[d]=!1,"/./"[h](p)}catch(T){}}return!1}},function(x,E,r){var f=r(3),d=r(14),h=r(60),p=RangeError,y=String.fromCharCode,T=String.fromCodePoint,$=d([].join),A=!!T&&T.length!==1;f({target:"String",stat:!0,arity:1,forced:A},{fromCodePoint:function(R){for(var O=[],P=arguments.length,w=0,D;P>w;){if(D=+arguments[w++],h(D,1114111)!==D)throw new p(D+" is not a valid code point");O[w]=D<65536?y(D):y(((D-=65536)>>10)+55296,D%1024+56320)}return $(O,"")}})},function(x,E,r){var f=r(3),d=r(14),h=r(423),p=r(16),y=r(68),T=r(424),$=d("".indexOf);f({target:"String",proto:!0,forced:!T("includes")},{includes:function(b){return!!~$(y(p(this)),y(h(b)),arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var f=r(3),d=r(14),h=r(16),p=r(68),y=d("".charCodeAt);f({target:"String",proto:!0},{isWellFormed:function(){for(var $=p(h(this)),A=$.length,b=0;b<A;b++){var R=y($,b);if((R&63488)===55296&&(R>=56320||++b>=A||(y($,b)&64512)!==56320))return!1}return!0}})},function(x,E,r){var f=r(421).charAt,d=r(68),h=r(51),p=r(169),y=r(172),T="String Iterator",$=h.set,A=h.getterFor(T);p(String,"String",function(b){$(this,{type:T,string:d(b),index:0})},function(){var R=A(this),O=R.string,P=R.index,w;return P>=O.length?y(void 0,!0):(w=f(O,P),R.index+=w.length,y(w,!1))})},function(x,E,r){var f=r(8),d=r(430),h=r(46),p=r(17),y=r(64),T=r(68),$=r(16),A=r(29),b=r(431),R=r(432);d("match",function(O,P,w){return[function(M){var F=$(this),z=p(M)?void 0:A(M,O);return z?f(z,M,F):new RegExp(M)[O](T(F))},function(D){var M=h(this),F=T(D),z=w(P,M,F);if(z.done)return z.value;if(!M.global)return R(M,F);var B=M.unicode;M.lastIndex=0;for(var U=[],X=0,j;(j=R(M,F))!==null;){var G=T(j[0]);U[X]=G,G===""&&(M.lastIndex=b(F,y(M.lastIndex),B)),X++}return X===0?null:U}]})},function(x,E,r){r(388);var f=r(8),d=r(47),h=r(389),p=r(7),y=r(33),T=r(43),$=y("species"),A=RegExp.prototype;x.exports=function(b,R,O,P){var w=y(b),D=!p(function(){var B={};return B[w]=function(){return 7},""[b](B)!==7}),M=D&&!p(function(){var B=!1,U=/a/;return b==="split"&&(U={},U.constructor={},U.constructor[$]=function(){return U},U.flags="",U[w]=/./[w]),U.exec=function(){return B=!0,null},U[w](""),!B});if(!D||!M||O){var F=/./[w],z=R(w,""[b],function(B,U,X,j,G){var W=U.exec;return W===h||W===A.exec?D&&!G?{done:!0,value:f(F,U,X,j)}:{done:!0,value:f(B,X,U,j)}:{done:!1}});d(String.prototype,b,z[0]),d(A,w,z[1])}P&&T(A[w],"sham",!0)}},function(x,E,r){var f=r(421).charAt;x.exports=function(d,h,p){return h+(p?f(d,h).length:1)}},function(x,E,r){var f=r(8),d=r(46),h=r(21),p=r(15),y=r(389),T=TypeError;x.exports=function($,A){var b=$.exec;if(h(b)){var R=f(b,$,A);return R!==null&&d(R),R}if(p($)==="RegExp")return f(y,$,A);throw new T("RegExp#exec called on incompatible receiver")}},function(x,E,r){var f=r(3),d=r(8),h=r(85),p=r(170),y=r(172),T=r(16),$=r(64),A=r(68),b=r(46),R=r(17),O=r(15),P=r(381),w=r(382),D=r(29),M=r(47),F=r(7),z=r(33),B=r(220),U=r(431),X=r(432),j=r(51),G=r(36),W=z("matchAll"),J="RegExp String",k=J+" Iterator",Q=j.set,nt=j.getterFor(k),rt=RegExp.prototype,q=TypeError,tt=h("".indexOf),et=h("".matchAll),ot=!!et&&!F(function(){et("a",/./)}),pt=p(function(yt,Ut,Lt,Xt){Q(this,{type:k,regexp:yt,string:Ut,global:Lt,unicode:Xt,done:!1})},J,function(){var yt=nt(this);if(yt.done)return y(void 0,!0);var Ut=yt.regexp,Lt=yt.string,Xt=X(Ut,Lt);return Xt===null?(yt.done=!0,y(void 0,!0)):yt.global?(A(Xt[0])===""&&(Ut.lastIndex=U(Lt,$(Ut.lastIndex),yt.unicode)),y(Xt,!1)):(yt.done=!0,y(Xt,!1))}),ht=function(xt){var yt=b(this),Ut=A(xt),Lt=B(yt,RegExp),Xt=A(w(yt)),Jt,Qt,me;return Jt=new Lt(Lt===RegExp?yt.source:yt,Xt),Qt=!!~tt(Xt,"g"),me=!!~tt(Xt,"u"),Jt.lastIndex=$(yt.lastIndex),new pt(Jt,Ut,Qt,me)};f({target:"String",proto:!0,forced:ot},{matchAll:function(yt){var Ut=T(this),Lt,Xt,Jt,Qt;if(R(yt)){if(ot)return et(Ut,yt)}else{if(P(yt)&&(Lt=A(T(w(yt))),!~tt(Lt,"g")))throw new q("`.matchAll` does not allow non-global regexes");if(ot)return et(Ut,yt);if(Jt=D(yt,W),Jt===void 0&&G&&O(yt)==="RegExp"&&(Jt=ht),Jt)return d(Jt,yt,Ut)}return Xt=A(Ut),Qt=new RegExp(yt,"g"),G?d(ht,Qt,Xt):Qt[W](Xt)}}),G||W in rt||M(rt,W,ht)},function(x,E,r){var f=r(3),d=r(240).end,h=r(435);f({target:"String",proto:!0,forced:h},{padEnd:function(y){return d(this,y,arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var f=r(28);x.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(f)},function(x,E,r){var f=r(3),d=r(240).start,h=r(435);f({target:"String",proto:!0,forced:h},{padStart:function(y){return d(this,y,arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var f=r(3),d=r(14),h=r(12),p=r(39),y=r(68),T=r(63),$=d([].push),A=d([].join);f({target:"String",stat:!0},{raw:function(R){var O=h(p(R).raw),P=T(O);if(!P)return"";for(var w=arguments.length,D=[],M=0;;){if($(D,y(O[M++])),M===P)return A(D,"");M<w&&$(D,y(arguments[M]))}}})},function(x,E,r){var f=r(3),d=r(241);f({target:"String",proto:!0},{repeat:d})},function(x,E,r){var f=r(94),d=r(8),h=r(14),p=r(430),y=r(7),T=r(46),$=r(21),A=r(17),b=r(61),R=r(64),O=r(68),P=r(16),w=r(431),D=r(29),M=r(440),F=r(432),z=r(33),B=z("replace"),U=Math.max,X=Math.min,j=h([].concat),G=h([].push),W=h("".indexOf),J=h("".slice),k=function(q){return q===void 0?q:String(q)},Q=function(){return"a".replace(/./,"$0")==="$0"}(),nt=function(){return/./[B]?/./[B]("a","$0")==="":!1}(),rt=!y(function(){var q=/./;return q.exec=function(){var tt=[];return tt.groups={a:"7"},tt},"".replace(q,"$<a>")!=="7"});p("replace",function(q,tt,et){var ot=nt?"$":"$0";return[function(ht,xt){var yt=P(this),Ut=A(ht)?void 0:D(ht,B);return Ut?d(Ut,ht,yt,xt):d(tt,O(yt),ht,xt)},function(pt,ht){var xt=T(this),yt=O(pt);if(typeof ht=="string"&&W(ht,ot)===-1&&W(ht,"$<")===-1){var Ut=et(tt,xt,yt,ht);if(Ut.done)return Ut.value}var Lt=$(ht);Lt||(ht=O(ht));var Xt=xt.global,Jt;Xt&&(Jt=xt.unicode,xt.lastIndex=0);for(var Qt=[],me;me=F(xt,yt),!(me===null||(G(Qt,me),!Xt));){var ve=O(me[0]);ve===""&&(xt.lastIndex=w(yt,R(xt.lastIndex),Jt))}for(var ae="",Mt=0,Yt=0;Yt<Qt.length;Yt++){me=Qt[Yt];for(var re=O(me[0]),oe=U(X(b(me.index),yt.length),0),ee=[],fe,Pe=1;Pe<me.length;Pe++)G(ee,k(me[Pe]));var Me=me.groups;if(Lt){var $e=j([re],ee,oe,yt);Me!==void 0&&G($e,Me),fe=O(f(ht,void 0,$e))}else fe=M(re,yt,oe,ee,Me,ht);oe>=Mt&&(ae+=J(yt,Mt,oe)+fe,Mt=oe+re.length)}return ae+J(yt,Mt)}]},!rt||!Q||nt)},function(x,E,r){var f=r(14),d=r(39),h=Math.floor,p=f("".charAt),y=f("".replace),T=f("".slice),$=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,A=/\$([$&'`]|\d{1,2})/g;x.exports=function(b,R,O,P,w,D){var M=O+b.length,F=P.length,z=A;return w!==void 0&&(w=d(w),z=$),y(D,z,function(B,U){var X;switch(p(U,0)){case"$":return"$";case"&":return b;case"`":return T(R,0,O);case"'":return T(R,M);case"<":X=w[T(U,1,-1)];break;default:var j=+U;if(j===0)return B;if(j>F){var G=h(j/10);return G===0?B:G<=F?P[G-1]===void 0?p(U,1):P[G-1]+p(U,1):B}X=P[j-1]}return X===void 0?"":X})}},function(x,E,r){var f=r(3),d=r(8),h=r(14),p=r(16),y=r(21),T=r(17),$=r(381),A=r(68),b=r(29),R=r(382),O=r(440),P=r(33),w=r(36),D=P("replace"),M=TypeError,F=h("".indexOf),z=h("".replace),B=h("".slice),U=Math.max;f({target:"String",proto:!0},{replaceAll:function(j,G){var W=p(this),J,k,Q,nt,rt,q,tt,et,ot,pt,ht=0,xt="";if(!T(j)){if(J=$(j),J&&(k=A(p(R(j))),!~F(k,"g")))throw new M("`.replaceAll` does not allow non-global regexes");if(Q=b(j,D),Q)return d(Q,j,W,G);if(w&&J)return z(A(W),j,G)}for(nt=A(W),rt=A(j),q=y(G),q||(G=A(G)),tt=rt.length,et=U(1,tt),ot=F(nt,rt);ot!==-1;)pt=q?A(G(rt,ot,nt)):O(rt,nt,ot,[],void 0,G),xt+=B(nt,ht,ot)+pt,ht=ot+tt,ot=ot+et>nt.length?-1:F(nt,rt,ot+et);return ht<nt.length&&(xt+=B(nt,ht)),xt}})},function(x,E,r){var f=r(8),d=r(430),h=r(46),p=r(17),y=r(16),T=r(323),$=r(68),A=r(29),b=r(432);d("search",function(R,O,P){return[function(D){var M=y(this),F=p(D)?void 0:A(D,R);return F?f(F,D,M):new RegExp(D)[R]($(M))},function(w){var D=h(this),M=$(w),F=P(O,D,M);if(F.done)return F.value;var z=D.lastIndex;T(z,0)||(D.lastIndex=0);var B=b(D,M);return T(D.lastIndex,z)||(D.lastIndex=z),B===null?-1:B.index}]})},function(x,E,r){var f=r(8),d=r(14),h=r(430),p=r(46),y=r(17),T=r(16),$=r(220),A=r(431),b=r(64),R=r(68),O=r(29),P=r(432),w=r(384),D=r(7),M=w.UNSUPPORTED_Y,F=4294967295,z=Math.min,B=d([].push),U=d("".slice),X=!D(function(){var G=/(?:)/,W=G.exec;G.exec=function(){return W.apply(this,arguments)};var J="ab".split(G);return J.length!==2||J[0]!=="a"||J[1]!=="b"}),j="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;h("split",function(G,W,J){var k="0".split(void 0,0).length?function(Q,nt){return Q===void 0&&nt===0?[]:f(W,this,Q,nt)}:W;return[function(nt,rt){var q=T(this),tt=y(nt)?void 0:O(nt,G);return tt?f(tt,nt,q,rt):f(k,R(q),nt,rt)},function(Q,nt){var rt=p(this),q=R(Q);if(!j){var tt=J(k,rt,q,nt,k!==W);if(tt.done)return tt.value}var et=$(rt,RegExp),ot=rt.unicode,pt=(rt.ignoreCase?"i":"")+(rt.multiline?"m":"")+(rt.unicode?"u":"")+(M?"g":"y"),ht=new et(M?"^(?:"+rt.source+")":rt,pt),xt=nt===void 0?F:nt>>>0;if(xt===0)return[];if(q.length===0)return P(ht,q)===null?[q]:[];for(var yt=0,Ut=0,Lt=[];Ut<q.length;){ht.lastIndex=M?0:Ut;var Xt=P(ht,M?U(q,Ut):q),Jt;if(Xt===null||(Jt=z(b(ht.lastIndex+(M?Ut:0)),q.length))===yt)Ut=A(q,Ut,ot);else{if(B(Lt,U(q,yt,Ut)),Lt.length===xt)return Lt;for(var Qt=1;Qt<=Xt.length-1;Qt++)if(B(Lt,Xt[Qt]),Lt.length===xt)return Lt;Ut=yt=Jt}}return B(Lt,U(q,yt)),Lt}]},j||!X,M)},function(x,E,r){var f=r(3),d=r(85),h=r(5).f,p=r(64),y=r(68),T=r(423),$=r(16),A=r(424),b=r(36),R=d("".slice),O=Math.min,P=A("startsWith"),w=!b&&!P&&!!function(){var D=h(String.prototype,"startsWith");return D&&!D.writable}();f({target:"String",proto:!0,forced:!w&&!P},{startsWith:function(M){var F=y($(this));T(M);var z=p(O(arguments.length>1?arguments[1]:void 0,F.length)),B=y(M);return R(F,z,z+B.length)===B}})},function(x,E,r){var f=r(3),d=r(14),h=r(16),p=r(61),y=r(68),T=d("".slice),$=Math.max,A=Math.min,b=!"".substr||"ab".substr(-1)!=="b";f({target:"String",proto:!0,forced:b},{substr:function(O,P){var w=y(h(this)),D=w.length,M=p(O),F,z;return M===1/0&&(M=0),M<0&&(M=$(D+M,0)),F=P===void 0?D:p(P),F<=0||F===1/0?"":(z=A(M+F,D),M>=z?"":T(w,M,z))}})},function(x,E,r){var f=r(3),d=r(8),h=r(14),p=r(16),y=r(68),T=r(7),$=Array,A=h("".charAt),b=h("".charCodeAt),R=h([].join),O="".toWellFormed,P="\uFFFD",w=O&&T(function(){return d(O,1)!=="1"});f({target:"String",proto:!0,forced:w},{toWellFormed:function(){var M=y(p(this));if(w)return d(O,M);for(var F=M.length,z=$(F),B=0;B<F;B++){var U=b(M,B);(U&63488)!==55296?z[B]=A(M,B):U>=56320||B+1>=F||(b(M,B+1)&64512)!==56320?z[B]=P:(z[B]=A(M,B),z[++B]=A(M,B))}return R(z,"")}})},function(x,E,r){var f=r(3),d=r(286).trim,h=r(448);f({target:"String",proto:!0,forced:h("trim")},{trim:function(){return d(this)}})},function(x,E,r){var f=r(49).PROPER,d=r(7),h=r(287),p="\u200B\x85\u180E";x.exports=function(y){return d(function(){return!!h[y]()||p[y]()!==p||f&&h[y].name!==y})}},function(x,E,r){r(450);var f=r(3),d=r(451);f({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==d},{trimEnd:d})},function(x,E,r){var f=r(3),d=r(451);f({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==d},{trimRight:d})},function(x,E,r){var f=r(286).end,d=r(448);x.exports=d("trimEnd")?function(){return f(this)}:"".trimEnd},function(x,E,r){r(453);var f=r(3),d=r(454);f({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==d},{trimStart:d})},function(x,E,r){var f=r(3),d=r(454);f({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==d},{trimLeft:d})},function(x,E,r){var f=r(286).start,d=r(448);x.exports=d("trimStart")?function(){return f(this)}:"".trimStart},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("anchor")},{anchor:function(y){return d(this,"a","name",y)}})},function(x,E,r){var f=r(14),d=r(16),h=r(68),p=/"/g,y=f("".replace);x.exports=function(T,$,A,b){var R=h(d(T)),O="<"+$;return A!==""&&(O+=" "+A+'="'+y(h(b),p,""")+'"'),O+">"+R+"</"+$+">"}},function(x,E,r){var f=r(7);x.exports=function(d){return f(function(){var h=""[d]('"');return h!==h.toLowerCase()||h.split('"').length>3})}},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("big")},{big:function(){return d(this,"big","","")}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("blink")},{blink:function(){return d(this,"blink","","")}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("bold")},{bold:function(){return d(this,"b","","")}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("fixed")},{fixed:function(){return d(this,"tt","","")}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("fontcolor")},{fontcolor:function(y){return d(this,"font","color",y)}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("fontsize")},{fontsize:function(y){return d(this,"font","size",y)}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("italics")},{italics:function(){return d(this,"i","","")}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("link")},{link:function(y){return d(this,"a","href",y)}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("small")},{small:function(){return d(this,"small","","")}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("strike")},{strike:function(){return d(this,"strike","","")}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("sub")},{sub:function(){return d(this,"sub","","")}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("sup")},{sup:function(){return d(this,"sup","","")}})},function(x,E,r){var f=r(471);f("Float32",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var f=r(3),d=r(4),h=r(8),p=r(6),y=r(472),T=r(218),$=r(208),A=r(211),b=r(11),R=r(43),O=r(292),P=r(64),w=r(212),D=r(473),M=r(475),F=r(18),z=r(38),B=r(69),U=r(20),X=r(22),j=r(71),G=r(24),W=r(113),J=r(57).f,k=r(476),Q=r(83).forEach,nt=r(194),rt=r(77),q=r(44),tt=r(5),et=r(199),ot=r(51),pt=r(118),ht=ot.get,xt=ot.set,yt=ot.enforce,Ut=q.f,Lt=tt.f,Xt=d.RangeError,Jt=$.ArrayBuffer,Qt=Jt.prototype,me=$.DataView,ve=T.NATIVE_ARRAY_BUFFER_VIEWS,ae=T.TYPED_ARRAY_TAG,Mt=T.TypedArray,Yt=T.TypedArrayPrototype,re=T.isTypedArray,oe="BYTES_PER_ELEMENT",ee="Wrong length",fe=function(Ae,Te){rt(Ae,Te,{configurable:!0,get:function(){return ht(this)[Te]}})},Pe=function(Ae){var Te;return G(Qt,Ae)||(Te=B(Ae))==="ArrayBuffer"||Te==="SharedArrayBuffer"},Me=function(Ae,Te){return re(Ae)&&!X(Te)&&Te in Ae&&O(+Te)&&Te>=0},$e=function(Te,de){return de=F(de),Me(Te,de)?b(2,Te[de]):Lt(Te,de)},ce=function(Te,de,Et){return de=F(de),Me(Te,de)&&U(Et)&&z(Et,"value")&&!z(Et,"get")&&!z(Et,"set")&&!Et.configurable&&(!z(Et,"writable")||Et.writable)&&(!z(Et,"enumerable")||Et.enumerable)?(Te[de]=Et.value,Te):Ut(Te,de,Et)};p?(ve||(tt.f=$e,q.f=ce,fe(Yt,"buffer"),fe(Yt,"byteOffset"),fe(Yt,"byteLength"),fe(Yt,"length")),f({target:"Object",stat:!0,forced:!ve},{getOwnPropertyDescriptor:$e,defineProperty:ce}),x.exports=function(Ae,Te,de){var Et=Ae.match(/\d+/)[0]/8,Ft=Ae+(de?"Clamped":"")+"Array",Tt="get"+Ae,_t="set"+Ae,te=d[Ft],Zt=te,Ht=Zt&&Zt.prototype,He={},Ze=function(Ct,Nt){var bt=ht(Ct);return bt.view[Tt](Nt*Et+bt.byteOffset,!0)},ut=function(Ct,Nt,bt){var ie=ht(Ct);ie.view[_t](Nt*Et+ie.byteOffset,de?M(bt):bt,!0)},Ot=function(Ct,Nt){Ut(Ct,Nt,{get:function(){return Ze(this,Nt)},set:function(bt){return ut(this,Nt,bt)},enumerable:!0})};ve?y&&(Zt=Te(function(Ct,Nt,bt,ie){return A(Ct,Ht),pt(function(){return U(Nt)?Pe(Nt)?ie!==void 0?new te(Nt,D(bt,Et),ie):bt!==void 0?new te(Nt,D(bt,Et)):new te(Nt):re(Nt)?et(Zt,Nt):h(k,Zt,Nt):new te(w(Nt))}(),Ct,Zt)}),W&&W(Zt,Mt),Q(J(te),function(Ct){Ct in Zt||R(Zt,Ct,te[Ct])}),Zt.prototype=Ht):(Zt=Te(function(Ct,Nt,bt,ie){A(Ct,Ht);var we=0,Rt=0,zt,jt,Wt;if(!U(Nt))Wt=w(Nt),jt=Wt*Et,zt=new Jt(jt);else if(Pe(Nt)){zt=Nt,Rt=D(bt,Et);var ue=Nt.byteLength;if(ie===void 0){if(ue%Et)throw new Xt(ee);if(jt=ue-Rt,jt<0)throw new Xt(ee)}else if(jt=P(ie)*Et,jt+Rt>ue)throw new Xt(ee);Wt=jt/Et}else return re(Nt)?et(Zt,Nt):h(k,Zt,Nt);for(xt(Ct,{buffer:zt,byteOffset:Rt,byteLength:jt,length:Wt,view:new me(zt)});we<Wt;)Ot(Ct,we++)}),W&&W(Zt,Mt),Ht=Zt.prototype=j(Yt)),Ht.constructor!==Zt&&R(Ht,"constructor",Zt),yt(Ht).TypedArrayConstructor=Zt,ae&&R(Ht,ae,Ft);var Pt=Zt!==te;He[Ft]=Zt,f({global:!0,constructor:!0,forced:Pt,sham:!ve},He),oe in Zt||R(Zt,oe,Et),oe in Ht||R(Ht,oe,Et),nt(Ft)}):x.exports=function(){}},function(x,E,r){var f=r(4),d=r(7),h=r(164),p=r(218).NATIVE_ARRAY_BUFFER_VIEWS,y=f.ArrayBuffer,T=f.Int8Array;x.exports=!p||!d(function(){T(1)})||!d(function(){new T(-1)})||!h(function($){new T,new T(null),new T(1.5),new T($)},!0)||d(function(){return new T(new y(2),1,void 0).length!==1})},function(x,E,r){var f=r(474),d=RangeError;x.exports=function(h,p){var y=f(h);if(y%p)throw new d("Wrong offset");return y}},function(x,E,r){var f=r(61),d=RangeError;x.exports=function(h){var p=f(h);if(p<0)throw new d("The argument can't be less than 0");return p}},function(x){var E=Math.round;x.exports=function(r){var f=E(r);return f<0?0:f>255?255:f&255}},function(x,E,r){var f=r(84),d=r(8),h=r(221),p=r(39),y=r(63),T=r(133),$=r(134),A=r(131),b=r(477),R=r(218).aTypedArrayConstructor,O=r(478);x.exports=function(w){var D=h(this),M=p(w),F=arguments.length,z=F>1?arguments[1]:void 0,B=z!==void 0,U=$(M),X,j,G,W,J,k,Q,nt;if(U&&!A(U))for(Q=T(M,U),nt=Q.next,M=[];!(k=d(nt,Q)).done;)M.push(k.value);for(B&&F>2&&(z=f(z,arguments[2])),j=y(M),G=new(R(D))(j),W=b(G),X=0;j>X;X++)J=B?z(M[X],X):M[X],G[X]=W?O(J):+J;return G}},function(x,E,r){var f=r(69);x.exports=function(d){var h=f(d);return h==="BigInt64Array"||h==="BigUint64Array"}},function(x,E,r){var f=r(19),d=TypeError;x.exports=function(h){var p=f(h,"number");if(typeof p=="number")throw new d("Can't convert number to bigint");return BigInt(p)}},function(x,E,r){var f=r(471);f("Float64",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var f=r(471);f("Int8",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var f=r(471);f("Int16",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var f=r(471);f("Int32",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var f=r(471);f("Uint8",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var f=r(471);f("Uint8",function(d){return function(p,y,T){return d(this,p,y,T)}},!0)},function(x,E,r){var f=r(471);f("Uint16",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var f=r(471);f("Uint32",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var f=r(218),d=r(63),h=r(61),p=f.aTypedArray,y=f.exportTypedArrayMethod;y("at",function($){var A=p(this),b=d(A),R=h($),O=R>=0?R:b+R;return O<0||O>=b?void 0:A[O]})},function(x,E,r){var f=r(14),d=r(218),h=r(144),p=f(h),y=d.aTypedArray,T=d.exportTypedArrayMethod;T("copyWithin",function(A,b){return p(y(this),A,b,arguments.length>2?arguments[2]:void 0)})},function(x,E,r){var f=r(218),d=r(83).every,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("every",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(218),d=r(149),h=r(478),p=r(69),y=r(8),T=r(14),$=r(7),A=f.aTypedArray,b=f.exportTypedArrayMethod,R=T("".slice),O=$(function(){var P=0;return new Int8Array(2).fill({valueOf:function(){return P++}}),P!==1});b("fill",function(w){var D=arguments.length;A(this);var M=R(p(this),0,3)==="Big"?h(w):+w;return y(d,this,M,D>1?arguments[1]:void 0,D>2?arguments[2]:void 0)},O)},function(x,E,r){var f=r(218),d=r(83).filter,h=r(492),p=f.aTypedArray,y=f.exportTypedArrayMethod;y("filter",function($){var A=d(p(this),$,arguments.length>1?arguments[1]:void 0);return h(this,A)})},function(x,E,r){var f=r(199),d=r(493);x.exports=function(h,p){return f(d(h),p)}},function(x,E,r){var f=r(218),d=r(220),h=f.aTypedArrayConstructor,p=f.getTypedArrayConstructor;x.exports=function(y){return h(d(y,p(y)))}},function(x,E,r){var f=r(218),d=r(83).find,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("find",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(218),d=r(83).findIndex,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("findIndex",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(218),d=r(154).findLast,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("findLast",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(218),d=r(154).findLastIndex,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("findLastIndex",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(218),d=r(83).forEach,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("forEach",function(T){d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(472),d=r(218).exportTypedArrayStaticMethod,h=r(476);d("from",h,f)},function(x,E,r){var f=r(218),d=r(59).includes,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("includes",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(218),d=r(59).indexOf,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("indexOf",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(4),d=r(7),h=r(14),p=r(218),y=r(168),T=r(33),$=T("iterator"),A=f.Uint8Array,b=h(y.values),R=h(y.keys),O=h(y.entries),P=p.aTypedArray,w=p.exportTypedArrayMethod,D=A&&A.prototype,M=!d(function(){D[$].call([1])}),F=!!D&&D.values&&D[$]===D.values&&D.values.name==="values",z=function(){return b(P(this))};w("entries",function(){return O(P(this))},M),w("keys",function(){return R(P(this))},M),w("values",z,M||!F,{name:"values"}),w($,z,M||!F,{name:"values"})},function(x,E,r){var f=r(218),d=r(14),h=f.aTypedArray,p=f.exportTypedArrayMethod,y=d([].join);p("join",function($){return y(h(this),$)})},function(x,E,r){var f=r(218),d=r(94),h=r(175),p=f.aTypedArray,y=f.exportTypedArrayMethod;y("lastIndexOf",function($){var A=arguments.length;return d(h,p(this),A>1?[$,arguments[1]]:[$])})},function(x,E,r){var f=r(218),d=r(83).map,h=r(493),p=f.aTypedArray,y=f.exportTypedArrayMethod;y("map",function($){return d(p(this),$,arguments.length>1?arguments[1]:void 0,function(A,b){return new(h(A))(b)})})},function(x,E,r){var f=r(218),d=r(472),h=f.aTypedArrayConstructor,p=f.exportTypedArrayStaticMethod;p("of",function(){for(var T=0,$=arguments.length,A=new(h(this))($);$>T;)A[T]=arguments[T++];return A},d)},function(x,E,r){var f=r(218),d=r(181).left,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("reduce",function(T){var $=arguments.length;return d(h(this),T,$,$>1?arguments[1]:void 0)})},function(x,E,r){var f=r(218),d=r(181).right,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("reduceRight",function(T){var $=arguments.length;return d(h(this),T,$,$>1?arguments[1]:void 0)})},function(x,E,r){var f=r(218),d=f.aTypedArray,h=f.exportTypedArrayMethod,p=Math.floor;h("reverse",function(){for(var T=this,$=d(T).length,A=p($/2),b=0,R;b<A;)R=T[b],T[b++]=T[--$],T[$]=R;return T})},function(x,E,r){var f=r(4),d=r(8),h=r(218),p=r(63),y=r(473),T=r(39),$=r(7),A=f.RangeError,b=f.Int8Array,R=b&&b.prototype,O=R&&R.set,P=h.aTypedArray,w=h.exportTypedArrayMethod,D=!$(function(){var F=new Uint8ClampedArray(2);return d(O,F,{length:1,0:3},1),F[1]!==3}),M=D&&h.NATIVE_ARRAY_BUFFER_VIEWS&&$(function(){var F=new b(2);return F.set(1),F.set("2",1),F[0]!==0||F[1]!==2});w("set",function(z){P(this);var B=y(arguments.length>1?arguments[1]:void 0,1),U=T(z);if(D)return d(O,this,U,B);var X=this.length,j=p(U),G=0;if(j+B>X)throw new A("Wrong length");for(;G<j;)this[B+G]=U[G++]},!D||M)},function(x,E,r){var f=r(218),d=r(493),h=r(7),p=r(76),y=f.aTypedArray,T=f.exportTypedArrayMethod,$=h(function(){new Int8Array(1).slice()});T("slice",function(b,R){for(var O=p(y(this),b,R),P=d(this),w=0,D=O.length,M=new P(D);D>w;)M[w]=O[w++];return M},$)},function(x,E,r){var f=r(218),d=r(83).some,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("some",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(4),d=r(85),h=r(7),p=r(30),y=r(189),T=r(218),$=r(190),A=r(191),b=r(27),R=r(192),O=T.aTypedArray,P=T.exportTypedArrayMethod,w=f.Uint16Array,D=w&&d(w.prototype.sort),M=!!D&&!(h(function(){D(new w(2),null)})&&h(function(){D(new w(2),{})})),F=!!D&&!h(function(){if(b)return b<74;if($)return $<67;if(A)return!0;if(R)return R<602;var B=new w(516),U=Array(516),X,j;for(X=0;X<516;X++)j=X%4,B[X]=515-X,U[X]=X-2*j+3;for(D(B,function(G,W){return(G/4|0)-(W/4|0)}),X=0;X<516;X++)if(B[X]!==U[X])return!0}),z=function(B){return function(U,X){return B!==void 0?+B(U,X)||0:X!==X?-1:U!==U?1:U===0&&X===0?1/U>0&&1/X<0?1:-1:U>X}};P("sort",function(U){return U!==void 0&&p(U),F?D(this,U):y(O(this),z(U))},!F||M)},function(x,E,r){var f=r(218),d=r(64),h=r(60),p=r(493),y=f.aTypedArray,T=f.exportTypedArrayMethod;T("subarray",function(A,b){var R=y(this),O=R.length,P=h(A,O),w=p(R);return new w(R.buffer,R.byteOffset+P*R.BYTES_PER_ELEMENT,d((b===void 0?O:h(b,O))-P))})},function(x,E,r){var f=r(4),d=r(94),h=r(218),p=r(7),y=r(76),T=f.Int8Array,$=h.aTypedArray,A=h.exportTypedArrayMethod,b=[].toLocaleString,R=!!T&&p(function(){b.call(new T(1))}),O=p(function(){return[1,2].toLocaleString()!==new T([1,2]).toLocaleString()})||!p(function(){T.prototype.toLocaleString.call([1,2])});A("toLocaleString",function(){return d(b,R?y($(this)):$(this),y(arguments))},O)},function(x,E,r){var f=r(197),d=r(218),h=d.aTypedArray,p=d.exportTypedArrayMethod,y=d.getTypedArrayConstructor;p("toReversed",function(){return f(h(this),y(this))})},function(x,E,r){var f=r(218),d=r(14),h=r(30),p=r(199),y=f.aTypedArray,T=f.getTypedArrayConstructor,$=f.exportTypedArrayMethod,A=d(f.TypedArrayPrototype.sort);$("toSorted",function(R){R!==void 0&&h(R);var O=y(this),P=p(T(O),O);return A(P,R)})},function(x,E,r){var f=r(218).exportTypedArrayMethod,d=r(7),h=r(4),p=r(14),y=h.Uint8Array,T=y&&y.prototype||{},$=[].toString,A=p([].join);d(function(){$.call({})})&&($=function(){return A(this)});var b=T.toString!==$;f("toString",$,b)},function(x,E,r){var f=r(206),d=r(218),h=r(477),p=r(61),y=r(478),T=d.aTypedArray,$=d.getTypedArrayConstructor,A=d.exportTypedArrayMethod,b=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(R){return R===8}}();A("with",function(R,O){var P=T(this),w=p(R),D=h(P)?y(O):+O;return f(P,$(P),w,D)},!b)},function(x,E,r){var f=r(3),d=r(14),h=r(68),p=String.fromCharCode,y=d("".charAt),T=d(/./.exec),$=d("".slice),A=/^[\da-f]{2}$/i,b=/^[\da-f]{4}$/i;f({global:!0},{unescape:function(O){for(var P=h(O),w="",D=P.length,M=0,F,z;M<D;){if(F=y(P,M++),F==="%"){if(y(P,M)==="u"){if(z=$(P,M+1,M+5),T(b,z)){w+=p(parseInt(z,16)),M+=5;continue}}else if(z=$(P,M,M+2),T(A,z)){w+=p(parseInt(z,16)),M+=2;continue}}w+=F}return w}})},function(x,E,r){r(522)},function(x,E,r){var f=r(259),d=r(4),h=r(14),p=r(210),y=r(256),T=r(255),$=r(523),A=r(20),b=r(51).enforce,R=r(7),O=r(52),P=Object,w=Array.isArray,D=P.isExtensible,M=P.isFrozen,F=P.isSealed,z=P.freeze,B=P.seal,U=!d.ActiveXObject&&"ActiveXObject"in d,X,j=function(q){return function(){return q(this,arguments.length?arguments[0]:void 0)}},G=T("WeakMap",j,$),W=G.prototype,J=h(W.set),k=function(){return f&&R(function(){var q=z([]);return J(new G,q,1),!M(q)})};if(O)if(U){X=$.getConstructor(j,"WeakMap",!0),y.enable();var Q=h(W.delete),nt=h(W.has),rt=h(W.get);p(W,{delete:function(q){if(A(q)&&!D(q)){var tt=b(this);return tt.frozen||(tt.frozen=new X),Q(this,q)||tt.frozen.delete(q)}return Q(this,q)},has:function(tt){if(A(tt)&&!D(tt)){var et=b(this);return et.frozen||(et.frozen=new X),nt(this,tt)||et.frozen.has(tt)}return nt(this,tt)},get:function(tt){if(A(tt)&&!D(tt)){var et=b(this);return et.frozen||(et.frozen=new X),nt(this,tt)?rt(this,tt):et.frozen.get(tt)}return rt(this,tt)},set:function(tt,et){if(A(tt)&&!D(tt)){var ot=b(this);ot.frozen||(ot.frozen=new X),nt(this,tt)?J(this,tt,et):ot.frozen.set(tt,et)}else J(this,tt,et);return this}})}else k()&&p(W,{set:function(tt,et){var ot;return w(tt)&&(M(tt)?ot=z:F(tt)&&(ot=B)),J(this,tt,et),ot&&ot(tt),this}})},function(x,E,r){var f=r(14),d=r(210),h=r(256).getWeakData,p=r(211),y=r(46),T=r(17),$=r(20),A=r(130),b=r(83),R=r(38),O=r(51),P=O.set,w=O.getterFor,D=b.find,M=b.findIndex,F=f([].splice),z=0,B=function(j){return j.frozen||(j.frozen=new U)},U=function(){this.entries=[]},X=function(j,G){return D(j.entries,function(W){return W[0]===G})};U.prototype={get:function(j){var G=X(this,j);if(G)return G[1]},has:function(j){return!!X(this,j)},set:function(j,G){var W=X(this,j);W?W[1]=G:this.entries.push([j,G])},delete:function(j){var G=M(this.entries,function(W){return W[0]===j});return~G&&F(this.entries,G,1),!!~G}},x.exports={getConstructor:function(j,G,W,J){var k=j(function(q,tt){p(q,Q),P(q,{type:G,id:z++,frozen:null}),T(tt)||A(tt,q[J],{that:q,AS_ENTRIES:W})}),Q=k.prototype,nt=w(G),rt=function(q,tt,et){var ot=nt(q),pt=h(y(tt),!0);return pt===!0?B(ot).set(tt,et):pt[ot.id]=et,q};return d(Q,{delete:function(q){var tt=nt(this);if(!$(q))return!1;var et=h(q);return et===!0?B(tt).delete(q):et&&R(et,tt.id)&&delete et[tt.id]},has:function(tt){var et=nt(this);if(!$(tt))return!1;var ot=h(tt);return ot===!0?B(et).has(tt):ot&&R(ot,et.id)}}),d(Q,W?{get:function(tt){var et=nt(this);if($(tt)){var ot=h(tt);if(ot===!0)return B(et).get(tt);if(ot)return ot[et.id]}},set:function(tt,et){return rt(this,tt,et)}}:{add:function(tt){return rt(this,tt,!0)}}),k}}},function(x,E,r){r(525)},function(x,E,r){var f=r(255),d=r(523);f("WeakSet",function(h){return function(){return h(this,arguments.length?arguments[0]:void 0)}},d)},function(x,E,r){var f=r(3),d=r(4),h=r(23),p=r(14),y=r(8),T=r(7),$=r(68),A=r(342),b=r(527).c2i,R=/[^\d+/a-z]/i,O=/[\t\n\f\r ]+/g,P=/[=]{1,2}$/,w=h("atob"),D=String.fromCharCode,M=p("".charAt),F=p("".replace),z=p(R.exec),B=!!w&&!T(function(){return w("aGk=")!=="hi"}),U=B&&T(function(){return w(" ")!==""}),X=B&&!T(function(){w("a")}),j=B&&!T(function(){w()}),G=B&&w.length!==1,W=!B||U||X||j||G;f({global:!0,bind:!0,enumerable:!0,forced:W},{atob:function(k){if(A(arguments.length,1),B&&!U&&!X)return y(w,d,k);var Q=F($(k),O,""),nt="",rt=0,q=0,tt,et,ot;if(Q.length%4===0&&(Q=F(Q,P,"")),tt=Q.length,tt%4===1||z(R,Q))throw new(h("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;rt<tt;)et=M(Q,rt++),ot=q%4?ot*64+b[et]:b[et],q++%4&&(nt+=D(255&ot>>(-2*q&6)));return nt}})},function(x){var E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=E+"+/",f=E+"-_",d=function(h){for(var p={},y=0;y<64;y++)p[h.charAt(y)]=y;return p};x.exports={i2c:r,c2i:d(r),i2cUrl:f,c2iUrl:d(f)}},function(x,E,r){var f=r(3),d=r(4),h=r(23),p=r(14),y=r(8),T=r(7),$=r(68),A=r(342),b=r(527).i2c,R=h("btoa"),O=p("".charAt),P=p("".charCodeAt),w=!!R&&!T(function(){return R("hi")!=="aGk="}),D=w&&!T(function(){R()}),M=w&&T(function(){return R(null)!=="bnVsbA=="}),F=w&&R.length!==1;f({global:!0,bind:!0,enumerable:!0,forced:!w||D||M||F},{btoa:function(B){if(A(arguments.length,1),w)return y(R,d,$(B));for(var U=$(B),X="",j=0,G=b,W,J;O(U,j)||(G="=",j%1);){if(J=P(U,j+=.75),J>255)throw new(h("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");W=W<<8|J,X+=O(G,63&W>>8-j%1*8)}return X}})},function(x,E,r){var f=r(4),d=r(530),h=r(531),p=r(160),y=r(43),T=function(A){if(A&&A.forEach!==p)try{y(A,"forEach",p)}catch(b){A.forEach=p}};for(var $ in d)d[$]&&T(f[$]&&f[$].prototype);T(h)},function(x){x.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(x,E,r){var f=r(42),d=f("span").classList,h=d&&d.constructor&&d.constructor.prototype;x.exports=h===Object.prototype?void 0:h},function(x,E,r){var f=r(4),d=r(530),h=r(531),p=r(168),y=r(43),T=r(82),$=r(33),A=$("iterator"),b=p.values,R=function(P,w){if(P){if(P[A]!==b)try{y(P,A,b)}catch(M){P[A]=b}if(T(P,w,!0),d[w]){for(var D in p)if(P[D]!==p[D])try{y(P,D,p[D])}catch(M){P[D]=p[D]}}}};for(var O in d)R(f[O]&&f[O].prototype,O);R(h,"DOMTokenList")},function(x,E,r){var f=r(3),d=r(23),h=r(231),p=r(7),y=r(71),T=r(11),$=r(44).f,A=r(47),b=r(77),R=r(38),O=r(211),P=r(46),w=r(125),D=r(119),M=r(534),F=r(122),z=r(51),B=r(6),U=r(36),X="DOMException",j="DATA_CLONE_ERR",G=d("Error"),W=d(X)||function(){try{var Mt=d("MessageChannel")||h("worker_threads").MessageChannel;new Mt().port1.postMessage(new WeakMap)}catch(Yt){if(Yt.name===j&&Yt.code===25)return Yt.constructor}}(),J=W&&W.prototype,k=G.prototype,Q=z.set,nt=z.getterFor(X),rt="stack"in new G(X),q=function(Mt){return R(M,Mt)&&M[Mt].m?M[Mt].c:0},tt=function(){O(this,et);var Yt=arguments.length,re=D(Yt<1?void 0:arguments[0]),oe=D(Yt<2?void 0:arguments[1],"Error"),ee=q(oe);if(Q(this,{type:X,name:oe,message:re,code:ee}),B||(this.name=oe,this.message=re,this.code=ee),rt){var fe=new G(re);fe.name=X,$(this,"stack",T(1,F(fe.stack,1)))}},et=tt.prototype=y(k),ot=function(Mt){return{enumerable:!0,configurable:!0,get:Mt}},pt=function(Mt){return ot(function(){return nt(this)[Mt]})};B&&(b(et,"code",pt("code")),b(et,"message",pt("message")),b(et,"name",pt("name"))),$(et,"constructor",T(1,tt));var ht=p(function(){return!(new W instanceof G)}),xt=ht||p(function(){return k.toString!==w||String(new W(1,2))!=="2: 1"}),yt=ht||p(function(){return new W(1,"DataCloneError").code!==25}),Ut=ht||W[j]!==25||J[j]!==25,Lt=U?xt||yt||Ut:ht;f({global:!0,constructor:!0,forced:Lt},{DOMException:Lt?tt:W});var Xt=d(X),Jt=Xt.prototype;xt&&(U||W===Xt)&&A(Jt,"toString",w),yt&&B&&W===Xt&&b(Jt,"code",ot(function(){return q(P(this).name)}));for(var Qt in M)if(R(M,Qt)){var me=M[Qt],ve=me.s,ae=T(6,me.c);R(Xt,ve)||$(Xt,ve,ae),R(Jt,ve)||$(Jt,ve,ae)}},function(x){x.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},function(x,E,r){var f=r(3),d=r(4),h=r(23),p=r(11),y=r(44).f,T=r(38),$=r(211),A=r(118),b=r(119),R=r(534),O=r(122),P=r(6),w=r(36),D="DOMException",M=h("Error"),F=h(D),z=function(){$(this,B);var tt=arguments.length,et=b(tt<1?void 0:arguments[0]),ot=b(tt<2?void 0:arguments[1],"Error"),pt=new F(et,ot),ht=new M(et);return ht.name=D,y(pt,"stack",p(1,O(ht.stack,1))),A(pt,this,z),pt},B=z.prototype=F.prototype,U="stack"in new M(D),X="stack"in new F(1,2),j=F&&P&&Object.getOwnPropertyDescriptor(d,D),G=!!j&&!(j.writable&&j.configurable),W=U&&!G&&!X;f({global:!0,constructor:!0,forced:w||W},{DOMException:W?z:F});var J=h(D),k=J.prototype;if(k.constructor!==J){w||y(k,"constructor",p(1,J));for(var Q in R)if(T(R,Q)){var nt=R[Q],rt=nt.s;T(J,rt)||y(J,rt,p(6,nt.c))}}},function(x,E,r){var f=r(23),d=r(82),h="DOMException";d(f(h),h)},function(x,E,r){r(538),r(539)},function(x,E,r){var f=r(3),d=r(4),h=r(341).clear;f({global:!0,bind:!0,enumerable:!0,forced:d.clearImmediate!==h},{clearImmediate:h})},function(x,E,r){var f=r(3),d=r(4),h=r(341).set,p=r(540),y=d.setImmediate?p(h,!1):h;f({global:!0,bind:!0,enumerable:!0,forced:d.setImmediate!==y},{setImmediate:y})},function(x,E,r){var f=r(4),d=r(94),h=r(21),p=r(183),y=r(28),T=r(76),$=r(342),A=f.Function,b=/MSIE .\./.test(y)||p==="BUN"&&function(){var R=f.Bun.version.split(".");return R.length<3||R[0]==="0"&&(R[1]<3||R[1]==="3"&&R[2]==="0")}();x.exports=function(R,O){var P=O?2:1;return b?function(w,D){var M=$(arguments.length,1)>P,F=h(w)?w:A(w),z=M?T(arguments,P):[],B=M?function(){d(F,this,z)}:F;return O?R(B,D):R(B)}:R}},function(x,E,r){var f=r(3),d=r(4),h=r(344),p=r(30),y=r(342),T=r(7),$=r(6),A=T(function(){return $&&Object.getOwnPropertyDescriptor(d,"queueMicrotask").value.length!==1});f({global:!0,enumerable:!0,dontCallGetSet:!0,forced:A},{queueMicrotask:function(R){y(arguments.length,1),h(p(R))}})},function(x,E,r){var f=r(3),d=r(4),h=r(77),p=r(6),y=TypeError,T=Object.defineProperty,$=d.self!==d;try{if(p){var A=Object.getOwnPropertyDescriptor(d,"self");($||!A||!A.get||!A.enumerable)&&h(d,"self",{get:function(){return d},set:function(R){if(this!==d)throw new y("Illegal invocation");T(d,"self",{value:R,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else f({global:!0,simple:!0,forced:$},{self:d})}catch(b){}},function(x,E,r){var f=r(36),d=r(3),h=r(4),p=r(23),y=r(14),T=r(7),$=r(40),A=r(21),b=r(89),R=r(17),O=r(20),P=r(22),w=r(130),D=r(46),M=r(69),F=r(38),z=r(141),B=r(43),U=r(63),X=r(342),j=r(382),G=r(262),W=r(399),J=r(401),k=r(230),Q=r(123),nt=r(232),rt=h.Object,q=h.Array,tt=h.Date,et=h.Error,ot=h.TypeError,pt=h.PerformanceMark,ht=p("DOMException"),xt=G.Map,yt=G.has,Ut=G.get,Lt=G.set,Xt=W.Set,Jt=W.add,Qt=W.has,me=p("Object","keys"),ve=y([].push),ae=y((!0).valueOf),Mt=y(1 .valueOf),Yt=y("".valueOf),re=y(tt.prototype.getTime),oe=$("structuredClone"),ee="DataCloneError",fe="Transferring",Pe=function(ut){return!T(function(){var Ot=new h.Set([7]),Pt=ut(Ot),Ct=ut(rt(7));return Pt===Ot||!Pt.has(7)||!O(Ct)||+Ct!=7})&&ut},Me=function(ut,Ot){return!T(function(){var Pt=new Ot,Ct=ut({a:Pt,b:Pt});return!(Ct&&Ct.a===Ct.b&&Ct.a instanceof Ot&&Ct.a.stack===Pt.stack)})},$e=function(ut){return!T(function(){var Ot=ut(new h.AggregateError([1],oe,{cause:3}));return Ot.name!=="AggregateError"||Ot.errors[0]!==1||Ot.message!==oe||Ot.cause!==3})},ce=h.structuredClone,Ae=f||!Me(ce,et)||!Me(ce,ht)||!$e(ce),Te=!ce&&Pe(function(ut){return new pt(oe,{detail:ut}).detail}),de=Pe(ce)||Te,Et=function(ut){throw new ht("Uncloneable type: "+ut,ee)},Ft=function(ut,Ot){throw new ht((Ot||"Cloning")+" of "+ut+" cannot be properly polyfilled in this engine",ee)},Tt=function(ut,Ot){return de||Ft(Ot),de(ut)},_t=function(){var ut;try{ut=new h.DataTransfer}catch(Ot){try{ut=new h.ClipboardEvent("").clipboardData}catch(Pt){}}return ut&&ut.items&&ut.files?ut:null},te=function(ut,Ot,Pt){if(yt(Ot,ut))return Ut(Ot,ut);var Ct=Pt||M(ut),Nt,bt,ie,we,Rt,zt;if(Ct==="SharedArrayBuffer")de?Nt=de(ut):Nt=ut;else{var jt=h.DataView;!jt&&!A(ut.slice)&&Ft("ArrayBuffer");try{if(A(ut.slice)&&!ut.resizable)Nt=ut.slice(0);else for(bt=ut.byteLength,ie=("maxByteLength"in ut)?{maxByteLength:ut.maxByteLength}:void 0,Nt=new ArrayBuffer(bt,ie),we=new jt(ut),Rt=new jt(Nt),zt=0;zt<bt;zt++)Rt.setUint8(zt,we.getUint8(zt))}catch(Wt){throw new ht("ArrayBuffer is detached",ee)}}return Lt(Ot,ut,Nt),Nt},Zt=function(ut,Ot,Pt,Ct,Nt){var bt=h[Ot];return O(bt)||Ft(Ot),new bt(te(ut.buffer,Nt),Pt,Ct)},Ht=function(ut,Ot){if(P(ut)&&Et("Symbol"),!O(ut))return ut;if(Ot){if(yt(Ot,ut))return Ut(Ot,ut)}else Ot=new xt;var Pt=M(ut),Ct,Nt,bt,ie,we,Rt,zt,jt;switch(Pt){case"Array":bt=q(U(ut));break;case"Object":bt={};break;case"Map":bt=new xt;break;case"Set":bt=new Xt;break;case"RegExp":bt=new RegExp(ut.source,j(ut));break;case"Error":switch(Nt=ut.name,Nt){case"AggregateError":bt=new(p(Nt))([]);break;case"EvalError":case"RangeError":case"ReferenceError":case"SuppressedError":case"SyntaxError":case"TypeError":case"URIError":bt=new(p(Nt));break;case"CompileError":case"LinkError":case"RuntimeError":bt=new(p("WebAssembly",Nt));break;default:bt=new et}break;case"DOMException":bt=new ht(ut.message,ut.name);break;case"ArrayBuffer":case"SharedArrayBuffer":bt=te(ut,Ot,Pt);break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float16Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":Rt=Pt==="DataView"?ut.byteLength:ut.length,bt=Zt(ut,Pt,ut.byteOffset,Rt,Ot);break;case"DOMQuad":try{bt=new DOMQuad(Ht(ut.p1,Ot),Ht(ut.p2,Ot),Ht(ut.p3,Ot),Ht(ut.p4,Ot))}catch(Wt){bt=Tt(ut,Pt)}break;case"File":if(de)try{bt=de(ut),M(bt)!==Pt&&(bt=void 0)}catch(Wt){}if(!bt)try{bt=new File([ut],ut.name,ut)}catch(Wt){}bt||Ft(Pt);break;case"FileList":if(ie=_t(),ie){for(we=0,Rt=U(ut);we<Rt;we++)ie.items.add(Ht(ut[we],Ot));bt=ie.files}else bt=Tt(ut,Pt);break;case"ImageData":try{bt=new ImageData(Ht(ut.data,Ot),ut.width,ut.height,{colorSpace:ut.colorSpace})}catch(Wt){bt=Tt(ut,Pt)}break;default:if(de)bt=de(ut);else switch(Pt){case"BigInt":bt=rt(ut.valueOf());break;case"Boolean":bt=rt(ae(ut));break;case"Number":bt=rt(Mt(ut));break;case"String":bt=rt(Yt(ut));break;case"Date":bt=new tt(re(ut));break;case"Blob":try{bt=ut.slice(0,ut.size,ut.type)}catch(Wt){Ft(Pt)}break;case"DOMPoint":case"DOMPointReadOnly":Ct=h[Pt];try{bt=Ct.fromPoint?Ct.fromPoint(ut):new Ct(ut.x,ut.y,ut.z,ut.w)}catch(Wt){Ft(Pt)}break;case"DOMRect":case"DOMRectReadOnly":Ct=h[Pt];try{bt=Ct.fromRect?Ct.fromRect(ut):new Ct(ut.x,ut.y,ut.width,ut.height)}catch(Wt){Ft(Pt)}break;case"DOMMatrix":case"DOMMatrixReadOnly":Ct=h[Pt];try{bt=Ct.fromMatrix?Ct.fromMatrix(ut):new Ct(ut)}catch(Wt){Ft(Pt)}break;case"AudioData":case"VideoFrame":A(ut.clone)||Ft(Pt);try{bt=ut.clone()}catch(Wt){Et(Pt)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":Ft(Pt);default:Et(Pt)}}switch(Lt(Ot,ut,bt),Pt){case"Array":case"Object":for(zt=me(ut),we=0,Rt=U(zt);we<Rt;we++)jt=zt[we],z(bt,jt,Ht(ut[jt],Ot));break;case"Map":ut.forEach(function(Wt,ue){Lt(bt,Ht(ue,Ot),Ht(Wt,Ot))});break;case"Set":ut.forEach(function(Wt){Jt(bt,Ht(Wt,Ot))});break;case"Error":B(bt,"message",Ht(ut.message,Ot)),F(ut,"cause")&&B(bt,"cause",Ht(ut.cause,Ot)),Nt==="AggregateError"?bt.errors=Ht(ut.errors,Ot):Nt==="SuppressedError"&&(bt.error=Ht(ut.error,Ot),bt.suppressed=Ht(ut.suppressed,Ot));case"DOMException":Q&&B(bt,"stack",Ht(ut.stack,Ot))}return bt},He=function(ut,Ot){if(!O(ut))throw new ot("Transfer option cannot be converted to a sequence");var Pt=[];w(ut,function(ue){ve(Pt,D(ue))});for(var Ct=0,Nt=U(Pt),bt=new Xt,ie,we,Rt,zt,jt,Wt;Ct<Nt;){if(ie=Pt[Ct++],we=M(ie),we==="ArrayBuffer"?Qt(bt,ie):yt(Ot,ie))throw new ht("Duplicate transferable",ee);if(we==="ArrayBuffer"){Jt(bt,ie);continue}if(nt)zt=ce(ie,{transfer:[ie]});else switch(we){case"ImageBitmap":Rt=h.OffscreenCanvas,b(Rt)||Ft(we,fe);try{jt=new Rt(ie.width,ie.height),Wt=jt.getContext("bitmaprenderer"),Wt.transferFromImageBitmap(ie),zt=jt.transferToImageBitmap()}catch(ue){}break;case"AudioData":case"VideoFrame":(!A(ie.clone)||!A(ie.close))&&Ft(we,fe);try{zt=ie.clone(),ie.close()}catch(ue){}break;case"MediaSourceHandle":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":Ft(we,fe)}if(zt===void 0)throw new ht("This object cannot be transferred: "+we,ee);Lt(Ot,ie,zt)}return bt},Ze=function(ut){J(ut,function(Ot){nt?de(Ot,{transfer:[Ot]}):A(Ot.transfer)?Ot.transfer():k?k(Ot):Ft("ArrayBuffer",fe)})};d({global:!0,enumerable:!0,sham:!nt,forced:Ae},{structuredClone:function(Ot){var Pt=X(arguments.length,1)>1&&!R(arguments[1])?D(arguments[1]):void 0,Ct=Pt?Pt.transfer:void 0,Nt,bt;Ct!==void 0&&(Nt=new xt,bt=He(Ct,Nt));var ie=Ht(Ot,Nt);return bt&&Ze(bt),ie}})},function(x,E,r){r(545),r(546)},function(x,E,r){var f=r(3),d=r(4),h=r(540),p=h(d.setInterval,!0);f({global:!0,bind:!0,forced:d.setInterval!==p},{setInterval:p})},function(x,E,r){var f=r(3),d=r(4),h=r(540),p=h(d.setTimeout,!0);f({global:!0,bind:!0,forced:d.setTimeout!==p},{setTimeout:p})},function(x,E,r){r(548)},function(x,E,r){r(428);var f=r(3),d=r(6),h=r(549),p=r(4),y=r(84),T=r(14),$=r(47),A=r(77),b=r(211),R=r(38),O=r(305),P=r(162),w=r(76),D=r(421).codeAt,M=r(550),F=r(68),z=r(82),B=r(342),U=r(551),X=r(51),j=X.set,G=X.getterFor("URL"),W=U.URLSearchParams,J=U.getState,k=p.URL,Q=p.TypeError,nt=p.parseInt,rt=Math.floor,q=Math.pow,tt=T("".charAt),et=T(/./.exec),ot=T([].join),pt=T(1 .toString),ht=T([].pop),xt=T([].push),yt=T("".replace),Ut=T([].shift),Lt=T("".split),Xt=T("".slice),Jt=T("".toLowerCase),Qt=T([].unshift),me="Invalid authority",ve="Invalid scheme",ae="Invalid host",Mt="Invalid port",Yt=/[a-z]/i,re=/[\d+-.a-z]/i,oe=/\d/,ee=/^0x/i,fe=/^[0-7]+$/,Pe=/^\d+$/,Me=/^[\da-f]+$/i,$e=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ce=/[\0\t\n\r #/:<>?@[\\\]^|]/,Ae=/^[\u0000-\u0020]+/,Te=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,de=/[\t\n\r]/g,Et,Ft=function(ft){var wt=Lt(ft,"."),vt,it,It,ye,qt,Oe,rn;if(wt.length&&wt[wt.length-1]===""&&wt.length--,vt=wt.length,vt>4)return ft;for(it=[],It=0;It<vt;It++){if(ye=wt[It],ye==="")return ft;if(qt=10,ye.length>1&&tt(ye,0)==="0"&&(qt=et(ee,ye)?16:8,ye=Xt(ye,qt===8?1:2)),ye==="")Oe=0;else{if(!et(qt===10?Pe:qt===8?fe:Me,ye))return ft;Oe=nt(ye,qt)}xt(it,Oe)}for(It=0;It<vt;It++)if(Oe=it[It],It===vt-1){if(Oe>=q(256,5-vt))return null}else if(Oe>255)return null;for(rn=ht(it),It=0;It<it.length;It++)rn+=it[It]*q(256,3-It);return rn},Tt=function(ft){var wt=[0,0,0,0,0,0,0,0],vt=0,it=null,It=0,ye,qt,Oe,rn,gn,mn,st,an=function(){return tt(ft,It)};if(an()===":"){if(tt(ft,1)!==":")return;It+=2,vt++,it=vt}for(;an();){if(vt===8)return;if(an()===":"){if(it!==null)return;It++,vt++,it=vt;continue}for(ye=qt=0;qt<4&&et(Me,an());)ye=ye*16+nt(an(),16),It++,qt++;if(an()==="."){if(qt===0||(It-=qt,vt>6))return;for(Oe=0;an();){if(rn=null,Oe>0)if(an()==="."&&Oe<4)It++;else return;if(!et(oe,an()))return;for(;et(oe,an());){if(gn=nt(an(),10),rn===null)rn=gn;else{if(rn===0)return;rn=rn*10+gn}if(rn>255)return;It++}wt[vt]=wt[vt]*256+rn,Oe++,(Oe===2||Oe===4)&&vt++}if(Oe!==4)return;break}else if(an()===":"){if(It++,!an())return}else if(an())return;wt[vt++]=ye}if(it!==null)for(mn=vt-it,vt=7;vt!==0&&mn>0;)st=wt[vt],wt[vt--]=wt[it+mn-1],wt[it+--mn]=st;else if(vt!==8)return;return wt},_t=function(ft){for(var wt=null,vt=1,it=null,It=0,ye=0;ye<8;ye++)ft[ye]!==0?(It>vt&&(wt=it,vt=It),it=null,It=0):(it===null&&(it=ye),++It);return It>vt?it:wt},te=function(ft){var wt,vt,it,It;if(typeof ft=="number"){for(wt=[],vt=0;vt<4;vt++)Qt(wt,ft%256),ft=rt(ft/256);return ot(wt,".")}if(typeof ft=="object"){for(wt="",it=_t(ft),vt=0;vt<8;vt++)It&&ft[vt]===0||(It&&(It=!1),it===vt?(wt+=vt?":":"::",It=!0):(wt+=pt(ft[vt],16),vt<7&&(wt+=":")));return"["+wt+"]"}return ft},Zt={},Ht=O({},Zt,{" ":1,'"':1,"<":1,">":1,"`":1}),He=O({},Ht,{"#":1,"?":1,"{":1,"}":1}),Ze=O({},He,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ut=function(ft,wt){var vt=D(ft,0);return vt>32&&vt<127&&!R(wt,ft)?ft:encodeURIComponent(ft)},Ot={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Pt=function(ft,wt){var vt;return ft.length===2&&et(Yt,tt(ft,0))&&((vt=tt(ft,1))===":"||!wt&&vt==="|")},Ct=function(ft){var wt;return ft.length>1&&Pt(Xt(ft,0,2))&&(ft.length===2||(wt=tt(ft,2))==="/"||wt==="\\"||wt==="?"||wt==="#")},Nt=function(ft){return ft==="."||Jt(ft)==="%2e"},bt=function(ft){return ft=Jt(ft),ft===".."||ft==="%2e."||ft===".%2e"||ft==="%2e%2e"},ie={},we={},Rt={},zt={},jt={},Wt={},ue={},be={},Ve={},ke={},nn={},pn={},Gn={},Yr={},Ya={},ga={},yr={},Vn={},Ha={},ir={},Wn={},va=function(ft,wt,vt){var it=F(ft),It,ye,qt;if(wt){if(ye=this.parse(it),ye)throw new Q(ye);this.searchParams=null}else{if(vt!==void 0&&(It=new va(vt,!0)),ye=this.parse(it,null,It),ye)throw new Q(ye);qt=J(new W),qt.bindURL(this),this.searchParams=qt}};va.prototype={type:"URL",parse:function(ft,wt,vt){var it=this,It=wt||ie,ye=0,qt="",Oe=!1,rn=!1,gn=!1,mn,st,an,Fn;for(ft=F(ft),wt||(it.scheme="",it.username="",it.password="",it.host=null,it.port=null,it.path=[],it.query=null,it.fragment=null,it.cannotBeABaseURL=!1,ft=yt(ft,Ae,""),ft=yt(ft,Te,"$1")),ft=yt(ft,de,""),mn=P(ft);ye<=mn.length;){switch(st=mn[ye],It){case ie:if(st&&et(Yt,st))qt+=Jt(st),It=we;else{if(wt)return ve;It=Rt;continue}break;case we:if(st&&(et(re,st)||st==="+"||st==="-"||st==="."))qt+=Jt(st);else if(st===":"){if(wt&&(it.isSpecial()!==R(Ot,qt)||qt==="file"&&(it.includesCredentials()||it.port!==null)||it.scheme==="file"&&!it.host))return;if(it.scheme=qt,wt){it.isSpecial()&&Ot[it.scheme]===it.port&&(it.port=null);return}qt="",it.scheme==="file"?It=Yr:it.isSpecial()&&vt&&vt.scheme===it.scheme?It=zt:it.isSpecial()?It=be:mn[ye+1]==="/"?(It=jt,ye++):(it.cannotBeABaseURL=!0,xt(it.path,""),It=Ha)}else{if(wt)return ve;qt="",It=Rt,ye=0;continue}break;case Rt:if(!vt||vt.cannotBeABaseURL&&st!=="#")return ve;if(vt.cannotBeABaseURL&&st==="#"){it.scheme=vt.scheme,it.path=w(vt.path),it.query=vt.query,it.fragment="",it.cannotBeABaseURL=!0,It=Wn;break}It=vt.scheme==="file"?Yr:Wt;continue;case zt:if(st==="/"&&mn[ye+1]==="/")It=Ve,ye++;else{It=Wt;continue}break;case jt:if(st==="/"){It=ke;break}else{It=Vn;continue}case Wt:if(it.scheme=vt.scheme,st===Et)it.username=vt.username,it.password=vt.password,it.host=vt.host,it.port=vt.port,it.path=w(vt.path),it.query=vt.query;else if(st==="/"||st==="\\"&&it.isSpecial())It=ue;else if(st==="?")it.username=vt.username,it.password=vt.password,it.host=vt.host,it.port=vt.port,it.path=w(vt.path),it.query="",It=ir;else if(st==="#")it.username=vt.username,it.password=vt.password,it.host=vt.host,it.port=vt.port,it.path=w(vt.path),it.query=vt.query,it.fragment="",It=Wn;else{it.username=vt.username,it.password=vt.password,it.host=vt.host,it.port=vt.port,it.path=w(vt.path),it.path.length--,It=Vn;continue}break;case ue:if(it.isSpecial()&&(st==="/"||st==="\\"))It=Ve;else if(st==="/")It=ke;else{it.username=vt.username,it.password=vt.password,it.host=vt.host,it.port=vt.port,It=Vn;continue}break;case be:if(It=Ve,st!=="/"||tt(qt,ye+1)!=="/")continue;ye++;break;case Ve:if(st!=="/"&&st!=="\\"){It=ke;continue}break;case ke:if(st==="@"){Oe&&(qt="%40"+qt),Oe=!0,an=P(qt);for(var en=0;en<an.length;en++){var Xn=an[en];if(Xn===":"&&!gn){gn=!0;continue}var On=ut(Xn,Ze);gn?it.password+=On:it.username+=On}qt=""}else if(st===Et||st==="/"||st==="?"||st==="#"||st==="\\"&&it.isSpecial()){if(Oe&&qt==="")return me;ye-=P(qt).length+1,qt="",It=nn}else qt+=st;break;case nn:case pn:if(wt&&it.scheme==="file"){It=ga;continue}else if(st===":"&&!rn){if(qt==="")return ae;if(Fn=it.parseHost(qt),Fn)return Fn;if(qt="",It=Gn,wt===pn)return}else if(st===Et||st==="/"||st==="?"||st==="#"||st==="\\"&&it.isSpecial()){if(it.isSpecial()&&qt==="")return ae;if(wt&&qt===""&&(it.includesCredentials()||it.port!==null))return;if(Fn=it.parseHost(qt),Fn)return Fn;if(qt="",It=yr,wt)return;continue}else st==="["?rn=!0:st==="]"&&(rn=!1),qt+=st;break;case Gn:if(et(oe,st))qt+=st;else if(st===Et||st==="/"||st==="?"||st==="#"||st==="\\"&&it.isSpecial()||wt){if(qt!==""){var Bn=nt(qt,10);if(Bn>65535)return Mt;it.port=it.isSpecial()&&Bn===Ot[it.scheme]?null:Bn,qt=""}if(wt)return;It=yr;continue}else return Mt;break;case Yr:if(it.scheme="file",st==="/"||st==="\\")It=Ya;else if(vt&&vt.scheme==="file")switch(st){case Et:it.host=vt.host,it.path=w(vt.path),it.query=vt.query;break;case"?":it.host=vt.host,it.path=w(vt.path),it.query="",It=ir;break;case"#":it.host=vt.host,it.path=w(vt.path),it.query=vt.query,it.fragment="",It=Wn;break;default:Ct(ot(w(mn,ye),""))||(it.host=vt.host,it.path=w(vt.path),it.shortenPath()),It=Vn;continue}else{It=Vn;continue}break;case Ya:if(st==="/"||st==="\\"){It=ga;break}vt&&vt.scheme==="file"&&!Ct(ot(w(mn,ye),""))&&(Pt(vt.path[0],!0)?xt(it.path,vt.path[0]):it.host=vt.host),It=Vn;continue;case ga:if(st===Et||st==="/"||st==="\\"||st==="?"||st==="#"){if(!wt&&Pt(qt))It=Vn;else if(qt===""){if(it.host="",wt)return;It=yr}else{if(Fn=it.parseHost(qt),Fn)return Fn;if(it.host==="localhost"&&(it.host=""),wt)return;qt="",It=yr}continue}else qt+=st;break;case yr:if(it.isSpecial()){if(It=Vn,st!=="/"&&st!=="\\")continue}else if(!wt&&st==="?")it.query="",It=ir;else if(!wt&&st==="#")it.fragment="",It=Wn;else if(st!==Et&&(It=Vn,st!=="/"))continue;break;case Vn:if(st===Et||st==="/"||st==="\\"&&it.isSpecial()||!wt&&(st==="?"||st==="#")){if(bt(qt)?(it.shortenPath(),st!=="/"&&!(st==="\\"&&it.isSpecial())&&xt(it.path,"")):Nt(qt)?st!=="/"&&!(st==="\\"&&it.isSpecial())&&xt(it.path,""):(it.scheme==="file"&&!it.path.length&&Pt(qt)&&(it.host&&(it.host=""),qt=tt(qt,0)+":"),xt(it.path,qt)),qt="",it.scheme==="file"&&(st===Et||st==="?"||st==="#"))for(;it.path.length>1&&it.path[0]==="";)Ut(it.path);st==="?"?(it.query="",It=ir):st==="#"&&(it.fragment="",It=Wn)}else qt+=ut(st,He);break;case Ha:st==="?"?(it.query="",It=ir):st==="#"?(it.fragment="",It=Wn):st!==Et&&(it.path[0]+=ut(st,Zt));break;case ir:!wt&&st==="#"?(it.fragment="",It=Wn):st!==Et&&(st==="'"&&it.isSpecial()?it.query+="%27":st==="#"?it.query+="%23":it.query+=ut(st,Zt));break;case Wn:st!==Et&&(it.fragment+=ut(st,Ht));break}ye++}},parseHost:function(ft){var wt,vt,it;if(tt(ft,0)==="["){if(tt(ft,ft.length-1)!=="]"||(wt=Tt(Xt(ft,1,-1)),!wt))return ae;this.host=wt}else if(this.isSpecial()){if(ft=M(ft),et($e,ft)||(wt=Ft(ft),wt===null))return ae;this.host=wt}else{if(et(ce,ft))return ae;for(wt="",vt=P(ft),it=0;it<vt.length;it++)wt+=ut(vt[it],Zt);this.host=wt}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||this.scheme==="file"},includesCredentials:function(){return this.username!==""||this.password!==""},isSpecial:function(){return R(Ot,this.scheme)},shortenPath:function(){var ft=this.path,wt=ft.length;wt&&(this.scheme!=="file"||wt!==1||!Pt(ft[0],!0))&&ft.length--},serialize:function(){var ft=this,wt=ft.scheme,vt=ft.username,it=ft.password,It=ft.host,ye=ft.port,qt=ft.path,Oe=ft.query,rn=ft.fragment,gn=wt+":";return It!==null?(gn+="//",ft.includesCredentials()&&(gn+=vt+(it?":"+it:"")+"@"),gn+=te(It),ye!==null&&(gn+=":"+ye)):wt==="file"&&(gn+="//"),gn+=ft.cannotBeABaseURL?qt[0]:qt.length?"/"+ot(qt,"/"):"",Oe!==null&&(gn+="?"+Oe),rn!==null&&(gn+="#"+rn),gn},setHref:function(ft){var wt=this.parse(ft);if(wt)throw new Q(wt);this.searchParams.update()},getOrigin:function(){var ft=this.scheme,wt=this.port;if(ft==="blob")try{return new xr(ft.path[0]).origin}catch(vt){return"null"}return ft==="file"||!this.isSpecial()?"null":ft+"://"+te(this.host)+(wt!==null?":"+wt:"")},getProtocol:function(){return this.scheme+":"},setProtocol:function(ft){this.parse(F(ft)+":",ie)},getUsername:function(){return this.username},setUsername:function(ft){var wt=P(F(ft));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var vt=0;vt<wt.length;vt++)this.username+=ut(wt[vt],Ze)}},getPassword:function(){return this.password},setPassword:function(ft){var wt=P(F(ft));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var vt=0;vt<wt.length;vt++)this.password+=ut(wt[vt],Ze)}},getHost:function(){var ft=this.host,wt=this.port;return ft===null?"":wt===null?te(ft):te(ft)+":"+wt},setHost:function(ft){this.cannotBeABaseURL||this.parse(ft,nn)},getHostname:function(){var ft=this.host;return ft===null?"":te(ft)},setHostname:function(ft){this.cannotBeABaseURL||this.parse(ft,pn)},getPort:function(){var ft=this.port;return ft===null?"":F(ft)},setPort:function(ft){this.cannotHaveUsernamePasswordPort()||(ft=F(ft),ft===""?this.port=null:this.parse(ft,Gn))},getPathname:function(){var ft=this.path;return this.cannotBeABaseURL?ft[0]:ft.length?"/"+ot(ft,"/"):""},setPathname:function(ft){this.cannotBeABaseURL||(this.path=[],this.parse(ft,yr))},getSearch:function(){var ft=this.query;return ft?"?"+ft:""},setSearch:function(ft){ft=F(ft),ft===""?this.query=null:(tt(ft,0)==="?"&&(ft=Xt(ft,1)),this.query="",this.parse(ft,ir)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var ft=this.fragment;return ft?"#"+ft:""},setHash:function(ft){if(ft=F(ft),ft===""){this.fragment=null;return}tt(ft,0)==="#"&&(ft=Xt(ft,1)),this.fragment="",this.parse(ft,Wn)},update:function(){this.query=this.searchParams.serialize()||null}};var xr=function(wt){var vt=b(this,Tn),it=B(arguments.length,1)>1?arguments[1]:void 0,It=j(vt,new va(wt,!1,it));d||(vt.href=It.serialize(),vt.origin=It.getOrigin(),vt.protocol=It.getProtocol(),vt.username=It.getUsername(),vt.password=It.getPassword(),vt.host=It.getHost(),vt.hostname=It.getHostname(),vt.port=It.getPort(),vt.pathname=It.getPathname(),vt.search=It.getSearch(),vt.searchParams=It.getSearchParams(),vt.hash=It.getHash())},Tn=xr.prototype,wn=function(ft,wt){return{get:function(){return G(this)[ft]()},set:wt&&function(vt){return G(this)[wt](vt)},configurable:!0,enumerable:!0}};if(d&&(A(Tn,"href",wn("serialize","setHref")),A(Tn,"origin",wn("getOrigin")),A(Tn,"protocol",wn("getProtocol","setProtocol")),A(Tn,"username",wn("getUsername","setUsername")),A(Tn,"password",wn("getPassword","setPassword")),A(Tn,"host",wn("getHost","setHost")),A(Tn,"hostname",wn("getHostname","setHostname")),A(Tn,"port",wn("getPort","setPort")),A(Tn,"pathname",wn("getPathname","setPathname")),A(Tn,"search",wn("getSearch","setSearch")),A(Tn,"searchParams",wn("getSearchParams")),A(Tn,"hash",wn("getHash","setHash"))),$(Tn,"toJSON",function(){return G(this).serialize()},{enumerable:!0}),$(Tn,"toString",function(){return G(this).serialize()},{enumerable:!0}),k){var Wa=k.createObjectURL,Ka=k.revokeObjectURL;Wa&&$(xr,"createObjectURL",y(Wa,k)),Ka&&$(xr,"revokeObjectURL",y(Ka,k))}z(xr,"URL"),f({global:!0,constructor:!0,forced:!h,sham:!d},{URL:xr})},function(x,E,r){var f=r(7),d=r(33),h=r(6),p=r(36),y=d("iterator");x.exports=!f(function(){var T=new URL("b?a=1&b=2&c=3","https://a"),$=T.searchParams,A=new URLSearchParams("a=1&a=2&b=3"),b="";return T.pathname="c%20d",$.forEach(function(R,O){$.delete("b"),b+=O+R}),A.delete("a",2),A.delete("b",void 0),p&&(!T.toJSON||!A.has("a",1)||A.has("a",2)||!A.has("a",void 0)||A.has("b"))||!$.size&&(p||!h)||!$.sort||T.href!=="https://a/c%20d?a=1&c=3"||$.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!$[y]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("https://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("https://a#\u0431").hash!=="#%D0%B1"||b!=="a1c3"||new URL("https://x",void 0).host!=="x"})},function(x,E,r){var f=r(14),d=2147483647,h=36,p=1,y=26,T=38,$=700,A=72,b=128,R="-",O=/[^\0-\u007E]/,P=/[.\u3002\uFF0E\uFF61]/g,w="Overflow: input needs wider integers to process",D=h-p,M=RangeError,F=f(P.exec),z=Math.floor,B=String.fromCharCode,U=f("".charCodeAt),X=f([].join),j=f([].push),G=f("".replace),W=f("".split),J=f("".toLowerCase),k=function(q){for(var tt=[],et=0,ot=q.length;et<ot;){var pt=U(q,et++);if(pt>=55296&&pt<=56319&&et<ot){var ht=U(q,et++);(ht&64512)===56320?j(tt,((pt&1023)<<10)+(ht&1023)+65536):(j(tt,pt),et--)}else j(tt,pt)}return tt},Q=function(q){return q+22+75*(q<26)},nt=function(q,tt,et){var ot=0;for(q=et?z(q/$):q>>1,q+=z(q/tt);q>D*y>>1;)q=z(q/D),ot+=h;return z(ot+(D+1)*q/(q+T))},rt=function(q){var tt=[];q=k(q);var et=q.length,ot=b,pt=0,ht=A,xt,yt;for(xt=0;xt<q.length;xt++)yt=q[xt],yt<128&&j(tt,B(yt));var Ut=tt.length,Lt=Ut;for(Ut&&j(tt,R);Lt<et;){var Xt=d;for(xt=0;xt<q.length;xt++)yt=q[xt],yt>=ot&&yt<Xt&&(Xt=yt);var Jt=Lt+1;if(Xt-ot>z((d-pt)/Jt))throw new M(w);for(pt+=(Xt-ot)*Jt,ot=Xt,xt=0;xt<q.length;xt++){if(yt=q[xt],yt<ot&&++pt>d)throw new M(w);if(yt===ot){for(var Qt=pt,me=h;;){var ve=me<=ht?p:me>=ht+y?y:me-ht;if(Qt<ve)break;var ae=Qt-ve,Mt=h-ve;j(tt,B(Q(ve+ae%Mt))),Qt=z(ae/Mt),me+=h}j(tt,B(Q(Qt))),ht=nt(pt,Jt,Lt===Ut),pt=0,Lt++}}pt++,ot++}return X(tt,"")};x.exports=function(q){var tt=[],et=W(G(J(q),P,"."),"."),ot,pt;for(ot=0;ot<et.length;ot++)pt=et[ot],j(tt,F(O,pt)?"xn--"+rt(pt):pt);return X(tt,".")}},function(x,E,r){r(168),r(425);var f=r(3),d=r(4),h=r(345),p=r(23),y=r(8),T=r(14),$=r(6),A=r(549),b=r(47),R=r(77),O=r(210),P=r(82),w=r(170),D=r(51),M=r(211),F=r(21),z=r(38),B=r(84),U=r(69),X=r(46),j=r(20),G=r(68),W=r(71),J=r(11),k=r(133),Q=r(134),nt=r(172),rt=r(342),q=r(33),tt=r(189),et=q("iterator"),ot="URLSearchParams",pt=ot+"Iterator",ht=D.set,xt=D.getterFor(ot),yt=D.getterFor(pt),Ut=h("fetch"),Lt=h("Request"),Xt=h("Headers"),Jt=Lt&&Lt.prototype,Qt=Xt&&Xt.prototype,me=d.TypeError,ve=d.encodeURIComponent,ae=String.fromCharCode,Mt=p("String","fromCodePoint"),Yt=parseInt,re=T("".charAt),oe=T([].join),ee=T([].push),fe=T("".replace),Pe=T([].shift),Me=T([].splice),$e=T("".split),ce=T("".slice),Ae=T(/./.exec),Te=/\+/g,de="\uFFFD",Et=/^[0-9a-f]+$/i,Ft=function(Rt,zt){var jt=ce(Rt,zt,zt+2);return Ae(Et,jt)?Yt(jt,16):NaN},Tt=function(Rt){for(var zt=0,jt=128;jt>0&&Rt&jt;jt>>=1)zt++;return zt},_t=function(Rt){var zt=null;switch(Rt.length){case 1:zt=Rt[0];break;case 2:zt=(Rt[0]&31)<<6|Rt[1]&63;break;case 3:zt=(Rt[0]&15)<<12|(Rt[1]&63)<<6|Rt[2]&63;break;case 4:zt=(Rt[0]&7)<<18|(Rt[1]&63)<<12|(Rt[2]&63)<<6|Rt[3]&63;break}return zt>1114111?null:zt},te=function(Rt){Rt=fe(Rt,Te," ");for(var zt=Rt.length,jt="",Wt=0;Wt<zt;){var ue=re(Rt,Wt);if(ue==="%"){if(re(Rt,Wt+1)==="%"||Wt+3>zt){jt+="%",Wt++;continue}var be=Ft(Rt,Wt+1);if(be!==be){jt+=ue,Wt++;continue}Wt+=2;var Ve=Tt(be);if(Ve===0)ue=ae(be);else{if(Ve===1||Ve>4){jt+=de,Wt++;continue}for(var ke=[be],nn=1;nn<Ve&&(Wt++,!(Wt+3>zt||re(Rt,Wt)!=="%"));){var pn=Ft(Rt,Wt+1);if(pn!==pn){Wt+=3;break}if(pn>191||pn<128)break;ee(ke,pn),Wt+=2,nn++}if(ke.length!==Ve){jt+=de;continue}var Gn=_t(ke);Gn===null?jt+=de:ue=Mt(Gn)}}jt+=ue,Wt++}return jt},Zt=/[!'()~]|%20/g,Ht={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},He=function(Rt){return Ht[Rt]},Ze=function(Rt){return fe(ve(Rt),Zt,He)},ut=w(function(zt,jt){ht(this,{type:pt,target:xt(zt).entries,index:0,kind:jt})},ot,function(){var zt=yt(this),jt=zt.target,Wt=zt.index++;if(!jt||Wt>=jt.length)return zt.target=null,nt(void 0,!0);var ue=jt[Wt];switch(zt.kind){case"keys":return nt(ue.key,!1);case"values":return nt(ue.value,!1)}return nt([ue.key,ue.value],!1)},!0),Ot=function(Rt){this.entries=[],this.url=null,Rt!==void 0&&(j(Rt)?this.parseObject(Rt):this.parseQuery(typeof Rt=="string"?re(Rt,0)==="?"?ce(Rt,1):Rt:G(Rt)))};Ot.prototype={type:ot,bindURL:function(Rt){this.url=Rt,this.update()},parseObject:function(Rt){var zt=this.entries,jt=Q(Rt),Wt,ue,be,Ve,ke,nn,pn;if(jt)for(Wt=k(Rt,jt),ue=Wt.next;!(be=y(ue,Wt)).done;){if(Ve=k(X(be.value)),ke=Ve.next,(nn=y(ke,Ve)).done||(pn=y(ke,Ve)).done||!y(ke,Ve).done)throw new me("Expected sequence with length 2");ee(zt,{key:G(nn.value),value:G(pn.value)})}else for(var Gn in Rt)z(Rt,Gn)&&ee(zt,{key:Gn,value:G(Rt[Gn])})},parseQuery:function(Rt){if(Rt)for(var zt=this.entries,jt=$e(Rt,"&"),Wt=0,ue,be;Wt<jt.length;)ue=jt[Wt++],ue.length&&(be=$e(ue,"="),ee(zt,{key:te(Pe(be)),value:te(oe(be,"="))}))},serialize:function(){for(var Rt=this.entries,zt=[],jt=0,Wt;jt<Rt.length;)Wt=Rt[jt++],ee(zt,Ze(Wt.key)+"="+Ze(Wt.value));return oe(zt,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Pt=function(){M(this,Ct);var zt=arguments.length>0?arguments[0]:void 0,jt=ht(this,new Ot(zt));$||(this.size=jt.entries.length)},Ct=Pt.prototype;if(O(Ct,{append:function(zt,jt){var Wt=xt(this);rt(arguments.length,2),ee(Wt.entries,{key:G(zt),value:G(jt)}),$||this.length++,Wt.updateURL()},delete:function(Rt){for(var zt=xt(this),jt=rt(arguments.length,1),Wt=zt.entries,ue=G(Rt),be=jt<2?void 0:arguments[1],Ve=be===void 0?be:G(be),ke=0;ke<Wt.length;){var nn=Wt[ke];if(nn.key===ue&&(Ve===void 0||nn.value===Ve)){if(Me(Wt,ke,1),Ve!==void 0)break}else ke++}$||(this.size=Wt.length),zt.updateURL()},get:function(zt){var jt=xt(this).entries;rt(arguments.length,1);for(var Wt=G(zt),ue=0;ue<jt.length;ue++)if(jt[ue].key===Wt)return jt[ue].value;return null},getAll:function(zt){var jt=xt(this).entries;rt(arguments.length,1);for(var Wt=G(zt),ue=[],be=0;be<jt.length;be++)jt[be].key===Wt&&ee(ue,jt[be].value);return ue},has:function(zt){for(var jt=xt(this).entries,Wt=rt(arguments.length,1),ue=G(zt),be=Wt<2?void 0:arguments[1],Ve=be===void 0?be:G(be),ke=0;ke<jt.length;){var nn=jt[ke++];if(nn.key===ue&&(Ve===void 0||nn.value===Ve))return!0}return!1},set:function(zt,jt){var Wt=xt(this);rt(arguments.length,1);for(var ue=Wt.entries,be=!1,Ve=G(zt),ke=G(jt),nn=0,pn;nn<ue.length;nn++)pn=ue[nn],pn.key===Ve&&(be?Me(ue,nn--,1):(be=!0,pn.value=ke));be||ee(ue,{key:Ve,value:ke}),$||(this.size=ue.length),Wt.updateURL()},sort:function(){var zt=xt(this);tt(zt.entries,function(jt,Wt){return jt.key>Wt.key?1:-1}),zt.updateURL()},forEach:function(zt){for(var jt=xt(this).entries,Wt=B(zt,arguments.length>1?arguments[1]:void 0),ue=0,be;ue<jt.length;)be=jt[ue++],Wt(be.value,be.key,this)},keys:function(){return new ut(this,"keys")},values:function(){return new ut(this,"values")},entries:function(){return new ut(this,"entries")}},{enumerable:!0}),b(Ct,et,Ct.entries,{name:"entries"}),b(Ct,"toString",function(){return xt(this).serialize()},{enumerable:!0}),$&&R(Ct,"size",{get:function(){return xt(this).entries.length},configurable:!0,enumerable:!0}),P(Pt,ot),f({global:!0,constructor:!0,forced:!A},{URLSearchParams:Pt}),!A&&F(Xt)){var Nt=T(Qt.has),bt=T(Qt.set),ie=function(Rt){if(j(Rt)){var zt=Rt.body,jt;if(U(zt)===ot)return jt=Rt.headers?new Xt(Rt.headers):new Xt,Nt(jt,"content-type")||bt(jt,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),W(Rt,{body:J(0,G(zt)),headers:J(0,jt)})}return Rt};if(F(Ut)&&f({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(zt){return Ut(zt,arguments.length>1?ie(arguments[1]):{})}}),F(Lt)){var we=function(zt){return M(this,Jt),new Lt(zt,arguments.length>1?ie(arguments[1]):{})};Jt.constructor=we,we.prototype=Jt,f({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:we})}}x.exports={URLSearchParams:Pt,getState:xt}},function(x,E,r){var f=r(3),d=r(23),h=r(7),p=r(342),y=r(68),T=r(549),$=d("URL"),A=T&&h(function(){$.canParse()}),b=h(function(){return $.canParse.length!==1});f({target:"URL",stat:!0,forced:!A||b},{canParse:function(O){var P=p(arguments.length,1),w=y(O),D=P<2||arguments[1]===void 0?void 0:y(arguments[1]);try{return!!new $(w,D)}catch(M){return!1}}})},function(x,E,r){var f=r(3),d=r(23),h=r(342),p=r(68),y=r(549),T=d("URL");f({target:"URL",stat:!0,forced:!y},{parse:function(A){var b=h(arguments.length,1),R=p(A),O=b<2||arguments[1]===void 0?void 0:p(arguments[1]);try{return new T(R,O)}catch(P){return null}}})},function(x,E,r){var f=r(3),d=r(8);f({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return d(URL.prototype.toString,this)}})},function(x,E,r){r(551)},function(x,E,r){var f=r(47),d=r(14),h=r(68),p=r(342),y=URLSearchParams,T=y.prototype,$=d(T.append),A=d(T.delete),b=d(T.forEach),R=d([].push),O=new y("a=1&a=2&b=3");O.delete("a",1),O.delete("b",void 0),O+""!="a=2"&&f(T,"delete",function(P){var w=arguments.length,D=w<2?void 0:arguments[1];if(w&&D===void 0)return A(this,P);var M=[];b(this,function(W,J){R(M,{key:J,value:W})}),p(w,1);for(var F=h(P),z=h(D),B=0,U=0,X=!1,j=M.length,G;B<j;)G=M[B++],X||G.key===F?(X=!0,A(this,G.key)):U++;for(;U<j;)G=M[U++],G.key===F&&G.value===z||$(this,G.key,G.value)},{enumerable:!0,unsafe:!0})},function(x,E,r){var f=r(47),d=r(14),h=r(68),p=r(342),y=URLSearchParams,T=y.prototype,$=d(T.getAll),A=d(T.has),b=new y("a=1");(b.has("a",2)||!b.has("a",void 0))&&f(T,"has",function(O){var P=arguments.length,w=P<2?void 0:arguments[1];if(P&&w===void 0)return A(this,O);var D=$(this,O);p(P,1);for(var M=h(w),F=0;F<D.length;)if(D[F++]===M)return!0;return!1},{enumerable:!0,unsafe:!0})},function(x,E,r){var f=r(6),d=r(14),h=r(77),p=URLSearchParams.prototype,y=d(p.forEach);f&&!("size"in p)&&h(p,"size",{get:function(){var $=0;return y(this,function(){$++}),$},configurable:!0,enumerable:!0})},function(x,E,r){r.r(E),r.d(E,{bb:function(){return bf},default:function(){return bf}});var f={};r.r(f),r.d(f,{selection:function(){return gu},subchart:function(){return vu},zoom:function(){return pu}});var d={};r.r(d),r.d(d,{area:function(){return rf},areaLineRange:function(){return af},areaSpline:function(){return of},areaSplineRange:function(){return lf},areaStep:function(){return cf},areaStepRange:function(){return sf},bar:function(){return yf},bubble:function(){return xf},candlestick:function(){return Tf},donut:function(){return hf},funnel:function(){return Sf},gauge:function(){return gf},line:function(){return uf},pie:function(){return vf},polar:function(){return pf},radar:function(){return mf},scatter:function(){return $f},spline:function(){return ff},step:function(){return df},treemap:function(){return Af}});function h(){}function p(t){return t==null?h:function(){return this.querySelector(t)}}function y(t){typeof t!="function"&&(t=p(t));for(var e=this._groups,n=e.length,a=new Array(n),i=0;i<n;++i)for(var s=e[i],o=s.length,l=a[i]=new Array(o),c,u,g=0;g<o;++g)(c=s[g])&&(u=t.call(c,c.__data__,g,s))&&("__data__"in c&&(u.__data__=c.__data__),l[g]=u);return new Oe(a,this._parents)}function T(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function $(){return[]}function A(t){return t==null?$:function(){return this.querySelectorAll(t)}}function b(t){return function(){return T(t.apply(this,arguments))}}function R(t){typeof t=="function"?t=b(t):t=A(t);for(var e=this._groups,n=e.length,a=[],i=[],s=0;s<n;++s)for(var o=e[s],l=o.length,c,u=0;u<l;++u)(c=o[u])&&(a.push(t.call(c,c.__data__,u,o)),i.push(c));return new Oe(a,i)}function O(t){return function(){return this.matches(t)}}function P(t){return function(e){return e.matches(t)}}var w=Array.prototype.find;function D(t){return function(){return w.call(this.children,t)}}function M(){return this.firstElementChild}function F(t){return this.select(t==null?M:D(typeof t=="function"?t:P(t)))}var z=Array.prototype.filter;function B(){return Array.from(this.children)}function U(t){return function(){return z.call(this.children,t)}}function X(t){return this.selectAll(t==null?B:U(typeof t=="function"?t:P(t)))}function j(t){typeof t!="function"&&(t=O(t));for(var e=this._groups,n=e.length,a=new Array(n),i=0;i<n;++i)for(var s=e[i],o=s.length,l=a[i]=[],c,u=0;u<o;++u)(c=s[u])&&t.call(c,c.__data__,u,s)&&l.push(c);return new Oe(a,this._parents)}function G(t){return new Array(t.length)}function W(){return new Oe(this._enter||this._groups.map(G),this._parents)}function J(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}J.prototype={constructor:J,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)}};function k(t){return function(){return t}}function Q(t,e,n,a,i,s){for(var o=0,l,c=e.length,u=s.length;o<u;++o)(l=e[o])?(l.__data__=s[o],a[o]=l):n[o]=new J(t,s[o]);for(;o<c;++o)(l=e[o])&&(i[o]=l)}function nt(t,e,n,a,i,s,o){var l,c,u=new Map,g=e.length,v=s.length,m=new Array(g),S;for(l=0;l<g;++l)(c=e[l])&&(m[l]=S=o.call(c,c.__data__,l,e)+"",u.has(S)?i[l]=c:u.set(S,c));for(l=0;l<v;++l)S=o.call(t,s[l],l,s)+"",(c=u.get(S))?(a[l]=c,c.__data__=s[l],u.delete(S)):n[l]=new J(t,s[l]);for(l=0;l<g;++l)(c=e[l])&&u.get(m[l])===c&&(i[l]=c)}function rt(t){return t.__data__}function q(t,e){if(!arguments.length)return Array.from(this,rt);var n=e?nt:Q,a=this._parents,i=this._groups;typeof t!="function"&&(t=k(t));for(var s=i.length,o=new Array(s),l=new Array(s),c=new Array(s),u=0;u<s;++u){var g=a[u],v=i[u],m=v.length,S=tt(t.call(g,g&&g.__data__,u,a)),I=S.length,N=l[u]=new Array(I),L=o[u]=new Array(I),C=c[u]=new Array(m);n(g,v,N,L,C,S,e);for(var V=0,H=0,Y,_;V<I;++V)if(Y=N[V]){for(V>=H&&(H=V+1);!(_=L[H])&&++H<I;);Y._next=_||null}}return o=new Oe(o,a),o._enter=l,o._exit=c,o}function tt(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function et(){return new Oe(this._exit||this._groups.map(G),this._parents)}function ot(t,e,n){var a=this.enter(),i=this,s=this.exit();return typeof t=="function"?(a=t(a),a&&(a=a.selection())):a=a.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),n==null?s.remove():n(s),a&&i?a.merge(i).order():i}function pt(t){for(var e=t.selection?t.selection():t,n=this._groups,a=e._groups,i=n.length,s=a.length,o=Math.min(i,s),l=new Array(i),c=0;c<o;++c)for(var u=n[c],g=a[c],v=u.length,m=l[c]=new Array(v),S,I=0;I<v;++I)(S=u[I]||g[I])&&(m[I]=S);for(;c<i;++c)l[c]=n[c];return new Oe(l,this._parents)}function ht(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var a=t[e],i=a.length-1,s=a[i],o;--i>=0;)(o=a[i])&&(s&&o.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(o,s),s=o);return this}function xt(t){t||(t=yt);function e(v,m){return v&&m?t(v.__data__,m.__data__):!v-!m}for(var n=this._groups,a=n.length,i=new Array(a),s=0;s<a;++s){for(var o=n[s],l=o.length,c=i[s]=new Array(l),u,g=0;g<l;++g)(u=o[g])&&(c[g]=u);c.sort(e)}return new Oe(i,this._parents).order()}function yt(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Ut(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Lt(){return Array.from(this)}function Xt(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var a=t[e],i=0,s=a.length;i<s;++i){var o=a[i];if(o)return o}return null}function Jt(){let t=0;for(const e of this)++t;return t}function Qt(){return!this.node()}function me(t){for(var e=this._groups,n=0,a=e.length;n<a;++n)for(var i=e[n],s=0,o=i.length,l;s<o;++s)(l=i[s])&&t.call(l,l.__data__,s,i);return this}var ve="http://www.w3.org/1999/xhtml",ae={svg:"http://www.w3.org/2000/svg",xhtml:ve,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Mt(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),ae.hasOwnProperty(e)?{space:ae[e],local:t}:t}function Yt(t){return function(){this.removeAttribute(t)}}function re(t){return function(){this.removeAttributeNS(t.space,t.local)}}function oe(t,e){return function(){this.setAttribute(t,e)}}function ee(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function fe(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function Pe(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Me(t,e){var n=Mt(t);if(arguments.length<2){var a=this.node();return n.local?a.getAttributeNS(n.space,n.local):a.getAttribute(n)}return this.each((e==null?n.local?re:Yt:typeof e=="function"?n.local?Pe:fe:n.local?ee:oe)(n,e))}function $e(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function ce(t){return function(){this.style.removeProperty(t)}}function Ae(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Te(t,e,n){return function(){var a=e.apply(this,arguments);a==null?this.style.removeProperty(t):this.style.setProperty(t,a,n)}}function de(t,e,n){return arguments.length>1?this.each((e==null?ce:typeof e=="function"?Te:Ae)(t,e,n==null?"":n)):Et(this.node(),t)}function Et(t,e){return t.style.getPropertyValue(e)||$e(t).getComputedStyle(t,null).getPropertyValue(e)}function Ft(t){return function(){delete this[t]}}function Tt(t,e){return function(){this[t]=e}}function _t(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function te(t,e){return arguments.length>1?this.each((e==null?Ft:typeof e=="function"?_t:Tt)(t,e)):this.node()[t]}function Zt(t){return t.trim().split(/^|\s+/)}function Ht(t){return t.classList||new He(t)}function He(t){this._node=t,this._names=Zt(t.getAttribute("class")||"")}He.prototype={add:function(t){var e=this._names.indexOf(t);e<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}};function Ze(t,e){for(var n=Ht(t),a=-1,i=e.length;++a<i;)n.add(e[a])}function ut(t,e){for(var n=Ht(t),a=-1,i=e.length;++a<i;)n.remove(e[a])}function Ot(t){return function(){Ze(this,t)}}function Pt(t){return function(){ut(this,t)}}function Ct(t,e){return function(){(e.apply(this,arguments)?Ze:ut)(this,t)}}function Nt(t,e){var n=Zt(t+"");if(arguments.length<2){for(var a=Ht(this.node()),i=-1,s=n.length;++i<s;)if(!a.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?Ct:e?Ot:Pt)(n,e))}function bt(){this.textContent=""}function ie(t){return function(){this.textContent=t}}function we(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function Rt(t){return arguments.length?this.each(t==null?bt:(typeof t=="function"?we:ie)(t)):this.node().textContent}function zt(){this.innerHTML=""}function jt(t){return function(){this.innerHTML=t}}function Wt(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function ue(t){return arguments.length?this.each(t==null?zt:(typeof t=="function"?Wt:jt)(t)):this.node().innerHTML}function be(){this.nextSibling&&this.parentNode.appendChild(this)}function Ve(){return this.each(be)}function ke(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function nn(){return this.each(ke)}function pn(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===ve&&e.documentElement.namespaceURI===ve?e.createElement(t):e.createElementNS(n,t)}}function Gn(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Yr(t){var e=Mt(t);return(e.local?Gn:pn)(e)}function Ya(t){var e=typeof t=="function"?t:Yr(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function ga(){return null}function yr(t,e){var n=typeof t=="function"?t:Yr(t),a=e==null?ga:typeof e=="function"?e:p(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),a.apply(this,arguments)||null)})}function Vn(){var t=this.parentNode;t&&t.removeChild(this)}function Ha(){return this.each(Vn)}function ir(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Wn(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function va(t){return this.select(t?Wn:ir)}function xr(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Tn(t){return function(e){t.call(this,e,this.__data__)}}function wn(t){return t.trim().split(/^|\s+/).map(function(e){var n="",a=e.indexOf(".");return a>=0&&(n=e.slice(a+1),e=e.slice(0,a)),{type:e,name:n}})}function Wa(t){return function(){var e=this.__on;if(e){for(var n=0,a=-1,i=e.length,s;n<i;++n)s=e[n],(!t.type||s.type===t.type)&&s.name===t.name?this.removeEventListener(s.type,s.listener,s.options):e[++a]=s;++a?e.length=a:delete this.__on}}}function Ka(t,e,n){return function(){var a=this.__on,i,s=Tn(e);if(a){for(var o=0,l=a.length;o<l;++o)if((i=a[o]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=s,i.options=n),i.value=e;return}}this.addEventListener(t.type,s,n),i={type:t.type,name:t.name,value:e,listener:s,options:n},a?a.push(i):this.__on=[i]}}function ft(t,e,n){var a=wn(t+""),i,s=a.length,o;if(arguments.length<2){var l=this.node().__on;if(l){for(var c=0,u=l.length,g;c<u;++c)for(i=0,g=l[c];i<s;++i)if((o=a[i]).type===g.type&&o.name===g.name)return g.value}return}for(l=e?Ka:Wa,i=0;i<s;++i)this.each(l(a[i],e,n));return this}function wt(t,e,n){var a=$e(t),i=a.CustomEvent;typeof i=="function"?i=new i(e,n):(i=a.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function vt(t,e){return function(){return wt(this,t,e)}}function it(t,e){return function(){return wt(this,t,e.apply(this,arguments))}}function It(t,e){return this.each((typeof e=="function"?it:vt)(t,e))}function*ye(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var a=t[e],i=0,s=a.length,o;i<s;++i)(o=a[i])&&(yield o)}var qt=[null];function Oe(t,e){this._groups=t,this._parents=e}function rn(){return new Oe([[document.documentElement]],qt)}function gn(){return this}Oe.prototype=rn.prototype={constructor:Oe,select:y,selectAll:R,selectChild:F,selectChildren:X,filter:j,data:q,enter:W,exit:et,join:ot,merge:pt,selection:gn,order:ht,sort:xt,call:Ut,nodes:Lt,node:Xt,size:Jt,empty:Qt,each:me,attr:Me,style:de,property:te,classed:Nt,text:Rt,html:ue,raise:Ve,lower:nn,append:Ya,insert:yr,remove:Ha,clone:va,datum:xr,on:ft,dispatch:It,[Symbol.iterator]:ye};var mn=rn;function st(t){return typeof t=="string"?new Oe([[document.querySelector(t)]],[document.documentElement]):new Oe([[t]],qt)}const an=new Date,Fn=new Date;function en(t,e,n,a){function i(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return i.floor=s=>(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const o=i(s),l=i.ceil(s);return s-o<l-s?o:l},i.offset=(s,o)=>(e(s=new Date(+s),o==null?1:Math.floor(o)),s),i.range=(s,o,l)=>{const c=[];if(s=i.ceil(s),l=l==null?1:Math.floor(l),!(s<o)||!(l>0))return c;let u;do c.push(u=new Date(+s)),e(s,l),t(s);while(u<s&&s<o);return c},i.filter=s=>en(o=>{if(o>=o)for(;t(o),!s(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;e(o,-1),!s(o););else for(;--l>=0;)for(;e(o,1),!s(o););}),n&&(i.count=(s,o)=>(an.setTime(+s),Fn.setTime(+o),t(an),t(Fn),Math.floor(n(an,Fn))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(a?o=>a(o)%s===0:o=>i.count(0,o)%s===0):i)),i}const Xn=1e3,On=Xn*60,Bn=On*60,sr=Bn*24,qi=sr*7,Po=sr*30,ts=sr*365;function Rr(t){return en(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*On)/qi)}const Za=Rr(0),ka=Rr(1),Rf=Rr(2),Of=Rr(3),Hr=Rr(4),If=Rr(5),Cf=Rr(6),O0=Za.range,I0=ka.range,C0=Rf.range,P0=Of.range,w0=Hr.range,M0=If.range,L0=Cf.range;function Or(t){return en(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/qi)}const Ja=Or(0),Qa=Or(1),Pf=Or(2),wf=Or(3),Wr=Or(4),Mf=Or(5),Lf=Or(6),D0=Ja.range,N0=Qa.range,F0=Pf.range,B0=wf.range,U0=Wr.range,z0=Mf.range,j0=Lf.range,pa=en(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*On)/sr,t=>t.getDate()-1),G0=pa.range,_a=en(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/sr,t=>t.getUTCDate()-1),V0=_a.range,wo=en(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/sr,t=>Math.floor(t/sr)),X0=wo.range,or=en(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());or.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:en(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});const Y0=or.range,lr=en(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());lr.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:en(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});const H0=lr.range;function es(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 ns(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 ma(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Df(t){var e=t.dateTime,n=t.date,a=t.time,i=t.periods,s=t.days,o=t.shortDays,l=t.months,c=t.shortMonths,u=ya(i),g=xa(i),v=ya(s),m=xa(s),S=ya(o),I=xa(o),N=ya(l),L=xa(l),C=ya(c),V=xa(c),H={a:At,A:Vt,b:Bt,B:Kt,c:null,d:Bo,e:Bo,f:rd,g:hd,G:vd,H:td,I:ed,j:nd,L:Uo,m:ad,M:id,p:ne,q:le,Q:Yo,s:Ho,S:sd,u:od,U:ld,V:cd,w:ud,W:fd,x:null,X:null,y:dd,Y:gd,Z:pd,"%":Xo},Y={a:Ee,A:Ie,b:Ce,B:Ye,c:null,d:jo,e:jo,f:Td,g:Pd,G:Md,H:md,I:yd,j:xd,L:Go,m:$d,M:Sd,p:Fe,q:hn,Q:Yo,s:Ho,S:Ad,u:bd,U:Ed,V:Rd,w:Od,W:Id,x:null,X:null,y:Cd,Y:wd,Z:Ld,"%":Xo},_={a:dt,A:lt,b:Gt,B:gt,c:Z,d:No,e:No,f:Jf,g:Do,G:Lo,H:Fo,I:Fo,j:Wf,L:kf,m:Hf,M:Kf,p:St,q:Yf,Q:_f,s:qf,S:Zf,u:zf,U:jf,V:Gf,w:Uf,W:Vf,x:$t,X:ct,y:Do,Y:Lo,Z:Xf,"%":Qf};H.x=K(n,H),H.X=K(a,H),H.c=K(e,H),Y.x=K(n,Y),Y.X=K(a,Y),Y.c=K(e,Y);function K(kt,xe){return function(Re){var Dt=[],un=-1,Ge=0,Cn=kt.length,Pn,pe,fn;for(Re instanceof Date||(Re=new Date(+Re));++un<Cn;)kt.charCodeAt(un)===37&&(Dt.push(kt.slice(Ge,un)),(pe=Mo[Pn=kt.charAt(++un)])!=null?Pn=kt.charAt(++un):pe=Pn==="e"?" ":"0",(fn=xe[Pn])&&(Pn=fn(Re,pe)),Dt.push(Pn),Ge=un+1);return Dt.push(kt.slice(Ge,un)),Dt.join("")}}function at(kt,xe){return function(Re){var Dt=ma(1900,void 0,1),un=mt(Dt,kt,Re+="",0),Ge,Cn;if(un!=Re.length)return null;if("Q"in Dt)return new Date(Dt.Q);if("s"in Dt)return new Date(Dt.s*1e3+("L"in Dt?Dt.L:0));if(xe&&!("Z"in Dt)&&(Dt.Z=0),"p"in Dt&&(Dt.H=Dt.H%12+Dt.p*12),Dt.m===void 0&&(Dt.m="q"in Dt?Dt.q:0),"V"in Dt){if(Dt.V<1||Dt.V>53)return null;"w"in Dt||(Dt.w=1),"Z"in Dt?(Ge=ns(ma(Dt.y,0,1)),Cn=Ge.getUTCDay(),Ge=Cn>4||Cn===0?Qa.ceil(Ge):Qa(Ge),Ge=_a.offset(Ge,(Dt.V-1)*7),Dt.y=Ge.getUTCFullYear(),Dt.m=Ge.getUTCMonth(),Dt.d=Ge.getUTCDate()+(Dt.w+6)%7):(Ge=es(ma(Dt.y,0,1)),Cn=Ge.getDay(),Ge=Cn>4||Cn===0?ka.ceil(Ge):ka(Ge),Ge=pa.offset(Ge,(Dt.V-1)*7),Dt.y=Ge.getFullYear(),Dt.m=Ge.getMonth(),Dt.d=Ge.getDate()+(Dt.w+6)%7)}else("W"in Dt||"U"in Dt)&&("w"in Dt||(Dt.w="u"in Dt?Dt.u%7:"W"in Dt?1:0),Cn="Z"in Dt?ns(ma(Dt.y,0,1)).getUTCDay():es(ma(Dt.y,0,1)).getDay(),Dt.m=0,Dt.d="W"in Dt?(Dt.w+6)%7+Dt.W*7-(Cn+5)%7:Dt.w+Dt.U*7-(Cn+6)%7);return"Z"in Dt?(Dt.H+=Dt.Z/100|0,Dt.M+=Dt.Z%100,ns(Dt)):es(Dt)}}function mt(kt,xe,Re,Dt){for(var un=0,Ge=xe.length,Cn=Re.length,Pn,pe;un<Ge;){if(Dt>=Cn)return-1;if(Pn=xe.charCodeAt(un++),Pn===37){if(Pn=xe.charAt(un++),pe=_[Pn in Mo?xe.charAt(un++):Pn],!pe||(Dt=pe(kt,Re,Dt))<0)return-1}else if(Pn!=Re.charCodeAt(Dt++))return-1}return Dt}function St(kt,xe,Re){var Dt=u.exec(xe.slice(Re));return Dt?(kt.p=g.get(Dt[0].toLowerCase()),Re+Dt[0].length):-1}function dt(kt,xe,Re){var Dt=S.exec(xe.slice(Re));return Dt?(kt.w=I.get(Dt[0].toLowerCase()),Re+Dt[0].length):-1}function lt(kt,xe,Re){var Dt=v.exec(xe.slice(Re));return Dt?(kt.w=m.get(Dt[0].toLowerCase()),Re+Dt[0].length):-1}function Gt(kt,xe,Re){var Dt=C.exec(xe.slice(Re));return Dt?(kt.m=V.get(Dt[0].toLowerCase()),Re+Dt[0].length):-1}function gt(kt,xe,Re){var Dt=N.exec(xe.slice(Re));return Dt?(kt.m=L.get(Dt[0].toLowerCase()),Re+Dt[0].length):-1}function Z(kt,xe,Re){return mt(kt,e,xe,Re)}function $t(kt,xe,Re){return mt(kt,n,xe,Re)}function ct(kt,xe,Re){return mt(kt,a,xe,Re)}function At(kt){return o[kt.getDay()]}function Vt(kt){return s[kt.getDay()]}function Bt(kt){return c[kt.getMonth()]}function Kt(kt){return l[kt.getMonth()]}function ne(kt){return i[+(kt.getHours()>=12)]}function le(kt){return 1+~~(kt.getMonth()/3)}function Ee(kt){return o[kt.getUTCDay()]}function Ie(kt){return s[kt.getUTCDay()]}function Ce(kt){return c[kt.getUTCMonth()]}function Ye(kt){return l[kt.getUTCMonth()]}function Fe(kt){return i[+(kt.getUTCHours()>=12)]}function hn(kt){return 1+~~(kt.getUTCMonth()/3)}return{format:function(kt){var xe=K(kt+="",H);return xe.toString=function(){return kt},xe},parse:function(kt){var xe=at(kt+="",!1);return xe.toString=function(){return kt},xe},utcFormat:function(kt){var xe=K(kt+="",Y);return xe.toString=function(){return kt},xe},utcParse:function(kt){var xe=at(kt+="",!0);return xe.toString=function(){return kt},xe}}}var Mo={"-":"",_:" ",0:"0"},yn=/^\s*\d+/,Nf=/^%/,Ff=/[\\^$*+?|[\]().{}]/g;function Ne(t,e,n){var a=t<0?"-":"",i=(a?-t:t)+"",s=i.length;return a+(s<n?new Array(n-s+1).join(e)+i:i)}function Bf(t){return t.replace(Ff,"\\$&")}function ya(t){return new RegExp("^(?:"+t.map(Bf).join("|")+")","i")}function xa(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function Uf(t,e,n){var a=yn.exec(e.slice(n,n+1));return a?(t.w=+a[0],n+a[0].length):-1}function zf(t,e,n){var a=yn.exec(e.slice(n,n+1));return a?(t.u=+a[0],n+a[0].length):-1}function jf(t,e,n){var a=yn.exec(e.slice(n,n+2));return a?(t.U=+a[0],n+a[0].length):-1}function Gf(t,e,n){var a=yn.exec(e.slice(n,n+2));return a?(t.V=+a[0],n+a[0].length):-1}function Vf(t,e,n){var a=yn.exec(e.slice(n,n+2));return a?(t.W=+a[0],n+a[0].length):-1}function Lo(t,e,n){var a=yn.exec(e.slice(n,n+4));return a?(t.y=+a[0],n+a[0].length):-1}function Do(t,e,n){var a=yn.exec(e.slice(n,n+2));return a?(t.y=+a[0]+(+a[0]>68?1900:2e3),n+a[0].length):-1}function Xf(t,e,n){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return a?(t.Z=a[1]?0:-(a[2]+(a[3]||"00")),n+a[0].length):-1}function Yf(t,e,n){var a=yn.exec(e.slice(n,n+1));return a?(t.q=a[0]*3-3,n+a[0].length):-1}function Hf(t,e,n){var a=yn.exec(e.slice(n,n+2));return a?(t.m=a[0]-1,n+a[0].length):-1}function No(t,e,n){var a=yn.exec(e.slice(n,n+2));return a?(t.d=+a[0],n+a[0].length):-1}function Wf(t,e,n){var a=yn.exec(e.slice(n,n+3));return a?(t.m=0,t.d=+a[0],n+a[0].length):-1}function Fo(t,e,n){var a=yn.exec(e.slice(n,n+2));return a?(t.H=+a[0],n+a[0].length):-1}function Kf(t,e,n){var a=yn.exec(e.slice(n,n+2));return a?(t.M=+a[0],n+a[0].length):-1}function Zf(t,e,n){var a=yn.exec(e.slice(n,n+2));return a?(t.S=+a[0],n+a[0].length):-1}function kf(t,e,n){var a=yn.exec(e.slice(n,n+3));return a?(t.L=+a[0],n+a[0].length):-1}function Jf(t,e,n){var a=yn.exec(e.slice(n,n+6));return a?(t.L=Math.floor(a[0]/1e3),n+a[0].length):-1}function Qf(t,e,n){var a=Nf.exec(e.slice(n,n+1));return a?n+a[0].length:-1}function _f(t,e,n){var a=yn.exec(e.slice(n));return a?(t.Q=+a[0],n+a[0].length):-1}function qf(t,e,n){var a=yn.exec(e.slice(n));return a?(t.s=+a[0],n+a[0].length):-1}function Bo(t,e){return Ne(t.getDate(),e,2)}function td(t,e){return Ne(t.getHours(),e,2)}function ed(t,e){return Ne(t.getHours()%12||12,e,2)}function nd(t,e){return Ne(1+pa.count(or(t),t),e,3)}function Uo(t,e){return Ne(t.getMilliseconds(),e,3)}function rd(t,e){return Uo(t,e)+"000"}function ad(t,e){return Ne(t.getMonth()+1,e,2)}function id(t,e){return Ne(t.getMinutes(),e,2)}function sd(t,e){return Ne(t.getSeconds(),e,2)}function od(t){var e=t.getDay();return e===0?7:e}function ld(t,e){return Ne(Za.count(or(t)-1,t),e,2)}function zo(t){var e=t.getDay();return e>=4||e===0?Hr(t):Hr.ceil(t)}function cd(t,e){return t=zo(t),Ne(Hr.count(or(t),t)+(or(t).getDay()===4),e,2)}function ud(t){return t.getDay()}function fd(t,e){return Ne(ka.count(or(t)-1,t),e,2)}function dd(t,e){return Ne(t.getFullYear()%100,e,2)}function hd(t,e){return t=zo(t),Ne(t.getFullYear()%100,e,2)}function gd(t,e){return Ne(t.getFullYear()%1e4,e,4)}function vd(t,e){var n=t.getDay();return t=n>=4||n===0?Hr(t):Hr.ceil(t),Ne(t.getFullYear()%1e4,e,4)}function pd(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Ne(e/60|0,"0",2)+Ne(e%60,"0",2)}function jo(t,e){return Ne(t.getUTCDate(),e,2)}function md(t,e){return Ne(t.getUTCHours(),e,2)}function yd(t,e){return Ne(t.getUTCHours()%12||12,e,2)}function xd(t,e){return Ne(1+_a.count(lr(t),t),e,3)}function Go(t,e){return Ne(t.getUTCMilliseconds(),e,3)}function Td(t,e){return Go(t,e)+"000"}function $d(t,e){return Ne(t.getUTCMonth()+1,e,2)}function Sd(t,e){return Ne(t.getUTCMinutes(),e,2)}function Ad(t,e){return Ne(t.getUTCSeconds(),e,2)}function bd(t){var e=t.getUTCDay();return e===0?7:e}function Ed(t,e){return Ne(Ja.count(lr(t)-1,t),e,2)}function Vo(t){var e=t.getUTCDay();return e>=4||e===0?Wr(t):Wr.ceil(t)}function Rd(t,e){return t=Vo(t),Ne(Wr.count(lr(t),t)+(lr(t).getUTCDay()===4),e,2)}function Od(t){return t.getUTCDay()}function Id(t,e){return Ne(Qa.count(lr(t)-1,t),e,2)}function Cd(t,e){return Ne(t.getUTCFullYear()%100,e,2)}function Pd(t,e){return t=Vo(t),Ne(t.getUTCFullYear()%100,e,2)}function wd(t,e){return Ne(t.getUTCFullYear()%1e4,e,4)}function Md(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Wr(t):Wr.ceil(t),Ne(t.getUTCFullYear()%1e4,e,4)}function Ld(){return"+0000"}function Xo(){return"%"}function Yo(t){return+t}function Ho(t){return Math.floor(+t/1e3)}var Kr,rs,Wo,as,Ko;Dd({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"]});function Dd(t){return Kr=Df(t),rs=Kr.format,Wo=Kr.parse,as=Kr.utcFormat,Ko=Kr.utcParse,Kr}var Nd=Object.defineProperty,Zo=Object.getOwnPropertySymbols,Fd=Object.prototype.hasOwnProperty,Bd=Object.prototype.propertyIsEnumerable,ko=(t,e,n)=>e in t?Nd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Qe=(t,e)=>{for(var n in e||(e={}))Fd.call(e,n)&&ko(t,n,e[n]);if(Zo)for(var n of Zo(e))Bd.call(e,n)&&ko(t,n,e[n]);return t};const Se={button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_"},je={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcRange:"bb-arc-range",arcs:"bb-arcs",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsTitle:"bb-chart-arcs-title",needle:"bb-needle"},qa={area:"bb-area",areas:"bb-areas"},dn={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",axisXTooltip:"bb-axis-x-tooltip",axisYTooltip:"bb-axis-y-tooltip",axisY2Tooltip:"bb-axis-y2-tooltip"},Kn={bar:"bb-bar",bars:"bb-bars",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars"},cr={candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"},$n={chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"},is={colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"},Ir={dragarea:"bb-dragarea",INCLUDED:"_included_"},Ta={funnel:"bb-funnel",chartFunnel:"bb-chart-funnel",chartFunnels:"bb-chart-funnels",funnelBackground:"bb-funnel-background"},Un={chartArcsGaugeMax:"bb-chart-arcs-gauge-max",chartArcsGaugeMin:"bb-chart-arcs-gauge-min",chartArcsGaugeUnit:"bb-chart-arcs-gauge-unit",chartArcsGaugeTitle:"bb-chart-arcs-gauge-title",gaugeValue:"bb-gauge-value"},We={legend:"bb-legend",legendBackground:"bb-legend-background",legendItem:"bb-legend-item",legendItemEvent:"bb-legend-item-event",legendItemHidden:"bb-legend-item-hidden",legendItemPoint:"bb-legend-item-point",legendItemTile:"bb-legend-item-tile"},ur={chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"},Zn={eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"},_e={focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",ygridFocus:"bb-ygrid-focus"},sn={grid:"bb-grid",gridLines:"bb-grid-lines",xgrid:"bb-xgrid",xgridLine:"bb-xgrid-line",xgridLines:"bb-xgrid-lines",xgrids:"bb-xgrids",ygrid:"bb-ygrid",ygridLine:"bb-ygrid-line",ygridLines:"bb-ygrid-lines",ygrids:"bb-ygrids"},Tr={level:"bb-level",levels:"bb-levels"},Jo={chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"},$a={region:"bb-region",regions:"bb-regions"},tn={selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"},on={shape:"bb-shape",shapes:"bb-shapes"},Qo={brush:"bb-brush",subchart:"bb-subchart"},In={chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",TextOverlapping:"text-overlapping"},ti={tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"},_o={treemap:"bb-treemap",chartTreemap:"bb-chart-treemap",chartTreemaps:"bb-chart-treemaps"},ss={buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"};var Ue=Qe(Qe(Qe(Qe(Qe(Qe(Qe(Qe(Qe(Qe(Qe(Qe(Qe(Qe(Qe(Qe(Qe(Qe(Qe(Qe(Qe(Qe(Qe(Qe(Qe({},Se),je),qa),dn),Kn),cr),$n),is),Ir),Un),We),ur),Zn),_e),Ta),sn),Jo),$a),tn),on),Qo),In),ti),_o),ss),Ud={boost_useCssRule:!1,boost_useWorker:!1},zd={color_pattern:[],color_tiles:void 0,color_threshold:{},color_onover:void 0},jd={legend_contents_bindto:void 0,legend_contents_template:"<span style='color:#fff;padding:5px;background-color:{=COLOR}'>{=TITLE}</span>",legend_equally:!1,legend_hide:!1,legend_inset_anchor:"top-left",legend_inset_x:10,legend_inset_y:0,legend_inset_step:void 0,legend_item_interaction:!0,legend_item_dblclick:!1,legend_item_onclick:void 0,legend_item_onover:void 0,legend_item_onout:void 0,legend_item_tile_width:10,legend_item_tile_height:10,legend_item_tile_r:5,legend_item_tile_type:"rectangle",legend_format:void 0,legend_padding:0,legend_position:"bottom",legend_show:!0,legend_tooltip:!1,legend_usePoint:!1},Gd={bindto:"#chart",background:{},clipPath:!0,svg_classname:void 0,size_width:void 0,size_height:void 0,padding:!0,padding_mode:void 0,padding_left:void 0,padding_right:void 0,padding_top:void 0,padding_bottom:void 0,resize_auto:!0,resize_timer:!0,onclick:void 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:[]},Vd={title_text:void 0,title_padding:{top:0,right:0,bottom:0,left:0},title_position:"center"},Xd={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:void 0,tooltip_linked:!1,tooltip_linked_name:"",tooltip_onshow:()=>{},tooltip_onhide:()=>{},tooltip_onshown:()=>{},tooltip_onhidden:()=>{},tooltip_order:null},Yd={data_x:void 0,data_idConverter:t=>t,data_names:{},data_classes:{},data_type:void 0,data_types:{},data_order:"desc",data_groups:[],data_groupsZeroAs:"positive",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:()=>{},data_onover:()=>{},data_onout:()=>{},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:""},Hd={interaction_enabled:!0,interaction_brighten:!0,interaction_inputType_mouse:!0,interaction_inputType_touch:{},interaction_onout:!0},Wd={value:()=>{}};function qo(){for(var t=0,e=arguments.length,n={},a;t<e;++t){if(!(a=arguments[t]+"")||a in n||/[\s.]/.test(a))throw new Error("illegal type: "+a);n[a]=[]}return new ei(n)}function ei(t){this._=t}function Kd(t,e){return t.trim().split(/^|\s+/).map(function(n){var a="",i=n.indexOf(".");if(i>=0&&(a=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:a}})}ei.prototype=qo.prototype={constructor:ei,on:function(t,e){var n=this._,a=Kd(t+"",n),i,s=-1,o=a.length;if(arguments.length<2){for(;++s<o;)if((i=(t=a[s]).type)&&(i=Zd(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++s<o;)if(i=(t=a[s]).type)n[i]=tl(n[i],t.name,e);else if(e==null)for(i in n)n[i]=tl(n[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new ei(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),a=0,i,s;a<i;++a)n[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=this._[t],a=0,i=s.length;a<i;++a)s[a].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var a=this._[t],i=0,s=a.length;i<s;++i)a[i].value.apply(e,n)}};function Zd(t,e){for(var n=0,a=t.length,i;n<a;++n)if((i=t[n]).name===e)return i.value}function tl(t,e,n){for(var a=0,i=t.length;a<i;++a)if(t[a].name===e){t[a]=Wd,t=t.slice(0,a).concat(t.slice(a+1));break}return n!=null&&t.push({name:e,value:n}),t}var ni=qo;const kd={passive:!1},Sa={capture:!0,passive:!1};function os(t){t.stopImmediatePropagation()}function Zr(t){t.preventDefault(),t.stopImmediatePropagation()}function ls(t){var e=t.document.documentElement,n=st(t).on("dragstart.drag",Zr,Sa);"onselectstart"in e?n.on("selectstart.drag",Zr,Sa):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function cs(t,e){var n=t.document.documentElement,a=st(t).on("dragstart.drag",null);e&&(a.on("click.drag",Zr,Sa),setTimeout(function(){a.on("click.drag",null)},0)),"onselectstart"in n?a.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function us(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function el(t,e){var n=Object.create(t.prototype);for(var a in e)n[a]=e[a];return n}function Aa(){}var ba=.7,ri=1/ba,kr="\\s*([+-]?\\d+)\\s*",Ea="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",tr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Jd=/^#([0-9a-f]{3,8})$/,Qd=new RegExp(`^rgb\\(${kr},${kr},${kr}\\)$`),_d=new RegExp(`^rgb\\(${tr},${tr},${tr}\\)$`),qd=new RegExp(`^rgba\\(${kr},${kr},${kr},${Ea}\\)$`),th=new RegExp(`^rgba\\(${tr},${tr},${tr},${Ea}\\)$`),eh=new RegExp(`^hsl\\(${Ea},${tr},${tr}\\)$`),nh=new RegExp(`^hsla\\(${Ea},${tr},${tr},${Ea}\\)$`),nl={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};us(Aa,Cr,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:rl,formatHex:rl,formatHex8:rh,formatHsl:ah,formatRgb:al,toString:al});function rl(){return this.rgb().formatHex()}function rh(){return this.rgb().formatHex8()}function ah(){return cl(this).formatHsl()}function al(){return this.rgb().formatRgb()}function Cr(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Jd.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?il(e):n===3?new Mn(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?ai(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?ai(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Qd.exec(t))?new Mn(e[1],e[2],e[3],1):(e=_d.exec(t))?new Mn(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=qd.exec(t))?ai(e[1],e[2],e[3],e[4]):(e=th.exec(t))?ai(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=eh.exec(t))?ll(e[1],e[2]/100,e[3]/100,1):(e=nh.exec(t))?ll(e[1],e[2]/100,e[3]/100,e[4]):nl.hasOwnProperty(t)?il(nl[t]):t==="transparent"?new Mn(NaN,NaN,NaN,0):null}function il(t){return new Mn(t>>16&255,t>>8&255,t&255,1)}function ai(t,e,n,a){return a<=0&&(t=e=n=NaN),new Mn(t,e,n,a)}function ih(t){return t instanceof Aa||(t=Cr(t)),t?(t=t.rgb(),new Mn(t.r,t.g,t.b,t.opacity)):new Mn}function ii(t,e,n,a){return arguments.length===1?ih(t):new Mn(t,e,n,a==null?1:a)}function Mn(t,e,n,a){this.r=+t,this.g=+e,this.b=+n,this.opacity=+a}us(Mn,ii,el(Aa,{brighter(t){return t=t==null?ri:Math.pow(ri,t),new Mn(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?ba:Math.pow(ba,t),new Mn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Mn(Pr(this.r),Pr(this.g),Pr(this.b),si(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:sl,formatHex:sl,formatHex8:sh,formatRgb:ol,toString:ol}));function sl(){return`#${wr(this.r)}${wr(this.g)}${wr(this.b)}`}function sh(){return`#${wr(this.r)}${wr(this.g)}${wr(this.b)}${wr((isNaN(this.opacity)?1:this.opacity)*255)}`}function ol(){const t=si(this.opacity);return`${t===1?"rgb(":"rgba("}${Pr(this.r)}, ${Pr(this.g)}, ${Pr(this.b)}${t===1?")":`, ${t})`}`}function si(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Pr(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function wr(t){return t=Pr(t),(t<16?"0":"")+t.toString(16)}function ll(t,e,n,a){return a<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new kn(t,e,n,a)}function cl(t){if(t instanceof kn)return new kn(t.h,t.s,t.l,t.opacity);if(t instanceof Aa||(t=Cr(t)),!t)return new kn;if(t instanceof kn)return t;t=t.rgb();var e=t.r/255,n=t.g/255,a=t.b/255,i=Math.min(e,n,a),s=Math.max(e,n,a),o=NaN,l=s-i,c=(s+i)/2;return l?(e===s?o=(n-a)/l+(n<a)*6:n===s?o=(a-e)/l+2:o=(e-n)/l+4,l/=c<.5?s+i:2-s-i,o*=60):l=c>0&&c<1?0:o,new kn(o,l,c,t.opacity)}function oh(t,e,n,a){return arguments.length===1?cl(t):new kn(t,e,n,a==null?1:a)}function kn(t,e,n,a){this.h=+t,this.s=+e,this.l=+n,this.opacity=+a}us(kn,oh,el(Aa,{brighter(t){return t=t==null?ri:Math.pow(ri,t),new kn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?ba:Math.pow(ba,t),new kn(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,a=n+(n<.5?n:1-n)*e,i=2*n-a;return new Mn(fs(t>=240?t-240:t+120,i,a),fs(t,i,a),fs(t<120?t+240:t-120,i,a),this.opacity)},clamp(){return new kn(ul(this.h),oi(this.s),oi(this.l),si(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=si(this.opacity);return`${t===1?"hsl(":"hsla("}${ul(this.h)}, ${oi(this.s)*100}%, ${oi(this.l)*100}%${t===1?")":`, ${t})`}`}}));function ul(t){return t=(t||0)%360,t<0?t+360:t}function oi(t){return Math.max(0,Math.min(1,t||0))}function fs(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function fl(t,e,n,a,i){var s=t*t,o=s*t;return((1-3*t+3*s-o)*e+(4-6*s+3*o)*n+(1+3*t+3*s-3*o)*a+o*i)/6}function lh(t){var e=t.length-1;return function(n){var a=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[a],s=t[a+1],o=a>0?t[a-1]:2*i-s,l=a<e-1?t[a+2]:2*s-i;return fl((n-a/e)*e,o,i,s,l)}}function ch(t){var e=t.length;return function(n){var a=Math.floor(((n%=1)<0?++n:n)*e),i=t[(a+e-1)%e],s=t[a%e],o=t[(a+1)%e],l=t[(a+2)%e];return fl((n-a/e)*e,i,s,o,l)}}var li=t=>()=>t;function dl(t,e){return function(n){return t+n*e}}function uh(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(a){return Math.pow(t+a*e,n)}}function W0(t,e){var n=e-t;return n?dl(t,n>180||n<-180?n-360*Math.round(n/360):n):li(isNaN(t)?e:t)}function fh(t){return(t=+t)==1?hl:function(e,n){return n-e?uh(e,n,t):li(isNaN(e)?n:e)}}function hl(t,e){var n=e-t;return n?dl(t,n):li(isNaN(t)?e:t)}var ci=function t(e){var n=fh(e);function a(i,s){var o=n((i=ii(i)).r,(s=ii(s)).r),l=n(i.g,s.g),c=n(i.b,s.b),u=hl(i.opacity,s.opacity);return function(g){return i.r=o(g),i.g=l(g),i.b=c(g),i.opacity=u(g),i+""}}return a.gamma=t,a}(1);function gl(t){return function(e){var n=e.length,a=new Array(n),i=new Array(n),s=new Array(n),o,l;for(o=0;o<n;++o)l=ii(e[o]),a[o]=l.r||0,i[o]=l.g||0,s[o]=l.b||0;return a=t(a),i=t(i),s=t(s),l.opacity=1,function(c){return l.r=a(c),l.g=i(c),l.b=s(c),l+""}}}var K0=gl(lh),Z0=gl(ch);function vl(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,a=e.slice(),i;return function(s){for(i=0;i<n;++i)a[i]=t[i]*(1-s)+e[i]*s;return a}}function pl(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function k0(t,e){return(pl(e)?vl:ml)(t,e)}function ml(t,e){var n=e?e.length:0,a=t?Math.min(n,t.length):0,i=new Array(a),s=new Array(n),o;for(o=0;o<a;++o)i[o]=Jr(t[o],e[o]);for(;o<n;++o)s[o]=e[o];return function(l){for(o=0;o<a;++o)s[o]=i[o](l);return s}}function dh(t,e){var n=new Date;return t=+t,e=+e,function(a){return n.setTime(t*(1-a)+e*a),n}}function Jn(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function hh(t,e){var n={},a={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?n[i]=Jr(t[i],e[i]):a[i]=e[i];return function(s){for(i in n)a[i]=n[i](s);return a}}var ds=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,hs=new RegExp(ds.source,"g");function gh(t){return function(){return t}}function vh(t){return function(e){return t(e)+""}}function yl(t,e){var n=ds.lastIndex=hs.lastIndex=0,a,i,s,o=-1,l=[],c=[];for(t=t+"",e=e+"";(a=ds.exec(t))&&(i=hs.exec(e));)(s=i.index)>n&&(s=e.slice(n,s),l[o]?l[o]+=s:l[++o]=s),(a=a[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,c.push({i:o,x:Jn(a,i)})),n=hs.lastIndex;return n<e.length&&(s=e.slice(n),l[o]?l[o]+=s:l[++o]=s),l.length<2?c[0]?vh(c[0].x):gh(e):(e=c.length,function(u){for(var g=0,v;g<e;++g)l[(v=c[g]).i]=v.x(u);return l.join("")})}function Jr(t,e){var n=typeof e,a;return e==null||n==="boolean"?li(e):(n==="number"?Jn:n==="string"?(a=Cr(e))?(e=a,ci):yl:e instanceof Cr?ci:e instanceof Date?dh:pl(e)?vl:Array.isArray(e)?ml:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?hh:Jn)(t,e)}function ph(t){let e;for(;e=t.sourceEvent;)t=e;return t}function Yn(t,e){if(t=ph(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var a=n.createSVGPoint();return a.x=t.clientX,a.y=t.clientY,a=a.matrixTransform(e.getScreenCTM().inverse()),[a.x,a.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 Qr=0,Ra=0,Oa=0,xl=1e3,ui,Ia,fi=0,Mr=0,di=0,Ca=typeof performance=="object"&&performance.now?performance:Date,Tl=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function gs(){return Mr||(Tl(mh),Mr=Ca.now()+di)}function mh(){Mr=0}function hi(){this._call=this._time=this._next=null}hi.prototype=$l.prototype={constructor:hi,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?gs():+n)+(e==null?0:+e),!this._next&&Ia!==this&&(Ia?Ia._next=this:ui=this,Ia=this),this._call=t,this._time=n,vs()},stop:function(){this._call&&(this._call=null,this._time=1/0,vs())}};function $l(t,e,n){var a=new hi;return a.restart(t,e,n),a}function yh(){gs(),++Qr;for(var t=ui,e;t;)(e=Mr-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Qr}function Sl(){Mr=(fi=Ca.now())+di,Qr=Ra=0;try{yh()}finally{Qr=0,Th(),Mr=0}}function xh(){var t=Ca.now(),e=t-fi;e>xl&&(di-=e,fi=t)}function Th(){for(var t,e=ui,n,a=1/0;e;)e._call?(a>e._time&&(a=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:ui=n);Ia=t,vs(a)}function vs(t){if(!Qr){Ra&&(Ra=clearTimeout(Ra));var e=t-Mr;e>24?(t<1/0&&(Ra=setTimeout(Sl,t-Ca.now()-di)),Oa&&(Oa=clearInterval(Oa))):(Oa||(fi=Ca.now(),Oa=setInterval(xh,xl)),Qr=1,Tl(Sl))}}function Al(t,e,n){var a=new hi;return e=e==null?0:+e,a.restart(i=>{a.stop(),t(i+e)},e,n),a}var $h=ni("start","end","cancel","interrupt"),Sh=[],bl=0,El=1,ps=2,gi=3,Rl=4,ms=5,vi=6;function pi(t,e,n,a,i,s){var o=t.__transition;if(!o)t.__transition={};else if(n in o)return;Ah(t,n,{name:e,index:a,group:i,on:$h,tween:Sh,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:bl})}function ys(t,e){var n=Qn(t,e);if(n.state>bl)throw new Error("too late; already scheduled");return n}function er(t,e){var n=Qn(t,e);if(n.state>gi)throw new Error("too late; already running");return n}function Qn(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Ah(t,e,n){var a=t.__transition,i;a[e]=n,n.timer=$l(s,0,n.time);function s(u){n.state=El,n.timer.restart(o,n.delay,n.time),n.delay<=u&&o(u-n.delay)}function o(u){var g,v,m,S;if(n.state!==El)return c();for(g in a)if(S=a[g],S.name===n.name){if(S.state===gi)return Al(o);S.state===Rl?(S.state=vi,S.timer.stop(),S.on.call("interrupt",t,t.__data__,S.index,S.group),delete a[g]):+g<e&&(S.state=vi,S.timer.stop(),S.on.call("cancel",t,t.__data__,S.index,S.group),delete a[g])}if(Al(function(){n.state===gi&&(n.state=Rl,n.timer.restart(l,n.delay,n.time),l(u))}),n.state=ps,n.on.call("start",t,t.__data__,n.index,n.group),n.state===ps){for(n.state=gi,i=new Array(m=n.tween.length),g=0,v=-1;g<m;++g)(S=n.tween[g].value.call(t,t.__data__,n.index,n.group))&&(i[++v]=S);i.length=v+1}}function l(u){for(var g=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(c),n.state=ms,1),v=-1,m=i.length;++v<m;)i[v].call(t,g);n.state===ms&&(n.on.call("end",t,t.__data__,n.index,n.group),c())}function c(){n.state=vi,n.timer.stop(),delete a[e];for(var u in a)return;delete t.__transition}}function _r(t,e){var n=t.__transition,a,i,s=!0,o;if(n){e=e==null?null:e+"";for(o in n){if((a=n[o]).name!==e){s=!1;continue}i=a.state>ps&&a.state<ms,a.state=vi,a.timer.stop(),a.on.call(i?"interrupt":"cancel",t,t.__data__,a.index,a.group),delete n[o]}s&&delete t.__transition}}function bh(t){return this.each(function(){_r(this,t)})}var Ol=180/Math.PI,xs={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Il(t,e,n,a,i,s){var o,l,c;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(c=t*n+e*a)&&(n-=t*c,a-=e*c),(l=Math.sqrt(n*n+a*a))&&(n/=l,a/=l,c/=l),t*a<e*n&&(t=-t,e=-e,c=-c,o=-o),{translateX:i,translateY:s,rotate:Math.atan2(e,t)*Ol,skewX:Math.atan(c)*Ol,scaleX:o,scaleY:l}}var mi;function Eh(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?xs:Il(e.a,e.b,e.c,e.d,e.e,e.f)}function Rh(t){return t==null||(mi||(mi=document.createElementNS("http://www.w3.org/2000/svg","g")),mi.setAttribute("transform",t),!(t=mi.transform.baseVal.consolidate()))?xs:(t=t.matrix,Il(t.a,t.b,t.c,t.d,t.e,t.f))}function Cl(t,e,n,a){function i(u){return u.length?u.pop()+" ":""}function s(u,g,v,m,S,I){if(u!==v||g!==m){var N=S.push("translate(",null,e,null,n);I.push({i:N-4,x:Jn(u,v)},{i:N-2,x:Jn(g,m)})}else(v||m)&&S.push("translate("+v+e+m+n)}function o(u,g,v,m){u!==g?(u-g>180?g+=360:g-u>180&&(u+=360),m.push({i:v.push(i(v)+"rotate(",null,a)-2,x:Jn(u,g)})):g&&v.push(i(v)+"rotate("+g+a)}function l(u,g,v,m){u!==g?m.push({i:v.push(i(v)+"skewX(",null,a)-2,x:Jn(u,g)}):g&&v.push(i(v)+"skewX("+g+a)}function c(u,g,v,m,S,I){if(u!==v||g!==m){var N=S.push(i(S)+"scale(",null,",",null,")");I.push({i:N-4,x:Jn(u,v)},{i:N-2,x:Jn(g,m)})}else(v!==1||m!==1)&&S.push(i(S)+"scale("+v+","+m+")")}return function(u,g){var v=[],m=[];return u=t(u),g=t(g),s(u.translateX,u.translateY,g.translateX,g.translateY,v,m),o(u.rotate,g.rotate,v,m),l(u.skewX,g.skewX,v,m),c(u.scaleX,u.scaleY,g.scaleX,g.scaleY,v,m),u=g=null,function(S){for(var I=-1,N=m.length,L;++I<N;)v[(L=m[I]).i]=L.x(S);return v.join("")}}}var Oh=Cl(Eh,"px, ","px)","deg)"),Ih=Cl(Rh,", ",")",")");function Ch(t,e){var n,a;return function(){var i=er(this,t),s=i.tween;if(s!==n){a=n=s;for(var o=0,l=a.length;o<l;++o)if(a[o].name===e){a=a.slice(),a.splice(o,1);break}}i.tween=a}}function Ph(t,e,n){var a,i;if(typeof n!="function")throw new Error;return function(){var s=er(this,t),o=s.tween;if(o!==a){i=(a=o).slice();for(var l={name:e,value:n},c=0,u=i.length;c<u;++c)if(i[c].name===e){i[c]=l;break}c===u&&i.push(l)}s.tween=i}}function wh(t,e){var n=this._id;if(t+="",arguments.length<2){for(var a=Qn(this.node(),n).tween,i=0,s=a.length,o;i<s;++i)if((o=a[i]).name===t)return o.value;return null}return this.each((e==null?Ch:Ph)(n,t,e))}function Ts(t,e,n){var a=t._id;return t.each(function(){var i=er(this,a);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return Qn(i,a).value[e]}}function Pl(t,e){var n;return(typeof e=="number"?Jn:e instanceof Cr?ci:(n=Cr(e))?(e=n,ci):yl)(t,e)}function Mh(t){return function(){this.removeAttribute(t)}}function Lh(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Dh(t,e,n){var a,i=n+"",s;return function(){var o=this.getAttribute(t);return o===i?null:o===a?s:s=e(a=o,n)}}function Nh(t,e,n){var a,i=n+"",s;return function(){var o=this.getAttributeNS(t.space,t.local);return o===i?null:o===a?s:s=e(a=o,n)}}function Fh(t,e,n){var a,i,s;return function(){var o,l=n(this),c;return l==null?void this.removeAttribute(t):(o=this.getAttribute(t),c=l+"",o===c?null:o===a&&c===i?s:(i=c,s=e(a=o,l)))}}function Bh(t,e,n){var a,i,s;return function(){var o,l=n(this),c;return l==null?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local),c=l+"",o===c?null:o===a&&c===i?s:(i=c,s=e(a=o,l)))}}function Uh(t,e){var n=Mt(t),a=n==="transform"?Ih:Pl;return this.attrTween(t,typeof e=="function"?(n.local?Bh:Fh)(n,a,Ts(this,"attr."+t,e)):e==null?(n.local?Lh:Mh)(n):(n.local?Nh:Dh)(n,a,e))}function zh(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function jh(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Gh(t,e){var n,a;function i(){var s=e.apply(this,arguments);return s!==a&&(n=(a=s)&&jh(t,s)),n}return i._value=e,i}function Vh(t,e){var n,a;function i(){var s=e.apply(this,arguments);return s!==a&&(n=(a=s)&&zh(t,s)),n}return i._value=e,i}function Xh(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var a=Mt(t);return this.tween(n,(a.local?Gh:Vh)(a,e))}function Yh(t,e){return function(){ys(this,t).delay=+e.apply(this,arguments)}}function Hh(t,e){return e=+e,function(){ys(this,t).delay=e}}function Wh(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Yh:Hh)(e,t)):Qn(this.node(),e).delay}function Kh(t,e){return function(){er(this,t).duration=+e.apply(this,arguments)}}function Zh(t,e){return e=+e,function(){er(this,t).duration=e}}function kh(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Kh:Zh)(e,t)):Qn(this.node(),e).duration}function Jh(t,e){if(typeof e!="function")throw new Error;return function(){er(this,t).ease=e}}function Qh(t){var e=this._id;return arguments.length?this.each(Jh(e,t)):Qn(this.node(),e).ease}function _h(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;er(this,t).ease=n}}function qh(t){if(typeof t!="function")throw new Error;return this.each(_h(this._id,t))}function tg(t){typeof t!="function"&&(t=O(t));for(var e=this._groups,n=e.length,a=new Array(n),i=0;i<n;++i)for(var s=e[i],o=s.length,l=a[i]=[],c,u=0;u<o;++u)(c=s[u])&&t.call(c,c.__data__,u,s)&&l.push(c);return new fr(a,this._parents,this._name,this._id)}function eg(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,a=e.length,i=n.length,s=Math.min(a,i),o=new Array(a),l=0;l<s;++l)for(var c=e[l],u=n[l],g=c.length,v=o[l]=new Array(g),m,S=0;S<g;++S)(m=c[S]||u[S])&&(v[S]=m);for(;l<a;++l)o[l]=e[l];return new fr(o,this._parents,this._name,this._id)}function ng(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function rg(t,e,n){var a,i,s=ng(e)?ys:er;return function(){var o=s(this,t),l=o.on;l!==a&&(i=(a=l).copy()).on(e,n),o.on=i}}function ag(t,e){var n=this._id;return arguments.length<2?Qn(this.node(),n).on.on(t):this.each(rg(n,t,e))}function ig(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function sg(){return this.on("end.remove",ig(this._id))}function og(t){var e=this._name,n=this._id;typeof t!="function"&&(t=p(t));for(var a=this._groups,i=a.length,s=new Array(i),o=0;o<i;++o)for(var l=a[o],c=l.length,u=s[o]=new Array(c),g,v,m=0;m<c;++m)(g=l[m])&&(v=t.call(g,g.__data__,m,l))&&("__data__"in g&&(v.__data__=g.__data__),u[m]=v,pi(u[m],e,n,m,u,Qn(g,n)));return new fr(s,this._parents,e,n)}function lg(t){var e=this._name,n=this._id;typeof t!="function"&&(t=A(t));for(var a=this._groups,i=a.length,s=[],o=[],l=0;l<i;++l)for(var c=a[l],u=c.length,g,v=0;v<u;++v)if(g=c[v]){for(var m=t.call(g,g.__data__,v,c),S,I=Qn(g,n),N=0,L=m.length;N<L;++N)(S=m[N])&&pi(S,e,n,N,m,I);s.push(m),o.push(g)}return new fr(s,o,e,n)}var cg=mn.prototype.constructor;function ug(){return new cg(this._groups,this._parents)}function fg(t,e){var n,a,i;return function(){var s=Et(this,t),o=(this.style.removeProperty(t),Et(this,t));return s===o?null:s===n&&o===a?i:i=e(n=s,a=o)}}function wl(t){return function(){this.style.removeProperty(t)}}function dg(t,e,n){var a,i=n+"",s;return function(){var o=Et(this,t);return o===i?null:o===a?s:s=e(a=o,n)}}function hg(t,e,n){var a,i,s;return function(){var o=Et(this,t),l=n(this),c=l+"";return l==null&&(c=l=(this.style.removeProperty(t),Et(this,t))),o===c?null:o===a&&c===i?s:(i=c,s=e(a=o,l))}}function gg(t,e){var n,a,i,s="style."+e,o="end."+s,l;return function(){var c=er(this,t),u=c.on,g=c.value[s]==null?l||(l=wl(e)):void 0;(u!==n||i!==g)&&(a=(n=u).copy()).on(o,i=g),c.on=a}}function vg(t,e,n){var a=(t+="")=="transform"?Oh:Pl;return e==null?this.styleTween(t,fg(t,a)).on("end.style."+t,wl(t)):typeof e=="function"?this.styleTween(t,hg(t,a,Ts(this,"style."+t,e))).each(gg(this._id,t)):this.styleTween(t,dg(t,a,e),n).on("end.style."+t,null)}function pg(t,e,n){return function(a){this.style.setProperty(t,e.call(this,a),n)}}function mg(t,e,n){var a,i;function s(){var o=e.apply(this,arguments);return o!==i&&(a=(i=o)&&pg(t,o,n)),a}return s._value=e,s}function yg(t,e,n){var a="style."+(t+="");if(arguments.length<2)return(a=this.tween(a))&&a._value;if(e==null)return this.tween(a,null);if(typeof e!="function")throw new Error;return this.tween(a,mg(t,e,n==null?"":n))}function xg(t){return function(){this.textContent=t}}function Tg(t){return function(){var e=t(this);this.textContent=e==null?"":e}}function $g(t){return this.tween("text",typeof t=="function"?Tg(Ts(this,"text",t)):xg(t==null?"":t+""))}function Sg(t){return function(e){this.textContent=t.call(this,e)}}function Ag(t){var e,n;function a(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&Sg(i)),e}return a._value=t,a}function bg(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Ag(t))}function Eg(){for(var t=this._name,e=this._id,n=Ll(),a=this._groups,i=a.length,s=0;s<i;++s)for(var o=a[s],l=o.length,c,u=0;u<l;++u)if(c=o[u]){var g=Qn(c,e);pi(c,t,n,u,o,{time:g.time+g.delay+g.duration,delay:0,duration:g.duration,ease:g.ease})}return new fr(a,this._parents,t,n)}function Rg(){var t,e,n=this,a=n._id,i=n.size();return new Promise(function(s,o){var l={value:o},c={value:function(){--i===0&&s()}};n.each(function(){var u=er(this,a),g=u.on;g!==t&&(e=(t=g).copy(),e._.cancel.push(l),e._.interrupt.push(l),e._.end.push(c)),u.on=e}),i===0&&s()})}var Og=0;function fr(t,e,n,a){this._groups=t,this._parents=e,this._name=n,this._id=a}function Ml(t){return mn().transition(t)}function Ll(){return++Og}var dr=mn.prototype;fr.prototype=Ml.prototype={constructor:fr,select:og,selectAll:lg,selectChild:dr.selectChild,selectChildren:dr.selectChildren,filter:tg,merge:eg,selection:ug,transition:Eg,call:dr.call,nodes:dr.nodes,node:dr.node,size:dr.size,empty:dr.empty,each:dr.each,on:ag,attr:Uh,attrTween:Xh,style:vg,styleTween:yg,text:$g,textTween:bg,remove:sg,tween:wh,delay:Wh,duration:kh,ease:Qh,easeVarying:qh,end:Rg,[Symbol.iterator]:dr[Symbol.iterator]};function J0(t){return t*t*t}function Q0(t){return--t*t*t+1}function Ig(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Cg={time:null,delay:0,duration:250,ease:Ig};function Pg(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function wg(t){var e,n;t instanceof fr?(e=t._id,t=t._name):(e=Ll(),(n=Cg).time=gs(),t=t==null?null:t+"");for(var a=this._groups,i=a.length,s=0;s<i;++s)for(var o=a[s],l=o.length,c,u=0;u<l;++u)(c=o[u])&&pi(c,t,e,u,o,n||Pg(c,e));return new fr(a,this._parents,t,e)}mn.prototype.interrupt=bh,mn.prototype.transition=wg;var $s=t=>()=>t;function Mg(t,{sourceEvent:e,target:n,selection:a,mode:i,dispatch:s}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:a,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:s}})}function Lg(t){t.stopImmediatePropagation()}function Ss(t){t.preventDefault(),t.stopImmediatePropagation()}var Dl={name:"drag"},As={name:"space"},qr={name:"handle"},ta={name:"center"};const{abs:Nl,max:Sn,min:An}=Math;function Fl(t){return[+t[0],+t[1]]}function bs(t){return[Fl(t[0]),Fl(t[1])]}var yi={name:"x",handles:["w","e"].map(Pa),input:function(t,e){return t==null?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},xi={name:"y",handles:["n","s"].map(Pa),input:function(t,e){return t==null?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},Dg={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Pa),input:function(t){return t==null?null:bs(t)},output:function(t){return t}},hr={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"},Bl={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Ul={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Ng={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Fg={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Pa(t){return{type:t}}function Bg(t){return!t.ctrlKey&&!t.button}function Ug(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function zg(){return navigator.maxTouchPoints||"ontouchstart"in this}function Es(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function jg(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function zl(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function Gg(){return Rs(yi)}function Vg(){return Rs(xi)}function _0(){return Rs(Dg)}function Rs(t){var e=Ug,n=Bg,a=zg,i=!0,s=ni("start","brush","end"),o=6,l;function c(L){var C=L.property("__brush",N).selectAll(".overlay").data([Pa("overlay")]);C.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",hr.overlay).merge(C).each(function(){var H=Es(this).extent;st(this).attr("x",H[0][0]).attr("y",H[0][1]).attr("width",H[1][0]-H[0][0]).attr("height",H[1][1]-H[0][1])}),L.selectAll(".selection").data([Pa("selection")]).enter().append("rect").attr("class","selection").attr("cursor",hr.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var V=L.selectAll(".handle").data(t.handles,function(H){return H.type});V.exit().remove(),V.enter().append("rect").attr("class",function(H){return"handle handle--"+H.type}).attr("cursor",function(H){return hr[H.type]}),L.each(u).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",m).filter(a).on("touchstart.brush",m).on("touchmove.brush",S).on("touchend.brush touchcancel.brush",I).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}c.move=function(L,C,V){L.tween?L.on("start.brush",function(H){g(this,arguments).beforestart().start(H)}).on("interrupt.brush end.brush",function(H){g(this,arguments).end(H)}).tween("brush",function(){var H=this,Y=H.__brush,_=g(H,arguments),K=Y.selection,at=t.input(typeof C=="function"?C.apply(this,arguments):C,Y.extent),mt=Jr(K,at);function St(dt){Y.selection=dt===1&&at===null?null:mt(dt),u.call(H),_.brush()}return K!==null&&at!==null?St:St(1)}):L.each(function(){var H=this,Y=arguments,_=H.__brush,K=t.input(typeof C=="function"?C.apply(H,Y):C,_.extent),at=g(H,Y).beforestart();_r(H),_.selection=K===null?null:K,u.call(H),at.start(V).brush(V).end(V)})},c.clear=function(L,C){c.move(L,null,C)};function u(){var L=st(this),C=Es(this).selection;C?(L.selectAll(".selection").style("display",null).attr("x",C[0][0]).attr("y",C[0][1]).attr("width",C[1][0]-C[0][0]).attr("height",C[1][1]-C[0][1]),L.selectAll(".handle").style("display",null).attr("x",function(V){return V.type[V.type.length-1]==="e"?C[1][0]-o/2:C[0][0]-o/2}).attr("y",function(V){return V.type[0]==="s"?C[1][1]-o/2:C[0][1]-o/2}).attr("width",function(V){return V.type==="n"||V.type==="s"?C[1][0]-C[0][0]+o:o}).attr("height",function(V){return V.type==="e"||V.type==="w"?C[1][1]-C[0][1]+o:o})):L.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function g(L,C,V){var H=L.__brush.emitter;return H&&(!V||!H.clean)?H:new v(L,C,V)}function v(L,C,V){this.that=L,this.args=C,this.state=L.__brush,this.active=0,this.clean=V}v.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(L,C){return this.starting?(this.starting=!1,this.emit("start",L,C)):this.emit("brush",L),this},brush:function(L,C){return this.emit("brush",L,C),this},end:function(L,C){return--this.active===0&&(delete this.state.emitter,this.emit("end",L,C)),this},emit:function(L,C,V){var H=st(this.that).datum();s.call(L,this.that,new Mg(L,{sourceEvent:C,target:c,selection:t.output(this.state.selection),mode:V,dispatch:s}),H)}};function m(L){if(l&&!L.touches||!n.apply(this,arguments))return;var C=this,V=L.target.__data__.type,H=(i&&L.metaKey?V="overlay":V)==="selection"?Dl:i&&L.altKey?ta:qr,Y=t===xi?null:Ng[V],_=t===yi?null:Fg[V],K=Es(C),at=K.extent,mt=K.selection,St=at[0][0],dt,lt,Gt=at[0][1],gt,Z,$t=at[1][0],ct,At,Vt=at[1][1],Bt,Kt,ne=0,le=0,Ee,Ie=Y&&_&&i&&L.shiftKey,Ce,Ye,Fe=Array.from(L.touches||[L],pe=>{const fn=pe.identifier;return pe=Yn(pe,C),pe.point0=pe.slice(),pe.identifier=fn,pe});_r(C);var hn=g(C,arguments,!0).beforestart();if(V==="overlay"){mt&&(Ee=!0);const pe=[Fe[0],Fe[1]||Fe[0]];K.selection=mt=[[dt=t===xi?St:An(pe[0][0],pe[1][0]),gt=t===yi?Gt:An(pe[0][1],pe[1][1])],[ct=t===xi?$t:Sn(pe[0][0],pe[1][0]),Bt=t===yi?Vt:Sn(pe[0][1],pe[1][1])]],Fe.length>1&&un(L)}else dt=mt[0][0],gt=mt[0][1],ct=mt[1][0],Bt=mt[1][1];lt=dt,Z=gt,At=ct,Kt=Bt;var kt=st(C).attr("pointer-events","none"),xe=kt.selectAll(".overlay").attr("cursor",hr[V]);if(L.touches)hn.moved=Dt,hn.ended=Ge;else{var Re=st(L.view).on("mousemove.brush",Dt,!0).on("mouseup.brush",Ge,!0);i&&Re.on("keydown.brush",Cn,!0).on("keyup.brush",Pn,!0),ls(L.view)}u.call(C),hn.start(L,H.name);function Dt(pe){for(const fn of pe.changedTouches||[pe])for(const Ga of Fe)Ga.identifier===fn.identifier&&(Ga.cur=Yn(fn,C));if(Ie&&!Ce&&!Ye&&Fe.length===1){const fn=Fe[0];Nl(fn.cur[0]-fn[0])>Nl(fn.cur[1]-fn[1])?Ye=!0:Ce=!0}for(const fn of Fe)fn.cur&&(fn[0]=fn.cur[0],fn[1]=fn.cur[1]);Ee=!0,Ss(pe),un(pe)}function un(pe){const fn=Fe[0],Ga=fn.point0;var Er;switch(ne=fn[0]-Ga[0],le=fn[1]-Ga[1],H){case As:case Dl:{Y&&(ne=Sn(St-dt,An($t-ct,ne)),lt=dt+ne,At=ct+ne),_&&(le=Sn(Gt-gt,An(Vt-Bt,le)),Z=gt+le,Kt=Bt+le);break}case qr:{Fe[1]?(Y&&(lt=Sn(St,An($t,Fe[0][0])),At=Sn(St,An($t,Fe[1][0])),Y=1),_&&(Z=Sn(Gt,An(Vt,Fe[0][1])),Kt=Sn(Gt,An(Vt,Fe[1][1])),_=1)):(Y<0?(ne=Sn(St-dt,An($t-dt,ne)),lt=dt+ne,At=ct):Y>0&&(ne=Sn(St-ct,An($t-ct,ne)),lt=dt,At=ct+ne),_<0?(le=Sn(Gt-gt,An(Vt-gt,le)),Z=gt+le,Kt=Bt):_>0&&(le=Sn(Gt-Bt,An(Vt-Bt,le)),Z=gt,Kt=Bt+le));break}case ta:{Y&&(lt=Sn(St,An($t,dt-ne*Y)),At=Sn(St,An($t,ct+ne*Y))),_&&(Z=Sn(Gt,An(Vt,gt-le*_)),Kt=Sn(Gt,An(Vt,Bt+le*_)));break}}At<lt&&(Y*=-1,Er=dt,dt=ct,ct=Er,Er=lt,lt=At,At=Er,V in Bl&&xe.attr("cursor",hr[V=Bl[V]])),Kt<Z&&(_*=-1,Er=gt,gt=Bt,Bt=Er,Er=Z,Z=Kt,Kt=Er,V in Ul&&xe.attr("cursor",hr[V=Ul[V]])),K.selection&&(mt=K.selection),Ce&&(lt=mt[0][0],At=mt[1][0]),Ye&&(Z=mt[0][1],Kt=mt[1][1]),(mt[0][0]!==lt||mt[0][1]!==Z||mt[1][0]!==At||mt[1][1]!==Kt)&&(K.selection=[[lt,Z],[At,Kt]],u.call(C),hn.brush(pe,H.name))}function Ge(pe){if(Lg(pe),pe.touches){if(pe.touches.length)return;l&&clearTimeout(l),l=setTimeout(function(){l=null},500)}else cs(pe.view,Ee),Re.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);kt.attr("pointer-events","all"),xe.attr("cursor",hr.overlay),K.selection&&(mt=K.selection),jg(mt)&&(K.selection=null,u.call(C)),hn.end(pe,H.name)}function Cn(pe){switch(pe.keyCode){case 16:{Ie=Y&&_;break}case 18:{H===qr&&(Y&&(ct=At-ne*Y,dt=lt+ne*Y),_&&(Bt=Kt-le*_,gt=Z+le*_),H=ta,un(pe));break}case 32:{(H===qr||H===ta)&&(Y<0?ct=At-ne:Y>0&&(dt=lt-ne),_<0?Bt=Kt-le:_>0&&(gt=Z-le),H=As,xe.attr("cursor",hr.selection),un(pe));break}default:return}Ss(pe)}function Pn(pe){switch(pe.keyCode){case 16:{Ie&&(Ce=Ye=Ie=!1,un(pe));break}case 18:{H===ta&&(Y<0?ct=At:Y>0&&(dt=lt),_<0?Bt=Kt:_>0&&(gt=Z),H=qr,un(pe));break}case 32:{H===As&&(pe.altKey?(Y&&(ct=At-ne*Y,dt=lt+ne*Y),_&&(Bt=Kt-le*_,gt=Z+le*_),H=ta):(Y<0?ct=At:Y>0&&(dt=lt),_<0?Bt=Kt:_>0&&(gt=Z),H=qr),xe.attr("cursor",hr[V]),un(pe));break}default:return}Ss(pe)}}function S(L){g(this,arguments).moved(L)}function I(L){g(this,arguments).ended(L)}function N(){var L=this.__brush||{selection:null};return L.extent=bs(e.apply(this,arguments)),L.dim=t,L}return c.extent=function(L){return arguments.length?(e=typeof L=="function"?L:$s(bs(L)),c):e},c.filter=function(L){return arguments.length?(n=typeof L=="function"?L:$s(!!L),c):n},c.touchable=function(L){return arguments.length?(a=typeof L=="function"?L:$s(!!L),c):a},c.handleSize=function(L){return arguments.length?(o=+L,c):o},c.keyModifiers=function(L){return arguments.length?(i=!!L,c):i},c.on=function(){var L=s.on.apply(s,arguments);return L===s?c:L},c}function Xg(){return typeof globalThis=="object"&&globalThis!==null&&globalThis.Object===Object&&globalThis||typeof global=="object"&&global!==null&&global.Object===Object&&global||typeof self=="object"&&self!==null&&self.Object===Object&&self||Function("return this")()}function Yg(t){const e=typeof(t==null?void 0:t.requestAnimationFrame)=="function"&&typeof(t==null?void 0:t.cancelAnimationFrame)=="function",n=typeof(t==null?void 0:t.requestIdleCallback)=="function"&&typeof(t==null?void 0:t.cancelIdleCallback)=="function",a=s=>setTimeout(s,1),i=s=>clearTimeout(s);return[e?t.requestAnimationFrame:a,e?t.cancelAnimationFrame:i,n?t.requestIdleCallback:a,n?t.cancelIdleCallback:i]}const Ke=Xg(),vn=Ke==null?void 0:Ke.document,[Hg,q0,jl,t1]=Yg(Ke);var Wg=Object.defineProperty,Gl=Object.getOwnPropertySymbols,Kg=Object.prototype.hasOwnProperty,Zg=Object.prototype.propertyIsEnumerable,Vl=(t,e,n)=>e in t?Wg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Xl=(t,e)=>{for(var n in e||(e={}))Kg.call(e,n)&&Vl(t,n,e[n]);if(Gl)for(var n of Gl(e))Zg.call(e,n)&&Vl(t,n,e[n]);return t};const Le=t=>t||t===0,he=t=>typeof t=="function",Xe=t=>typeof t=="string",ge=t=>typeof t=="number",ln=t=>typeof t=="undefined",Je=t=>typeof t!="undefined",Os=t=>typeof t=="boolean",kg=t=>Math.ceil(t/10)*10,Ti=t=>Math.ceil(t)+.5,Lr=t=>t[1]-t[0],nr=t=>typeof t=="object",_n=t=>ln(t)||t===null||Xe(t)&&t.length===0||nr(t)&&!(t instanceof Date)&&Object.keys(t).length===0||ge(t)&&isNaN(t),cn=t=>!_n(t),ze=t=>Array.isArray(t),Be=t=>t&&!(t!=null&&t.nodeType)&&nr(t)&&!ze(t);function $r(t,e,n){return Je(t[e])?t[e]:n}function Jg(t,e){let n=!1;return Object.keys(t).forEach(a=>t[a]===e&&(n=!0)),n}function qe(t,e,...n){const a=he(t);return a&&t.call(e,...n),a}function $i(t,e){let n=0;const a=function(...i){!--n&&e.apply(this,...i)};"duration"in t?t.each(()=>++n).on("end",a):(++n,t.call(a))}function Is(t){return Xe(t)?t.replace(/<(script|img)?/ig,"<").replace(/(script)?>/ig,">"):t}function wa(t,e,n=[-1,1],a=!1){if(!(!t||!Xe(e)))if(e.indexOf(`
|
|
30
30
|
`)===-1)t.text(e);else{const i=[t.text(),e].map(s=>s.replace(/[\s\n]/g,""));if(i[0]!==i[1]){const s=e.split(`
|
|
31
|
-
`),o=a?s.length-1:1;t.html(""),s.forEach((l,c)=>{t.append("tspan").attr("x",0).attr("dy",`${c===0?n[0]*o:n[1]}em`).text(l)})}}}function Vl(t){const{x:e,y:n,width:a,height:i}=t.getBBox();return[{x:e,y:n+i},{x:e,y:n},{x:e+a,y:n},{x:e+a,y:n+i}]}function Xl(t){const{width:e,height:n}=t.getBoundingClientRect(),a=Vl(t),i=a[0].x,s=Math.min(a[0].y,a[1].y);return{x:i,y:s,width:e,height:n}}function Hn(t,e){var n;const a=t&&((n=t.touches||t.sourceEvent&&t.sourceEvent.touches)==null?void 0:n[0]);let i=[0,0];try{i=Yn(a||t,e)}catch(s){}return i.map(s=>isNaN(s)?0:s)}function Yl(t){const{event:e,$el:n}=t,a=n.subchart.main||n.main;let i;return e&&e.type==="brush"?i=e.selection:a&&(i=a.select(".bb-brush").node())&&(i=Bl(i)),i}function Si(t){return!("rect"in t)||"rect"in t&&t.hasAttribute("width")&&t.rect.width!==+t.getAttribute("width")?t.rect=t.getBoundingClientRect():t.rect}function gr(t=!0,e=0,n=1e4){const a=We.crypto||We.msCrypto,i=a?e+a.getRandomValues(new Uint32Array(1))[0]%(n-e+1):Math.floor(Math.random()*(n-e)+e);return t?String(i):i}function Cs(t,e,n,a,i){if(n>a)return-1;const s=Math.floor((n+a)/2);let{x:o,w:l=0}=t[s];return i&&(o=t[s].y,l=t[s].h),e>=o&&e<=o+l?s:e<o?Cs(t,e,n,s-1,i):Cs(t,e,s+1,a,i)}function Hl(t){const e=Yl(t);return e?e[0]===e[1]:!0}function kg(...t){const e=n=>{if(Ne(n)&&n.constructor){const a=new n.constructor;for(const i in n)a[i]=e(n[i]);return a}return n};return t.map(n=>e(n)).reduce((n,a)=>Gl(Gl({},n),a))}function xn(t={},e){Be(e)&&e.forEach(n=>xn(t,n));for(const n in e)/^\d+$/.test(n)||n in t||(t[n]=e[n]);return t}const Ln=t=>t.charAt(0).toUpperCase()+t.slice(1);function Jg(t,e="-"){return t.split(e).map((n,a)=>a?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()).join("")}const Dr=t=>[].slice.call(t);function Qg(t,e,n){const{rootSelector:a="",sheet:i}=t,o=`${a} ${(l=>l.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(e)} {${n.join(";")}}`;return i[i.insertRule?"insertRule":"addRule"](o,i.cssRules.length)}function _g(t){let e=[];return t.forEach(n=>{var a;try{n.cssRules&&n.cssRules.length&&(e=e.concat(Dr(n.cssRules)))}catch(i){(a=We.console)==null||a.warn(`Error while reading rules from ${n.href}: ${i.toString()}`)}}),e}function Wl(t){var e,n,a,i,s,o;return{x:((n=(e=We.pageXOffset)!=null?e:We.scrollX)!=null?n:0)+((a=t.scrollLeft)!=null?a:0),y:((s=(i=We.pageYOffset)!=null?i:We.scrollY)!=null?s:0)+((o=t.scrollTop)!=null?o:0)}}function Kl(t){const 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 Ps(t){const e=t[0]instanceof Date,n=(e?t.map(Number):t).filter((a,i,s)=>s.indexOf(a)===i);return e?n.map(a=>new Date(a)):n}function ws(t){return t&&t.length?t.reduce((e,n)=>e.concat(n)):[]}function ea(t,...e){if(!e.length||e.length===1&&!e[0])return t;const n=e.shift();return Ne(t)&&Ne(n)&&Object.keys(n).forEach(a=>{const i=n[a];Ne(i)?(!t[a]&&(t[a]={}),t[a]=ea(t[a],i)):t[a]=Be(i)?i.concat():i}),ea(t,...e)}function na(t,e=!0){let n;return t[0]instanceof Date?n=e?(a,i)=>a-i:(a,i)=>i-a:e&&!t.every(isNaN)?n=(a,i)=>a-i:e||(n=(a,i)=>a>i&&-1||a<i&&1||a===i&&0),t.concat().sort(n)}function qn(t,e){let n=e.filter(a=>ln(a));return n.length?he(n[0])?n=Math[t](...n):n[0]instanceof Date&&(n=na(n,t==="min")[0]):n=void 0,n}const Ai=(t,e,n=1)=>{const a=[],i=Math.max(0,Math.ceil((e-t)/n))|0;for(let s=t;s<i;s++)a.push(t+s*n);return a},qg={mouse:(()=>{const t=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(e,n,a=t())=>{e.dispatchEvent(new MouseEvent(n,a))}}catch(e){return(n,a,i=t())=>{const s=vn.createEvent("MouseEvent");s.initMouseEvent(a,i.bubbles,i.cancelable,We,0,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),n.dispatchEvent(s)}}})(),touch:(t,e,n)=>{const a=new Touch(ea({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:[a],targetTouches:[],changedTouches:[a]}))}};function bi(t,e){let n=t;for(const a in e)n=n.replace(new RegExp(`{=${a}}`,"g"),e[a]);return n}function zn(t){var e;let n;if(t instanceof Date)n=t;else if(Ge(t)){const{config:a,format:i}=this;n=(e=i.dataTime(a.data_xFormat)(t))!=null?e:new Date(t)}else he(t)&&!isNaN(t)&&(n=new Date(+t));return(!n||isNaN(+n))&&console&&console.error&&console.error(`Failed to parse x '${t}' to Date object`),n}function Ma(){var t,e;return((t=vn)==null?void 0:t.hidden)===!1||((e=vn)==null?void 0:e.visibilityState)==="visible"}function tv(t,e){const{DocumentTouch:n,matchMedia:a,navigator:i}=We;let s=!1;if(e)if(i&&"maxTouchPoints"in i)s=i.maxTouchPoints>0;else if("ontouchmove"in We||n&&vn instanceof n)s=!0;else if(a!=null&&a("(pointer:coarse)").matches)s=!0;else{const l=i.userAgent;s=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(l)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(l)}return t&&((a==null?void 0:a("any-hover:hover").matches)||(a==null?void 0:a("any-pointer:fine").matches))&&"mouse"||s&&"touch"||"mouse"}function Zl(t,e){e()===!1?Xg(()=>Zl(t,e)):t()}var ev=Object.defineProperty,kl=Object.getOwnPropertySymbols,nv=Object.prototype.hasOwnProperty,rv=Object.prototype.propertyIsEnumerable,Ms=(t,e,n)=>e in t?ev(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Jl=(t,e)=>{for(var n in e||(e={}))nv.call(e,n)&&Ms(t,n,e[n]);if(kl)for(var n of kl(e))rv.call(e,n)&&Ms(t,n,e[n]);return t},av=(t,e,n)=>Ms(t,typeof e!="symbol"?e+"":e,n);const Ql=class Af{static setOptions(e){this.data=e.reduce((n,a)=>Jl(Jl({},n),a),this.data)}constructor(){return kg(zd,Fd,Vd,Bd,Xd,Ud,jd,Gd,Af.data)}};av(Ql,"data",{});let Nr=Ql;class iv{constructor(){return{chart:null,main:null,svg:null,axis:{x:null,y:null,y2:null,subX:null},axisTooltip:{x:null,y:null,y2: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}}}class sv{constructor(){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,hasFunnel:!1,hasRadar:!1,hasTreemap:!1,cssRule:{},current:{domain:void 0,width:0,height:0,dataMax:0,maxTickSize:{x:{width:0,height:0,ticks:[],clipPath:0,domain:""},y:{width:0,height:0,domain:""},y2:{width:0,height:0,domain:""}},types:[],needle:void 0},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",orgConfig:{},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}}}}const _l={element:iv,state:sv};class ov{constructor(){Object.keys(_l).forEach(e=>{this[e]=new _l[e]})}getStore(e){return this[e]}}var lv=Object.defineProperty,cv=(t,e,n)=>e in t?lv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,uv=(t,e,n)=>cv(t,typeof e!="symbol"?e+"":e,n);const Dn={bubbleBaseLength:"$baseLength",colorPattern:"__colorPattern__",dataMinMax:"$dataMinMax",dataTotalSum:"$dataTotalSum",dataTotalPerIndex:"$totalPerIndex",legendItemTextBox:"legendItemTextBox",radarPoints:"$radarPoints",radarTextWidth:"$radarTextWidth",setOverOut:"setOverOut",callOverOutForTouch:"callOverOutForTouch",textRect:"textRect"};class fv{constructor(){uv(this,"cache",{})}add(e,n,a=!1){return this.cache[e]=a?this.cloneTarget(n):n,this.cache[e]}remove(e){(Ge(e)?[e]:e).forEach(n=>delete this.cache[n])}get(e,n=!1){if(n&&Array.isArray(e)){const a=[];for(let i=0,s;s=e[i];i++)s in this.cache&&a.push(this.cloneTarget(this.cache[s]));return a}else{const a=this.cache[e];return we(a)?a:null}}reset(e){const n=this;for(const a in n.cache)(e||/^\$/.test(a))&&(n.cache[a]=null)}cloneTarget(e){return{id:e.id,id_org:e.id_org,values:e.values.map(n=>({x:n.x,value:n.value,id:n.id}))}}}const oe={AREA:"area",AREA_LINE_RANGE:"area-line-range",AREA_SPLINE:"area-spline",AREA_SPLINE_RANGE:"area-spline-range",AREA_STEP:"area-step",AREA_STEP_RANGE:"area-step-range",BAR:"bar",BUBBLE:"bubble",CANDLESTICK:"candlestick",DONUT:"donut",FUNNEL:"funnel",GAUGE:"gauge",LINE:"line",PIE:"pie",POLAR:"polar",RADAR:"radar",SCATTER:"scatter",SPLINE:"spline",STEP:"step",TREEMAP:"treemap"},Ls={AREA:"initArea",AREA_LINE_RANGE:"initArea",AREA_SPLINE:"initArea",AREA_SPLINE_RANGE:"initArea",AREA_STEP:"initArea",AREA_STEP_RANGE:"initArea",BAR:"initBar",BUBBLE:"initCircle",CANDLESTICK:"initCandlestick",DONUT:"initArc",FUNNEL:"initFunnel",GAUGE:"initArc",LINE:"initLine",PIE:"initArc",POLAR:"initPolar",RADAR:"initCircle",SCATTER:"initCircle",SPLINE:"initLine",STEP:"initLine",TREEMAP:"initTreemap"},Sr={Area:[oe.AREA,oe.AREA_SPLINE,oe.AREA_SPLINE_RANGE,oe.AREA_LINE_RANGE,oe.AREA_STEP,oe.AREA_STEP_RANGE],AreaRange:[oe.AREA_SPLINE_RANGE,oe.AREA_LINE_RANGE,oe.AREA_STEP_RANGE],Arc:[oe.PIE,oe.DONUT,oe.GAUGE,oe.POLAR,oe.RADAR],Line:[oe.LINE,oe.SPLINE,oe.AREA,oe.AREA_SPLINE,oe.AREA_SPLINE_RANGE,oe.AREA_LINE_RANGE,oe.STEP,oe.AREA_STEP,oe.AREA_STEP_RANGE],Step:[oe.STEP,oe.AREA_STEP,oe.AREA_STEP_RANGE],Spline:[oe.SPLINE,oe.AREA_SPLINE,oe.AREA_SPLINE_RANGE]};function dv(t){const e=t,{config:n}=e;let a="";if(_n(n.data_type||n.data_types)&&!e[Ls.LINE])a="line";else for(const i in Ls){const s=oe[i];if(e.hasType(s)&&!e[Ls[i]]){a=s;break}}a&&hv(`Please, make sure if %c${Jg(a)}`,"module has been imported and specified correctly.")}function hv(t,e){var n;const a="[billboard.js]";throw((n=We.console)==null?void 0:n.error)&&(console.error(`\u274C ${a} ${t}`,"background:red;color:white;display:block;font-size:15px",e),console.info("%c\u2139\uFE0F","font-size:15px","https://github.com/naver/billboard.js/wiki/CHANGELOG-v2#modularization-by-its-functionality")),Error(`${a} ${t.replace(/\%c([a-z-]+)/i,"'$1' ")} ${e}`)}const{setTimeout:gv,clearTimeout:vv}=We;function pv(t){const e=[];let n;const a=function(){a.clear(),t===!1?Ul(()=>{e.forEach(i=>i())},{timeout:200}):n=gv(()=>{e.forEach(i=>i())},he(t)?t:200)};return a.clear=()=>{n&&(vv(n),n=null)},a.add=i=>e.push(i),a.remove=i=>e.splice(e.indexOf(i),1),a}function ql(){let t=[];const e=function(n,a){function i(){var s;let o=0;for(let l=0,c;c=t[l];l++){if(c===!0||(s=c.empty)!=null&&s.call(c)){o++;continue}if(Ma()===!1){o=t.length;break}try{c.transition()}catch(u){o++}}return o===t.length}Zl(()=>{a==null||a()},i)};return e.add=function(n){Be(n)?t=t.concat(n):t.push(n)},e}const Ds={};function mv(t,e){var n;const a=t.toString(),i=a.replace(/(function|[\s\W\n])/g,"").substring(0,15);return i in Ds||(Ds[i]=new We.Blob([`${(n=e==null?void 0:e.map(String).join(";"))!=null?n:""}
|
|
31
|
+
`),o=a?s.length-1:1;t.html(""),s.forEach((l,c)=>{t.append("tspan").attr("x",0).attr("dy",`${c===0?n[0]*o:n[1]}em`).text(l)})}}}function Yl(t){const{x:e,y:n,width:a,height:i}=t.getBBox();return[{x:e,y:n+i},{x:e,y:n},{x:e+a,y:n},{x:e+a,y:n+i}]}function Hl(t){const{width:e,height:n}=t.getBoundingClientRect(),a=Yl(t),i=a[0].x,s=Math.min(a[0].y,a[1].y);return{x:i,y:s,width:e,height:n}}function Hn(t,e){var n;const a=t&&((n=t.touches||t.sourceEvent&&t.sourceEvent.touches)==null?void 0:n[0]);let i=[0,0];try{i=Yn(a||t,e)}catch(s){}return i.map(s=>isNaN(s)?0:s)}function Wl(t){const{event:e,$el:n}=t,a=n.subchart.main||n.main;let i;return e&&e.type==="brush"?i=e.selection:a&&(i=a.select(".bb-brush").node())&&(i=zl(i)),i}function Si(t){return!("rect"in t)||"rect"in t&&t.hasAttribute("width")&&t.rect.width!==+t.getAttribute("width")?t.rect=t.getBoundingClientRect():t.rect}function gr(t=!0,e=0,n=1e4){const a=Ke.crypto||Ke.msCrypto,i=a?e+a.getRandomValues(new Uint32Array(1))[0]%(n-e+1):Math.floor(Math.random()*(n-e)+e);return t?String(i):i}function Cs(t,e,n,a,i){if(n>a)return-1;const s=Math.floor((n+a)/2);let{x:o,w:l=0}=t[s];return i&&(o=t[s].y,l=t[s].h),e>=o&&e<=o+l?s:e<o?Cs(t,e,n,s-1,i):Cs(t,e,s+1,a,i)}function Kl(t){const e=Wl(t);return e?e[0]===e[1]:!0}function Qg(...t){const e=n=>{if(Be(n)&&n.constructor){const a=new n.constructor;for(const i in n)a[i]=e(n[i]);return a}return n};return t.map(n=>e(n)).reduce((n,a)=>Xl(Xl({},n),a))}function xn(t={},e){ze(e)&&e.forEach(n=>xn(t,n));for(const n in e)/^\d+$/.test(n)||n in t||(t[n]=e[n]);return t}const Ln=t=>t.charAt(0).toUpperCase()+t.slice(1);function _g(t,e="-"){return t.split(e).map((n,a)=>a?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()).join("")}const Dr=t=>[].slice.call(t);function qg(t,e,n){const{rootSelector:a="",sheet:i}=t,o=`${a} ${(l=>l.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(e)} {${n.join(";")}}`;return i[i.insertRule?"insertRule":"addRule"](o,i.cssRules.length)}function tv(t){let e=[];return t.forEach(n=>{var a;try{n.cssRules&&n.cssRules.length&&(e=e.concat(Dr(n.cssRules)))}catch(i){(a=Ke.console)==null||a.warn(`Error while reading rules from ${n.href}: ${i.toString()}`)}}),e}function Zl(t){var e,n,a,i,s,o;return{x:((n=(e=Ke.pageXOffset)!=null?e:Ke.scrollX)!=null?n:0)+((a=t.scrollLeft)!=null?a:0),y:((s=(i=Ke.pageYOffset)!=null?i:Ke.scrollY)!=null?s:0)+((o=t.scrollTop)!=null?o:0)}}function Ps(t,e=0,n=0,a=!0){const i=new DOMPoint(e,n),s=t.getScreenCTM();return i.matrixTransform(a?s==null?void 0:s.inverse():s)}function kl(t){const 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 ws(t){const e=t[0]instanceof Date,n=(e?t.map(Number):t).filter((a,i,s)=>s.indexOf(a)===i);return e?n.map(a=>new Date(a)):n}function Ms(t){return t&&t.length?t.reduce((e,n)=>e.concat(n)):[]}function ea(t,...e){if(!e.length||e.length===1&&!e[0])return t;const n=e.shift();return Be(t)&&Be(n)&&Object.keys(n).forEach(a=>{const i=n[a];Be(i)?(!t[a]&&(t[a]={}),t[a]=ea(t[a],i)):t[a]=ze(i)?i.concat():i}),ea(t,...e)}function na(t,e=!0){let n;return t[0]instanceof Date?n=e?(a,i)=>a-i:(a,i)=>i-a:e&&!t.every(isNaN)?n=(a,i)=>a-i:e||(n=(a,i)=>a>i&&-1||a<i&&1||a===i&&0),t.concat().sort(n)}function qn(t,e){let n=e.filter(a=>cn(a));return n.length?ge(n[0])?n=Math[t](...n):n[0]instanceof Date&&(n=na(n,t==="min")[0]):n=void 0,n}const Ai=(t,e,n=1)=>{const a=[],i=Math.max(0,Math.ceil((e-t)/n))|0;for(let s=t;s<i;s++)a.push(t+s*n);return a},ev={mouse:(()=>{const t=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(e,n,a=t())=>{e.dispatchEvent(new MouseEvent(n,a))}}catch(e){return(n,a,i=t())=>{const s=vn.createEvent("MouseEvent");s.initMouseEvent(a,i.bubbles,i.cancelable,Ke,0,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),n.dispatchEvent(s)}}})(),touch:(t,e,n)=>{const a=new Touch(ea({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:[a],targetTouches:[],changedTouches:[a]}))}};function bi(t,e){let n=t;for(const a in e)n=n.replace(new RegExp(`{=${a}}`,"g"),e[a]);return n}function zn(t){var e;let n;if(t instanceof Date)n=t;else if(Xe(t)){const{config:a,format:i}=this;n=(e=i.dataTime(a.data_xFormat)(t))!=null?e:new Date(t)}else ge(t)&&!isNaN(t)&&(n=new Date(+t));return(!n||isNaN(+n))&&console&&console.error&&console.error(`Failed to parse x '${t}' to Date object`),n}function Ls(t){const e=t.attr("viewBox");return e?/(\d+(\.\d+)?){3}/.test(e):!1}function nv(t,e,n=!1){const a=!!t.node;let i=!1;for(const[s,o]of Object.entries(e))if(i=a?t.style(s)===o:t.style[s]===o,n===!1&&i)break;return i}function Ma(){var t,e;return((t=vn)==null?void 0:t.hidden)===!1||((e=vn)==null?void 0:e.visibilityState)==="visible"}function rv(t,e){const{DocumentTouch:n,matchMedia:a,navigator:i}=Ke,s=a==null?void 0:a("(pointer:coarse)").matches;let o=!1;if(e)if(i&&"maxTouchPoints"in i)o=i.maxTouchPoints>0;else if("ontouchmove"in Ke||n&&vn instanceof n)o=!0;else if(s)o=!0;else{const c=i.userAgent;o=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(c)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(c)}return t&&!s&&(a==null?void 0:a("(pointer:fine)").matches)&&"mouse"||o&&"touch"||"mouse"}function Jl(t,e){e()===!1?Hg(()=>Jl(t,e)):t()}var av=Object.defineProperty,Ql=Object.getOwnPropertySymbols,iv=Object.prototype.hasOwnProperty,sv=Object.prototype.propertyIsEnumerable,Ds=(t,e,n)=>e in t?av(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,_l=(t,e)=>{for(var n in e||(e={}))iv.call(e,n)&&Ds(t,n,e[n]);if(Ql)for(var n of Ql(e))sv.call(e,n)&&Ds(t,n,e[n]);return t},ov=(t,e,n)=>Ds(t,typeof e!="symbol"?e+"":e,n);const ql=class Ef{static setOptions(e){this.data=e.reduce((n,a)=>_l(_l({},n),a),this.data)}constructor(){return Qg(Gd,Ud,Yd,zd,Hd,jd,Vd,Xd,Ef.data)}};ov(ql,"data",{});let Nr=ql;class lv{constructor(){return{chart:null,main:null,svg:null,axis:{x:null,y:null,y2:null,subX:null},axisTooltip:{x:null,y:null,y2: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}}}class cv{constructor(){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,hasFunnel:!1,hasRadar:!1,hasTreemap:!1,cssRule:{},current:{domain:void 0,width:0,height:0,dataMax:0,maxTickSize:{x:{width:0,height:0,ticks:[],clipPath:0,domain:""},y:{width:0,height:0,domain:""},y2:{width:0,height:0,domain:""}},types:[],needle:void 0},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",orgConfig:{},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}}}}const tc={element:lv,state:cv};class uv{constructor(){Object.keys(tc).forEach(e=>{this[e]=new tc[e]})}getStore(e){return this[e]}}var fv=Object.defineProperty,dv=(t,e,n)=>e in t?fv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,hv=(t,e,n)=>dv(t,typeof e!="symbol"?e+"":e,n);const Dn={bubbleBaseLength:"$baseLength",colorPattern:"__colorPattern__",dataMinMax:"$dataMinMax",dataTotalSum:"$dataTotalSum",dataTotalPerIndex:"$totalPerIndex",legendItemTextBox:"legendItemTextBox",radarPoints:"$radarPoints",radarTextWidth:"$radarTextWidth",setOverOut:"setOverOut",callOverOutForTouch:"callOverOutForTouch",textRect:"textRect"};class gv{constructor(){hv(this,"cache",{})}add(e,n,a=!1){return this.cache[e]=a?this.cloneTarget(n):n,this.cache[e]}remove(e){(Xe(e)?[e]:e).forEach(n=>delete this.cache[n])}get(e,n=!1){if(n&&Array.isArray(e)){const a=[];for(let i=0,s;s=e[i];i++)s in this.cache&&a.push(this.cloneTarget(this.cache[s]));return a}else{const a=this.cache[e];return Le(a)?a:null}}reset(e){const n=this;for(const a in n.cache)(e||/^\$/.test(a))&&(n.cache[a]=null)}cloneTarget(e){return{id:e.id,id_org:e.id_org,values:e.values.map(n=>({x:n.x,value:n.value,id:n.id}))}}}const se={AREA:"area",AREA_LINE_RANGE:"area-line-range",AREA_SPLINE:"area-spline",AREA_SPLINE_RANGE:"area-spline-range",AREA_STEP:"area-step",AREA_STEP_RANGE:"area-step-range",BAR:"bar",BUBBLE:"bubble",CANDLESTICK:"candlestick",DONUT:"donut",FUNNEL:"funnel",GAUGE:"gauge",LINE:"line",PIE:"pie",POLAR:"polar",RADAR:"radar",SCATTER:"scatter",SPLINE:"spline",STEP:"step",TREEMAP:"treemap"},Ns={AREA:"initArea",AREA_LINE_RANGE:"initArea",AREA_SPLINE:"initArea",AREA_SPLINE_RANGE:"initArea",AREA_STEP:"initArea",AREA_STEP_RANGE:"initArea",BAR:"initBar",BUBBLE:"initCircle",CANDLESTICK:"initCandlestick",DONUT:"initArc",FUNNEL:"initFunnel",GAUGE:"initArc",LINE:"initLine",PIE:"initArc",POLAR:"initPolar",RADAR:"initCircle",SCATTER:"initCircle",SPLINE:"initLine",STEP:"initLine",TREEMAP:"initTreemap"},Sr={Area:[se.AREA,se.AREA_SPLINE,se.AREA_SPLINE_RANGE,se.AREA_LINE_RANGE,se.AREA_STEP,se.AREA_STEP_RANGE],AreaRange:[se.AREA_SPLINE_RANGE,se.AREA_LINE_RANGE,se.AREA_STEP_RANGE],Arc:[se.PIE,se.DONUT,se.GAUGE,se.POLAR,se.RADAR],Line:[se.LINE,se.SPLINE,se.AREA,se.AREA_SPLINE,se.AREA_SPLINE_RANGE,se.AREA_LINE_RANGE,se.STEP,se.AREA_STEP,se.AREA_STEP_RANGE],Step:[se.STEP,se.AREA_STEP,se.AREA_STEP_RANGE],Spline:[se.SPLINE,se.AREA_SPLINE,se.AREA_SPLINE_RANGE]};function vv(t){const e=t,{config:n}=e;let a="";if(_n(n.data_type||n.data_types)&&!e[Ns.LINE])a="line";else for(const i in Ns){const s=se[i];if(e.hasType(s)&&!e[Ns[i]]){a=s;break}}a&&pv(`Please, make sure if %c${_g(a)}`,"module has been imported and specified correctly.","https://github.com/naver/billboard.js/wiki/CHANGELOG-v2#modularization-by-its-functionality")}function pv(t,e,n){var a;const i="[billboard.js]";if((a=Ke.console)==null?void 0:a.error){const o=e?["background:red;color:white;display:block;font-size:15px",e]:[];console.error(`\u274C ${i} ${t}`,"background:red;color:white;display:block;font-size:15px",...o),n&&console.info("%c\u2139\uFE0F","font-size:15px",n)}throw Error(`${i} ${t.replace(/\%c([a-z-]+)/i,"'$1' ")} ${e!=null?e:""}`)}const{setTimeout:mv,clearTimeout:yv}=Ke;function xv(t){const e=[];let n;const a=function(){a.clear(),t===!1?jl(()=>{e.forEach(i=>i())},{timeout:200}):n=mv(()=>{e.forEach(i=>i())},ge(t)?t:200)};return a.clear=()=>{n&&(yv(n),n=null)},a.add=i=>e.push(i),a.remove=i=>e.splice(e.indexOf(i),1),a}function ec(){let t=[];const e=function(n,a){function i(){var s;let o=0;for(let l=0,c;c=t[l];l++){if(c===!0||(s=c.empty)!=null&&s.call(c)){o++;continue}if(Ma()===!1){o=t.length;break}try{c.transition()}catch(u){o++}}return o===t.length}Jl(()=>{a==null||a()},i)};return e.add=function(n){ze(n)?t=t.concat(n):t.push(n)},e}const Fs={};function Tv(t,e){var n;const a=t.toString(),i=a.replace(/(function|[\s\W\n])/g,"").substring(0,15);return i in Fs||(Fs[i]=new Ke.Blob([`${(n=e==null?void 0:e.map(String).join(";"))!=null?n:""}
|
|
32
32
|
|
|
33
33
|
self.onmessage=function({data}) {
|
|
34
34
|
const result = (${a}).apply(null, data);
|
|
35
35
|
self.postMessage(result);
|
|
36
|
-
};`],{type:"text/javascript"})),
|
|
37
|
-
\r]`),n=t.charCodeAt(0);function a(v,m){var S,I,N=i(v,function(
|
|
38
|
-
`)}function l(v,m){return m==null&&(m=
|
|
36
|
+
};`],{type:"text/javascript"})),Ke.URL.createObjectURL(Fs[i])}function $v(t){const e=new Ke.Worker(t);return e.onerror=function(n){console.error?console.error(n):console.log(n)},e}function Bs(t=!0,e,n,a){let i=function(...s){const o=e(...s);n(o)};if(Ke.Worker&&t){const s=Tv(e,a),o=$v(s);i=function(...l){o.postMessage(l),o.onmessage=function(c){return Ke.URL.revokeObjectURL(s),n(c.data)}}}return i}var nc={},Us={},zs=34,La=10,js=13;function rc(t){return new Function("d","return {"+t.map(function(e,n){return JSON.stringify(e)+": d["+n+'] || ""'}).join(",")+"}")}function Sv(t,e){var n=rc(t);return function(a,i){return e(n(a),i,t)}}function ac(t){var e=Object.create(null),n=[];return t.forEach(function(a){for(var i in a)i in e||n.push(e[i]=i)}),n}function Nn(t,e){var n=t+"",a=n.length;return a<e?new Array(e-a+1).join(0)+n:n}function Av(t){return t<0?"-"+Nn(-t,6):t>9999?"+"+Nn(t,6):Nn(t,4)}function bv(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),a=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":Av(t.getUTCFullYear(),4)+"-"+Nn(t.getUTCMonth()+1,2)+"-"+Nn(t.getUTCDate(),2)+(i?"T"+Nn(e,2)+":"+Nn(n,2)+":"+Nn(a,2)+"."+Nn(i,3)+"Z":a?"T"+Nn(e,2)+":"+Nn(n,2)+":"+Nn(a,2)+"Z":n||e?"T"+Nn(e,2)+":"+Nn(n,2)+"Z":"")}function ic(t){var e=new RegExp('["'+t+`
|
|
37
|
+
\r]`),n=t.charCodeAt(0);function a(v,m){var S,I,N=i(v,function(L,C){if(S)return S(L,C-1);I=L,S=m?Sv(L,m):rc(L)});return N.columns=I||[],N}function i(v,m){var S=[],I=v.length,N=0,L=0,C,V=I<=0,H=!1;v.charCodeAt(I-1)===La&&--I,v.charCodeAt(I-1)===js&&--I;function Y(){if(V)return Us;if(H)return H=!1,nc;var K,at=N,mt;if(v.charCodeAt(at)===zs){for(;N++<I&&v.charCodeAt(N)!==zs||v.charCodeAt(++N)===zs;);return(K=N)>=I?V=!0:(mt=v.charCodeAt(N++))===La?H=!0:mt===js&&(H=!0,v.charCodeAt(N)===La&&++N),v.slice(at+1,K-1).replace(/""/g,'"')}for(;N<I;){if((mt=v.charCodeAt(K=N++))===La)H=!0;else if(mt===js)H=!0,v.charCodeAt(N)===La&&++N;else if(mt!==n)continue;return v.slice(at,K)}return V=!0,v.slice(at,I)}for(;(C=Y())!==Us;){for(var _=[];C!==nc&&C!==Us;)_.push(C),C=Y();m&&(_=m(_,L++))==null||S.push(_)}return S}function s(v,m){return v.map(function(S){return m.map(function(I){return g(S[I])}).join(t)})}function o(v,m){return m==null&&(m=ac(v)),[m.map(g).join(t)].concat(s(v,m)).join(`
|
|
38
|
+
`)}function l(v,m){return m==null&&(m=ac(v)),s(v,m).join(`
|
|
39
39
|
`)}function c(v){return v.map(u).join(`
|
|
40
|
-
`)}function u(v){return v.map(g).join(t)}function g(v){return v==null?"":v instanceof Date?$v(v):e.test(v+="")?'"'+v.replace(/"/g,'""')+'"':v}return{parse:a,parseRows:i,format:o,formatBody:l,formatRows:c,formatRow:u,formatValue:g}}var Fr=rc(","),Sv=Fr.parse,Av=Fr.parseRows,_0=Fr.format,q0=Fr.formatBody,t1=Fr.formatRows,e1=Fr.formatRow,n1=Fr.formatValue,Br=rc(" "),bv=Br.parse,Ev=Br.parseRows,r1=Br.format,a1=Br.formatBody,i1=Br.formatRows,s1=Br.formatRow,o1=Br.formatValue;function zs(t){const e=[];return t.forEach(function(n,a){const i=n[0];n.forEach(function(s,o){if(o>0){if(typeof e[o-1]=="undefined"&&(e[o-1]={}),typeof s=="undefined")throw new Error(`Source data is missing a component at (${a}, ${o})!`);e[o-1][i]=s}})}),e}function js(t){const e=t[0],n=[];return t.forEach(function(a,i){if(i>0){const s={};a.forEach(function(o,l){if(typeof o=="undefined")throw new Error(`Source data is missing a component at (${i}, ${l})!`);s[e[l]]=o}),n.push(s)}}),n}function ac(t,e){const n=[];let a,i;if(Array.isArray(t)){const s=function(o,l){if(o[l]!==void 0)return o[l];const u=l.replace(/\[(\w+)\]/g,".$1").replace(/^\./,"").split(".");let g=o;return u.some(function(v){return!(g=g&&v in g?g[v]:void 0)}),g};e.x?a=e.value.concat(e.x):a=e.value,n.push(a),t.forEach(function(o){const l=a.map(function(c){let u=s(o,c);return typeof u=="undefined"&&(u=null),u});n.push(l)}),i=js(n)}else Object.keys(t).forEach(function(s){var o;const l=t[s].concat();(o=l.unshift)==null||o.call(l,s),n.push(l)}),i=zs(n);return i}function Rv(t,e="csv",n,a,i){const s=new XMLHttpRequest,o={csv:Ov,tsv:Iv,json:ac};s.open("GET",t),n&&Object.keys(n).forEach(function(l){s.setRequestHeader(l,n[l])}),s.onreadystatechange=function(){if(s.readyState===4)if(s.status===200){const l=s.responseText;l&&i.call(this,o[e](e==="json"?JSON.parse(l):l,a))}else throw new Error(`${t}: Something went wrong loading!`)},s.send()}function ic(t,e){const n=t.rows(e);let a;return n.length===1?(a=[{}],n[0].forEach(i=>{a[0][i]=null})):a=t.parse(e),a}function Ov(t){return ic({rows:Av,parse:Sv},t)}function Iv(t){return ic({rows:Ev,parse:bv},t)}function sc(t,e){const n=t||(e==null?void 0:e.data_keys);return n!=null&&n.x&&(e.data_x=n.x),n}var Cv={convertData(t,e){const{config:n}=this,a=n.boost_useWorker;let i=t;if(t.bindto&&(i={},["url","mimeType","headers","keys","json","keys","rows","columns"].forEach(s=>{const o=`data_${s}`;o in t&&(i[s]=t[o])})),i.url&&e)Rv(i.url,i.mimeType,i.headers,sc(i.keys,n),e);else if(i.json)Ns(a,ac,e,[zs,js])(i.json,sc(i.keys,n));else if(i.rows)Ns(a,js,e)(i.rows);else if(i.columns)Ns(a,zs,e)(i.columns);else if(t.bindto)throw Error("url or json or rows or columns is required.")},convertDataToTargets(t,e){const n=this,{axis:a,config:i,state:s}=n,o=i.data_type;let l=!1,c=!1,u=!1;a&&(l=a.isCategorized(),c=a.isTimeSeries(),u=a.isCustomX());const g=Object.keys(t[0]||{}),v=g.length?g.filter(n.isNotX,n):[],m=g.length?g.filter(n.isX,n):[];let S;v.forEach(N=>{const M=this.getXKey(N);u||c?m.indexOf(M)>=0?S=(e&&n.data.xs[N]||[]).concat(t.map(P=>P[M]).filter(we).map((P,X)=>n.generateTargetX(P,N,X))):i.data_x?S=this.getOtherTargetXs():ln(i.data_xs)&&(S=n.getXValuesOfXKey(M,n.data.targets)):S=t.map((P,X)=>X),S&&(this.data.xs[N]=S)}),v.forEach(N=>{if(!this.data.xs[N])throw new Error(`x is not defined for id = "${N}".`)});const I=v.map((N,M)=>{const P=i.data_idConverter.bind(n.api)(N),X=n.getXKey(N),H=u&&l,Y=H&&t.map(at=>at.x).every(at=>i.axis_x_categories.indexOf(at)>-1),_=t.__append__,K=X===null&&_?n.api.data.values(N).length:0;return{id:P,id_org:N,values:t.map((at,yt)=>{const $t=at[X];let dt=at[N],ft;return dt=dt!==null&&!isNaN(dt)&&!Ne(dt)?+dt:Be(dt)||Ne(dt)?dt:null,(H||s.hasRadar)&&M===0&&!on($t)?(!Y&&M===0&&yt===0&&!_&&(i.axis_x_categories=[]),ft=i.axis_x_categories.indexOf($t),ft===-1&&(ft=i.axis_x_categories.length,i.axis_x_categories.push($t))):ft=n.generateTargetX($t,N,K+yt),(on(dt)||n.data.xs[N].length<=yt)&&(ft=void 0),{x:ft,value:dt,id:P,index:-1}}).filter(at=>ke(at.x))}});if(I.forEach(N=>{var M;i.data_xSort&&(N.values=N.values.sort((P,X)=>{const H=P.x||P.x===0?P.x:1/0,Y=X.x||X.x===0?X.x:1/0;return H-Y})),N.values.forEach((P,X)=>P.index=X),(M=n.data.xs[N.id])==null||M.sort((P,X)=>P-X)}),s.hasNegativeValue=n.hasNegativeValueInTargets(I),s.hasPositiveValue=n.hasPositiveValueInTargets(I),o&&n.isValidChartType(o)){const N=n.mapToIds(I).filter(M=>!(M in i.data_types)||!n.isValidChartType(i.data_types[M]));n.setTargetType(N,o)}return I.forEach(N=>n.cache.add(N.id_org,N,!0)),I}},Pv={isX(t){const e=this,{config:n}=e,a=n.data_x&&t===n.data_x,i=ln(n.data_xs)&&Zg(n.data_xs,t);return a||i},isNotX(t){return!this.isX(t)},isStackNormalized(){const{config:t}=this;return!!(t.data_stack_normalize&&t.data_groups.length)},isGrouped(t){const e=this.config.data_groups;return t?e.some(n=>n.indexOf(t)>=0&&n.length>1):e.length>0},getXKey(t){const e=this,{config:n}=e;return n.data_x?n.data_x:ln(n.data_xs)?n.data_xs[t]:null},getXValuesOfXKey(t,e){const n=this,a=e&&ln(e)?n.mapToIds(e):[];let i;return a.forEach(s=>{n.getXKey(s)===t&&(i=n.data.xs[s])}),i},getIndexByX(t,e){const n=this;return e?e.indexOf(Ge(t)?t:+t):(n.filterByX(n.data.targets,t)[0]||{index:null}).index},getXValue(t,e){const n=this;return t in n.data.xs&&n.data.xs[t]&&we(n.data.xs[t][e])?n.data.xs[t][e]:e},getOtherTargetXs(){const t=this,e=Object.keys(t.data.xs);return e.length?t.data.xs[e[0]]:null},getOtherTargetX(t){const e=this.getOtherTargetXs();return e&&t<e.length?e[t]:null},addXs(t){const e=this,{config:n}=e;Object.keys(t).forEach(a=>{n.data_xs[a]=t[a]})},isMultipleX(){return!this.config.axis_x_forceAsSingle&&(ln(this.config.data_xs)||this.hasType("bubble")||this.hasType("scatter"))},addName(t){const e=this,{config:n}=e;let a;return t&&(a=n.data_names[t.id],t.name=a!==void 0?a:t.id),t},getAllValuesOnIndex(t,e=!1){const n=this;let a=n.filterTargetsToShow(n.data.targets).map(i=>n.addName(n.getValueOnIndex(i.values,t)));return e&&(a=a.filter(i=>i&&"value"in i&&we(i.value))),a},getValueOnIndex(t,e){const n=t.filter(a=>a.index===e);return n.length?n[0]:null},updateTargetX(t,e){const n=this;t.forEach(a=>{a.values.forEach((i,s)=>{i.x=n.generateTargetX(e[s],a.id,s)}),n.data.xs[a.id]=e})},updateTargetXs(t,e){const n=this;t.forEach(a=>{e[a.id]&&n.updateTargetX([a],e[a.id])})},generateTargetX(t,e,n){const a=this,{axis:i}=a;let s=i!=null&&i.isCategorized()?n:t||n;if(i!=null&&i.isTimeSeries()){const o=zn.bind(a);s=o(t||a.getXValue(e,n))}else i!=null&&i.isCustomX()&&!(i!=null&&i.isCategorized())&&(s=we(t)?+t:a.getXValue(e,n));return s},updateXs(t){t.length&&(this.axis.xs=t.map(e=>e.x))},getPrevX(t){const e=this.axis.xs[t-1];return ke(e)?e:null},getNextX(t){const e=this.axis.xs[t+1];return ke(e)?e:null},getBaseValue(t){const e=this,{hasAxis:n}=e.state;let{value:a}=t;return a&&n&&(e.isAreaRangeType(t)?a=e.getRangedData(t,"mid"):e.isBubbleZType(t)&&(a=e.getBubbleZData(a,"y"))),a},getMinMaxValue(t){const e=this.getBaseValue.bind(this);let n,a;return(t||this.data.targets.map(i=>i.values)).forEach((i,s)=>{const o=i.map(e).filter(he);n=Math.min(s?n:1/0,...o),a=Math.max(s?a:-1/0,...o)}),{min:n,max:a}},getMinMaxData(){const t=this,e=Dn.dataMinMax;let n=t.cache.get(e);if(!n){const a=t.data.targets.map(l=>l.values),i=t.getMinMaxValue(a);let s=[],o=[];a.forEach(l=>{const c=t.getFilteredDataByValue(l,i.min),u=t.getFilteredDataByValue(l,i.max);c.length&&(s=s.concat(c)),u.length&&(o=o.concat(u))}),t.cache.add(e,n={min:s,max:o})}return n},getTotalPerIndex(){const t=this,e=Dn.dataTotalPerIndex;let n=t.cache.get(e);return(t.config.data_groups.length||t.isStackNormalized())&&!n&&(n=[],t.data.targets.forEach(a=>{a.values.forEach((i,s)=>{n[s]||(n[s]=0),n[s]+=he(i.value)?i.value:0})})),n},getTotalDataSum(t){const e=this,n=Dn.dataTotalSum;let a=e.cache.get(n);if(!he(a)){const i=ws(e.data.targets.map(s=>s.values)).map(s=>s.value);a=i.length?i.reduce((s,o)=>s+o):0,e.cache.add(n,a)}return t&&(a-=e.getHiddenTotalDataSum()),a},getHiddenTotalDataSum(){const t=this,{api:e,state:{hiddenTargetIds:n}}=t;let a=0;return n.length&&(a=e.data.values.bind(e)(n).reduce((i,s)=>i+s)),a},getFilteredDataByValue(t,e){return t.filter(n=>this.getBaseValue(n)===e)},getMaxDataCount(){return Math.max(...this.data.targets.map(t=>t.values.length),0)},getMaxDataCountTarget(){let t=this.filterTargetsToShow()||[];const e=t.length,n=this.config.axis_x_inverted;return e>1?(t=t.map(a=>a.values).reduce((a,i)=>a.concat(i)).map(a=>a.x),t=na(Ps(t)).map((a,i,s)=>({x:a,index:n?s.length-i-1:i}))):e&&(t=t[0].values.concat()),t},mapToIds(t){return t.map(e=>e.id)},mapToTargetIds(t){const e=this;return t?Be(t)?t.concat():[t]:e.mapToIds(e.data.targets)},hasTarget(t,e){const n=this.mapToIds(t);for(let a=0,i;i=n[a];a++)if(i===e)return!0;return!1},isTargetToShow(t){return this.state.hiddenTargetIds.indexOf(t)<0},isLegendToShow(t){return this.state.hiddenLegendIds.indexOf(t)<0},filterTargetsToShow(t){const e=this;return(t||e.data.targets).filter(n=>e.isTargetToShow(n.id))},mapTargetsToUniqueXs(t){const e=this,{axis:n}=e;let a=[];return t!=null&&t.length&&(a=Ps(ws(t.map(i=>i.values.map(s=>+s.x)))),a=n!=null&&n.isTimeSeries()?a.map(i=>new Date(+i)):a.map(Number)),na(a)},addTargetIds(t,e){const{state:n}=this;(Be(e)?e:[e]).forEach(i=>{n[t].indexOf(i)<0&&n[t].push(i)})},removeTargetIds(t,e){const{state:n}=this;(Be(e)?e:[e]).forEach(i=>{const s=n[t].indexOf(i);s>=0&&n[t].splice(s,1)})},addHiddenTargetIds(t){this.addTargetIds("hiddenTargetIds",t)},removeHiddenTargetIds(t){this.removeTargetIds("hiddenTargetIds",t)},addHiddenLegendIds(t){this.addTargetIds("hiddenLegendIds",t)},removeHiddenLegendIds(t){this.removeTargetIds("hiddenLegendIds",t)},getValuesAsIdKeyed(t){const e=this,{hasAxis:n}=e.state,a={},i=e.isMultipleX(),s=i?e.mapTargetsToUniqueXs(t).map(o=>Ge(o)?o:+o):null;return t.forEach(o=>{const l=[];o.values.filter(({value:c})=>we(c)||c===null).forEach(c=>{let{value:u}=c;u!==null&&e.isCandlestickType(c)&&(u=Be(u)?u.slice(0,4):[u.open,u.high,u.low,u.close]),Be(u)?l.push(...u):Ne(u)&&"high"in u?l.push(...Object.values(u)):e.isBubbleZType(c)?l.push(n&&e.getBubbleZData(u,"y")):i?l[e.getIndexByX(c.x,s)]=u:l.push(u)}),a[o.id]=l}),a},checkValueInTargets(t,e){const n=Object.keys(t);let a;for(let i=0;i<n.length;i++){a=t[n[i]].values;for(let s=0;s<a.length;s++)if(e(a[s].value))return!0}return!1},hasMultiTargets(){return this.filterTargetsToShow().length>1},hasNegativeValueInTargets(t){return this.checkValueInTargets(t,e=>e<0)},hasPositiveValueInTargets(t){return this.checkValueInTargets(t,e=>e>0)},orderTargets(t){const e=this,n=[...t],a=e.getSortCompareFn();return a&&n.sort(a),n},getSortCompareFn(t=!1){const e=this,{config:n}=e,a=n.data_order,i=/asc/i.test(a),s=/desc/i.test(a);let o;if(i||s){const l=(u,g)=>u+Math.abs(g.value),c=u=>he(u)?u:"values"in u?u.values.reduce(l,0):u.value;o=(u,g)=>{const v=c(u),m=c(g);return t?i?v-m:m-v:i?m-v:v-m}}else ve(a)&&(o=a.bind(e.api));return o||null},filterByX(t,e){return ws(t.map(n=>n.values)).filter(n=>n.x-e===0)},filterRemoveNull(t){return t.filter(e=>we(this.getBaseValue(e)))},filterByXDomain(t,e){return t.map(n=>({id:n.id,id_org:n.id_org,values:n.values.filter(a=>e[0]<=a.x&&a.x<=e[1])}))},hasDataLabel(){const t=this.config.data_labels;return Os(t)&&t||nr(t)&&ln(t)},hasNullDataValue(t){return t.some(({value:e})=>e===null)},getDataIndexFromEvent(t){const e=this,{$el:n,config:a,state:{hasRadar:i,inputType:s,eventReceiver:{coords:o,rect:l}}}=e;let c;if(i){let u=t.target;/tspan/i.test(u.tagName)&&(u=u.parentNode);const g=st(u).datum();c=g&&Object.keys(g).length===1?g.index:void 0}else{const u=a.axis_rotated,g=Wl(n.chart.node()),v=s==="touch"&&t.changedTouches?t.changedTouches[0]:t;c=Cs(o,u?v.clientY+g.y-l.top:v.clientX+g.x-l.left,0,o.length-1,u)}return c},getDataLabelLength(t,e,n){const a=this,i=[0,0],s=1.3;return a.$el.chart.select("svg").selectAll(".dummy").data([t,e]).enter().append("text").text(o=>a.dataLabelFormat(o.id)(o)).each(function(o,l){i[l]=this.getBoundingClientRect()[n]*s}).remove(),i},isNoneArc(t){return this.hasTarget(this.data.targets,t.id)},isArc(t){return"data"in t&&this.hasTarget(this.data.targets,t.data.id)},findSameXOfValues(t,e){const n=t[e].x,a=[];let i;for(i=e-1;i>=0&&n===t[i].x;i--)a.push(t[i]);for(i=e;i<t.length&&n===t[i].x;i++)a.push(t[i]);return a},findClosestFromTargets(t,e){const n=this,a=t.map(i=>n.findClosest(i.values,e));return n.findClosest(a,e)},findClosest(t,e){const n=this,{$el:{main:a}}=n,i=t.filter(l=>l&&we(l.value));let s,o;return i.filter(l=>n.isBarType(l.id)||n.isCandlestickType(l.id)).forEach(l=>{const c=n.isBarType(l.id)?`.${Kn.chartBar}.${Se.target}${n.getTargetSelectorSuffix(l.id)} .${Kn.bar}-${l.index}`:`.${cr.chartCandlestick}.${Se.target}${n.getTargetSelectorSuffix(l.id)} .${cr.candlestick}-${l.index} path`;!o&&n.isWithinBar(a.select(c).node())&&(o=l)}),i.filter(l=>!n.isBarType(l.id)&&!n.isCandlestickType(l.id)).forEach(l=>{const c=n.dist(l,e);s=n.getPointSensitivity(l),c<s&&(s=c,o=l)}),o},dist(t,e){const n=this,{config:{axis_rotated:a},scale:i}=n,s=+a,o=+!a,l=n.circleY(t,t.index),c=(i.zoom||i.x)(t.x);return Math.sqrt(Math.pow(c-e[s],2)+Math.pow(l-e[o],2))},convertValuesToStep(t){const e=this,{axis:n,config:a}=e,i=a.line_step_type,s=n?n.isCategorized():!1,o=Be(t)?t.concat():[t];if(!(s||/step\-(after|before)/.test(i)))return t;if(o.length){const l=o[0],c=o[o.length-1],{id:u}=l;let{x:g}=l;o.unshift({x:--g,value:l.value,id:u}),s&&i==="step-after"&&o.unshift({x:--g,value:l.value,id:u}),g=c.x,o.push({x:++g,value:c.value,id:u}),s&&i==="step-before"&&o.push({x:++g,value:c.value,id:u})}return o},convertValuesToRange(t){const e=Be(t)?t.concat():[t],n=[];return e.forEach(a=>{const{x:i,id:s}=a;n.push({x:i,id:s,value:a.value[0]}),n.push({x:i,id:s,value:a.value[2]})}),n},updateDataAttributes(t,e){const n=this,{config:a}=n,i=a[`data_${t}`];return on(e)||(Object.keys(e).forEach(s=>{i[s]=e[s]}),n.redraw({withLegend:!0})),i},getRangedData(t,e="",n="areaRange"){const a=t==null?void 0:t.value;if(Be(a)){if(n==="bar")return a.reduce((i,s)=>s-i);{const i={areaRange:["high","mid","low"],candlestick:["open","high","low","close","volume"]}[n].indexOf(e);return i>=0&&a?a[i]:void 0}}else if(a&&e)return a[e];return a},setRatioForGroupedData(t){const e=this,{config:n}=e;if(n.data_groups.length&&t.some(a=>e.isGrouped(a.id))){const a=i=>e.getRatio("index",i,!0);t.forEach(i=>{"values"in i?i.values.forEach(a):a(i)})}},getRatio(t,e,n=!1){const a=this,{config:i,state:s}=a,o=a.api;let l=0;if(e&&o.data.shown().length)if(l=e.ratio||e.value,t==="arc")if(a.pie.padAngle()())l=e.value/a.getTotalDataSum(!0);else{const c=i.gauge_fullCircle?a.getArcLength():a.getStartingAngle()*-2,u=a.hasType("gauge")?c:Math.PI*2;l=(e.endAngle-e.startAngle)/u}else if(t==="index"){const c=o.data.values.bind(o);let u=this.getTotalPerIndex();if(s.hiddenTargetIds.length){let v=c(s.hiddenTargetIds,!1);v.length&&(v=v.reduce((m,S)=>m.map((I,N)=>(he(I)?I:0)+S[N])),u=u.map((m,S)=>m-v[S]))}const g=u[e.index];e.ratio=he(e.value)&&u&&g?e.value/g:0,l=e.ratio}else if(t==="radar")l=parseFloat(String(Math.max(e.value,0)))/s.current.dataMax*i.radar_size_ratio;else if(t==="bar"){const u=a.getYScaleById.bind(a)(e.id).domain().reduce((g,v)=>v-g);l=u===0?0:Math.abs(a.getRangedData(e,null,t)/u)}else t==="treemap"&&(l/=a.getTotalDataSum(!0));return n&&l?l*100:l},updateDataIndexByX(t){const e=this,n=t.reduce((a,i,s)=>(a[Number(i.x)]=s,a),{});e.data.targets.forEach(a=>{a.values.forEach((i,s)=>{let o=n[Number(i.x)];o===void 0&&(o=s),i.index=o})})},isBubbleZType(t){return this.isBubbleType(t)&&(Ne(t.value)&&("z"in t.value||"y"in t.value)||Be(t.value)&&t.value.length>=2)},isBarRangeType(t){const e=this,{value:n}=t;return e.isBarType(t)&&Be(n)&&n.length>=2&&n.every(a=>he(a))},getDataById(t){var e;const n=this.cache.get(t)||this.api.data(t);return(e=n==null?void 0:n[0])!=null?e:n}};function oc(t,e=!1){const n=this,{api:a}=n;e&&n.api.flush(!0),t==null||t.call(a)}var wv={load(t,e){const n=this,{axis:a,data:i,org:s,scale:o}=n,{append:l}=e,c={domain:null,currentDomain:null,x:null};let u=t;u&&(e.filter&&(u=u.filter(e.filter)),(e.type||e.types)&&u.forEach(g=>{var v;const m=((v=e.types)==null?void 0:v[g.id])||e.type;n.setTargetType(g.id,m)}),i.targets.forEach(g=>{for(let v=0;v<u.length;v++)if(g.id===u[v].id){g.values=l?g.values.concat(u[v].values):u[v].values,u.splice(v,1);break}}),i.targets=i.targets.concat(u)),n.updateTargets(i.targets),o.zoom&&(c.x=a.isCategorized()?o.x.orgScale():(s.xScale||o.x).copy(),c.domain=n.getXDomain(i.targets),c.x.domain(c.domain),c.currentDomain=n.zoom.getDomain(),n.withinRange(c.currentDomain,void 0,c.domain)||(o.x.domain(c.domain),o.zoom=null,n.$el.eventRect.property("__zoom",null))),n.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),o.zoom&&(s.xDomain=c.domain,s.xScale=c.x,a.isCategorized()&&(c.currentDomain=n.getZoomDomainValue(c.currentDomain),s.xDomain=n.getZoomDomainValue(s.xDomain),s.xScale=c.x.domain(s.xDomain)),n.updateCurrentZoomTransform(c.x,c.currentDomain)),n.updateTypesElements(),oc.call(n,e.done,e.resizeAfter)},loadFromArgs(t){const e=this;e.config&&(e.cache.reset(),e.convertData(t,n=>{const a=t.data||n;t.append&&(a.__append__=!0),a&&e.load(e.convertDataToTargets(a),t)}))},unload(t,e){var n;const a=this,{state:i,$el:s,$T:o}=a,l=!!((n=a.hasLegendDefsPoint)!=null&&n.call(a));let c=e,u=t;if(a.cache.reset(),c||(c=()=>{}),u=u.filter(v=>a.hasTarget(a.data.targets,v)),!u||u.length===0){c();return}const g=s.svg.selectAll(u.map(v=>a.selectorTarget(v)));o(g).style("opacity","0").remove().call($i,c),u.forEach(v=>{var m;const S=a.getTargetSelectorSuffix(v);i.withoutFadeIn[v]=!1,s.legend&&s.legend.selectAll(`.${He.legendItem}${S}`).remove(),a.data.targets=a.data.targets.filter(I=>I.id!==v),l&&((m=s.defs)==null||m.select(`#${a.getDefsPointId(S)}`).remove())}),i.hasFunnel&&a.updateFunnel(a.data.targets),i.hasTreemap&&a.updateTargetsForTreemap(a.data.targets),a.updateTypesElements()}},Ei=t=>()=>t;function Gs(t,{sourceEvent:e,subject:n,target:a,identifier:i,active:s,x:o,y:l,dx:c,dy:u,dispatch:g}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:a,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:s,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:l,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:g}})}Gs.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function Mv(t){return!t.ctrlKey&&!t.button}function Lv(){return this.parentNode}function Dv(t,e){return e==null?{x:t.x,y:t.y}:e}function Nv(){return navigator.maxTouchPoints||"ontouchstart"in this}function lc(){var t=Mv,e=Lv,n=Dv,a=Nv,i={},s=ni("start","drag","end"),o=0,l,c,u,g,v=0;function m(Y){Y.on("mousedown.drag",S).filter(a).on("touchstart.drag",M).on("touchmove.drag",P,Kd).on("touchend.drag touchcancel.drag",X).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function S(Y,_){if(!(g||!t.call(this,Y,_))){var K=H(this,e.call(this,Y,_),Y,_,"mouse");K&&(st(Y.view).on("mousemove.drag",I,Sa).on("mouseup.drag",N,Sa),ls(Y.view),os(Y),u=!1,l=Y.clientX,c=Y.clientY,K("start",Y))}}function I(Y){if(Zr(Y),!u){var _=Y.clientX-l,K=Y.clientY-c;u=_*_+K*K>v}i.mouse("drag",Y)}function N(Y){st(Y.view).on("mousemove.drag mouseup.drag",null),cs(Y.view,u),Zr(Y),i.mouse("end",Y)}function M(Y,_){if(t.call(this,Y,_)){var K=Y.changedTouches,at=e.call(this,Y,_),yt=K.length,$t,dt;for($t=0;$t<yt;++$t)(dt=H(this,at,Y,_,K[$t].identifier,K[$t]))&&(os(Y),dt("start",Y,K[$t]))}}function P(Y){var _=Y.changedTouches,K=_.length,at,yt;for(at=0;at<K;++at)(yt=i[_[at].identifier])&&(Zr(Y),yt("drag",Y,_[at]))}function X(Y){var _=Y.changedTouches,K=_.length,at,yt;for(g&&clearTimeout(g),g=setTimeout(function(){g=null},500),at=0;at<K;++at)(yt=i[_[at].identifier])&&(os(Y),yt("end",Y,_[at]))}function H(Y,_,K,at,yt,$t){var dt=s.copy(),ft=Yn($t||K,_),Ft,ht,Z;if((Z=n.call(Y,new Gs("beforestart",{sourceEvent:K,target:m,identifier:yt,active:o,x:ft[0],y:ft[1],dx:0,dy:0,dispatch:dt}),at))!=null)return Ft=Z.x-ft[0]||0,ht=Z.y-ft[1]||0,function St(lt,At,jt){var Ut=ft,kt;switch(lt){case"start":i[yt]=St,kt=o++;break;case"end":delete i[yt],--o;case"drag":ft=Yn(jt||At,_),kt=o;break}dt.call(lt,Y,new Gs(lt,{sourceEvent:At,subject:Z,target:m,identifier:yt,active:kt,x:ft[0]+Ft,y:ft[1]+ht,dx:ft[0]-Ut[0],dy:ft[1]-Ut[1],dispatch:dt}),at)}}return m.filter=function(Y){return arguments.length?(t=typeof Y=="function"?Y:Ei(!!Y),m):t},m.container=function(Y){return arguments.length?(e=typeof Y=="function"?Y:Ei(Y),m):e},m.subject=function(Y){return arguments.length?(n=typeof Y=="function"?Y:Ei(Y),m):n},m.touchable=function(Y){return arguments.length?(a=typeof Y=="function"?Y:Ei(!!Y),m):a},m.on=function(){var Y=s.on.apply(s,arguments);return Y===s?m:Y},m.clickDistance=function(Y){return arguments.length?(v=(Y=+Y)*Y,m):Math.sqrt(v)},m}var Fv={setExpand(t,e,n){const a=this,{config:i,$el:{circle:s}}=a;s&&i.point_focus_expand_enabled&&a.expandCircles(t,e,n),a.expandBarTypeShapes(!0,t,e,n)},expandBarTypeShapes(t=!0,e,n,a){const i=this;["bar","candlestick"].filter(s=>i.$el[s]).forEach(s=>{a&&i.$el[s].classed(Se.EXPANDED,!1),i.getShapeByIndex(s,e,n).classed(Se.EXPANDED,t)})},setOverOut(t,e){const n=this,{config:a,state:{hasFunnel:i,hasRadar:s,hasTreemap:o},$el:{main:l}}=n,c=Ne(e);if(c||e!==-1){const u=a[t?"data_onover":"data_onout"].bind(n.api);if(a.color_onover&&n.setOverColor(t,e,c),c){const g=n.getTargetSelectorSuffix(e.id),v=i||o?`${Se.target+g} .${sn.shape}`:Ue.arc+g;u(e,l.select(`.${v}`).node())}else if(a.tooltip_grouped)t&&(s&&n.isPointFocusOnly()?n.showCircleFocus(n.getAllValuesOnIndex(e,!0)):n.setExpand(e,null,!0)),!n.isMultipleX()&&l.selectAll(`.${sn.shape}-${e}`).each(function(g){u(g,this)});else{const g=n.cache.get(Dn.setOverOut)||[],v=l.selectAll(`.${sn.shape}-${e}`).filter(function(S){return n.isWithinShape(this,S)}),m=v.filter(function(){return g.every(S=>S!==this)});if(!t||v.empty()||g.length===m.size()&&m.nodes().every((S,I)=>S!==g[I]))for(;g.length;){const S=g.pop();a.data_onout.bind(n.api)(st(S).datum(),S)}m.each(function(){t&&(u(st(this).datum(),this),g.push(this))}),n.cache.add(Dn.setOverOut,g)}}},callOverOutForTouch(t){const e=this,n=e.cache.get(Dn.callOverOutForTouch);(Ne(t)&&n?t.id!==n.id:t!==n)&&((n||he(n))&&e.setOverOut(!1,n),(t||he(t))&&e.setOverOut(!0,t),e.cache.add(Dn.callOverOutForTouch,t))},getDraggableSelection(){const t=this,{config:e,state:n}=t;return e.interaction_enabled&&e.data_selection_draggable&&t.drag?lc().on("drag",function(a){n.event=a,t.drag(Hn(a,this))}).on("start",function(a){n.event=a,t.dragstart(Hn(a,this))}).on("end",a=>{n.event=a,t.dragend()}):()=>{}},dispatchEvent(t,e,n){var a,i;const s=this,{config:o,state:{eventReceiver:l,hasAxis:c,hasFunnel:u,hasRadar:g,hasTreemap:v},$el:{eventRect:m,funnel:S,radar:I,treemap:N}}=s;let M=(i=(u||v)&&l.rect||g&&I.axes.select(`.${fn.axis}-${e} text`)||m||((a=s.getArcElementByIdOrIndex)==null?void 0:a.call(s,e)))==null?void 0:i.node();if(M){const P=s.isMultipleX(),X=o.axis_rotated;let{width:H,left:Y,top:_}=M.getBoundingClientRect();if(c&&!g&&!P){const $t=l.coords[e];$t?(H=$t.w,Y+=$t.x,_+=$t.y):(H=0,Y=0,_=0)}const K=Y+(n?n[0]:0)+(P||X?0:H/2),at=_+(n?n[1]:0)+(X?4:0),yt={screenX:K,screenY:at,clientX:K,clientY:at,bubbles:g};(u||v)&&(M=(S!=null?S:N).node()),qg[/^(mouse|click)/.test(t)?"mouse":"touch"](M,t,yt)}},setDragStatus(t){this.state.dragging=t},unbindZoomEvent(){const t=this,{$el:{eventRect:e,zoomResetBtn:n}}=t;e==null||e.on(".zoom wheel.zoom .drag",null),n==null||n.on("click",null).style("display","none")},unbindAllEvents(){var t;const e=this,{$el:{arcs:n,eventRect:a,legend:i,region:s,svg:o,treemap:l},brush:c}=e,u=["wheel","click","mouseover","mousemove","mouseout","touchstart","touchmove","touchend","touchstart.eventRect","touchmove.eventRect","touchend.eventRect",".brush",".drag",".zoom","wheel.zoom","dblclick.zoom"].join(" ");[o,a,s==null?void 0:s.list,c==null?void 0:c.getSelection(),n==null?void 0:n.selectAll("path"),i==null?void 0:i.selectAll("g"),l].forEach(g=>g==null?void 0:g.on(u,null)),(t=e.unbindZoomEvent)==null||t.call(e)}},Bv={categoryName(t){var e;const{axis_x_categories:n}=this.config;return(e=n==null?void 0:n[t])!=null?e:t}},Uv={generateClass(t,e){return` ${t} ${t+this.getTargetSelectorSuffix(e)}`},getClass(t,e){const n=/s$/.test(t),a=/^(area|arc|line|funnel|treemap)s?$/.test(t),i=n?"id":"index";return s=>{const o=s.data||s;return((e?this.generateClass(Fe[n?"shapes":"shape"],o[i]):"")+this.generateClass(Fe[t],o[a?"id":i])).trim()}},getChartClass(t){return e=>Fe[`chart${t}`]+this.classTarget((e.data?e.data:e).id)},generateExtraLineClass(){const e=this.config.line_classes||[],n=[];return function(a){var i;const s=a.id||((i=a.data)==null?void 0:i.id)||a;return n.indexOf(s)<0&&n.push(s),e[n.indexOf(s)%e.length]}},classRegion(t,e){return`${this.generateClass(Fe.region,e)} ${"class"in t?t.class:""}`},classTarget(t){const e=this.config.data_classes[t];let n="";return e&&(n=` ${Fe.target}-${e}`),this.generateClass(Fe.target,t)+n},classFocus(t){return this.classFocused(t)+this.classDefocused(t)},classFocused(t){return` ${this.state.focusedTargetIds.indexOf(t.id)>=0?Fe.focused:""}`},classDefocused(t){return` ${this.state.defocusedTargetIds.indexOf(t.id)>=0?Fe.defocused:""}`},getTargetSelectorSuffix(t){return(t||t===0?`-${t}`:"").replace(/[\x00-\x20\x7F-\xA0\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\]/g,"-")},selectorTarget(t,e="",n=""){const a=this.getTargetSelectorSuffix(t);return`${e}.${Fe.target+a} ${n}, ${e}.${Fe.circles+a} ${n}`},selectorTargets(t,e){const n=t||[];return n.length?n.map(a=>this.selectorTarget(a,e)):null},selectorLegend(t){return`.${Fe.legendItem+this.getTargetSelectorSuffix(t)}`},selectorLegends(t){return t!=null&&t.length?t.map(e=>this.selectorLegend(e)):null}};class cc extends Map{constructor(e,n=dc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[a,i]of e)this.set(a,i)}get(e){return super.get(Vs(this,e))}has(e){return super.has(Vs(this,e))}set(e,n){return super.set(uc(this,e),n)}delete(e){return super.delete(fc(this,e))}}class l1 extends Set{constructor(e,n=dc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const a of e)this.add(a)}has(e){return super.has(Vs(this,e))}add(e){return super.add(uc(this,e))}delete(e){return super.delete(fc(this,e))}}function Vs({_intern:t,_key:e},n){const a=e(n);return t.has(a)?t.get(a):n}function uc({_intern:t,_key:e},n){const a=e(n);return t.has(a)?t.get(a):(t.set(a,n),n)}function fc({_intern:t,_key:e},n){const a=e(n);return t.has(a)&&(n=t.get(a),t.delete(a)),n}function dc(t){return t!==null&&typeof t=="object"?t.valueOf():t}function ra(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function c1(t,e){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}const hc=Symbol("implicit");function gc(){var t=new cc,e=[],n=[],a=hc;function i(s){let o=t.get(s);if(o===void 0){if(a!==hc)return a;t.set(s,o=e.push(s)-1)}return n[o%n.length]}return i.domain=function(s){if(!arguments.length)return e.slice();e=[],t=new cc;for(const o of s)t.has(o)||t.set(o,e.push(o)-1);return i},i.range=function(s){return arguments.length?(n=Array.from(s),i):n.slice()},i.unknown=function(s){return arguments.length?(a=s,i):a},i.copy=function(){return gc(e,n).unknown(a)},ra.apply(i,arguments),i}const zv=(t,e,n)=>{const a=st(t.cloneNode(!0));return a.attr("id",n).insert("rect",":first-child").attr("width",a.attr("width")).attr("height",a.attr("height")).style("fill",e),{id:n,node:a.node()}};function jv(t){const e=Dn.colorPattern,{body:n}=vn;let a=n[e];if(!a){const i=";",s=t.classed(is.colorPattern,!0).style("background-image");t.classed(is.colorPattern,!1),s.indexOf(i)>-1&&(a=s.replace(/url[^#]*|["'()]|(\s|%20)/g,"").split(i).map(o=>o.trim().replace(/[\"'\s]/g,"")).filter(Boolean),n[e]=a)}return a}const Gv=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];var Vv={generateColor(){const t=this,{$el:e,config:n}=t,a=n.data_colors,i=n.data_color,s=[];let o=ln(n.color_pattern)?n.color_pattern:gc(jv(e.chart)||Gv).range();const l=o;if(ve(n.color_tiles)){const c=n.color_tiles.bind(t.api)(),u=o.map((g,v)=>{const m=g.replace(/[#\(\)\s,]/g,""),S=`${t.state.datetimeId}-pattern-${m}-${v}`;return zv(c[v%c.length],g,S)});o=u.map(g=>`url(#${g.id})`),t.patterns=u}return function(c){var u;const g=c.id||((u=c.data)==null?void 0:u.id)||c,v=t.isTypeOf(g,["line","spline","step"])||!n.data_types[g];let m;return ve(a[g])?m=a[g].bind(t.api)(c):a[g]?m=a[g]:(s.indexOf(g)<0&&s.push(g),m=v?l[s.indexOf(g)%l.length]:o[s.indexOf(g)%o.length],a[g]=m),ve(i)?i.bind(t.api)(m,c):m}},generateLevelColor(){const t=this,{config:e}=t,n=e.color_pattern,a=e.color_threshold,i=a.unit==="value",s=a.max||100,o=a.values&&a.values.length?a.values:[];return ln(a)?function(l){const c=i?l:l*100/s;let u=n[n.length-1];for(let g=0,v=o.length;g<v;g++)if(c<=o[g]){u=n[g];break}return u}:null},generateTextBGColorFilter(t,e={x:0,y:0,width:1,height:1}){const n=this,{$el:a,state:i}=n;if(t){let s=[];Ge(t)?s.push(""):Ne(t)&&(s=Object.keys(t)),s.forEach(o=>{const l=`${i.datetimeId}-labels-bg${n.getTargetSelectorSuffix(o)}${Ge(t)?n.getTargetSelectorSuffix(t):""}`;a.defs.append("filter").attr("x",e.x).attr("y",e.y).attr("width",e.width).attr("height",e.height).attr("id",l).html(`<feFlood flood-color="${o===""?t:t[o]}" />
|
|
41
|
-
<feComposite in="SourceGraphic" />`)})}},getGradienColortUrl(t){return`url(#${this.state.datetimeId}-gradient${this.getTargetSelectorSuffix(t)})`},updateLinearGradient(){const t=this,{config:e,data:{targets:n},state:{datetimeId:a},$el:{defs:i}}=t;n.forEach(s=>{const o=`${a}-gradient${t.getTargetSelectorSuffix(s.id)}`,l=t.hasPointType()&&e.point_radialGradient,c=t.isAreaType(s)&&"area"||t.isBarType(s)&&"bar";if((l||c)&&i.select(`#${o}`).empty()){const u=t.color(s),g={defs:null,stops:[]};if(l){const{cx:v=.3,cy:m=.3,r:S=.7,stops:I=[[.1,u,0],[.9,u,1]]}=l;g.stops=I,g.defs=i.append("radialGradient").attr("id",`${o}`).attr("cx",v).attr("cy",m).attr("r",S)}else{const v=e.axis_rotated,{x:m=v?[1,0]:[0,0],y:S=v?[0,0]:[0,1],stops:I=[[0,u,1],[1,u,0]]}=e[`${c}_linearGradient`];g.stops=I,g.defs=i.append("linearGradient").attr("id",`${o}`).attr("x1",m[0]).attr("x2",m[1]).attr("y1",S[0]).attr("y2",S[1])}g.stops.forEach(v=>{const[m,S,I]=v,N=ve(S)?S.bind(t.api)(s.id):S;g.defs&&g.defs.append("stop").attr("offset",m).attr("stop-color",N||u).attr("stop-opacity",I)})}})},setOverColor(t,e){const n=this,{config:a,$el:{main:i}}=n,s=a.color_onover;let o=t?s:n.color;Ne(o)?o=({id:l})=>l in s?s[l]:n.color(l):Ge(o)?o=()=>s:ve(s)&&(o=o.bind(n.api)),i.selectAll(Ne(e)?`.${Ue.arc}${n.getTargetSelectorSuffix(e.id)}`:`.${sn.shape}-${e}`).style("fill",o)}},Xv={getYDomainMinMax(t,e){const n=this,{axis:a,config:i}=n,s=e==="min",o=i.data_groups,l=n.mapToIds(t),c=n.getValuesAsIdKeyed(t);if(o.length>0){const u=n[`has${s?"Negative":"Positive"}ValueInTargets`](t);o.forEach(g=>{const v=g.filter(m=>l.indexOf(m)>=0);if(v.length){const m=v[0],S=a.getId(m);u&&c[m]&&(c[m]=c[m].map(I=>(s?I<0:I>0)?I:0)),v.filter((I,N)=>N>0).forEach(I=>{if(c[I]){const N=a.getId(I);c[I].forEach((M,P)=>{const X=+M,H=s?X>0:X<0;N===S&&!(u&&H)&&(c[m][P]+=X)})}})}})}return qn(e,Object.keys(c).map(u=>qn(e,c[u])))},isHiddenTargetWithYDomain(t){const e=this;return e.state.hiddenTargetIds.some(n=>e.axis.getId(n)===t)},getYDomain(t,e,n){const a=this,{axis:i,config:s,scale:o}=a,l=`axis_${e}`;if(a.isStackNormalized())return[0,100];const c=(o==null?void 0:o[e])&&o[e].type==="log",u=t.filter(dt=>i.getId(dt.id)===e),g=n?a.filterByXDomain(u,n):u;if(g.length===0)return a.isHiddenTargetWithYDomain(e)?o[e].domain():e==="y2"?o.y.domain():a.getYDomain(t,"y2",n);const v=s[`${l}_min`],m=s[`${l}_max`],S=s[`${l}_center`],I=s[`${l}_inverted`],N=a.hasDataLabel()&&s.axis_rotated,M=a.hasDataLabel()&&!s.axis_rotated;let P=a.getYDomainMinMax(g,"min"),X=a.getYDomainMinMax(g,"max"),H=[oe.BAR,oe.BUBBLE,oe.SCATTER,...Sr.Line].some(dt=>{const ft=dt.indexOf("area")>-1?"area":dt;return a.hasType(dt,g,!0)&&s[`${ft}_zerobased`]});P=we(v)?v:we(m)?P<=m?P:m-10:P,X=we(m)?m:we(v)?v<=X?X:v+10:X,isNaN(P)&&(P=0),isNaN(X)&&(X=P),P===X&&(P<0?X=0:P=0);const Y=P>=0&&X>=0,_=P<=0&&X<=0;(we(v)&&Y||we(m)&&_)&&(H=!1),H&&(Y&&(P=0),_&&(X=0));const K=Math.abs(X-P);let at={top:K*.1,bottom:K*.1};if(ke(S)){const dt=Math.max(Math.abs(P),Math.abs(X));X=S+dt,P=S-dt}if(N){const dt=Lr(o.y.range()),ft=a.getDataLabelLength(P,X,"width").map(Ft=>Ft/dt);["bottom","top"].forEach((Ft,ht)=>{at[Ft]+=K*(ft[ht]/(1-ft[0]-ft[1]))})}else if(M){const dt=a.getDataLabelLength(P,X,"height");["bottom","top"].forEach((ft,Ft)=>{at[ft]+=a.convertPixelToScale("y",dt[Ft],K)})}at=a.getResettedPadding(at);const yt=s[`${l}_padding`];ln(yt)&&["bottom","top"].forEach(dt=>{at[dt]=i.getPadding(yt,dt,at[dt],K)}),H&&(Y&&(at.bottom=P),_&&(at.top=-X));const $t=c?[P,X].map(dt=>dt<0?0:dt):[P-at.bottom,X+at.top];return I?$t.reverse():$t},getXDomainMinMax(t,e){var n;const a=this,i=a.config[`axis_x_${e}`],s=qn(e,t.map(l=>qn(e,l.values.map(c=>c.x))));let o=Ne(i)?i.value:i;return o=ke(o)&&((n=a.axis)!=null&&n.isTimeSeries())?zn.bind(this)(o):o,Ne(i)&&i.fit&&(e==="min"&&o<s||e==="max"&&o>s)&&(o=void 0),ke(o)?o:s},getXDomainPadding(t,e){const n=this,{axis:a,config:i}=n,s=i.axis_x_padding,o=a.isTimeSeries()&&e,l=Lr(t);let c;if(a.isCategorized()||o)c=0;else if(n.hasType("bar")){const v=n.getMaxDataCount();c=v>1?l/(v-1)/2:.5}else c=n.getResettedPadding(l*.01);let{left:u=c,right:g=c}=he(s)?{left:s,right:s}:s;if(s.unit==="px"){const v=Math.abs(l+l*.2);u=a.getPadding(s,"left",c,v),g=a.getPadding(s,"right",c,v)}else{const v=l+u+g;if(o&&v){const m=l/e/v;u=u/v/m,g=g/v/m}}return{left:u,right:g}},getXDomain(t){const e=this,{axis:n,config:a,scale:{x:i}}=e,s=a.axis_x_inverted,o=[e.getXDomainMinMax(t,"min"),e.getXDomainMinMax(t,"max")];let[l=0,c=0]=o;if(i.type!=="log"){const u=n.isCategorized(),g=n.isTimeSeries(),v=e.getXDomainPadding(o);let[m,S]=o;m-S===0&&!u&&(g?(m=new Date(m.getTime()*.5),S=new Date(S.getTime()*1.5)):(m=m===0?1:m*.5,S=S===0?-1:S*1.5)),(m||m===0)&&(l=g?new Date(m.getTime()-v.left):m-v.left),(S||S===0)&&(c=g?new Date(S.getTime()+v.right):S+v.right)}return s?[c,l]:[l,c]},updateXDomain(t,e,n,a,i){var s;const o=this,{config:l,org:c,scale:{x:u,subX:g}}=o,v=l.zoom_enabled;if(n&&(u.domain(i||na(o.getXDomain(t),!l.axis_x_inverted)),c.xDomain=u.domain(),g.domain(u.domain()),(s=o.brush)==null||s.scale(g)),e){const m=i||!o.brush||Hl(o)?c.xDomain:Yl(o).map(g.invert);u.domain(m)}return(n||e)&&v&&o.zoom.updateScaleExtent(),a&&u.domain(o.trimXDomain(u.orgDomain())),u.domain()},trimXDomain(t){const e=this,n=e.config.axis_x_inverted,a=e.getZoomDomain(),[i,s]=a;return(n?t[0]>=i:t[0]<=i)&&(t[1]=+t[1]+(i-t[0]),t[0]=i),(n?t[1]<=s:t[1]>=s)&&(t[0]=+t[0]-(t[1]-s),t[1]=s),t},getZoomDomain(t="zoom",e=!1){const n=this,{config:a,scale:i,org:s}=n;let[o,l]=e&&i[t]?i[t].domain():s.xDomain;return t==="zoom"&&(ke(a.zoom_x_min)&&(o=qn("min",[o,a.zoom_x_min])),ke(a.zoom_x_max)&&(l=qn("max",[l,a.zoom_x_max]))),[o,l]},getZoomDomainValue(t){const e=this,{config:n,axis:a}=e;if(a.isCategorized()&&Array.isArray(t)){const i=n.axis_x_inverted;return t.map((o,l)=>Number(o)+(l===0?+i:+!i))}return t},convertPixelToScale(t,e,n){const a=this,{config:i,state:s}=a,o=i.axis_rotated;let l;return t==="x"?l=o?"height":"width":l=o?"width":"height",n*(e/s[l])},withinRange(t,e=[0,0],n){const i=this.config.axis_x_inverted,[s,o]=n;if(Array.isArray(t)){const l=[...t];if(i&&l.reverse(),l[0]<l[1])return t.every((c,u)=>(u===0?i?+c<=s:+c>=s:i?+c>=o:+c<=o)&&!t.every((g,v)=>g===e[v]))}return!1}};function vc(t,e,n){const{config:a}=t,i=`axis_${e}_tick_format`;return(a[i]?a[i]:t.defaultValueFormat).call(t.api,n)}var Yv={yFormat(t){return vc(this,"y",t)},y2Format(t){return vc(this,"y2",t)},getDefaultValueFormat(){const t=this,{defaultArcValueFormat:e,yFormat:n,y2Format:a}=t,i=t.hasArcType(null,["gauge","polar","radar"]);return function(s,o,l){return(i?e:t.axis&&t.axis.getId(l)==="y2"?a:n).call(t,s,o)}},defaultValueFormat(t){return Be(t)?t.join("~"):we(t)?+t:""},defaultArcValueFormat(t,e){return`${(e*100).toFixed(1)}%`},defaultPolarValueFormat(t){return`${t}`},dataLabelFormat(t){const e=this,n=e.config.data_labels,a=s=>{const o="~";let l=s;return Be(s)?l=s.join(o):Ne(s)&&(l=Object.values(s).join(o)),l};let i=a;return ve(n.format)?i=n.format:nr(n.format)&&(n.format[t]?i=n.format[t]===!0?a:n.format[t]:i=()=>""),i.bind(e.api)}};function Ri(t){const e=this,n=e.getDataById(t);return e.levelColor?e.levelColor(n.values[0].value):e.color(n)}function Xs(t,e=!0){var n;const{config:a}=this;let i=(n=a.data_names[t])!=null?n:t;return e&&ve(a.legend_format)&&(i=a.legend_format(i,t!==i?t:void 0)),i}var Hv={initLegend(){const t=this,{config:e,$el:n}=t;t.legendItemTextBox={},t.state.legendHasRendered=!1,e.legend_show?(e.legend_contents_bindto||(n.legend=t.$el.svg.append("g").classed(He.legend,!0).attr("transform",t.getTranslate("legend"))),t.updateLegend()):t.state.hiddenLegendIds=t.mapToIds(t.data.targets)},updateLegend(t,e,n){var a;const i=this,{config:s,state:o,scale:l,$el:c}=i,u=e||{withTransform:!1,withTransitionForTransform:!1,withTransition:!1};u.withTransition=$r(u,"withTransition",!0),u.withTransitionForTransform=$r(u,"withTransitionForTransform",!0),s.legend_contents_bindto&&s.legend_contents_template?i.updateLegendTemplate():o.hasTreemap||i.updateLegendElement(t||i.mapToIds(i.data.targets),u,n),(a=c.legend)==null||a.selectAll(`.${He.legendItem}`).classed(He.legendItemHidden,function(g){const v=!i.isTargetToShow(g);return v&&(this.style.opacity=null),v}),i.updateScales(!1,!l.zoom),i.updateSvgSize(),i.transformAll(u.withTransitionForTransform,n),o.legendHasRendered=!0},updateLegendTemplate(){const t=this,{config:e,$el:n}=t,a=st(e.legend_contents_bindto),i=e.legend_contents_template;if(!a.empty()){const s=t.mapToIds(t.data.targets),o=[];let l="";s.forEach(u=>{const g=ve(i)?i.bind(t.api)(u,t.color(u),t.api.data(u)[0].values):bi(i,{COLOR:t.color(u),TITLE:u});g&&(o.push(u),l+=g)});const c=a.html(l).selectAll(function(){return this.childNodes}).data(o);t.setLegendItem(c),n.legend=a}},updateSizeForLegend(t){const e=this,{config:n,state:{isLegendTop:a,isLegendLeft:i,isLegendRight:s,isLegendInset:o,current:l}}=e,{width:c,height:u}=t,g={top:a?e.getCurrentPaddingByDirection("top")+n.legend_inset_y+5.5:l.height-u-e.getCurrentPaddingByDirection("bottom")-n.legend_inset_y,left:i?e.getCurrentPaddingByDirection("left")+n.legend_inset_x+.5:l.width-c-e.getCurrentPaddingByDirection("right")-n.legend_inset_x+.5};e.state.margin3={top:s?0:o?g.top:l.height-u,right:NaN,bottom:0,left:s?l.width-c:o?g.left:0}},transformLegend(t){const e=this,{$el:{legend:n},$T:a}=e;a(n,t).attr("transform",e.getTranslate("legend"))},updateLegendStep(t){this.state.legendStep=t},updateLegendItemWidth(t){this.state.legendItemWidth=t},updateLegendItemHeight(t){this.state.legendItemHeight=t},updateLegendItemColor(t,e){const{legend:n}=this.$el;n&&n.select(`.${He.legendItem}-${t} line`).style("stroke",e)},getLegendWidth(){const t=this,{current:{width:e},isLegendRight:n,isLegendInset:a,legendItemWidth:i,legendStep:s}=t.state;return t.config.legend_show?n||a?i*(s+1):e:0},getLegendHeight(){var t;const e=this,{current:n,isLegendRight:a,legendItemHeight:i,legendStep:s}=e.state,o=((t=e.config.padding)==null?void 0:t.mode)==="fit";return e.config.legend_show?a?n.height:(o?10:Math.max(20,i))*(s+1):0},opacityForUnfocusedLegend(t){return t.classed(He.legendItemHidden)?null:"0.3"},toggleFocusLegend(t,e){const n=this,{$el:{legend:a},$T:i}=n,s=n.mapToTargetIds(t);a&&i(a.selectAll(`.${He.legendItem}`).filter(o=>s.indexOf(o)>=0).classed(Qe.legendItemFocused,e)).style("opacity",function(){return e?null:n.opacityForUnfocusedLegend.call(n,st(this))})},revertLegend(){const t=this,{$el:{legend:e},$T:n}=t;e&&n(e.selectAll(`.${He.legendItem}`).classed(Qe.legendItemFocused,!1)).style("opacity",null)},showLegend(t){const e=this,{config:n,$el:a,$T:i}=e;n.legend_show||(n.legend_show=!0,a.legend?a.legend.style("visibility",null):e.initLegend(),!e.state.legendHasRendered&&e.updateLegend()),e.removeHiddenLegendIds(t),i(a.legend.selectAll(e.selectorLegends(t)).style("visibility",null)).style("opacity",null)},hideLegend(t){const e=this,{config:n,$el:{legend:a}}=e;n.legend_show&&_n(t)&&(n.legend_show=!1,a.style("visibility","hidden")),e.addHiddenLegendIds(t),a.selectAll(e.selectorLegends(t)).style("opacity","0").style("visibility","hidden")},getLegendItemTextBox(t,e){const n=this,{cache:a,state:i}=n;let s;const o=Dn.legendItemTextBox;return t&&(s=!i.redrawing&&a.get(o)||{},s[t]||(s[t]=n.getTextRect(e,He.legendItem),a.add(o,s)),s=s[t]),s},setLegendItem(t){const e=this,{$el:n,api:a,config:i,state:s}=e,o=s.inputType==="touch",l=e.hasType("gauge"),c=i.boost_useCssRule,u=i.legend_item_interaction;t.attr("class",function(g){const v=st(this);return(!v.empty()&&v.attr("class")||"")+e.generateClass(He.legendItem,g)}).style("visibility",g=>e.isLegendToShow(g)?null:"hidden"),i.interaction_enabled&&(c&&[[`.${He.legendItem}`,"cursor:pointer"],[`.${He.legendItem} text`,"pointer-events:none"],[`.${He.legendItemPoint} text`,"pointer-events:none"],[`.${He.legendItemTile}`,"pointer-events:none"],[`.${He.legendItemEvent}`,"fill-opacity:0"]].forEach(g=>{const[v,m]=g;e.setCssRule(!1,v,[m])(n.legend)}),t.on(u.dblclick?"dblclick":"click",u||ve(i.legend_item_onclick)?function(g,v){if(!_e(i.legend_item_onclick,a,v)){const{altKey:m,target:S,type:I}=g;I==="dblclick"||m?s.hiddenTargetIds.length&&S.parentNode.getAttribute("class").indexOf(He.legendItemHidden)===-1?a.show():(a.hide(),a.show(v)):(a.toggle(v),st(this).classed(Qe.legendItemFocused,!1))}o&&e.hideTooltip()}:null),!o&&t.on("mouseout",u||ve(i.legend_item_onout)?function(g,v){_e(i.legend_item_onout,a,v)||(st(this).classed(Qe.legendItemFocused,!1),l&&e.undoMarkOverlapped(e,`.${Un.gaugeValue}`),e.api.revert())}:null).on("mouseover",u||ve(i.legend_item_onover)?function(g,v){_e(i.legend_item_onover,a,v)||(st(this).classed(Qe.legendItemFocused,!0),l&&e.markOverlapped(v,e,`.${Un.gaugeValue}`),!s.transiting&&e.isTargetToShow(v)&&a.focus(v))}:null),!t.empty()&&t.on("click mouseout mouseover")&&t.style("cursor",e.getStylePropValue("pointer")))},updateLegendElement(t,e){const n=this,{config:a,state:i,$el:{legend:s},$T:o}=n,c=a.legend_item_tile_type!=="circle",u=a.legend_item_tile_r,g={width:c?a.legend_item_tile_width:u*2,height:c?a.legend_item_tile_height:u*2},v={padding:{top:4,right:10},max:{width:0,height:0},posMin:10,step:0,tileWidth:g.width+5,totalLength:0},m={offsets:{},widths:{},heights:{},margins:[0],steps:{}};let S,I,N;const M=t.filter(K=>!ke(a.data_names[K])||a.data_names[K]!==null),P=e.withTransition,X=n.getUpdateLegendPositions(M,v,m);i.isLegendInset&&(v.step=a.legend_inset_step?a.legend_inset_step:M.length,n.updateLegendStep(v.step)),i.isLegendRight?(S=K=>v.max.width*m.steps[K],I=K=>m.margins[m.steps[K]]+m.offsets[K]):i.isLegendInset?(S=K=>v.max.width*m.steps[K]+10,I=K=>m.margins[m.steps[K]]+m.offsets[K]):(S=K=>m.margins[m.steps[K]]+m.offsets[K],I=K=>v.max.height*m.steps[K]);const H={xText:(K,at)=>S(K,at)+4+g.width,xRect:(K,at)=>S(K,at),x1Tile:(K,at)=>S(K,at)-2,x2Tile:(K,at)=>S(K,at)-2+g.width,yText:(K,at)=>I(K,at)+9,yRect:(K,at)=>I(K,at)-5,yTile:(K,at)=>I(K,at)+4};n.generateLegendItem(M,g,X,H),N=s.select(`.${He.legendBackground} rect`),i.isLegendInset&&v.max.width>0&&N.size()===0&&(N=s.insert("g",`.${He.legendItem}`).attr("class",He.legendBackground).append("rect")),a.legend_tooltip&&s.selectAll("title").data(M).text(K=>Xs.bind(n)(K,!1));const Y=s.selectAll("text").data(M).text(K=>Xs.bind(n)(K)).each(function(K,at){X(this,K,at)});o(Y,P).attr("x",H.xText).attr("y",H.yText);const _=s.selectAll(`rect.${He.legendItemEvent}`).data(M);o(_,P).attr("width",K=>m.widths[K]).attr("height",K=>m.heights[K]).attr("x",H.xRect).attr("y",H.yRect),n.updateLegendItemPos(M,P,H),N&&o(N,P).attr("height",n.getLegendHeight()-12).attr("width",v.max.width*(v.step+1)+10),n.updateLegendItemWidth(v.max.width),n.updateLegendItemHeight(v.max.height),n.updateLegendStep(v.step)},getUpdateLegendPositions(t,e,n){const a=this,{config:i,state:s}=a,o=s.isLegendRight||s.isLegendInset;return function(l,c,u){const g=u===0,v=u===t.length-1,m=a.getLegendItemTextBox(c,l),S=m.width+e.tileWidth+(v&&!o?0:e.padding.right)+i.legend_padding,I=m.height+e.padding.top,N=o?I:S,M=o?a.getLegendHeight():a.getLegendWidth();let P;const X=function(Y,_){_||(P=(M-e.totalLength-N)/2,P<e.posMin&&(P=(M-N)/2,e.totalLength=0,e.step++)),n.steps[Y]=e.step,n.margins[e.step]=s.isLegendInset?10:P,n.offsets[Y]=e.totalLength,e.totalLength+=N};if(g&&(e.totalLength=0,e.step=0,e.max.width=0,e.max.height=0),i.legend_show&&!a.isLegendToShow(c)){n.widths[c]=0,n.heights[c]=0,n.steps[c]=0,n.offsets[c]=0;return}n.widths[c]=S,n.heights[c]=I,(!e.max.width||S>=e.max.width)&&(e.max.width=S),(!e.max.height||I>=e.max.height)&&(e.max.height=I);const H=o?e.max.height:e.max.width;i.legend_equally?(Object.keys(n.widths).forEach(Y=>n.widths[Y]=e.max.width),Object.keys(n.heights).forEach(Y=>n.heights[Y]=e.max.height),P=(M-H*t.length)/2,P<e.posMin?(e.totalLength=0,e.step=0,t.forEach(Y=>X(Y))):X(c,!0)):X(c)}},generateLegendItem(t,e,n,a){const i=this,{config:s,state:o,$el:{legend:l}}=i,c=s.legend_usePoint,u=s.legend_item_tile_r,g=s.legend_item_tile_type,v=g!=="circle",m=o.isLegendRight||o.isLegendInset,S=-200,I=l.selectAll(`.${He.legendItem}`).data(t).enter().append("g");if(i.setLegendItem(I),s.legend_tooltip&&I.append("title").text(N=>N),I.append("text").text(N=>Xs.bind(i)(N)).each(function(N,M){n(this,N,M)}).style("pointer-events",i.getStylePropValue("none")).attr("x",m?a.xText:S).attr("y",m?S:a.yText),I.append("rect").attr("class",He.legendItemEvent).style("fill-opacity",i.getStylePropValue("0")).attr("x",m?a.xRect:S).attr("y",m?S:a.yRect),c){const N=[];I.append(M=>{const P=ln(s.point_pattern)?s.point_pattern:[s.point_type];N.indexOf(M)===-1&&N.push(M);let X=P[N.indexOf(M)%P.length];return X==="rectangle"&&(X="rect"),vn.createElementNS(ie.svg,"hasValidPointType"in i&&i.hasValidPointType(X)?X:"use")}).attr("class",He.legendItemPoint).style("fill",Ri.bind(i)).style("pointer-events",i.getStylePropValue("none")).attr("href",(M,P,X)=>{const Y=X[P].nodeName.toLowerCase(),_=i.getTargetSelectorSuffix(M);return Y==="use"?`#${o.datetimeId}-point${_}`:void 0})}else I.append(v?"line":g).attr("class",He.legendItemTile).style("stroke",Ri.bind(i)).style("pointer-events",i.getStylePropValue("none")).call(N=>{g==="circle"?N.attr("r",u).style("fill",Ri.bind(i)).attr("cx",m?a.x2Tile:S).attr("cy",m?S:a.yTile):v&&N.attr("stroke-width",e.height).attr("x1",m?a.x1Tile:S).attr("y1",m?S:a.yTile).attr("x2",m?a.x2Tile:S).attr("y2",m?S:a.yTile)})},updateLegendItemPos(t,e,n){const a=this,{config:i,$el:{legend:s},$T:o}=a,l=i.legend_usePoint,c=i.legend_item_tile_type,u=c!=="circle";if(l){const g=s.selectAll(`.${He.legendItemPoint}`).data(t);o(g,e).each(function(){const v=this.nodeName.toLowerCase(),m=i.point_r;let S="x",I="y",N=2,M=2.5,P=null,X=null,H=null;if(v==="circle"){const Y=m*.2;S="cx",I="cy",P=m+Y,N=m*2,M=-Y}else if(v==="rect"){const Y=m*2.5;X=Y,H=Y,M=3}st(this).attr(S,Y=>n.x1Tile(Y)+N).attr(I,Y=>n.yTile(Y)-M).attr("r",P).attr("width",X).attr("height",H)})}else{const g=s.selectAll(`.${He.legendItemTile}`).data(t);o(g,e).style("stroke",Ri.bind(a)).call(v=>{c==="circle"?v.attr("cx",m=>{const S=n.x2Tile(m);return S-(S-n.x1Tile(m))/2}).attr("cy",n.yTile):u&&v.attr("x1",n.x1Tile).attr("y1",n.yTile).attr("x2",n.x2Tile).attr("y2",n.yTile)})}}},Wv={redraw(t={}){var e,n,a,i;const s=this,{config:o,state:l,$el:c}=s,{main:u,treemap:g}=c;l.redrawing=!0;const v=s.filterTargetsToShow(s.data.targets),{flow:m,initializing:S}=t,I=s.getWithOption(t),N=I.Transition?o.transition_duration:0,M=I.TransitionForExit?N:0,P=I.TransitionForAxis?N:0,X=(e=s.axis)==null?void 0:e.generateTransitions(P);s.updateSizes(S),I.Legend&&o.legend_show?(t.withTransition=!!N,!g&&s.updateLegend(s.mapToIds(s.data.targets),t,X)):I.Dimension&&s.updateDimension(!0),o.data_empty_label_text&&u.select(`text.${In.text}.${Se.empty}`).attr("x",l.width/2).attr("y",l.height/2).text(o.data_empty_label_text).style("display",v.length?"none":null),l.hasAxis?(s.axis.redrawAxis(v,I,X,m,S),s.hasGrid()&&s.updateGrid(),o.regions.length&&s.updateRegion(),["bar","candlestick","line","area"].forEach(H=>{const Y=Ln(H);(/^(line|area)$/.test(H)&&s.hasTypeOf(Y)||s.hasType(H))&&s[`update${Y}`](I.TransitionForExit)}),c.text&&u.selectAll(`.${qe.selectedCircles}`).filter(s.isBarType.bind(s)).selectAll("circle").remove(),o.interaction_enabled&&!m&&I.EventRect&&(s.redrawEventRect(),(n=s.bindZoomEvent)==null||n.call(s))):(c.arcs&&s.redrawArc(N,M,I.Transform),c.radar&&s.redrawRadar(),c.polar&&s.redrawPolar(),c.funnel&&s.redrawFunnel(),g&&s.updateTreemap(M)),!l.resizing&&!g&&(s.hasPointType()||l.hasRadar)?s.updateCircle():(a=s.hasLegendDefsPoint)!=null&&a.call(s)&&s.data.targets.forEach(s.point("create",this)),s.hasDataLabel()&&!s.hasArcType(null,["radar"])&&s.updateText(),(i=s.redrawTitle)==null||i.call(s),S&&s.updateTypesElements(),s.generateRedrawList(v,m,N,I.Subchart),s.updateTooltipOnRedraw(),s.callPluginHook("$redraw",t,N)},generateRedrawList(t,e,n,a){const i=this,{config:s,state:o}=i,l=i.getDrawShape();o.hasAxis&&s.subchart_show&&i.redrawSubchart(a,n,l);const c=e&&i.generateFlow({targets:t,flow:e,duration:e.duration,shape:l,xv:i.xv.bind(i)}),u=(n||c)&&Ma(),g=i.getRedrawList(l,e,c,u),v=()=>{c&&c(),o.redrawing=!1,_e(s.onrendered,i.api)};if(v)if(u&&g.length){const m=ql();Pl().duration(n).each(()=>{g.reduce((S,I)=>S.concat(I),[]).forEach(S=>m.add(S))}).call(m,v)}else o.transiting||v();i.mapToIds(i.data.targets).forEach(m=>{o.withoutFadeIn[m]=!0})},getRedrawList(t,e,n,a){const i=this,{config:s,state:{hasAxis:o,hasRadar:l,hasTreemap:c},$el:{grid:u}}=i,{cx:g,cy:v,xForText:m,yForText:S}=t.pos,I=[];return o&&((s.grid_x_lines.length||s.grid_y_lines.length)&&I.push(i.redrawGrid(a)),s.regions.length&&I.push(i.redrawRegion(a)),Object.keys(t.type).forEach(N=>{const M=Ln(N),P=t.type[N];(/^(area|line)$/.test(N)&&i.hasTypeOf(M)||i.hasType(N))&&I.push(i[`redraw${M}`](P,a))}),!e&&u.main&&I.push(i.updateGridFocus())),(!i.hasArcType()||l)&&ln(s.data_labels)&&s.data_labels!==!1&&I.push(i.redrawText(m,S,e,a)),(i.hasPointType()||l)&&!i.isPointFocusOnly()&&i.redrawCircle&&I.push(i.redrawCircle(g,v,a,n)),c&&I.push(i.redrawTreemap(a)),I},updateAndRedraw(t={}){const e=this,{config:n,state:a}=e;let i;t.withTransition=$r(t,"withTransition",!0),t.withTransform=$r(t,"withTransform",!1),t.withLegend=$r(t,"withLegend",!1),t.withUpdateXDomain=!0,t.withUpdateOrgXDomain=!0,t.withTransitionForExit=!1,t.withTransitionForTransform=$r(t,"withTransitionForTransform",t.withTransition),t.withLegend&&n.legend_show||(a.hasAxis&&(i=e.axis.generateTransitions(t.withTransitionForAxis?n.transition_duration:0)),e.updateScales(),e.updateSvgSize(),e.transformAll(t.withTransitionForTransform,i)),e.redraw(t,i)}};const Kv=Math.sqrt(50),Zv=Math.sqrt(10),kv=Math.sqrt(2);function Oi(t,e,n){const a=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(a)),s=a/Math.pow(10,i),o=s>=Kv?10:s>=Zv?5:s>=kv?2:1;let l,c,u;return i<0?(u=Math.pow(10,-i)/o,l=Math.round(t*u),c=Math.round(e*u),l/u<t&&++l,c/u>e&&--c,u=-u):(u=Math.pow(10,i)*o,l=Math.round(t/u),c=Math.round(e/u),l*u<t&&++l,c*u>e&&--c),c<l&&.5<=n&&n<2?Oi(t,e,n*2):[l,c,u]}function Ys(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];const a=e<t,[i,s,o]=a?Oi(e,t,n):Oi(t,e,n);if(!(s>=i))return[];const l=s-i+1,c=new Array(l);if(a)if(o<0)for(let u=0;u<l;++u)c[u]=(s-u)/-o;else for(let u=0;u<l;++u)c[u]=(s-u)*o;else if(o<0)for(let u=0;u<l;++u)c[u]=(i+u)/-o;else for(let u=0;u<l;++u)c[u]=(i+u)*o;return c}function Hs(t,e,n){return e=+e,t=+t,n=+n,Oi(t,e,n)[2]}function Ws(t,e,n){e=+e,t=+t,n=+n;const a=e<t,i=a?Hs(e,t,n):Hs(t,e,n);return(a?-1:1)*(i<0?1/-i:i)}function Ii(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Jv(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Ks(t){let e,n,a;t.length!==2?(e=Ii,n=(l,c)=>Ii(t(l),c),a=(l,c)=>t(l)-c):(e=t===Ii||t===Jv?t:Qv,n=t,a=t);function i(l,c,u=0,g=l.length){if(u<g){if(e(c,c)!==0)return g;do{const v=u+g>>>1;n(l[v],c)<0?u=v+1:g=v}while(u<g)}return u}function s(l,c,u=0,g=l.length){if(u<g){if(e(c,c)!==0)return g;do{const v=u+g>>>1;n(l[v],c)<=0?u=v+1:g=v}while(u<g)}return u}function o(l,c,u=0,g=l.length){const v=i(l,c,u,g-1);return v>u&&a(l[v-1],c)>-a(l[v],c)?v-1:v}return{left:i,center:o,right:s}}function Qv(){return 0}function _v(t){return t===null?NaN:+t}function*u1(t,e){if(e===void 0)for(let n of t)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let a of t)(a=e(a,++n,t))!=null&&(a=+a)>=a&&(yield a)}}const pc=Ks(Ii),qv=pc.right,f1=pc.left,d1=Ks(_v).center;var tp=qv;function ep(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function np(t){return function(){return t}}function rp(t){return+t}var mc=[0,1];function aa(t){return t}function Zs(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:np(isNaN(e)?NaN:.5)}function ap(t,e){var n;return t>e&&(n=t,t=e,e=n),function(a){return Math.max(t,Math.min(e,a))}}function ip(t,e,n){var a=t[0],i=t[1],s=e[0],o=e[1];return i<a?(a=Zs(i,a),s=n(o,s)):(a=Zs(a,i),s=n(s,o)),function(l){return s(a(l))}}function sp(t,e,n){var a=Math.min(t.length,e.length)-1,i=new Array(a),s=new Array(a),o=-1;for(t[a]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<a;)i[o]=Zs(t[o],t[o+1]),s[o]=n(e[o],e[o+1]);return function(l){var c=tp(t,l,1,a)-1;return s[c](i[c](l))}}function Ci(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function ks(){var t=mc,e=mc,n=Jr,a,i,s,o=aa,l,c,u;function g(){var m=Math.min(t.length,e.length);return o!==aa&&(o=ap(t[0],t[m-1])),l=m>2?sp:ip,c=u=null,v}function v(m){return m==null||isNaN(m=+m)?s:(c||(c=l(t.map(a),e,n)))(a(o(m)))}return v.invert=function(m){return o(i((u||(u=l(e,t.map(a),Jn)))(m)))},v.domain=function(m){return arguments.length?(t=Array.from(m,rp),g()):t.slice()},v.range=function(m){return arguments.length?(e=Array.from(m),g()):e.slice()},v.rangeRound=function(m){return e=Array.from(m),n=ep,g()},v.clamp=function(m){return arguments.length?(o=m?!0:aa,g()):o!==aa},v.interpolate=function(m){return arguments.length?(n=m,g()):n},v.unknown=function(m){return arguments.length?(s=m,v):s},function(m,S){return a=m,i=S,g()}}function yc(){return ks()(aa,aa)}var op=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Da(t){if(!(e=op.exec(t)))throw new Error("invalid format: "+t);var e;return new Js({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]})}Da.prototype=Js.prototype;function Js(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}Js.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function lp(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Pi(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,a=t.slice(0,n);return[a.length>1?a[0]+a.slice(2):a,+t.slice(n+1)]}function ia(t){return t=Pi(Math.abs(t)),t?t[1]:NaN}function cp(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ia(e)/3)))*3-ia(Math.abs(t)))}function up(t,e){return function(n,a){for(var i=n.length,s=[],o=0,l=t[0],c=0;i>0&&l>0&&(c+l+1>a&&(l=Math.max(1,a-c)),s.push(n.substring(i-=l,i+l)),!((c+=l+1)>a));)l=t[o=(o+1)%t.length];return s.reverse().join(e)}}function fp(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}function dp(t){t:for(var e=t.length,n=1,a=-1,i;n<e;++n)switch(t[n]){case".":a=i=n;break;case"0":a===0&&(a=n),i=n;break;default:if(!+t[n])break t;a>0&&(a=0);break}return a>0?t.slice(0,a)+t.slice(i+1):t}var xc;function hp(t,e){var n=Pi(t,e);if(!n)return t+"";var a=n[0],i=n[1],s=i-(xc=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=a.length;return s===o?a:s>o?a+new Array(s-o+1).join("0"):s>0?a.slice(0,s)+"."+a.slice(s):"0."+new Array(1-s).join("0")+Pi(t,Math.max(0,e+s-1))[0]}function Tc(t,e){var n=Pi(t,e);if(!n)return t+"";var a=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+a:a.length>i+1?a.slice(0,i+1)+"."+a.slice(i+1):a+new Array(i-a.length+2).join("0")}var $c={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:lp,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Tc(t*100,e),r:Tc,s:hp,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Sc(t){return t}var Ac=Array.prototype.map,bc=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function gp(t){var e=t.grouping===void 0||t.thousands===void 0?Sc:up(Ac.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",a=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",s=t.numerals===void 0?Sc:fp(Ac.call(t.numerals,String)),o=t.percent===void 0?"%":t.percent+"",l=t.minus===void 0?"\u2212":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function u(v){v=Da(v);var m=v.fill,S=v.align,I=v.sign,N=v.symbol,M=v.zero,P=v.width,X=v.comma,H=v.precision,Y=v.trim,_=v.type;_==="n"?(X=!0,_="g"):$c[_]||(H===void 0&&(H=12),Y=!0,_="g"),(M||m==="0"&&S==="=")&&(M=!0,m="0",S="=");var K=N==="$"?n:N==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",at=N==="$"?a:/[%p]/.test(_)?o:"",yt=$c[_],$t=/[defgprs%]/.test(_);H=H===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,H)):Math.max(0,Math.min(20,H));function dt(ft){var Ft=K,ht=at,Z,St,lt;if(_==="c")ht=yt(ft)+ht,ft="";else{ft=+ft;var At=ft<0||1/ft<0;if(ft=isNaN(ft)?c:yt(Math.abs(ft),H),Y&&(ft=dp(ft)),At&&+ft==0&&I!=="+"&&(At=!1),Ft=(At?I==="("?I:l:I==="-"||I==="("?"":I)+Ft,ht=(_==="s"?bc[8+xc/3]:"")+ht+(At&&I==="("?")":""),$t){for(Z=-1,St=ft.length;++Z<St;)if(lt=ft.charCodeAt(Z),48>lt||lt>57){ht=(lt===46?i+ft.slice(Z+1):ft.slice(Z))+ht,ft=ft.slice(0,Z);break}}}X&&!M&&(ft=e(ft,1/0));var jt=Ft.length+ft.length+ht.length,Ut=jt<P?new Array(P-jt+1).join(m):"";switch(X&&M&&(ft=e(Ut+ft,Ut.length?P-ht.length:1/0),Ut=""),S){case"<":ft=Ft+ft+ht+Ut;break;case"=":ft=Ft+Ut+ft+ht;break;case"^":ft=Ut.slice(0,jt=Ut.length>>1)+Ft+ft+ht+Ut.slice(jt);break;default:ft=Ut+Ft+ft+ht;break}return s(ft)}return dt.toString=function(){return v+""},dt}function g(v,m){var S=u((v=Da(v),v.type="f",v)),I=Math.max(-8,Math.min(8,Math.floor(ia(m)/3)))*3,N=Math.pow(10,-I),M=bc[8+I/3];return function(P){return S(N*P)+M}}return{format:u,formatPrefix:g}}var wi,Qs,Ec;vp({thousands:",",grouping:[3],currency:["$",""]});function vp(t){return wi=gp(t),Qs=wi.format,Ec=wi.formatPrefix,wi}function pp(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,ia(e)-ia(t))+1}function mp(t){return Math.max(0,-ia(Math.abs(t)))}function yp(t,e,n,a){var i=Ws(t,e,n),s;switch(a=Da(a==null?",f":a),a.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));return a.precision==null&&!isNaN(s=cp(i,o))&&(a.precision=s),Ec(a,o)}case"":case"e":case"g":case"p":case"r":{a.precision==null&&!isNaN(s=pp(i,Math.max(Math.abs(t),Math.abs(e))))&&(a.precision=s-(a.type==="e"));break}case"f":case"%":{a.precision==null&&!isNaN(s=mp(i))&&(a.precision=s-(a.type==="%")*2);break}}return Qs(a)}function Rc(t){var e=t.domain;return t.ticks=function(n){var a=e();return Ys(a[0],a[a.length-1],n==null?10:n)},t.tickFormat=function(n,a){var i=e();return yp(i[0],i[i.length-1],n==null?10:n,a)},t.nice=function(n){n==null&&(n=10);var a=e(),i=0,s=a.length-1,o=a[i],l=a[s],c,u,g=10;for(l<o&&(u=o,o=l,l=u,u=i,i=s,s=u);g-- >0;){if(u=Hs(o,l,n),u===c)return a[i]=o,a[s]=l,e(a);if(u>0)o=Math.floor(o/u)*u,l=Math.ceil(l/u)*u;else if(u<0)o=Math.ceil(o*u)/u,l=Math.floor(l*u)/u;else break;c=u}return t},t}function Mi(){var t=yc();return t.copy=function(){return Ci(t,Mi())},ra.apply(t,arguments),Rc(t)}function Oc(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Ic(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function xp(t){var e=1,n=t(Oc(e),Ic(e));return n.constant=function(a){return arguments.length?t(Oc(e=+a),Ic(e)):e},Rc(n)}function Cc(){var t=xp(ks());return t.copy=function(){return Ci(t,Cc()).constant(t.constant())},ra.apply(t,arguments)}function Pc(t,e){t=t.slice();var n=0,a=t.length-1,i=t[n],s=t[a],o;return s<i&&(o=n,n=a,a=o,o=i,i=s,s=o),t[n]=e.floor(i),t[a]=e.ceil(s),t}function wc(t){return Math.log(t)}function Mc(t){return Math.exp(t)}function Tp(t){return-Math.log(-t)}function $p(t){return-Math.exp(-t)}function Sp(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Ap(t){return t===10?Sp:t===Math.E?Math.exp:e=>Math.pow(t,e)}function bp(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function Lc(t){return(e,n)=>-t(-e,n)}function Ep(t){const e=t(wc,Mc),n=e.domain;let a=10,i,s;function o(){return i=bp(a),s=Ap(a),n()[0]<0?(i=Lc(i),s=Lc(s),t(Tp,$p)):t(wc,Mc),e}return e.base=function(l){return arguments.length?(a=+l,o()):a},e.domain=function(l){return arguments.length?(n(l),o()):n()},e.ticks=l=>{const c=n();let u=c[0],g=c[c.length-1];const v=g<u;v&&([u,g]=[g,u]);let m=i(u),S=i(g),I,N;const M=l==null?10:+l;let P=[];if(!(a%1)&&S-m<M){if(m=Math.floor(m),S=Math.ceil(S),u>0){for(;m<=S;++m)for(I=1;I<a;++I)if(N=m<0?I/s(-m):I*s(m),!(N<u)){if(N>g)break;P.push(N)}}else for(;m<=S;++m)for(I=a-1;I>=1;--I)if(N=m>0?I/s(-m):I*s(m),!(N<u)){if(N>g)break;P.push(N)}P.length*2<M&&(P=Ys(u,g,M))}else P=Ys(m,S,Math.min(S-m,M)).map(s);return v?P.reverse():P},e.tickFormat=(l,c)=>{if(l==null&&(l=10),c==null&&(c=a===10?"s":","),typeof c!="function"&&(!(a%1)&&(c=Da(c)).precision==null&&(c.trim=!0),c=Qs(c)),l===1/0)return c;const u=Math.max(1,a*l/e.ticks().length);return g=>{let v=g/s(Math.round(i(g)));return v*a<a-.5&&(v*=a),v<=u?c(g):""}},e.nice=()=>n(Pc(n(),{floor:l=>s(Math.floor(i(l))),ceil:l=>s(Math.ceil(i(l)))})),e}function Dc(){const t=Ep(ks()).domain([1,10]);return t.copy=()=>Ci(t,Dc()).base(t.base()),ra.apply(t,arguments),t}const Li=tn(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Li.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?tn(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Li);const h1=Li.range,Ur=tn(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Xn)},(t,e)=>(e-t)/Xn,t=>t.getUTCSeconds()),g1=Ur.range,_s=tn(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Xn)},(t,e)=>{t.setTime(+t+e*On)},(t,e)=>(e-t)/On,t=>t.getMinutes()),v1=_s.range,qs=tn(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*On)},(t,e)=>(e-t)/On,t=>t.getUTCMinutes()),p1=qs.range,to=tn(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Xn-t.getMinutes()*On)},(t,e)=>{t.setTime(+t+e*Bn)},(t,e)=>(e-t)/Bn,t=>t.getHours()),m1=to.range,eo=tn(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Bn)},(t,e)=>(e-t)/Bn,t=>t.getUTCHours()),y1=eo.range,no=tn(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth()),x1=no.range,ro=tn(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth()),T1=ro.range;function Nc(t,e,n,a,i,s){const o=[[Ur,1,Xn],[Ur,5,5*Xn],[Ur,15,15*Xn],[Ur,30,30*Xn],[s,1,On],[s,5,5*On],[s,15,15*On],[s,30,30*On],[i,1,Bn],[i,3,3*Bn],[i,6,6*Bn],[i,12,12*Bn],[a,1,sr],[a,2,2*sr],[n,1,qi],[e,1,Io],[e,3,3*Io],[t,1,ts]];function l(u,g,v){const m=g<u;m&&([u,g]=[g,u]);const S=v&&typeof v.range=="function"?v:c(u,g,v),I=S?S.range(u,+g+1):[];return m?I.reverse():I}function c(u,g,v){const m=Math.abs(g-u)/v,S=Ks(([,,M])=>M).right(o,m);if(S===o.length)return t.every(Ws(u/ts,g/ts,v));if(S===0)return Li.every(Math.max(Ws(u,g,v),1));const[I,N]=o[m/o[S-1][2]<o[S][2]/m?S-1:S];return I.every(N)}return[l,c]}const[Rp,Op]=Nc(lr,ro,Ja,Co,eo,qs),[Ip,Cp]=Nc(or,no,Za,pa,to,_s);function Pp(t){return new Date(t)}function wp(t){return t instanceof Date?+t:+new Date(+t)}function ao(t,e,n,a,i,s,o,l,c,u){var g=yc(),v=g.invert,m=g.domain,S=u(".%L"),I=u(":%S"),N=u("%I:%M"),M=u("%I %p"),P=u("%a %d"),X=u("%b %d"),H=u("%B"),Y=u("%Y");function _(K){return(c(K)<K?S:l(K)<K?I:o(K)<K?N:s(K)<K?M:a(K)<K?i(K)<K?P:X:n(K)<K?H:Y)(K)}return g.invert=function(K){return new Date(v(K))},g.domain=function(K){return arguments.length?m(Array.from(K,wp)):m().map(Pp)},g.ticks=function(K){var at=m();return t(at[0],at[at.length-1],K==null?10:K)},g.tickFormat=function(K,at){return at==null?_:u(at)},g.nice=function(K){var at=m();return(!K||typeof K.range!="function")&&(K=e(at[0],at[at.length-1],K==null?10:K)),K?m(Pc(at,K)):g},g.copy=function(){return Ci(g,ao(t,e,n,a,i,s,o,l,c,u))},g}function Mp(){return ra.apply(ao(Ip,Cp,or,no,Za,pa,to,_s,Ur,rs).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Lp(){return ra.apply(ao(Rp,Op,lr,ro,Ja,_a,eo,qs,Ur,as).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function zr(t="linear",e,n){const a={linear:Mi,log:Cc,_log:Dc,time:Mp,utc:Lp}[t]();return a.type=t,/_?log/.test(t)&&a.clamp(!0),a.range([e!=null?e:0,n!=null?n:1])}var Dp={getXScale(t,e,n,a){const i=this,s=i.state.loading!=="append"&&i.scale.zoom||zr(i.axis.getAxisType("x"),t,e);return i.getCustomizedXScale(n?s.domain(n):s,a)},getYScale(t,e,n,a){const s=zr(this.axis.getAxisType(t),e,n);return a&&s.domain(a),s},getYScaleById(t,e=!1){var n;const a=((n=this.axis)==null?void 0:n.getId(t))==="y2",i=e?a?"subY2":"subY":a?"y2":"y";return this.scale[i]},getCustomizedXScale(t,e){const n=this,a=e||(()=>n.axis.x.tickOffset()),i=n.config.axis_x_inverted,s=function(o,l){const c=t(o)+a();return l?c:Math.ceil(c)};for(const o in t)s[o]=t[o];return s.orgDomain=()=>t.domain(),s.orgScale=()=>t,n.axis.isCategorized()&&(s.domain=function(o){let l=o;return arguments.length?(t.domain(l),s):(l=this.orgDomain(),i?[l[0]+1,l[1]]:[l[0],l[1]+1])}),s},updateScales(t,e=!0){var n,a;const i=this,{axis:s,config:o,format:l,org:c,scale:u,state:{current:g,width:v,height:m,width2:S,height2:I,hasAxis:N,hasTreemap:M}}=i;if(N){const P=o.axis_rotated,X=i.getResettedPadding(1),H={x:P?X:0,y:P?0:m,subX:P?1:0,subY:P?0:I},Y={x:P?m:v,y:P?v:X,subX:P?m:v,subY:P?S:1},_=e&&((n=u.x)==null?void 0:n.orgDomain()),K=e&&c.xDomain;u.x=i.getXScale(H.x,Y.x,_,()=>s.x.tickOffset()),u.subX=i.getXScale(H.x,Y.x,K,at=>{var yt;return at%1?0:((yt=s.subX)!=null?yt:s.x).tickOffset()}),l.xAxisTick=s.getXAxisTickFormat(),l.subXAxisTick=s.getXAxisTickFormat(!0),s.setAxis("x",u.x,o.axis_x_tick_outer,t),o.subchart_show&&s.setAxis("subX",u.subX,o.axis_x_tick_outer,t),u.y=i.getYScale("y",H.y,Y.y,u.y?u.y.domain():o.axis_y_default),u.subY=i.getYScale("y",H.subY,Y.subY,u.subY?u.subY.domain():o.axis_y_default),s.setAxis("y",u.y,o.axis_y_tick_outer,t),o.axis_y2_show&&(u.y2=i.getYScale("y2",H.y,Y.y,u.y2?u.y2.domain():o.axis_y2_default),u.subY2=i.getYScale("y2",H.subY,Y.subY,u.subY2?u.subY2.domain():o.axis_y2_default),s.setAxis("y2",u.y2,o.axis_y2_tick_outer,t))}else if(M){const P=i.getCurrentPadding();u.x=Mi().rangeRound([P.left,g.width-P.right]),u.y=Mi().rangeRound([P.top,g.height-P.bottom])}else(a=i.updateArc)==null||a.call(i)},xx(t){const e=this,{config:n,scale:{x:a,zoom:i}}=e,s=n.zoom_enabled&&i?i:a;return t?s(we(t.x)?t.x:t):null},xv(t){const e=this,{axis:n,config:a,scale:{x:i,zoom:s}}=e,o=a.zoom_enabled&&s?s:i;let l=e.getBaseValue(t);return n.isTimeSeries()?l=zn.call(e,l):n.isCategorized()&&Ge(l)&&(l=a.axis_x_categories.indexOf(l)),Math.ceil(o(l))},yv(t){const e=this,{scale:{y:n,y2:a}}=e,i=t.axis&&t.axis==="y2"?a:n;return Math.ceil(i(e.getBaseValue(t)))},subxx(t){return t?this.scale.subX(t.x):null}},Np={setContainerSize(){const t=this,{state:e}=t;e.current.width=t.getCurrentWidth(),e.current.height=t.getCurrentHeight()},getCurrentWidth(){const t=this;return t.config.size_width||t.getParentWidth()},getCurrentHeight(){const t=this,{config:e}=t,n=e.size_height||t.getParentHeight();return n>0?n:320/(t.hasType("gauge")&&!e.gauge_fullCircle?2:1)},getParentRectValue(t){const e=`offset${Ln(t)}`;let n=this.$el.chart.node(),a=0;for(;a<30&&n&&n.tagName!=="BODY";){try{a=n.getBoundingClientRect()[t]}catch(s){e in n&&(a=n[e])}n=n.parentNode}const i=vn.body[e];return a>i&&(a=i),a},getParentWidth(){return this.getParentRectValue("width")},getParentHeight(){const t=this.$el.chart.style("height");let e=0;return t&&(e=/px$/.test(t)?parseInt(t,10):this.getParentRectValue("height")),e},getSvgLeft(t){const e=this,{config:n,state:{hasAxis:a},$el:i}=e,s=n.axis_rotated,o=s||!s&&!n.axis_y_inner,l=s?fn.axisX:fn.axisY,c=i.main.select(`.${l}`).node(),u=a&&n[`axis_${s?"x":"y"}_label`];let g=0;if(a&&(Ge(u)||Ge(u.text)||/^inner-/.test(u==null?void 0:u.position))){const N=i.main.select(`.${l}-label`);N.empty()||(g=N.node().getBoundingClientRect().left)}const v=c&&o?c.getBoundingClientRect():{right:0},m=i.chart.node().getBoundingClientRect().left+g,S=e.hasArcType(),I=v.right-m-(S?0:e.getCurrentPaddingByDirection("left",t));return I>0?I:0},updateDimension(t){var e;const n=this,{config:a,state:{hasAxis:i},$el:s}=n;i&&!t&&n.axis.x&&a.axis_rotated&&((e=n.axis.subX)==null||e.create(s.axis.subX)),n.updateScales(t),n.updateSvgSize(),n.transformAll(!1)},updateSvgSize(){const t=this,{state:{clip:e,current:n,hasAxis:a,width:i,height:s},$el:{svg:o}}=t;if(o.attr("width",n.width).attr("height",n.height),a){const l=o.select(`.${ko.brush} .overlay`),c={width:0,height:0};l.size()&&(c.width=+l.attr("width"),c.height=+l.attr("height")),o.selectAll([`#${e.id}`,`#${e.idGrid}`]).select("rect").attr("width",i).attr("height",s),o.select(`#${e.idXAxis}`).select("rect").call(t.setXAxisClipPath.bind(t)),o.select(`#${e.idYAxis}`).select("rect").call(t.setYAxisClipPath.bind(t)),e.idSubchart&&o.select(`#${e.idSubchart}`).select("rect").attr("width",i).attr("height",c.height)}},getCurrentPaddingByDirection(t,e=!1,n=!1){var a;const i=this,{config:s,$el:o,state:{hasAxis:l}}=i,c=s.axis_rotated,u=((a=s.padding)==null?void 0:a.mode)==="fit",g=he(s[`padding_${t}`])?s[`padding_${t}`]:void 0,v=l?{top:c?"y2":null,bottom:c?"y":"x",left:c?"x":"y",right:c?null:"y2"}[t]:null,m=/^(left|right)$/.test(t),S=v&&s[`axis_${v}_inner`],I=v&&s[`axis_${v}_show`],N=v?s[`axis_${v}_axes`].length:0;let M=v?m?i.getAxisWidthByAxisId(v,e):i.getHorizontalAxisHeight(v):0;const P=20;let X=0;!u&&m&&(M=Kg(M));let H=l&&m&&(S||on(g)&&!I)?0:u?(I?M:0)+(g!=null?g:0):on(g)?M:g;return m&&l?(v&&(u||S)&&s[`axis_${v}_label`].text&&(H+=i.axis.getAxisLabelPosition(v).isOuter?P:0),t==="right"?(H+=c?!u&&on(g)?10:2:!I||S?u?2:1:0,H+=n?i.axis.getXAxisTickTextY2Overflow(P):0):t==="left"&&c&&on(g)&&(H=s.axis_x_show?u?M:Math.max(M,40):1)):t==="top"?(o.title&&o.title.node()&&(H+=i.getTitlePadding()),X=c&&!S?N:0):t==="bottom"&&l&&c&&!I&&(H+=1),H+M*N-X},getCurrentPadding(t=!1){const e=this,[n,a,i,s]=["top","bottom","left","right"].map(o=>e.getCurrentPaddingByDirection(o,null,t));return{top:n,bottom:a,left:i,right:s}},getResettedPadding(t){const e=this,{config:n}=e,a=he(t);let i=a?0:{};return n.padding===!1?!a&&Object.keys(t).forEach(s=>{i[s]=!_n(n.data_labels)&&n.data_labels!==!1&&s==="top"?t[s]:0}):i=t,i},updateSizes(t){var e,n,a,i,s;const o=this,{config:l,state:c,$el:{legend:u}}=o,g=l.axis_rotated,v=o.hasArcType()||c.hasFunnel||c.hasTreemap,m=((e=l.padding)==null?void 0:e.mode)==="fit";!t&&o.setContainerSize();const S={width:u?o.getLegendWidth():0,height:u?o.getLegendHeight():0};!v&&l.axis_x_show&&l.axis_x_tick_autorotate&&o.updateXAxisTickClip();const I={right:l.legend_show&&c.isLegendRight?o.getLegendWidth()+(m?0:20):0,bottom:!l.legend_show||c.isLegendRight||c.isLegendInset?0:S.height},N=g||v?0:o.getHorizontalAxisHeight("x"),M=l.subchart_axis_x_show&&l.subchart_axis_x_tick_text_show?N:30,P=l.subchart_show&&!v?l.subchart_size_height+M:0,X=o.hasType("gauge")&&l.arc_needle_show&&!l.gauge_fullCircle&&!l.gauge_label_show?10:0,H=o.getCurrentPadding(!0);if(c.margin=!v&&g?{top:H.top,right:v?0:H.right+I.right,bottom:I.bottom+H.bottom,left:P+(v?0:H.left)}:{top:(m?0:4)+H.top,right:v?0:H.right+I.right,bottom:X+P+I.bottom+H.bottom,left:v?0:H.left},c.margin=o.getResettedPadding(c.margin),c.margin2=g?{top:c.margin.top,right:NaN,bottom:20+I.bottom,left:o.state.rotatedPadding.left}:{top:c.current.height-P-I.bottom,right:NaN,bottom:M+I.bottom,left:c.margin.left},c.margin3={top:0,right:NaN,bottom:0,left:0},(n=o.updateSizeForLegend)==null||n.call(o,S),c.width=c.current.width-c.margin.left-c.margin.right,c.height=c.current.height-c.margin.top-c.margin.bottom,c.width<0&&(c.width=0),c.height<0&&(c.height=0),c.width2=g?c.margin.left-c.rotatedPadding.left-c.rotatedPadding.right:c.width,c.height2=g?c.height:c.current.height-c.margin2.top-c.margin2.bottom,c.width2<0&&(c.width2=0),c.height2<0&&(c.height2=0),o.hasArcType()){const Y=o.hasType("gauge"),_=l.legend_show&&c.isLegendRight,K=(a=c.hasRadar&&o.cache.get(Dn.radarTextWidth))!=null?a:0;c.arcWidth=c.width-(_?S.width+10:0)-K,c.arcHeight=c.height-(_&&!Y?0:10),(i=l.arc_rangeText_values)!=null&&i.length&&(Y?(c.arcWidth-=25,c.arcHeight-=10,c.margin.left+=10):(c.arcHeight-=20,c.margin.top+=10)),Y&&!l.gauge_fullCircle&&(c.arcHeight+=c.height-o.getPaddingBottomForGauge()),(s=o.updateRadius)==null||s.call(o)}c.isLegendRight&&v&&(c.margin3.left=c.arcWidth/2+c.radiusExpanded*1.1)}},Fp={setCssRule(t,e,n,a){const i=this,{config:s,state:{cssRule:o,style:l}}=i;return s.boost_useCssRule?c=>{c.each(u=>{const g=a&&(a==null?void 0:a.call(i,u)),v=`${t?`.${sn.shapes+i.getTargetSelectorSuffix(u.id)}`:""}${e}`;e in o&&l.sheet.deleteRule(o[v]),i.state.cssRule[v]=Qg(l,v,n.filter(Boolean).map(m=>Ge(g)&&m.indexOf(":")===-1?`${m}: ${g}`:m||""))})}:()=>{}},getStylePropValue(t){const{config:{boost_useCssRule:e}}=this;return e?null:ve(t)?t.bind(this):t}};function Fc(t){return typeof t=="string"?new Re([document.querySelectorAll(t)],[document.documentElement]):new Re([T(t)],te)}function Bp(t){let e="middle";return t>0&&t<=170?e="end":t>190&&t<=360&&(e="start"),e}function Up(t,e,n,a,i){var s;const o=this,{value:l}=t,c=o.isCandlestickType(t),u=he(l)&&l<0||c&&!((s=o.getCandlestickData(t))!=null&&s._isUp);let{x:g,y:v}=e;const m=4,S=m*2;return a?n==="start"?(g+=u?0:S,v+=m):n==="middle"?(g+=S,v-=S):n==="end"&&(u&&(g-=S),v+=m):(n==="start"?(g+=m,u&&(v+=S*2)):n==="middle"?v-=S:n==="end"&&(g-=m,u&&(v+=S*2)),i&&(v+=u?-17:c?13:7)),{x:g,y:v}}function Bc(t,e){var n;const a=this.config.data_labels_position,{id:i,index:s,value:o}=t;return(n=ve(a)?a.bind(this.api)(e,o,i,s,this.$el.text):(i in a?a[i]:a)[e])!=null?n:0}var zp={opacityForText(t){const e=this;return e.isBarType(t)&&!e.meetsLabelThreshold(Math.abs(e.getRatio("bar",t)),"bar")?"0":e.hasDataLabel?null:"0"},initText(){const{$el:t}=this;t.main.select(`.${Se.chart}`).append("g").attr("class",In.chartTexts).style("pointer-events",t.funnel||t.treemap?"none":null)},updateTargetsForText(t){const e=this,n=e.getChartClass("Text"),a=e.getClass("texts","id"),i=e.classFocus.bind(e);e.$el.main.select(`.${In.chartTexts}`).selectAll(`.${In.chartText}`).data(t).attr("class",l=>`${n(l)}${i(l)}`.trim()).enter().append("g").style("opacity","0").attr("class",n).call(e.setCssRule(!0,` .${In.text}`,["fill","pointer-events:none"],e.updateTextColor)).append("g").attr("class",a)},updateText(){const t=this,{$el:e,$T:n,config:a,axis:i}=t,s=t.getClass("text","index"),o=a.data_labels.centered,l=e.main.selectAll(`.${In.texts}`).selectAll(`.${In.text}`).data(t.labelishData.bind(t));n(l.exit()).style("fill-opacity","0").remove(),e.text=l.enter().append("text").merge(l).attr("class",s).attr("text-anchor",c=>{let g=a[`axis_${i==null?void 0:i.getId(c.id)}_inverted`]?c.value>0:c.value<0;if(t.isCandlestickType(c)){const v=t.getCandlestickData(c);g=!(v!=null&&v._isUp)}else if(t.isTreemapType(c))return o?"middle":"start";return a.axis_rotated?g?"end":"start":"middle"}).style("fill",t.getStylePropValue(t.updateTextColor)).style("fill-opacity","0").each(function(c,u,g){const v=st(this);let{value:m}=c;if(t.isBubbleZType(c))m=t.getBubbleZData(m,"z");else if(t.isCandlestickType(c)){const S=t.getCandlestickData(c);S&&(m=S.close)}m=t.isTreemapType(c)?t.treemapDataLabelFormat(c)(v):t.dataLabelFormat(c.id)(m,c.id,c.index,g),he(m)?this.textContent=m:wa(v,m)})},updateTextColor(t){const e=this,{config:n}=e,a=n.data_labels_colors,i=e.isArcType(t)&&!e.isRadarType(t)||e.isFunnelType(t)||e.isTreemapType(t)?null:e.color(t);let s;if(Ge(a))s=a;else if(Ne(a)){const{id:o}=t.data||t;s=a[o]}else ve(a)&&(s=a.bind(e.api)(i,t));if(e.isCandlestickType(t)&&!ve(a)){const o=e.getCandlestickData(t);if(!(o!=null&&o._isUp)){const l=n.candlestick_color_down;s=Ne(l)?l[t.id]:l}}return s||i},updateTextBGColor(t,e){const n=this,{$el:a}=n;let i="";if(Ge(e)||Ne(e)){const s=Ge(e)?"":n.getTargetSelectorSuffix("id"in t?t.id:t.data.id),o=a.defs.select(["filter[id*='labels-bg","']"].join(s));o.size()&&(i=`url(#${o.attr("id")})`)}return i||null},redrawText(t,e,n,a){const i=this,{$T:s,axis:o,config:l,state:{hasTreemap:c}}=i,u=gr(!0),g=l.axis_rotated,v=l.data_labels.rotate,m=Bp(v),S=v?`rotate(${v})`:"";return i.$el.text.style("fill",i.getStylePropValue(i.updateTextColor)).attr("filter",I=>i.updateTextBGColor.bind(i)(I,l.data_labels_backgroundColors)).style("fill-opacity",n?0:i.opacityForText.bind(i)).each(function(I,N){const M=s(c&&this.childElementCount?this.parentNode:this,!!(a&&this.getAttribute("x")),u),P=l[`axis_${o==null?void 0:o.getId(I.id)}_inverted`];let X={x:t.bind(this)(I,N),y:e.bind(this)(I,N)};v&&(X=Up.bind(i)(I,X,m,g,P),M.attr("text-anchor",m)),this.childElementCount||v?M.attr("transform",`translate(${X.x} ${X.y}) ${S}`):M.attr("x",X.x).attr("y",X.y)}),!0},getTextRect(t,e){const n=this;let a=t.node?t.node():t;/text/i.test(a.tagName)||(a=a.querySelector("text"));const i=a.textContent,s=`${Dn.textRect}-${i.replace(/\W/g,"_")}`;let o=n.cache.get(s);return o||(n.$el.svg.append("text").style("visibility","hidden").style("font",st(a).style("font")).classed(e,!0).text(i).call(l=>{o=Si(l.node())}).remove(),n.cache.add(s,o)),o},generateXYForText(t,e){const n=this,{state:{hasRadar:a,hasFunnel:i,hasTreemap:s}}=n,o=Object.keys(t),l={},c=e?n.getXForText:n.getYForText;return i&&o.push("funnel"),a&&o.push("radar"),s&&o.push("treemap"),o.forEach(u=>{l[u]=n[`generateGet${Ln(u)}Points`](t[u],!1)}),function(u,g){const v=n.isAreaType(u)&&"area"||n.isBarType(u)&&"bar"||n.isCandlestickType(u)&&"candlestick"||n.isFunnelType(u)&&"funnel"||n.isRadarType(u)&&"radar"||n.isTreemapType(u)&&"treemap"||"line";return c.call(n,l[v](u,g),u,this)}},getCenteredTextPos(t,e,n,a){const i=this,{config:s}=i,o=s.axis_rotated,l=i.isBarType(t),c=i.isTreemapType(t);if(s.data_labels.centered&&(l||c)){const u=Si(n);if(l){const g=i.getRangedData(t,null,"bar")>=0;if(o){const v=(g?e[1][1]-e[0][1]:e[0][1]-e[1][1])/2+u.width/2;return g?-v-3:v+2}else{const v=(g?e[0][1]-e[1][1]:e[1][1]-e[0][1])/2+u.height/2;return g?v:-v-2}}else if(c)return a==="x"?(e[1][0]-e[0][0])/2:(e[1][1]-e[0][1])/2+u.height/2}return 0},getXForText(t,e,n){var a;const i=this,{config:s}=i,o=s.axis_rotated,l=i.isFunnelType(e),c=i.isTreemapType(e);let u=t?t[0][0]:0;if(i.isCandlestickType(e))o?u=(a=i.getCandlestickData(e))!=null&&a._isUp?t[2][2]+4:t[2][1]-4:u+=(t[1][0]-u)/2;else if(l)u+=i.state.current.width/2;else if(c)u+=s.data_labels.centered?0:5;else if(o){const g=s[`axis_${i.axis.getId(e.id)}_inverted`],v=i.isBarType(e)?4:6,m=e.value;u=t[2][1],g?u-=v*(m>0?1:-1):u+=v*(m<0?-1:1)}else u=i.hasType("bar")?(t[2][0]+t[0][0])/2:u;return(o||c)&&(u+=i.getCenteredTextPos(e,t,n,"x")),u+Bc.call(this,e,"x")},getYForText(t,e,n){const a=this,{axis:i,config:s,state:o}=a,l=s.axis_rotated,c=s[`axis_${i==null?void 0:i.getId(e.id)}_inverted`],u=a.isBarType(e),g=a.isFunnelType(e),v=a.isTreemapType(e),m=s.point_r,S=Si(n);let{value:I}=e,N=3,M;if(a.isCandlestickType(e))I=a.getCandlestickData(e),l?(M=t[0][0],M+=(t[1][0]-M)/2+N):(M=I&&I._isUp?t[2][2]-N:t[2][1]+N*4,c&&(M+=15*(I._isUp?1:-1)));else if(g)M=t?t[0][1]+(t[1][1]-t[0][1])/2+S.height/2-3:0;else if(v)M=t[0][1]+(s.data_labels.centered?0:S.height+5);else if(l)M=(t[0][0]+t[2][0]+S.height*.6)/2;else if(M=t[2][1],he(m)&&m>5&&(a.isLineType(e)||a.isScatterType(e))&&(N+=s.point_r/2.3),I<0||I===0&&!o.hasPositiveValue&&o.hasNegativeValue)M+=c?u?-3:-5:S.height+(u?-N:N);else{let P=-N*2;u?P=-N:a.isBubbleType(e)&&(P=N),c&&(P=u?10:15),M+=P}return(!l||v)&&(M+=a.getCenteredTextPos(e,t,n,"y")),M+Bc.call(this,e,"y")},markOverlapped(t,e,n){const a=e.$el.arcs.selectAll(n),i=a.filter(c=>c.data.id!==t),s=a.filter(c=>c.data.id===t),o=Kl(s.node()),l=(c,u)=>Math.sqrt(Math.pow(c,2)+Math.pow(u,2));s.node()&&i.each(function(){const c=Kl(this),u=st(this),g=l(o.e,o.f)>l(c.e,c.f)?s:u,v=Math.ceil(Math.abs(o.e-c.e))<Math.ceil(g.node().getComputedTextLength()),m=Math.ceil(Math.abs(o.f-c.f))<parseInt(s.style("font-size"),10);u.classed(In.TextOverlapping,v&&m)})},undoMarkOverlapped(t,e){t.$el.arcs.selectAll(e).each(function(){Fc([this,this.previousSibling]).classed(In.TextOverlapping,!1)})},meetsLabelThreshold(t=0,e){const n=this,{config:a}=n,i=a[`${e}_label_threshold`]||0;return t>=i}};function Uc(t="left",e){const n=he(e);let a;return t.indexOf("center")>-1?a=n?e/2:"middle":t.indexOf("right")>-1?a=n?e:"end":a=n?0:"start",a}var jp={initTitle(){const t=this,{config:e,$el:n}=t;if(e.title_text){n.title=n.svg.append("g");const a=n.title.append("text").style("text-anchor",Uc(e.title_position)).attr("class",In.title);wa(a,e.title_text,[.3,1.5])}},redrawTitle(){const t=this,{config:e,state:{current:n},$el:{title:a}}=t;if(a){const i=Uc(e.title_position,n.width),s=(e.title_padding.top||0)+t.getTextRect(t.$el.title,In.title).height;a.attr("transform",`translate(${i}, ${s})`)}},getTitlePadding(){const t=this,{$el:{title:e},config:n}=t;return(n.title_padding.top||0)+(e?t.getTextRect(e,In.title).height:0)+(n.title_padding.bottom||0)}},Gp={initTooltip(){const t=this,{config:e,$el:n}=t;n.tooltip=st(e.tooltip_contents.bindto),n.tooltip.empty()&&(n.tooltip=n.chart.append("div").attr("class",ti.tooltipContainer).style("position","absolute").style("pointer-events","none").style("display","none")),t.bindTooltipResizePos()},initShowTooltip(){var t;const e=this,{config:n,$el:a,state:{hasAxis:i,hasRadar:s}}=e;if(n.tooltip_init_show){const o=!(i||s);(t=e.axis)!=null&&t.isTimeSeries()&&Ge(n.tooltip_init_x)&&(n.tooltip_init_x=zn.call(e,n.tooltip_init_x)),e.api.tooltip.show({data:{[o?"index":"x"]:n.tooltip_init_x}});const l=n.tooltip_init_position;if(!n.tooltip_contents.bindto&&!_n(l)){const{top:c=0,left:u=50}=l;a.tooltip.style("top",Ge(c)?c:`${c}px`).style("left",Ge(u)?u:`${u}px`).style("display",null)}}},getTooltipHTML(...t){const e=this,{api:n,config:a}=e;return ve(a.tooltip_contents)?a.tooltip_contents.bind(n)(...t):e.getTooltipContent(...t)},getTooltipContent(t,e,n,a){var i;const s=this,{api:o,config:l,state:c,$el:u}=s,[g,v,m]=["title","name","value"].map(ht=>{const Z=l[`tooltip_format_${ht}`];return ve(Z)?Z.bind(o):Z}),S=(...ht)=>Is((g||e)(...ht)),I=(...ht)=>Is((v||(Z=>Z))(...ht)),N=(...ht)=>{const Z=m||(c.hasTreemap||s.isStackNormalized()?(St,lt)=>`${(lt*100).toFixed(2)}%`:n);return Is(Z(...ht))},M=l.tooltip_order,P=ht=>s.axis&&s.isBubbleZType(ht)?s.getBubbleZData(ht.value,"z"):s.getBaseValue(ht),X=s.levelColor?ht=>s.levelColor(ht.value):ht=>a(ht),H=l.tooltip_contents,Y=H.template,_=s.mapToTargetIds();if(M===null&&l.data_groups.length){const ht=s.orderTargets(s.data.targets).map(Z=>Z.id).reverse();t.sort((Z,St)=>{let lt=Z?Z.value:null,At=St?St.value:null;return lt>0&&At>0&&(lt=Z.id?ht.indexOf(Z.id):null,At=St.id?ht.indexOf(St.id):null),lt-At})}else if(/^(asc|desc)$/.test(M)){const ht=M==="asc";t.sort((Z,St)=>{const lt=Z?P(Z):null,At=St?P(St):null;return ht?lt-At:At-lt})}else ve(M)&&t.sort(M.bind(o));const K=s.getTooltipContentTemplate(Y),at=t.length;let yt,$t,dt,ft,Ft;for(Ft=0;Ft<at;Ft++)if($t=t[Ft],!(!$t||!(P($t)||P($t)===0))){if(on(yt)){const ht=(c.hasAxis||c.hasRadar)&&S($t.x);yt=bi(K[0],{CLASS_TOOLTIP:ti.tooltip,TITLE:we(ht)?Y?ht:`<tr><th colspan="2">${ht}</th></tr>`:""})}if(!$t.ratio&&u.arcs&&(dt=["arc",s.$el.arcs.select(`path.${Ue.arc}-${$t.id}`).data()[0]],$t.ratio=s.getRatio(...dt)),dt=[$t.ratio,$t.id,$t.index],s.isAreaRangeType($t)){const[ht,Z]=["high","low"].map(lt=>N(s.getRangedData($t,lt),...dt));ft=`<b>Mid:</b> ${N(P($t),...dt)} <b>High:</b> ${ht} <b>Low:</b> ${Z}`}else if(s.isCandlestickType($t)){const[ht,Z,St,lt,At]=["open","high","low","close","volume"].map(jt=>s.getRangedData($t,jt,"candlestick")?N(s.getRangedData($t,jt,"candlestick"),...dt):void 0);ft=`<b>Open:</b> ${ht} <b>High:</b> ${Z} <b>Low:</b> ${St} <b>Close:</b> ${lt}${At?` <b>Volume:</b> ${At}`:""}`}else if(s.isBarRangeType($t)){const{value:ht,id:Z,index:St}=$t;ft=`${N(ht,void 0,Z,St)}`}else ft=N(P($t),...dt);if(ft!==void 0){if($t.name===null)continue;const ht=I((i=$t.name)!=null?i:$t.id,...dt),Z=X($t),St={CLASS_TOOLTIP_NAME:ti.tooltipName+s.getTargetSelectorSuffix($t.id),COLOR:Y||!s.patterns?Z:`<svg><rect style="fill:${Z}" width="10" height="10"></rect></svg>`,NAME:ht,VALUE:ft};if(Y&&Ne(H.text)){const lt=_.indexOf($t.id);Object.keys(H.text).forEach(At=>{St[At]=H.text[At][lt]})}yt+=bi(K[1],St)}}return`${yt}</table>`},getTooltipContentTemplate(t){return(t||`<table class="{=CLASS_TOOLTIP}"><tbody>
|
|
40
|
+
`)}function u(v){return v.map(g).join(t)}function g(v){return v==null?"":v instanceof Date?bv(v):e.test(v+="")?'"'+v.replace(/"/g,'""')+'"':v}return{parse:a,parseRows:i,format:o,formatBody:l,formatRows:c,formatRow:u,formatValue:g}}var Fr=ic(","),Ev=Fr.parse,Rv=Fr.parseRows,e1=Fr.format,n1=Fr.formatBody,r1=Fr.formatRows,a1=Fr.formatRow,i1=Fr.formatValue,Br=ic(" "),Ov=Br.parse,Iv=Br.parseRows,s1=Br.format,o1=Br.formatBody,l1=Br.formatRows,c1=Br.formatRow,u1=Br.formatValue;function Gs(t){const e=[];return t.forEach(function(n,a){const i=n[0];n.forEach(function(s,o){if(o>0){if(typeof e[o-1]=="undefined"&&(e[o-1]={}),typeof s=="undefined")throw new Error(`Source data is missing a component at (${a}, ${o})!`);e[o-1][i]=s}})}),e}function Vs(t){const e=t[0],n=[];return t.forEach(function(a,i){if(i>0){const s={};a.forEach(function(o,l){if(typeof o=="undefined")throw new Error(`Source data is missing a component at (${i}, ${l})!`);s[e[l]]=o}),n.push(s)}}),n}function sc(t,e){const n=[];let a,i;if(Array.isArray(t)){const s=function(o,l){if(o[l]!==void 0)return o[l];const u=l.replace(/\[(\w+)\]/g,".$1").replace(/^\./,"").split(".");let g=o;return u.some(function(v){return!(g=g&&v in g?g[v]:void 0)}),g};e.x?a=e.value.concat(e.x):a=e.value,n.push(a),t.forEach(function(o){const l=a.map(function(c){let u=s(o,c);return typeof u=="undefined"&&(u=null),u});n.push(l)}),i=Vs(n)}else Object.keys(t).forEach(function(s){var o;const l=t[s].concat();(o=l.unshift)==null||o.call(l,s),n.push(l)}),i=Gs(n);return i}function Cv(t,e="csv",n,a,i){const s=new XMLHttpRequest,o={csv:Pv,tsv:wv,json:sc};s.open("GET",t),n&&Object.keys(n).forEach(function(l){s.setRequestHeader(l,n[l])}),s.onreadystatechange=function(){if(s.readyState===4)if(s.status===200){const l=s.responseText;l&&i.call(this,o[e](e==="json"?JSON.parse(l):l,a))}else throw new Error(`${t}: Something went wrong loading!`)},s.send()}function oc(t,e){const n=t.rows(e);let a;return n.length===1?(a=[{}],n[0].forEach(i=>{a[0][i]=null})):a=t.parse(e),a}function Pv(t){return oc({rows:Rv,parse:Ev},t)}function wv(t){return oc({rows:Iv,parse:Ov},t)}function lc(t,e){const n=t||(e==null?void 0:e.data_keys);return n!=null&&n.x&&(e.data_x=n.x),n}var Mv={convertData(t,e){const{config:n}=this,a=n.boost_useWorker;let i=t;if(t.bindto&&(i={},["url","mimeType","headers","keys","json","keys","rows","columns"].forEach(s=>{const o=`data_${s}`;o in t&&(i[s]=t[o])})),i.url&&e)Cv(i.url,i.mimeType,i.headers,lc(i.keys,n),e);else if(i.json)Bs(a,sc,e,[Gs,Vs])(i.json,lc(i.keys,n));else if(i.rows)Bs(a,Vs,e)(i.rows);else if(i.columns)Bs(a,Gs,e)(i.columns);else if(t.bindto)throw Error("url or json or rows or columns is required.")},convertDataToTargets(t,e){const n=this,{axis:a,config:i,state:s}=n,o=i.data_type;let l=!1,c=!1,u=!1;a&&(l=a.isCategorized(),c=a.isTimeSeries(),u=a.isCustomX());const g=Object.keys(t[0]||{}),v=g.length?g.filter(n.isNotX,n):[],m=g.length?g.filter(n.isX,n):[];let S;v.forEach(N=>{const L=this.getXKey(N);u||c?m.indexOf(L)>=0?S=(e&&n.data.xs[N]||[]).concat(t.map(C=>C[L]).filter(Le).map((C,V)=>n.generateTargetX(C,N,V))):i.data_x?S=this.getOtherTargetXs():cn(i.data_xs)&&(S=n.getXValuesOfXKey(L,n.data.targets)):S=t.map((C,V)=>V),S&&(this.data.xs[N]=S)}),v.forEach(N=>{if(!this.data.xs[N])throw new Error(`x is not defined for id = "${N}".`)});const I=v.map((N,L)=>{const C=i.data_idConverter.bind(n.api)(N),V=n.getXKey(N),H=u&&l,Y=H&&t.map(at=>at.x).every(at=>i.axis_x_categories.indexOf(at)>-1),_=t.__append__,K=V===null&&_?n.api.data.values(N).length:0;return{id:C,id_org:N,values:t.map((at,mt)=>{const St=at[V];let dt=at[N],lt;return dt=dt!==null&&!isNaN(dt)&&!Be(dt)?+dt:ze(dt)||Be(dt)?dt:null,(H||s.hasRadar)&&L===0&&!ln(St)?(!Y&&L===0&&mt===0&&!_&&(i.axis_x_categories=[]),lt=i.axis_x_categories.indexOf(St),lt===-1&&(lt=i.axis_x_categories.length,i.axis_x_categories.push(St))):lt=n.generateTargetX(St,N,K+mt),(ln(dt)||n.data.xs[N].length<=mt)&&(lt=void 0),{x:lt,value:dt,id:C,index:-1}}).filter(at=>Je(at.x))}});if(I.forEach(N=>{var L;i.data_xSort&&(N.values=N.values.sort((C,V)=>{const H=C.x||C.x===0?C.x:1/0,Y=V.x||V.x===0?V.x:1/0;return H-Y})),N.values.forEach((C,V)=>C.index=V),(L=n.data.xs[N.id])==null||L.sort((C,V)=>C-V)}),s.hasNegativeValue=n.hasNegativeValueInTargets(I),s.hasPositiveValue=n.hasPositiveValueInTargets(I),o&&n.isValidChartType(o)){const N=n.mapToIds(I).filter(L=>!(L in i.data_types)||!n.isValidChartType(i.data_types[L]));n.setTargetType(N,o)}return I.forEach(N=>n.cache.add(N.id_org,N,!0)),I}},Lv={isX(t){const e=this,{config:n}=e,a=n.data_x&&t===n.data_x,i=cn(n.data_xs)&&Jg(n.data_xs,t);return a||i},isNotX(t){return!this.isX(t)},isStackNormalized(){const{config:t}=this;return!!(t.data_stack_normalize&&t.data_groups.length)},isGrouped(t){const e=this.config.data_groups;return t?e.some(n=>n.indexOf(t)>=0&&n.length>1):e.length>0},getXKey(t){const e=this,{config:n}=e;return n.data_x?n.data_x:cn(n.data_xs)?n.data_xs[t]:null},getXValuesOfXKey(t,e){const n=this,a=e&&cn(e)?n.mapToIds(e):[];let i;return a.forEach(s=>{n.getXKey(s)===t&&(i=n.data.xs[s])}),i},getIndexByX(t,e){const n=this;return e?e.indexOf(Xe(t)?t:+t):(n.filterByX(n.data.targets,t)[0]||{index:null}).index},getXValue(t,e){const n=this;return t in n.data.xs&&n.data.xs[t]&&Le(n.data.xs[t][e])?n.data.xs[t][e]:e},getOtherTargetXs(){const t=this,e=Object.keys(t.data.xs);return e.length?t.data.xs[e[0]]:null},getOtherTargetX(t){const e=this.getOtherTargetXs();return e&&t<e.length?e[t]:null},addXs(t){const e=this,{config:n}=e;Object.keys(t).forEach(a=>{n.data_xs[a]=t[a]})},isMultipleX(){return!this.config.axis_x_forceAsSingle&&(cn(this.config.data_xs)||this.hasType("bubble")||this.hasType("scatter"))},addName(t){const e=this,{config:n}=e;let a;return t&&(a=n.data_names[t.id],t.name=a!==void 0?a:t.id),t},getAllValuesOnIndex(t,e=!1){const n=this;let a=n.filterTargetsToShow(n.data.targets).map(i=>n.addName(n.getValueOnIndex(i.values,t)));return e&&(a=a.filter(i=>i&&"value"in i&&Le(i.value))),a},getValueOnIndex(t,e){const n=t.filter(a=>a.index===e);return n.length?n[0]:null},updateTargetX(t,e){const n=this;t.forEach(a=>{a.values.forEach((i,s)=>{i.x=n.generateTargetX(e[s],a.id,s)}),n.data.xs[a.id]=e})},updateTargetXs(t,e){const n=this;t.forEach(a=>{e[a.id]&&n.updateTargetX([a],e[a.id])})},generateTargetX(t,e,n){const a=this,{axis:i}=a;let s=i!=null&&i.isCategorized()?n:t||n;if(i!=null&&i.isTimeSeries()){const o=zn.bind(a);s=o(t||a.getXValue(e,n))}else i!=null&&i.isCustomX()&&!(i!=null&&i.isCategorized())&&(s=Le(t)?+t:a.getXValue(e,n));return s},updateXs(t){t.length&&(this.axis.xs=t.map(e=>e.x))},getPrevX(t){const e=this.axis.xs[t-1];return Je(e)?e:null},getNextX(t){const e=this.axis.xs[t+1];return Je(e)?e:null},getBaseValue(t){const e=this,{hasAxis:n}=e.state;let{value:a}=t;return a&&n&&(e.isAreaRangeType(t)?a=e.getRangedData(t,"mid"):e.isBubbleZType(t)&&(a=e.getBubbleZData(a,"y"))),a},getMinMaxValue(t){const e=this.getBaseValue.bind(this);let n,a;return(t||this.data.targets.map(i=>i.values)).forEach((i,s)=>{const o=i.map(e).filter(ge);n=Math.min(s?n:1/0,...o),a=Math.max(s?a:-1/0,...o)}),{min:n,max:a}},getMinMaxData(){const t=this,e=Dn.dataMinMax;let n=t.cache.get(e);if(!n){const a=t.data.targets.map(l=>l.values),i=t.getMinMaxValue(a);let s=[],o=[];a.forEach(l=>{const c=t.getFilteredDataByValue(l,i.min),u=t.getFilteredDataByValue(l,i.max);c.length&&(s=s.concat(c)),u.length&&(o=o.concat(u))}),t.cache.add(e,n={min:s,max:o})}return n},getTotalPerIndex(){const t=this,e=Dn.dataTotalPerIndex;let n=t.cache.get(e);return(t.config.data_groups.length||t.isStackNormalized())&&!n&&(n=[],t.data.targets.forEach(a=>{a.values.forEach((i,s)=>{n[s]||(n[s]=0),n[s]+=ge(i.value)?i.value:0})})),n},getTotalDataSum(t){const e=this,n=Dn.dataTotalSum;let a=e.cache.get(n);if(!ge(a)){const i=Ms(e.data.targets.map(s=>s.values)).map(s=>s.value);a=i.length?i.reduce((s,o)=>s+o):0,e.cache.add(n,a)}return t&&(a-=e.getHiddenTotalDataSum()),a},getHiddenTotalDataSum(){const t=this,{api:e,state:{hiddenTargetIds:n}}=t;let a=0;return n.length&&(a=e.data.values.bind(e)(n).reduce((i,s)=>i+s)),a},getFilteredDataByValue(t,e){return t.filter(n=>this.getBaseValue(n)===e)},getMaxDataCount(){return Math.max(...this.data.targets.map(t=>t.values.length),0)},getMaxDataCountTarget(){let t=this.filterTargetsToShow()||[];const e=t.length,n=this.config.axis_x_inverted;return e>1?(t=t.map(a=>a.values).reduce((a,i)=>a.concat(i)).map(a=>a.x),t=na(ws(t)).map((a,i,s)=>({x:a,index:n?s.length-i-1:i}))):e&&(t=t[0].values.concat()),t},mapToIds(t){return t.map(e=>e.id)},mapToTargetIds(t){const e=this;return t?ze(t)?t.concat():[t]:e.mapToIds(e.data.targets)},hasTarget(t,e){const n=this.mapToIds(t);for(let a=0,i;i=n[a];a++)if(i===e)return!0;return!1},isTargetToShow(t){return this.state.hiddenTargetIds.indexOf(t)<0},isLegendToShow(t){return this.state.hiddenLegendIds.indexOf(t)<0},filterTargetsToShow(t){const e=this;return(t||e.data.targets).filter(n=>e.isTargetToShow(n.id))},mapTargetsToUniqueXs(t){const e=this,{axis:n}=e;let a=[];return t!=null&&t.length&&(a=ws(Ms(t.map(i=>i.values.map(s=>+s.x)))),a=n!=null&&n.isTimeSeries()?a.map(i=>new Date(+i)):a.map(Number)),na(a)},addTargetIds(t,e){const{state:n}=this;(ze(e)?e:[e]).forEach(i=>{n[t].indexOf(i)<0&&n[t].push(i)})},removeTargetIds(t,e){const{state:n}=this;(ze(e)?e:[e]).forEach(i=>{const s=n[t].indexOf(i);s>=0&&n[t].splice(s,1)})},addHiddenTargetIds(t){this.addTargetIds("hiddenTargetIds",t)},removeHiddenTargetIds(t){this.removeTargetIds("hiddenTargetIds",t)},addHiddenLegendIds(t){this.addTargetIds("hiddenLegendIds",t)},removeHiddenLegendIds(t){this.removeTargetIds("hiddenLegendIds",t)},getValuesAsIdKeyed(t){const e=this,{hasAxis:n}=e.state,a={},i=e.isMultipleX(),s=i?e.mapTargetsToUniqueXs(t).map(o=>Xe(o)?o:+o):null;return t.forEach(o=>{const l=[];o.values.filter(({value:c})=>Le(c)||c===null).forEach(c=>{let{value:u}=c;u!==null&&e.isCandlestickType(c)&&(u=ze(u)?u.slice(0,4):[u.open,u.high,u.low,u.close]),ze(u)?l.push(...u):Be(u)&&"high"in u?l.push(...Object.values(u)):e.isBubbleZType(c)?l.push(n&&e.getBubbleZData(u,"y")):i?l[e.getIndexByX(c.x,s)]=u:l.push(u)}),a[o.id]=l}),a},checkValueInTargets(t,e){const n=Object.keys(t);let a;for(let i=0;i<n.length;i++){a=t[n[i]].values;for(let s=0;s<a.length;s++)if(e(a[s].value))return!0}return!1},hasMultiTargets(){return this.filterTargetsToShow().length>1},hasNegativeValueInTargets(t){return this.checkValueInTargets(t,e=>e<0)},hasPositiveValueInTargets(t){return this.checkValueInTargets(t,e=>e>0)},orderTargets(t){const e=this,n=[...t],a=e.getSortCompareFn();return a&&n.sort(a),n},getSortCompareFn(t=!1){const e=this,{config:n}=e,a=n.data_order,i=/asc/i.test(a),s=/desc/i.test(a);let o;if(i||s){const l=(u,g)=>u+Math.abs(g.value),c=u=>ge(u)?u:"values"in u?u.values.reduce(l,0):u.value;o=(u,g)=>{const v=c(u),m=c(g);return t?i?v-m:m-v:i?m-v:v-m}}else he(a)&&(o=a.bind(e.api));return o||null},filterByX(t,e){return Ms(t.map(n=>n.values)).filter(n=>n.x-e===0)},filterRemoveNull(t){return t.filter(e=>Le(this.getBaseValue(e)))},filterByXDomain(t,e){return t.map(n=>({id:n.id,id_org:n.id_org,values:n.values.filter(a=>e[0]<=a.x&&a.x<=e[1])}))},hasDataLabel(){const t=this.config.data_labels;return Os(t)&&t||nr(t)&&cn(t)},hasNullDataValue(t){return t.some(({value:e})=>e===null)},getDataIndexFromEvent(t){const e=this,{$el:n,config:a,state:{hasRadar:i,inputType:s,eventReceiver:{coords:o,rect:l}}}=e;let c;if(i){let u=t.target;/tspan/i.test(u.tagName)&&(u=u.parentNode);const g=st(u).datum();c=g&&Object.keys(g).length===1?g.index:void 0}else{const u=a.axis_rotated,g=Zl(n.chart.node()),v=s==="touch"&&t.changedTouches?t.changedTouches[0]:t;let m=u?v.clientY+g.y-l.top:v.clientX+g.x-l.left;if(Ls(n.svg)){const S=[m,0];u&&S.reverse(),m=Ps(n.svg.node(),...S)[u?"y":"x"]}c=Cs(o,m,0,o.length-1,u)}return c},getDataLabelLength(t,e,n){const a=this,i=[0,0],s=1.3;return a.$el.chart.select("svg").selectAll(".dummy").data([t,e]).enter().append("text").text(o=>a.dataLabelFormat(o.id)(o)).each(function(o,l){i[l]=this.getBoundingClientRect()[n]*s}).remove(),i},isNoneArc(t){return this.hasTarget(this.data.targets,t.id)},isArc(t){return"data"in t&&this.hasTarget(this.data.targets,t.data.id)},findSameXOfValues(t,e){const n=t[e].x,a=[];let i;for(i=e-1;i>=0&&n===t[i].x;i--)a.push(t[i]);for(i=e;i<t.length&&n===t[i].x;i++)a.push(t[i]);return a},findClosestFromTargets(t,e){const n=this,a=t.map(i=>n.findClosest(i.values,e));return n.findClosest(a,e)},findClosest(t,e){const n=this,{$el:{main:a}}=n,i=t.filter(l=>l&&Le(l.value));let s,o;return i.filter(l=>n.isBarType(l.id)||n.isCandlestickType(l.id)).forEach(l=>{const c=n.isBarType(l.id)?`.${Kn.chartBar}.${Se.target}${n.getTargetSelectorSuffix(l.id)} .${Kn.bar}-${l.index}`:`.${cr.chartCandlestick}.${Se.target}${n.getTargetSelectorSuffix(l.id)} .${cr.candlestick}-${l.index} path`;!o&&n.isWithinBar(a.select(c).node())&&(o=l)}),i.filter(l=>!n.isBarType(l.id)&&!n.isCandlestickType(l.id)).forEach(l=>{const c=n.dist(l,e);s=n.getPointSensitivity(l),c<s&&(s=c,o=l)}),o},dist(t,e){const n=this,{config:{axis_rotated:a},scale:i}=n,s=+a,o=+!a,l=n.circleY(t,t.index),c=(i.zoom||i.x)(t.x);return Math.sqrt(Math.pow(c-e[s],2)+Math.pow(l-e[o],2))},convertValuesToStep(t){const e=this,{axis:n,config:a}=e,i=a.line_step_type,s=n?n.isCategorized():!1,o=ze(t)?t.concat():[t];if(!(s||/step\-(after|before)/.test(i)))return t;if(o.length){const l=o[0],c=o[o.length-1],{id:u}=l;let{x:g}=l;o.unshift({x:--g,value:l.value,id:u}),s&&i==="step-after"&&o.unshift({x:--g,value:l.value,id:u}),g=c.x,o.push({x:++g,value:c.value,id:u}),s&&i==="step-before"&&o.push({x:++g,value:c.value,id:u})}return o},convertValuesToRange(t){const e=ze(t)?t.concat():[t],n=[];return e.forEach(a=>{const{x:i,id:s}=a;n.push({x:i,id:s,value:a.value[0]}),n.push({x:i,id:s,value:a.value[2]})}),n},updateDataAttributes(t,e){const n=this,{config:a}=n,i=a[`data_${t}`];return ln(e)||(Object.keys(e).forEach(s=>{i[s]=e[s]}),n.redraw({withLegend:!0})),i},getRangedData(t,e="",n="areaRange"){const a=t==null?void 0:t.value;if(ze(a)){if(n==="bar")return a.reduce((i,s)=>s-i);{const i={areaRange:["high","mid","low"],candlestick:["open","high","low","close","volume"]}[n].indexOf(e);return i>=0&&a?a[i]:void 0}}else if(a&&e)return a[e];return a},setRatioForGroupedData(t){const e=this,{config:n}=e;if(n.data_groups.length&&t.some(a=>e.isGrouped(a.id))){const a=i=>e.getRatio("index",i,!0);t.forEach(i=>{"values"in i?i.values.forEach(a):a(i)})}},getRatio(t,e,n=!1){const a=this,{config:i,state:s}=a,o=a.api;let l=0;if(e&&o.data.shown().length)if(l=e.ratio||e.value,t==="arc")if(a.pie.padAngle()())l=e.value/a.getTotalDataSum(!0);else{const c=i.gauge_fullCircle?a.getArcLength():a.getStartingAngle()*-2,u=a.hasType("gauge")?c:Math.PI*2;l=(e.endAngle-e.startAngle)/u}else if(t==="index"){const c=o.data.values.bind(o);let u=this.getTotalPerIndex();if(s.hiddenTargetIds.length){let v=c(s.hiddenTargetIds,!1);v.length&&(v=v.reduce((m,S)=>m.map((I,N)=>(ge(I)?I:0)+S[N])),u=u.map((m,S)=>m-v[S]))}const g=u[e.index];e.ratio=ge(e.value)&&u&&g?e.value/g:0,l=e.ratio}else if(t==="radar")l=parseFloat(String(Math.max(e.value,0)))/s.current.dataMax*i.radar_size_ratio;else if(t==="bar"){const u=a.getYScaleById.bind(a)(e.id).domain().reduce((g,v)=>v-g);l=u===0?0:Math.abs(a.getRangedData(e,null,t)/u)}else t==="treemap"&&(l/=a.getTotalDataSum(!0));return n&&l?l*100:l},updateDataIndexByX(t){const e=this,n=t.reduce((a,i,s)=>(a[Number(i.x)]=s,a),{});e.data.targets.forEach(a=>{a.values.forEach((i,s)=>{let o=n[Number(i.x)];o===void 0&&(o=s),i.index=o})})},isBubbleZType(t){return this.isBubbleType(t)&&(Be(t.value)&&("z"in t.value||"y"in t.value)||ze(t.value)&&t.value.length>=2)},isBarRangeType(t){const e=this,{value:n}=t;return e.isBarType(t)&&ze(n)&&n.length>=2&&n.every(a=>ge(a))},getDataById(t){var e;const n=this.cache.get(t)||this.api.data(t);return(e=n==null?void 0:n[0])!=null?e:n}};function cc(t,e=!1){const n=this,{api:a}=n;e&&n.api.flush(!0),t==null||t.call(a)}var Dv={load(t,e){const n=this,{axis:a,data:i,org:s,scale:o}=n,{append:l}=e,c={domain:null,currentDomain:null,x:null};let u=t;u&&(e.filter&&(u=u.filter(e.filter)),(e.type||e.types)&&u.forEach(g=>{var v;const m=((v=e.types)==null?void 0:v[g.id])||e.type;n.setTargetType(g.id,m)}),i.targets.forEach(g=>{for(let v=0;v<u.length;v++)if(g.id===u[v].id){g.values=l?g.values.concat(u[v].values):u[v].values,u.splice(v,1);break}}),i.targets=i.targets.concat(u)),n.updateTargets(i.targets),o.zoom&&(c.x=a.isCategorized()?o.x.orgScale():(s.xScale||o.x).copy(),c.domain=n.getXDomain(i.targets),c.x.domain(c.domain),c.currentDomain=n.zoom.getDomain(),n.withinRange(c.currentDomain,void 0,c.domain)||(o.x.domain(c.domain),o.zoom=null,n.$el.eventRect.property("__zoom",null))),n.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),o.zoom?(s.xDomain=c.domain,s.xScale=c.x,a.isCategorized()&&(c.currentDomain=n.getZoomDomainValue(c.currentDomain),s.xDomain=n.getZoomDomainValue(s.xDomain),s.xScale=c.x.domain(s.xDomain)),n.updateCurrentZoomTransform(c.x,c.currentDomain)):s.xScale&&s.xScale.domain(s.xDomain),n.updateTypesElements(),cc.call(n,e.done,e.resizeAfter)},loadFromArgs(t){const e=this;e.config&&(e.cache.reset(),e.convertData(t,n=>{const a=t.data||n;t.append&&(a.__append__=!0),a&&e.load(e.convertDataToTargets(a),t)}))},unload(t,e){var n;const a=this,{state:i,$el:s,$T:o}=a,l=!!((n=a.hasLegendDefsPoint)!=null&&n.call(a));let c=e,u=t;if(a.cache.reset(),c||(c=()=>{}),u=u.filter(v=>a.hasTarget(a.data.targets,v)),!u||u.length===0){c();return}const g=s.svg.selectAll(u.map(v=>a.selectorTarget(v)));o(g).style("opacity","0").remove().call($i,c),u.forEach(v=>{var m;const S=a.getTargetSelectorSuffix(v);i.withoutFadeIn[v]=!1,s.legend&&s.legend.selectAll(`.${We.legendItem}${S}`).remove(),a.data.targets=a.data.targets.filter(I=>I.id!==v),l&&((m=s.defs)==null||m.select(`#${a.getDefsPointId(S)}`).remove())}),i.hasFunnel&&a.updateFunnel(a.data.targets),i.hasTreemap&&a.updateTargetsForTreemap(a.data.targets),a.updateTypesElements()}},Ei=t=>()=>t;function Xs(t,{sourceEvent:e,subject:n,target:a,identifier:i,active:s,x:o,y:l,dx:c,dy:u,dispatch:g}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:a,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:s,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:l,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:g}})}Xs.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function Nv(t){return!t.ctrlKey&&!t.button}function Fv(){return this.parentNode}function Bv(t,e){return e==null?{x:t.x,y:t.y}:e}function Uv(){return navigator.maxTouchPoints||"ontouchstart"in this}function uc(){var t=Nv,e=Fv,n=Bv,a=Uv,i={},s=ni("start","drag","end"),o=0,l,c,u,g,v=0;function m(Y){Y.on("mousedown.drag",S).filter(a).on("touchstart.drag",L).on("touchmove.drag",C,kd).on("touchend.drag touchcancel.drag",V).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function S(Y,_){if(!(g||!t.call(this,Y,_))){var K=H(this,e.call(this,Y,_),Y,_,"mouse");K&&(st(Y.view).on("mousemove.drag",I,Sa).on("mouseup.drag",N,Sa),ls(Y.view),os(Y),u=!1,l=Y.clientX,c=Y.clientY,K("start",Y))}}function I(Y){if(Zr(Y),!u){var _=Y.clientX-l,K=Y.clientY-c;u=_*_+K*K>v}i.mouse("drag",Y)}function N(Y){st(Y.view).on("mousemove.drag mouseup.drag",null),cs(Y.view,u),Zr(Y),i.mouse("end",Y)}function L(Y,_){if(t.call(this,Y,_)){var K=Y.changedTouches,at=e.call(this,Y,_),mt=K.length,St,dt;for(St=0;St<mt;++St)(dt=H(this,at,Y,_,K[St].identifier,K[St]))&&(os(Y),dt("start",Y,K[St]))}}function C(Y){var _=Y.changedTouches,K=_.length,at,mt;for(at=0;at<K;++at)(mt=i[_[at].identifier])&&(Zr(Y),mt("drag",Y,_[at]))}function V(Y){var _=Y.changedTouches,K=_.length,at,mt;for(g&&clearTimeout(g),g=setTimeout(function(){g=null},500),at=0;at<K;++at)(mt=i[_[at].identifier])&&(os(Y),mt("end",Y,_[at]))}function H(Y,_,K,at,mt,St){var dt=s.copy(),lt=Yn(St||K,_),Gt,gt,Z;if((Z=n.call(Y,new Xs("beforestart",{sourceEvent:K,target:m,identifier:mt,active:o,x:lt[0],y:lt[1],dx:0,dy:0,dispatch:dt}),at))!=null)return Gt=Z.x-lt[0]||0,gt=Z.y-lt[1]||0,function $t(ct,At,Vt){var Bt=lt,Kt;switch(ct){case"start":i[mt]=$t,Kt=o++;break;case"end":delete i[mt],--o;case"drag":lt=Yn(Vt||At,_),Kt=o;break}dt.call(ct,Y,new Xs(ct,{sourceEvent:At,subject:Z,target:m,identifier:mt,active:Kt,x:lt[0]+Gt,y:lt[1]+gt,dx:lt[0]-Bt[0],dy:lt[1]-Bt[1],dispatch:dt}),at)}}return m.filter=function(Y){return arguments.length?(t=typeof Y=="function"?Y:Ei(!!Y),m):t},m.container=function(Y){return arguments.length?(e=typeof Y=="function"?Y:Ei(Y),m):e},m.subject=function(Y){return arguments.length?(n=typeof Y=="function"?Y:Ei(Y),m):n},m.touchable=function(Y){return arguments.length?(a=typeof Y=="function"?Y:Ei(!!Y),m):a},m.on=function(){var Y=s.on.apply(s,arguments);return Y===s?m:Y},m.clickDistance=function(Y){return arguments.length?(v=(Y=+Y)*Y,m):Math.sqrt(v)},m}var zv={setExpand(t,e,n){const a=this,{config:i,$el:{circle:s}}=a;s&&i.point_focus_expand_enabled&&a.expandCircles(t,e,n),a.expandBarTypeShapes(!0,t,e,n)},expandBarTypeShapes(t=!0,e,n,a){const i=this;["bar","candlestick"].filter(s=>i.$el[s]).forEach(s=>{a&&i.$el[s].classed(Se.EXPANDED,!1),i.getShapeByIndex(s,e,n).classed(Se.EXPANDED,t)})},setOverOut(t,e){const n=this,{config:a,state:{hasFunnel:i,hasRadar:s,hasTreemap:o},$el:{main:l}}=n,c=Be(e);if(c||e!==-1){const u=a[t?"data_onover":"data_onout"].bind(n.api);if(a.color_onover&&n.setOverColor(t,e,c),c){const g=n.getTargetSelectorSuffix(e.id),v=i||o?`${Se.target+g} .${on.shape}`:je.arc+g;u(e,l.select(`.${v}`).node())}else if(a.tooltip_grouped)t&&(s&&n.isPointFocusOnly()?n.showCircleFocus(n.getAllValuesOnIndex(e,!0)):n.setExpand(e,null,!0)),!n.isMultipleX()&&l.selectAll(`.${on.shape}-${e}`).each(function(g){u(g,this)});else{const g=n.cache.get(Dn.setOverOut)||[],v=l.selectAll(`.${on.shape}-${e}`).filter(function(S){return n.isWithinShape(this,S)}),m=v.filter(function(){return g.every(S=>S!==this)});if(!t||v.empty()||g.length===m.size()&&m.nodes().every((S,I)=>S!==g[I]))for(;g.length;){const S=g.pop();a.data_onout.bind(n.api)(st(S).datum(),S)}m.each(function(){t&&(u(st(this).datum(),this),g.push(this))}),n.cache.add(Dn.setOverOut,g)}}},callOverOutForTouch(t){const e=this,n=e.cache.get(Dn.callOverOutForTouch);(Be(t)&&n?t.id!==n.id:t!==n)&&((n||ge(n))&&e.setOverOut(!1,n),(t||ge(t))&&e.setOverOut(!0,t),e.cache.add(Dn.callOverOutForTouch,t))},getDraggableSelection(){const t=this,{config:e,state:n}=t;return e.interaction_enabled&&e.data_selection_draggable&&t.drag?uc().on("drag",function(a){n.event=a,t.drag(Hn(a,this))}).on("start",function(a){n.event=a,t.dragstart(Hn(a,this))}).on("end",a=>{n.event=a,t.dragend()}):()=>{}},dispatchEvent(t,e,n){var a,i;const s=this,{config:o,state:{eventReceiver:l,hasAxis:c,hasFunnel:u,hasRadar:g,hasTreemap:v},$el:{eventRect:m,funnel:S,radar:I,svg:N,treemap:L}}=s;let C=(i=(u||v)&&l.rect||g&&I.axes.select(`.${dn.axis}-${e} text`)||m||((a=s.getArcElementByIdOrIndex)==null?void 0:a.call(s,e)))==null?void 0:i.node();if(C){const V=s.isMultipleX(),H=o.axis_rotated;let{width:Y,left:_,top:K}=C.getBoundingClientRect();if(c&&!g&&!V){const dt=l.coords[e];dt?(Y=dt.w,_+=dt.x,K+=dt.y):(Y=0,_=0,K=0)}let at=_+(n?n[0]:0)+(V||H?0:Y/2),mt=K+(n?n[1]:0)+(H?4:0);if(Ls(N)){const dt=Ps(s.$el.svg.node(),at,mt,!1);at=dt.x,mt=dt.y}const St={screenX:at,screenY:mt,clientX:at,clientY:mt,bubbles:g};(u||v)&&(C=(S!=null?S:L).node()),ev[/^(mouse|click)/.test(t)?"mouse":"touch"](C,t,St)}},setDragStatus(t){this.state.dragging=t},unbindZoomEvent(){const t=this,{$el:{eventRect:e,zoomResetBtn:n}}=t;e==null||e.on(".zoom wheel.zoom .drag",null),n==null||n.on("click",null).style("display","none")},unbindAllEvents(){var t;const e=this,{$el:{arcs:n,eventRect:a,legend:i,region:s,svg:o,treemap:l},brush:c}=e,u=["wheel","click","mouseover","mousemove","mouseout","touchstart","touchmove","touchend","touchstart.eventRect","touchmove.eventRect","touchend.eventRect",".brush",".drag",".zoom","wheel.zoom","dblclick.zoom"].join(" ");[o,a,s==null?void 0:s.list,c==null?void 0:c.getSelection(),n==null?void 0:n.selectAll("path"),i==null?void 0:i.selectAll("g"),l].forEach(g=>g==null?void 0:g.on(u,null)),(t=e.unbindZoomEvent)==null||t.call(e)}},jv={categoryName(t){var e;const{axis_x_categories:n}=this.config;return(e=n==null?void 0:n[t])!=null?e:t}},Gv={generateClass(t,e){return` ${t} ${t+this.getTargetSelectorSuffix(e)}`},getClass(t,e){const n=/s$/.test(t),a=/^(area|arc|line|funnel|treemap)s?$/.test(t),i=n?"id":"index";return s=>{const o=s.data||s;return((e?this.generateClass(Ue[n?"shapes":"shape"],o[i]):"")+this.generateClass(Ue[t],o[a?"id":i])).trim()}},getChartClass(t){return e=>Ue[`chart${t}`]+this.classTarget((e.data?e.data:e).id)},generateExtraLineClass(){const e=this.config.line_classes||[],n=[];return function(a){var i;const s=a.id||((i=a.data)==null?void 0:i.id)||a;return n.indexOf(s)<0&&n.push(s),e[n.indexOf(s)%e.length]}},classRegion(t,e){return`${this.generateClass(Ue.region,e)} ${"class"in t?t.class:""}`},classTarget(t){const e=this.config.data_classes[t];let n="";return e&&(n=` ${Ue.target}-${e}`),this.generateClass(Ue.target,t)+n},classFocus(t){return this.classFocused(t)+this.classDefocused(t)},classFocused(t){return` ${this.state.focusedTargetIds.indexOf(t.id)>=0?Ue.focused:""}`},classDefocused(t){return` ${this.state.defocusedTargetIds.indexOf(t.id)>=0?Ue.defocused:""}`},getTargetSelectorSuffix(t){return(t||t===0?`-${t}`:"").replace(/[\x00-\x20\x7F-\xA0\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\]/g,"-")},selectorTarget(t,e="",n=""){const a=this.getTargetSelectorSuffix(t);return`${e}.${Ue.target+a} ${n}, ${e}.${Ue.circles+a} ${n}`},selectorTargets(t,e){const n=t||[];return n.length?n.map(a=>this.selectorTarget(a,e)):null},selectorLegend(t){return`.${Ue.legendItem+this.getTargetSelectorSuffix(t)}`},selectorLegends(t){return t!=null&&t.length?t.map(e=>this.selectorLegend(e)):null}};class fc extends Map{constructor(e,n=gc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[a,i]of e)this.set(a,i)}get(e){return super.get(Ys(this,e))}has(e){return super.has(Ys(this,e))}set(e,n){return super.set(dc(this,e),n)}delete(e){return super.delete(hc(this,e))}}class f1 extends Set{constructor(e,n=gc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const a of e)this.add(a)}has(e){return super.has(Ys(this,e))}add(e){return super.add(dc(this,e))}delete(e){return super.delete(hc(this,e))}}function Ys({_intern:t,_key:e},n){const a=e(n);return t.has(a)?t.get(a):n}function dc({_intern:t,_key:e},n){const a=e(n);return t.has(a)?t.get(a):(t.set(a,n),n)}function hc({_intern:t,_key:e},n){const a=e(n);return t.has(a)&&(n=t.get(a),t.delete(a)),n}function gc(t){return t!==null&&typeof t=="object"?t.valueOf():t}function ra(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function d1(t,e){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}const vc=Symbol("implicit");function pc(){var t=new fc,e=[],n=[],a=vc;function i(s){let o=t.get(s);if(o===void 0){if(a!==vc)return a;t.set(s,o=e.push(s)-1)}return n[o%n.length]}return i.domain=function(s){if(!arguments.length)return e.slice();e=[],t=new fc;for(const o of s)t.has(o)||t.set(o,e.push(o)-1);return i},i.range=function(s){return arguments.length?(n=Array.from(s),i):n.slice()},i.unknown=function(s){return arguments.length?(a=s,i):a},i.copy=function(){return pc(e,n).unknown(a)},ra.apply(i,arguments),i}const Vv=(t,e,n)=>{const a=st(t.cloneNode(!0));return a.attr("id",n).insert("rect",":first-child").attr("width",a.attr("width")).attr("height",a.attr("height")).style("fill",e),{id:n,node:a.node()}};function Xv(t){const e=Dn.colorPattern,{body:n}=vn;let a=n[e];if(!a){const i=";",s=t.classed(is.colorPattern,!0).style("background-image");t.classed(is.colorPattern,!1),s.indexOf(i)>-1&&(a=s.replace(/url[^#]*|["'()]|(\s|%20)/g,"").split(i).map(o=>o.trim().replace(/[\"'\s]/g,"")).filter(Boolean),n[e]=a)}return a}const Yv=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];var Hv={generateColor(){const t=this,{$el:e,config:n}=t,a=n.data_colors,i=n.data_color,s=[];let o=cn(n.color_pattern)?n.color_pattern:pc(Xv(e.chart)||Yv).range();const l=o;if(he(n.color_tiles)){const c=n.color_tiles.bind(t.api)(),u=o.map((g,v)=>{const m=g.replace(/[#\(\)\s,]/g,""),S=`${t.state.datetimeId}-pattern-${m}-${v}`;return Vv(c[v%c.length],g,S)});o=u.map(g=>`url(#${g.id})`),t.patterns=u}return function(c){var u;const g=c.id||((u=c.data)==null?void 0:u.id)||c,v=t.isTypeOf(g,["line","spline","step"])||!n.data_types[g];let m;return he(a[g])?m=a[g].bind(t.api)(c):a[g]?m=a[g]:(s.indexOf(g)<0&&s.push(g),m=v?l[s.indexOf(g)%l.length]:o[s.indexOf(g)%o.length],a[g]=m),he(i)?i.bind(t.api)(m,c):m}},generateLevelColor(){const t=this,{config:e}=t,n=e.color_pattern,a=e.color_threshold,i=a.unit==="value",s=a.max||100,o=a.values&&a.values.length?a.values:[];return cn(a)?function(l){const c=i?l:l*100/s;let u=n[n.length-1];for(let g=0,v=o.length;g<v;g++)if(c<=o[g]){u=n[g];break}return u}:null},generateTextBGColorFilter(t,e={x:0,y:0,width:1,height:1}){const n=this,{$el:a,state:i}=n;if(t){let s=[];Xe(t)?s.push(""):Be(t)&&(s=Object.keys(t)),s.forEach(o=>{const l=`${i.datetimeId}-labels-bg${n.getTargetSelectorSuffix(o)}${Xe(t)?n.getTargetSelectorSuffix(t):""}`;a.defs.append("filter").attr("x",e.x).attr("y",e.y).attr("width",e.width).attr("height",e.height).attr("id",l).html(`<feFlood flood-color="${o===""?t:t[o]}" />
|
|
41
|
+
<feComposite in="SourceGraphic" />`)})}},getGradienColortUrl(t){return`url(#${this.state.datetimeId}-gradient${this.getTargetSelectorSuffix(t)})`},updateLinearGradient(){const t=this,{config:e,data:{targets:n},state:{datetimeId:a},$el:{defs:i}}=t;n.forEach(s=>{const o=`${a}-gradient${t.getTargetSelectorSuffix(s.id)}`,l=t.hasPointType()&&e.point_radialGradient,c=t.isAreaType(s)&&"area"||t.isBarType(s)&&"bar";if((l||c)&&i.select(`#${o}`).empty()){const u=t.color(s),g={defs:null,stops:[]};if(l){const{cx:v=.3,cy:m=.3,r:S=.7,stops:I=[[.1,u,0],[.9,u,1]]}=l;g.stops=I,g.defs=i.append("radialGradient").attr("id",`${o}`).attr("cx",v).attr("cy",m).attr("r",S)}else{const v=e.axis_rotated,{x:m=v?[1,0]:[0,0],y:S=v?[0,0]:[0,1],stops:I=[[0,u,1],[1,u,0]]}=e[`${c}_linearGradient`];g.stops=I,g.defs=i.append("linearGradient").attr("id",`${o}`).attr("x1",m[0]).attr("x2",m[1]).attr("y1",S[0]).attr("y2",S[1])}g.stops.forEach(v=>{const[m,S,I]=v,N=he(S)?S.bind(t.api)(s.id):S;g.defs&&g.defs.append("stop").attr("offset",m).attr("stop-color",N||u).attr("stop-opacity",I)})}})},setOverColor(t,e){const n=this,{config:a,$el:{main:i}}=n,s=a.color_onover;let o=t?s:n.color;Be(o)?o=({id:l})=>l in s?s[l]:n.color(l):Xe(o)?o=()=>s:he(s)&&(o=o.bind(n.api)),i.selectAll(Be(e)?`.${je.arc}${n.getTargetSelectorSuffix(e.id)}`:`.${on.shape}-${e}`).style("fill",o)}},Wv={getYDomainMinMax(t,e){const n=this,{axis:a,config:i}=n,s=e==="min",o=i.data_groups,l=n.mapToIds(t),c=n.getValuesAsIdKeyed(t);if(o.length>0){const u=n[`has${s?"Negative":"Positive"}ValueInTargets`](t);o.forEach(g=>{const v=g.filter(m=>l.indexOf(m)>=0);if(v.length){const m=v[0],S=a.getId(m);u&&c[m]&&(c[m]=c[m].map(I=>(s?I<0:I>0)?I:0)),v.filter((I,N)=>N>0).forEach(I=>{if(c[I]){const N=a.getId(I);c[I].forEach((L,C)=>{const V=+L,H=s?V>0:V<0;N===S&&!(u&&H)&&(c[m][C]+=V)})}})}})}return qn(e,Object.keys(c).map(u=>qn(e,c[u])))},isHiddenTargetWithYDomain(t){const e=this;return e.state.hiddenTargetIds.some(n=>e.axis.getId(n)===t)},getYDomain(t,e,n){const a=this,{axis:i,config:s,scale:o}=a,l=`axis_${e}`;if(a.isStackNormalized())return[0,100];const c=(o==null?void 0:o[e])&&o[e].type==="log",u=t.filter(dt=>i.getId(dt.id)===e),g=n?a.filterByXDomain(u,n):u;if(g.length===0)return a.isHiddenTargetWithYDomain(e)?o[e].domain():e==="y2"?o.y.domain():a.getYDomain(t,"y2",n);const v=s[`${l}_min`],m=s[`${l}_max`],S=s[`${l}_center`],I=s[`${l}_inverted`],N=a.hasDataLabel()&&s.axis_rotated,L=a.hasDataLabel()&&!s.axis_rotated;let C=a.getYDomainMinMax(g,"min"),V=a.getYDomainMinMax(g,"max"),H=[se.BAR,se.BUBBLE,se.SCATTER,...Sr.Line].some(dt=>{const lt=dt.indexOf("area")>-1?"area":dt;return a.hasType(dt,g,!0)&&s[`${lt}_zerobased`]});C=Le(v)?v:Le(m)?C<=m?C:m-10:C,V=Le(m)?m:Le(v)?v<=V?V:v+10:V,isNaN(C)&&(C=0),isNaN(V)&&(V=C),C===V&&(C<0?V=0:C=0);const Y=C>=0&&V>=0,_=C<=0&&V<=0;(Le(v)&&Y||Le(m)&&_)&&(H=!1),H&&(Y&&(C=0),_&&(V=0));const K=Math.abs(V-C);let at={top:K*.1,bottom:K*.1};if(Je(S)){const dt=Math.max(Math.abs(C),Math.abs(V));V=S+dt,C=S-dt}if(N){const dt=Lr(o.y.range()),lt=a.getDataLabelLength(C,V,"width").map(Gt=>Gt/dt);["bottom","top"].forEach((Gt,gt)=>{at[Gt]+=K*(lt[gt]/(1-lt[0]-lt[1]))})}else if(L){const dt=a.getDataLabelLength(C,V,"height");["bottom","top"].forEach((lt,Gt)=>{at[lt]+=a.convertPixelToScale("y",dt[Gt],K)})}at=a.getResettedPadding(at);const mt=s[`${l}_padding`];cn(mt)&&["bottom","top"].forEach(dt=>{at[dt]=i.getPadding(mt,dt,at[dt],K)}),H&&(Y&&(at.bottom=C),_&&(at.top=-V));const St=c?[C,V].map(dt=>dt<0?0:dt):[C-at.bottom,V+at.top];return I?St.reverse():St},getXDomainMinMax(t,e){var n;const a=this,i=a.config[`axis_x_${e}`],s=qn(e,t.map(l=>qn(e,l.values.map(c=>c.x))));let o=Be(i)?i.value:i;return o=Je(o)&&((n=a.axis)!=null&&n.isTimeSeries())?zn.bind(this)(o):o,Be(i)&&i.fit&&(e==="min"&&o<s||e==="max"&&o>s)&&(o=void 0),Je(o)?o:s},getXDomainPadding(t,e){const n=this,{axis:a,config:i}=n,s=i.axis_x_padding,o=a.isTimeSeries()&&e,l=Lr(t);let c;if(a.isCategorized()||o)c=0;else if(n.hasType("bar")){const v=n.getMaxDataCount();c=v>1?l/(v-1)/2:.5}else c=n.getResettedPadding(l*.01);let{left:u=c,right:g=c}=ge(s)?{left:s,right:s}:s;if(s.unit==="px"){const v=Math.abs(l+l*.2);u=a.getPadding(s,"left",c,v),g=a.getPadding(s,"right",c,v)}else{const v=l+u+g;if(o&&v){const m=l/e/v;u=u/v/m,g=g/v/m}}return{left:u,right:g}},getXDomain(t){const e=this,{axis:n,config:a,scale:{x:i}}=e,s=a.axis_x_inverted,o=[e.getXDomainMinMax(t,"min"),e.getXDomainMinMax(t,"max")];let[l=0,c=0]=o;if(i.type!=="log"){const u=n.isCategorized(),g=n.isTimeSeries(),v=e.getXDomainPadding(o);let[m,S]=o;m-S===0&&!u&&(g?(m=new Date(m.getTime()*.5),S=new Date(S.getTime()*1.5)):(m=m===0?1:m*.5,S=S===0?-1:S*1.5)),(m||m===0)&&(l=g?new Date(m.getTime()-v.left):m-v.left),(S||S===0)&&(c=g?new Date(S.getTime()+v.right):S+v.right)}return s?[c,l]:[l,c]},updateXDomain(t,e,n,a,i){var s;const o=this,{config:l,org:c,scale:{x:u,subX:g}}=o,v=l.zoom_enabled;if(n&&(u.domain(i||na(o.getXDomain(t),!l.axis_x_inverted)),c.xDomain=u.domain(),g.domain(u.domain()),(s=o.brush)==null||s.scale(g)),e){const m=i||!o.brush||Kl(o)?c.xDomain:Wl(o).map(g.invert);u.domain(m)}return(n||e)&&v&&o.zoom.updateScaleExtent(),a&&u.domain(o.trimXDomain(u.orgDomain())),u.domain()},trimXDomain(t){const e=this,n=e.config.axis_x_inverted,a=e.getZoomDomain(),[i,s]=a;return(n?t[0]>=i:t[0]<=i)&&(t[1]=+t[1]+(i-t[0]),t[0]=i),(n?t[1]<=s:t[1]>=s)&&(t[0]=+t[0]-(t[1]-s),t[1]=s),t},getZoomDomain(t="zoom",e=!1){const n=this,{config:a,scale:i,org:s}=n;let[o,l]=e&&i[t]?i[t].domain():s.xDomain;return t==="zoom"&&(Je(a.zoom_x_min)&&(o=qn("min",[o,a.zoom_x_min])),Je(a.zoom_x_max)&&(l=qn("max",[l,a.zoom_x_max]))),[o,l]},getZoomDomainValue(t){const e=this,{config:n,axis:a}=e;if(a.isCategorized()&&Array.isArray(t)){const i=n.axis_x_inverted;return t.map((o,l)=>Number(o)+(l===0?+i:+!i))}return t},convertPixelToScale(t,e,n){const a=this,{config:i,state:s}=a,o=i.axis_rotated;let l;return t==="x"?l=o?"height":"width":l=o?"width":"height",n*(e/s[l])},withinRange(t,e=[0,0],n){const i=this.config.axis_x_inverted,[s,o]=n;if(Array.isArray(t)){const l=[...t];if(i&&l.reverse(),l[0]<l[1])return t.every((c,u)=>(u===0?i?+c<=s:+c>=s:i?+c>=o:+c<=o)&&!t.every((g,v)=>g===e[v]))}return!1}};function mc(t,e,n){const{config:a}=t,i=`axis_${e}_tick_format`;return(a[i]?a[i]:t.defaultValueFormat).call(t.api,n)}var Kv={yFormat(t){return mc(this,"y",t)},y2Format(t){return mc(this,"y2",t)},getDefaultValueFormat(){const t=this,{defaultArcValueFormat:e,yFormat:n,y2Format:a}=t,i=t.hasArcType(null,["gauge","polar","radar"]);return function(s,o,l){return(i?e:t.axis&&t.axis.getId(l)==="y2"?a:n).call(t,s,o)}},defaultValueFormat(t){return ze(t)?t.join("~"):Le(t)?+t:""},defaultArcValueFormat(t,e){return`${(e*100).toFixed(1)}%`},defaultPolarValueFormat(t){return`${t}`},dataLabelFormat(t){const e=this,n=e.config.data_labels,a=s=>{const o="~";let l=s;return ze(s)?l=s.join(o):Be(s)&&(l=Object.values(s).join(o)),l};let i=a;return he(n.format)?i=n.format:nr(n.format)&&(n.format[t]?i=n.format[t]===!0?a:n.format[t]:i=()=>""),i.bind(e.api)}};function Ri(t){const e=this,n=e.getDataById(t);return e.levelColor?e.levelColor(n.values[0].value):e.color(n)}function Hs(t,e=!0){var n;const{config:a}=this;let i=(n=a.data_names[t])!=null?n:t;return e&&he(a.legend_format)&&(i=a.legend_format(i,t!==i?t:void 0)),i}var Zv={initLegend(){const t=this,{config:e,$el:n}=t;t.legendItemTextBox={},t.state.legendHasRendered=!1,e.legend_show?(e.legend_contents_bindto||(n.legend=t.$el.svg.append("g").classed(We.legend,!0).attr("transform",t.getTranslate("legend"))),t.updateLegend()):t.state.hiddenLegendIds=t.mapToIds(t.data.targets)},updateLegend(t,e,n){var a;const i=this,{config:s,state:o,scale:l,$el:c}=i,u=e||{withTransform:!1,withTransitionForTransform:!1,withTransition:!1};u.withTransition=$r(u,"withTransition",!0),u.withTransitionForTransform=$r(u,"withTransitionForTransform",!0),s.legend_contents_bindto&&s.legend_contents_template?i.updateLegendTemplate():o.hasTreemap||i.updateLegendElement(t||i.mapToIds(i.data.targets),u,n),(a=c.legend)==null||a.selectAll(`.${We.legendItem}`).classed(We.legendItemHidden,function(g){const v=!i.isTargetToShow(g);return v&&(this.style.opacity=null),v}),i.updateScales(!1,!l.zoom),i.updateSvgSize(),i.transformAll(u.withTransitionForTransform,n),o.legendHasRendered=!0},updateLegendTemplate(){const t=this,{config:e,$el:n}=t,a=st(e.legend_contents_bindto),i=e.legend_contents_template;if(!a.empty()){const s=t.mapToIds(t.data.targets),o=[];let l="";s.forEach(u=>{const g=he(i)?i.bind(t.api)(u,t.color(u),t.api.data(u)[0].values):bi(i,{COLOR:t.color(u),TITLE:u});g&&(o.push(u),l+=g)});const c=a.html(l).selectAll(function(){return this.childNodes}).data(o);t.setLegendItem(c),n.legend=a}},updateSizeForLegend(t){const e=this,{config:n,state:{isLegendTop:a,isLegendLeft:i,isLegendRight:s,isLegendInset:o,current:l}}=e,{width:c,height:u}=t,g={top:a?e.getCurrentPaddingByDirection("top")+n.legend_inset_y+5.5:l.height-u-e.getCurrentPaddingByDirection("bottom")-n.legend_inset_y,left:i?e.getCurrentPaddingByDirection("left")+n.legend_inset_x+.5:l.width-c-e.getCurrentPaddingByDirection("right")-n.legend_inset_x+.5};e.state.margin3={top:s?0:o?g.top:l.height-u,right:NaN,bottom:0,left:s?l.width-c:o?g.left:0}},transformLegend(t){const e=this,{$el:{legend:n},$T:a}=e;a(n,t).attr("transform",e.getTranslate("legend"))},updateLegendStep(t){this.state.legendStep=t},updateLegendItemWidth(t){this.state.legendItemWidth=t},updateLegendItemHeight(t){this.state.legendItemHeight=t},updateLegendItemColor(t,e){const{legend:n}=this.$el;n&&n.select(`.${We.legendItem}-${t} line`).style("stroke",e)},getLegendWidth(){const t=this,{current:{width:e},isLegendRight:n,isLegendInset:a,legendItemWidth:i,legendStep:s}=t.state;return t.config.legend_show?n||a?i*(s+1):e:0},getLegendHeight(){var t;const e=this,{current:n,isLegendRight:a,legendItemHeight:i,legendStep:s}=e.state,o=((t=e.config.padding)==null?void 0:t.mode)==="fit";return e.config.legend_show?a?n.height:Math.max(o?10:20,i)*(s+1):0},opacityForUnfocusedLegend(t){return t.classed(We.legendItemHidden)?null:"0.3"},toggleFocusLegend(t,e){const n=this,{$el:{legend:a},$T:i}=n,s=n.mapToTargetIds(t);a&&i(a.selectAll(`.${We.legendItem}`).filter(o=>s.indexOf(o)>=0).classed(_e.legendItemFocused,e)).style("opacity",function(){return e?null:n.opacityForUnfocusedLegend.call(n,st(this))})},revertLegend(){const t=this,{$el:{legend:e},$T:n}=t;e&&n(e.selectAll(`.${We.legendItem}`).classed(_e.legendItemFocused,!1)).style("opacity",null)},showLegend(t){const e=this,{config:n,$el:a,$T:i}=e;n.legend_show||(n.legend_show=!0,a.legend?a.legend.style("visibility",null):e.initLegend(),!e.state.legendHasRendered&&e.updateLegend()),e.removeHiddenLegendIds(t),i(a.legend.selectAll(e.selectorLegends(t)).style("visibility",null)).style("opacity",null)},hideLegend(t){const e=this,{config:n,$el:{legend:a}}=e;n.legend_show&&_n(t)&&(n.legend_show=!1,a.style("visibility","hidden")),e.addHiddenLegendIds(t),a.selectAll(e.selectorLegends(t)).style("opacity","0").style("visibility","hidden")},getLegendItemTextBox(t,e){const n=this,{cache:a,state:i}=n;let s;const o=Dn.legendItemTextBox;return t&&(s=!i.redrawing&&a.get(o)||{},s[t]||(s[t]=n.getTextRect(e,We.legendItem),a.add(o,s)),s=s[t]),s},setLegendItem(t){const e=this,{$el:n,api:a,config:i,state:s}=e,o=s.inputType==="touch",l=e.hasType("gauge"),c=i.boost_useCssRule,u=i.legend_item_interaction;t.attr("class",function(g){const v=st(this);return(!v.empty()&&v.attr("class")||"")+e.generateClass(We.legendItem,g)}).style("visibility",g=>e.isLegendToShow(g)?null:"hidden"),i.interaction_enabled&&(c&&[[`.${We.legendItem}`,"cursor:pointer"],[`.${We.legendItem} text`,"pointer-events:none"],[`.${We.legendItemPoint} text`,"pointer-events:none"],[`.${We.legendItemTile}`,"pointer-events:none"],[`.${We.legendItemEvent}`,"fill-opacity:0"]].forEach(g=>{const[v,m]=g;e.setCssRule(!1,v,[m])(n.legend)}),t.on(u.dblclick?"dblclick":"click",u||he(i.legend_item_onclick)?function(g,v){if(!qe(i.legend_item_onclick,a,v,!s.hiddenTargetIds.includes(v))){const{altKey:m,target:S,type:I}=g;I==="dblclick"||m?s.hiddenTargetIds.length&&S.parentNode.getAttribute("class").indexOf(We.legendItemHidden)===-1?a.show():(a.hide(),a.show(v)):(a.toggle(v),st(this).classed(_e.legendItemFocused,!1))}o&&e.hideTooltip()}:null),!o&&t.on("mouseout",u||he(i.legend_item_onout)?function(g,v){qe(i.legend_item_onout,a,v,!s.hiddenTargetIds.includes(v))||(st(this).classed(_e.legendItemFocused,!1),l&&e.undoMarkOverlapped(e,`.${Un.gaugeValue}`),e.api.revert())}:null).on("mouseover",u||he(i.legend_item_onover)?function(g,v){qe(i.legend_item_onover,a,v,!s.hiddenTargetIds.includes(v))||(st(this).classed(_e.legendItemFocused,!0),l&&e.markOverlapped(v,e,`.${Un.gaugeValue}`),!s.transiting&&e.isTargetToShow(v)&&a.focus(v))}:null),!t.empty()&&t.on("click mouseout mouseover")&&t.style("cursor",e.getStylePropValue("pointer")))},updateLegendElement(t,e){const n=this,{config:a,state:i,$el:{legend:s},$T:o}=n,c=a.legend_item_tile_type!=="circle",u=a.legend_item_tile_r,g={width:c?a.legend_item_tile_width:u*2,height:c?a.legend_item_tile_height:u*2},v={padding:{top:4,right:10},max:{width:0,height:0},posMin:10,step:0,tileWidth:g.width+5,totalLength:0},m={offsets:{},widths:{},heights:{},margins:[0],steps:{}};let S,I,N;const L=t.filter(K=>!Je(a.data_names[K])||a.data_names[K]!==null),C=e.withTransition,V=n.getUpdateLegendPositions(L,v,m);i.isLegendInset&&(v.step=a.legend_inset_step?a.legend_inset_step:L.length,n.updateLegendStep(v.step)),i.isLegendRight?(S=K=>v.max.width*m.steps[K],I=K=>m.margins[m.steps[K]]+m.offsets[K]):i.isLegendInset?(S=K=>v.max.width*m.steps[K]+10,I=K=>m.margins[m.steps[K]]+m.offsets[K]):(S=K=>m.margins[m.steps[K]]+m.offsets[K],I=K=>v.max.height*m.steps[K]);const H={xText:(K,at)=>S(K,at)+4+g.width,xRect:(K,at)=>S(K,at),x1Tile:(K,at)=>S(K,at)-2,x2Tile:(K,at)=>S(K,at)-2+g.width,yText:(K,at)=>I(K,at)+9,yRect:(K,at)=>I(K,at)-5,yTile:(K,at)=>I(K,at)+4};n.generateLegendItem(L,g,V,H),N=s.select(`.${We.legendBackground} rect`),i.isLegendInset&&v.max.width>0&&N.size()===0&&(N=s.insert("g",`.${We.legendItem}`).attr("class",We.legendBackground).append("rect")),a.legend_tooltip&&s.selectAll("title").data(L).text(K=>Hs.bind(n)(K,!1));const Y=s.selectAll("text").data(L).text(K=>Hs.bind(n)(K)).each(function(K,at){V(this,K,at)});o(Y,C).attr("x",H.xText).attr("y",H.yText);const _=s.selectAll(`rect.${We.legendItemEvent}`).data(L);o(_,C).attr("width",K=>m.widths[K]).attr("height",K=>m.heights[K]).attr("x",H.xRect).attr("y",H.yRect),n.updateLegendItemPos(L,C,H),N&&o(N,C).attr("height",n.getLegendHeight()-12).attr("width",v.max.width*(v.step+1)+10),n.updateLegendItemWidth(v.max.width),n.updateLegendItemHeight(v.max.height),n.updateLegendStep(v.step)},getUpdateLegendPositions(t,e,n){const a=this,{config:i,state:s}=a,o=s.isLegendRight||s.isLegendInset;return function(l,c,u){const g=u===0,v=u===t.length-1,m=a.getLegendItemTextBox(c,l),S=m.width+e.tileWidth+(v&&!o?0:e.padding.right)+i.legend_padding,I=m.height+e.padding.top,N=o?I:S,L=o?a.getLegendHeight():a.getLegendWidth();let C;const V=function(Y,_){_||(C=(L-e.totalLength-N)/2,C<e.posMin&&(C=(L-N)/2,e.totalLength=0,e.step++)),n.steps[Y]=e.step,n.margins[e.step]=s.isLegendInset?10:C,n.offsets[Y]=e.totalLength,e.totalLength+=N};if(g&&(e.totalLength=0,e.step=0,e.max.width=0,e.max.height=0),i.legend_show&&!a.isLegendToShow(c)){n.widths[c]=0,n.heights[c]=0,n.steps[c]=0,n.offsets[c]=0;return}n.widths[c]=S,n.heights[c]=I,(!e.max.width||S>=e.max.width)&&(e.max.width=S),(!e.max.height||I>=e.max.height)&&(e.max.height=I);const H=o?e.max.height:e.max.width;i.legend_equally?(Object.keys(n.widths).forEach(Y=>n.widths[Y]=e.max.width),Object.keys(n.heights).forEach(Y=>n.heights[Y]=e.max.height),C=(L-H*t.length)/2,C<e.posMin?(e.totalLength=0,e.step=0,t.forEach(Y=>V(Y))):V(c,!0)):V(c)}},generateLegendItem(t,e,n,a){const i=this,{config:s,state:o,$el:{legend:l}}=i,c=s.legend_usePoint,u=s.legend_item_tile_r,g=s.legend_item_tile_type,v=g!=="circle",m=o.isLegendRight||o.isLegendInset,S=-200,I=l.selectAll(`.${We.legendItem}`).data(t).enter().append("g");if(i.setLegendItem(I),s.legend_tooltip&&I.append("title").text(N=>N),I.append("text").text(N=>Hs.bind(i)(N)).each(function(N,L){n(this,N,L)}).style("pointer-events",i.getStylePropValue("none")).attr("x",m?a.xText:S).attr("y",m?S:a.yText),I.append("rect").attr("class",We.legendItemEvent).style("fill-opacity",i.getStylePropValue("0")).attr("x",m?a.xRect:S).attr("y",m?S:a.yRect),c){const N=[];I.append(L=>{const C=cn(s.point_pattern)?s.point_pattern:[s.point_type];N.indexOf(L)===-1&&N.push(L);let V=C[N.indexOf(L)%C.length];return V==="rectangle"&&(V="rect"),vn.createElementNS(ae.svg,"hasValidPointType"in i&&i.hasValidPointType(V)?V:"use")}).attr("class",We.legendItemPoint).style("fill",Ri.bind(i)).style("pointer-events",i.getStylePropValue("none")).attr("href",(L,C,V)=>{const Y=V[C].nodeName.toLowerCase(),_=i.getTargetSelectorSuffix(L);return Y==="use"?`#${o.datetimeId}-point${_}`:void 0})}else I.append(v?"line":g).attr("class",We.legendItemTile).style("stroke",Ri.bind(i)).style("pointer-events",i.getStylePropValue("none")).call(N=>{g==="circle"?N.attr("r",u).style("fill",Ri.bind(i)).attr("cx",m?a.x2Tile:S).attr("cy",m?S:a.yTile):v&&N.attr("stroke-width",e.height).attr("x1",m?a.x1Tile:S).attr("y1",m?S:a.yTile).attr("x2",m?a.x2Tile:S).attr("y2",m?S:a.yTile)})},updateLegendItemPos(t,e,n){const a=this,{config:i,$el:{legend:s},$T:o}=a,l=i.legend_usePoint,c=i.legend_item_tile_type,u=c!=="circle";if(l){const g=s.selectAll(`.${We.legendItemPoint}`).data(t);o(g,e).each(function(){const v=this.nodeName.toLowerCase(),m=i.point_r;let S="x",I="y",N=2,L=2.5,C=null,V=null,H=null;if(v==="circle"){const Y=m*.2;S="cx",I="cy",C=m+Y,N=m*2,L=-Y}else if(v==="rect"){const Y=m*2.5;V=Y,H=Y,L=3}st(this).attr(S,Y=>n.x1Tile(Y)+N).attr(I,Y=>n.yTile(Y)-L).attr("r",C).attr("width",V).attr("height",H)})}else{const g=s.selectAll(`.${We.legendItemTile}`).data(t);o(g,e).style("stroke",Ri.bind(a)).call(v=>{c==="circle"?v.attr("cx",m=>{const S=n.x2Tile(m);return S-(S-n.x1Tile(m))/2}).attr("cy",n.yTile):u&&v.attr("x1",n.x1Tile).attr("y1",n.yTile).attr("x2",n.x2Tile).attr("y2",n.yTile)})}}},kv={redraw(t={}){var e,n,a,i;const s=this,{config:o,state:l,$el:c}=s,{main:u,treemap:g}=c;l.redrawing=!0;const v=s.filterTargetsToShow(s.data.targets),{flow:m,initializing:S}=t,I=s.getWithOption(t),N=I.Transition?o.transition_duration:0,L=I.TransitionForExit?N:0,C=I.TransitionForAxis?N:0,V=(e=s.axis)==null?void 0:e.generateTransitions(C);s.updateSizes(S),I.Legend&&o.legend_show?(t.withTransition=!!N,!g&&s.updateLegend(s.mapToIds(s.data.targets),t,V)):I.Dimension&&s.updateDimension(!0),o.data_empty_label_text&&u.select(`text.${In.text}.${Se.empty}`).attr("x",l.width/2).attr("y",l.height/2).text(o.data_empty_label_text).style("display",v.length?"none":null),l.hasAxis?(s.axis.redrawAxis(v,I,V,m,S),s.hasGrid()&&s.updateGrid(),o.regions.length&&s.updateRegion(),["bar","candlestick","line","area"].forEach(H=>{const Y=Ln(H);(/^(line|area)$/.test(H)&&s.hasTypeOf(Y)||s.hasType(H))&&s[`update${Y}`](I.TransitionForExit)}),c.text&&u.selectAll(`.${tn.selectedCircles}`).filter(s.isBarType.bind(s)).selectAll("circle").remove(),o.interaction_enabled&&!m&&I.EventRect&&(s.redrawEventRect(),(n=s.bindZoomEvent)==null||n.call(s))):(c.arcs&&s.redrawArc(N,L,I.Transform),c.radar&&s.redrawRadar(),c.polar&&s.redrawPolar(),c.funnel&&s.redrawFunnel(),g&&s.updateTreemap(L)),!l.resizing&&!g&&(s.hasPointType()||l.hasRadar)?s.updateCircle():(a=s.hasLegendDefsPoint)!=null&&a.call(s)&&s.data.targets.forEach(s.point("create",this)),s.hasDataLabel()&&!s.hasArcType(null,["radar"])&&s.updateText(),(i=s.redrawTitle)==null||i.call(s),S&&s.updateTypesElements(),s.generateRedrawList(v,m,N,I.Subchart),s.updateTooltipOnRedraw(),s.callPluginHook("$redraw",t,N)},generateRedrawList(t,e,n,a){const i=this,{config:s,state:o}=i,l=i.getDrawShape();o.hasAxis&&s.subchart_show&&i.redrawSubchart(a,n,l);const c=e&&i.generateFlow({targets:t,flow:e,duration:e.duration,shape:l,xv:i.xv.bind(i)}),u=(n||c)&&Ma(),g=i.getRedrawList(l,e,c,u),v=()=>{c&&c(),o.redrawing=!1,qe(s.onrendered,i.api)};if(v)if(u&&g.length){const m=ec();Ml().duration(n).each(()=>{g.reduce((S,I)=>S.concat(I),[]).forEach(S=>m.add(S))}).call(m,v)}else o.transiting||v();i.mapToIds(i.data.targets).forEach(m=>{o.withoutFadeIn[m]=!0})},getRedrawList(t,e,n,a){const i=this,{config:s,state:{hasAxis:o,hasRadar:l,hasTreemap:c},$el:{grid:u}}=i,{cx:g,cy:v,xForText:m,yForText:S}=t.pos,I=[];return o&&((s.grid_x_lines.length||s.grid_y_lines.length)&&I.push(i.redrawGrid(a)),s.regions.length&&I.push(i.redrawRegion(a)),Object.keys(t.type).forEach(N=>{const L=Ln(N),C=t.type[N];(/^(area|line)$/.test(N)&&i.hasTypeOf(L)||i.hasType(N))&&I.push(i[`redraw${L}`](C,a))}),!e&&u.main&&I.push(i.updateGridFocus())),(!i.hasArcType()||l)&&cn(s.data_labels)&&s.data_labels!==!1&&I.push(i.redrawText(m,S,e,a)),(i.hasPointType()||l)&&!i.isPointFocusOnly()&&i.redrawCircle&&I.push(i.redrawCircle(g,v,a,n)),c&&I.push(i.redrawTreemap(a)),I},updateAndRedraw(t={}){const e=this,{config:n,state:a}=e;let i;t.withTransition=$r(t,"withTransition",!0),t.withTransform=$r(t,"withTransform",!1),t.withLegend=$r(t,"withLegend",!1),t.withUpdateXDomain=!0,t.withUpdateOrgXDomain=!0,t.withTransitionForExit=!1,t.withTransitionForTransform=$r(t,"withTransitionForTransform",t.withTransition),t.withLegend&&n.legend_show||(a.hasAxis&&(i=e.axis.generateTransitions(t.withTransitionForAxis?n.transition_duration:0)),e.updateScales(),e.updateSvgSize(),e.transformAll(t.withTransitionForTransform,i)),e.redraw(t,i)}};const Jv=Math.sqrt(50),Qv=Math.sqrt(10),_v=Math.sqrt(2);function Oi(t,e,n){const a=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(a)),s=a/Math.pow(10,i),o=s>=Jv?10:s>=Qv?5:s>=_v?2:1;let l,c,u;return i<0?(u=Math.pow(10,-i)/o,l=Math.round(t*u),c=Math.round(e*u),l/u<t&&++l,c/u>e&&--c,u=-u):(u=Math.pow(10,i)*o,l=Math.round(t/u),c=Math.round(e/u),l*u<t&&++l,c*u>e&&--c),c<l&&.5<=n&&n<2?Oi(t,e,n*2):[l,c,u]}function Ws(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];const a=e<t,[i,s,o]=a?Oi(e,t,n):Oi(t,e,n);if(!(s>=i))return[];const l=s-i+1,c=new Array(l);if(a)if(o<0)for(let u=0;u<l;++u)c[u]=(s-u)/-o;else for(let u=0;u<l;++u)c[u]=(s-u)*o;else if(o<0)for(let u=0;u<l;++u)c[u]=(i+u)/-o;else for(let u=0;u<l;++u)c[u]=(i+u)*o;return c}function Ks(t,e,n){return e=+e,t=+t,n=+n,Oi(t,e,n)[2]}function Zs(t,e,n){e=+e,t=+t,n=+n;const a=e<t,i=a?Ks(e,t,n):Ks(t,e,n);return(a?-1:1)*(i<0?1/-i:i)}function Ii(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function qv(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function ks(t){let e,n,a;t.length!==2?(e=Ii,n=(l,c)=>Ii(t(l),c),a=(l,c)=>t(l)-c):(e=t===Ii||t===qv?t:tp,n=t,a=t);function i(l,c,u=0,g=l.length){if(u<g){if(e(c,c)!==0)return g;do{const v=u+g>>>1;n(l[v],c)<0?u=v+1:g=v}while(u<g)}return u}function s(l,c,u=0,g=l.length){if(u<g){if(e(c,c)!==0)return g;do{const v=u+g>>>1;n(l[v],c)<=0?u=v+1:g=v}while(u<g)}return u}function o(l,c,u=0,g=l.length){const v=i(l,c,u,g-1);return v>u&&a(l[v-1],c)>-a(l[v],c)?v-1:v}return{left:i,center:o,right:s}}function tp(){return 0}function ep(t){return t===null?NaN:+t}function*h1(t,e){if(e===void 0)for(let n of t)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let a of t)(a=e(a,++n,t))!=null&&(a=+a)>=a&&(yield a)}}const yc=ks(Ii),np=yc.right,g1=yc.left,v1=ks(ep).center;var rp=np;function ap(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function ip(t){return function(){return t}}function sp(t){return+t}var xc=[0,1];function aa(t){return t}function Js(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:ip(isNaN(e)?NaN:.5)}function op(t,e){var n;return t>e&&(n=t,t=e,e=n),function(a){return Math.max(t,Math.min(e,a))}}function lp(t,e,n){var a=t[0],i=t[1],s=e[0],o=e[1];return i<a?(a=Js(i,a),s=n(o,s)):(a=Js(a,i),s=n(s,o)),function(l){return s(a(l))}}function cp(t,e,n){var a=Math.min(t.length,e.length)-1,i=new Array(a),s=new Array(a),o=-1;for(t[a]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<a;)i[o]=Js(t[o],t[o+1]),s[o]=n(e[o],e[o+1]);return function(l){var c=rp(t,l,1,a)-1;return s[c](i[c](l))}}function Ci(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Qs(){var t=xc,e=xc,n=Jr,a,i,s,o=aa,l,c,u;function g(){var m=Math.min(t.length,e.length);return o!==aa&&(o=op(t[0],t[m-1])),l=m>2?cp:lp,c=u=null,v}function v(m){return m==null||isNaN(m=+m)?s:(c||(c=l(t.map(a),e,n)))(a(o(m)))}return v.invert=function(m){return o(i((u||(u=l(e,t.map(a),Jn)))(m)))},v.domain=function(m){return arguments.length?(t=Array.from(m,sp),g()):t.slice()},v.range=function(m){return arguments.length?(e=Array.from(m),g()):e.slice()},v.rangeRound=function(m){return e=Array.from(m),n=ap,g()},v.clamp=function(m){return arguments.length?(o=m?!0:aa,g()):o!==aa},v.interpolate=function(m){return arguments.length?(n=m,g()):n},v.unknown=function(m){return arguments.length?(s=m,v):s},function(m,S){return a=m,i=S,g()}}function Tc(){return Qs()(aa,aa)}var up=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Da(t){if(!(e=up.exec(t)))throw new Error("invalid format: "+t);var e;return new _s({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]})}Da.prototype=_s.prototype;function _s(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}_s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function fp(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Pi(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,a=t.slice(0,n);return[a.length>1?a[0]+a.slice(2):a,+t.slice(n+1)]}function ia(t){return t=Pi(Math.abs(t)),t?t[1]:NaN}function dp(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ia(e)/3)))*3-ia(Math.abs(t)))}function hp(t,e){return function(n,a){for(var i=n.length,s=[],o=0,l=t[0],c=0;i>0&&l>0&&(c+l+1>a&&(l=Math.max(1,a-c)),s.push(n.substring(i-=l,i+l)),!((c+=l+1)>a));)l=t[o=(o+1)%t.length];return s.reverse().join(e)}}function gp(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}function vp(t){t:for(var e=t.length,n=1,a=-1,i;n<e;++n)switch(t[n]){case".":a=i=n;break;case"0":a===0&&(a=n),i=n;break;default:if(!+t[n])break t;a>0&&(a=0);break}return a>0?t.slice(0,a)+t.slice(i+1):t}var $c;function pp(t,e){var n=Pi(t,e);if(!n)return t+"";var a=n[0],i=n[1],s=i-($c=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=a.length;return s===o?a:s>o?a+new Array(s-o+1).join("0"):s>0?a.slice(0,s)+"."+a.slice(s):"0."+new Array(1-s).join("0")+Pi(t,Math.max(0,e+s-1))[0]}function Sc(t,e){var n=Pi(t,e);if(!n)return t+"";var a=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+a:a.length>i+1?a.slice(0,i+1)+"."+a.slice(i+1):a+new Array(i-a.length+2).join("0")}var Ac={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:fp,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Sc(t*100,e),r:Sc,s:pp,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function bc(t){return t}var Ec=Array.prototype.map,Rc=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function mp(t){var e=t.grouping===void 0||t.thousands===void 0?bc:hp(Ec.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",a=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",s=t.numerals===void 0?bc:gp(Ec.call(t.numerals,String)),o=t.percent===void 0?"%":t.percent+"",l=t.minus===void 0?"\u2212":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function u(v){v=Da(v);var m=v.fill,S=v.align,I=v.sign,N=v.symbol,L=v.zero,C=v.width,V=v.comma,H=v.precision,Y=v.trim,_=v.type;_==="n"?(V=!0,_="g"):Ac[_]||(H===void 0&&(H=12),Y=!0,_="g"),(L||m==="0"&&S==="=")&&(L=!0,m="0",S="=");var K=N==="$"?n:N==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",at=N==="$"?a:/[%p]/.test(_)?o:"",mt=Ac[_],St=/[defgprs%]/.test(_);H=H===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,H)):Math.max(0,Math.min(20,H));function dt(lt){var Gt=K,gt=at,Z,$t,ct;if(_==="c")gt=mt(lt)+gt,lt="";else{lt=+lt;var At=lt<0||1/lt<0;if(lt=isNaN(lt)?c:mt(Math.abs(lt),H),Y&&(lt=vp(lt)),At&&+lt==0&&I!=="+"&&(At=!1),Gt=(At?I==="("?I:l:I==="-"||I==="("?"":I)+Gt,gt=(_==="s"?Rc[8+$c/3]:"")+gt+(At&&I==="("?")":""),St){for(Z=-1,$t=lt.length;++Z<$t;)if(ct=lt.charCodeAt(Z),48>ct||ct>57){gt=(ct===46?i+lt.slice(Z+1):lt.slice(Z))+gt,lt=lt.slice(0,Z);break}}}V&&!L&&(lt=e(lt,1/0));var Vt=Gt.length+lt.length+gt.length,Bt=Vt<C?new Array(C-Vt+1).join(m):"";switch(V&&L&&(lt=e(Bt+lt,Bt.length?C-gt.length:1/0),Bt=""),S){case"<":lt=Gt+lt+gt+Bt;break;case"=":lt=Gt+Bt+lt+gt;break;case"^":lt=Bt.slice(0,Vt=Bt.length>>1)+Gt+lt+gt+Bt.slice(Vt);break;default:lt=Bt+Gt+lt+gt;break}return s(lt)}return dt.toString=function(){return v+""},dt}function g(v,m){var S=u((v=Da(v),v.type="f",v)),I=Math.max(-8,Math.min(8,Math.floor(ia(m)/3)))*3,N=Math.pow(10,-I),L=Rc[8+I/3];return function(C){return S(N*C)+L}}return{format:u,formatPrefix:g}}var wi,qs,Oc;yp({thousands:",",grouping:[3],currency:["$",""]});function yp(t){return wi=mp(t),qs=wi.format,Oc=wi.formatPrefix,wi}function xp(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,ia(e)-ia(t))+1}function Tp(t){return Math.max(0,-ia(Math.abs(t)))}function $p(t,e,n,a){var i=Zs(t,e,n),s;switch(a=Da(a==null?",f":a),a.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));return a.precision==null&&!isNaN(s=dp(i,o))&&(a.precision=s),Oc(a,o)}case"":case"e":case"g":case"p":case"r":{a.precision==null&&!isNaN(s=xp(i,Math.max(Math.abs(t),Math.abs(e))))&&(a.precision=s-(a.type==="e"));break}case"f":case"%":{a.precision==null&&!isNaN(s=Tp(i))&&(a.precision=s-(a.type==="%")*2);break}}return qs(a)}function Ic(t){var e=t.domain;return t.ticks=function(n){var a=e();return Ws(a[0],a[a.length-1],n==null?10:n)},t.tickFormat=function(n,a){var i=e();return $p(i[0],i[i.length-1],n==null?10:n,a)},t.nice=function(n){n==null&&(n=10);var a=e(),i=0,s=a.length-1,o=a[i],l=a[s],c,u,g=10;for(l<o&&(u=o,o=l,l=u,u=i,i=s,s=u);g-- >0;){if(u=Ks(o,l,n),u===c)return a[i]=o,a[s]=l,e(a);if(u>0)o=Math.floor(o/u)*u,l=Math.ceil(l/u)*u;else if(u<0)o=Math.ceil(o*u)/u,l=Math.floor(l*u)/u;else break;c=u}return t},t}function Mi(){var t=Tc();return t.copy=function(){return Ci(t,Mi())},ra.apply(t,arguments),Ic(t)}function Cc(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Pc(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Sp(t){var e=1,n=t(Cc(e),Pc(e));return n.constant=function(a){return arguments.length?t(Cc(e=+a),Pc(e)):e},Ic(n)}function wc(){var t=Sp(Qs());return t.copy=function(){return Ci(t,wc()).constant(t.constant())},ra.apply(t,arguments)}function Mc(t,e){t=t.slice();var n=0,a=t.length-1,i=t[n],s=t[a],o;return s<i&&(o=n,n=a,a=o,o=i,i=s,s=o),t[n]=e.floor(i),t[a]=e.ceil(s),t}function Lc(t){return Math.log(t)}function Dc(t){return Math.exp(t)}function Ap(t){return-Math.log(-t)}function bp(t){return-Math.exp(-t)}function Ep(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Rp(t){return t===10?Ep:t===Math.E?Math.exp:e=>Math.pow(t,e)}function Op(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function Nc(t){return(e,n)=>-t(-e,n)}function Ip(t){const e=t(Lc,Dc),n=e.domain;let a=10,i,s;function o(){return i=Op(a),s=Rp(a),n()[0]<0?(i=Nc(i),s=Nc(s),t(Ap,bp)):t(Lc,Dc),e}return e.base=function(l){return arguments.length?(a=+l,o()):a},e.domain=function(l){return arguments.length?(n(l),o()):n()},e.ticks=l=>{const c=n();let u=c[0],g=c[c.length-1];const v=g<u;v&&([u,g]=[g,u]);let m=i(u),S=i(g),I,N;const L=l==null?10:+l;let C=[];if(!(a%1)&&S-m<L){if(m=Math.floor(m),S=Math.ceil(S),u>0){for(;m<=S;++m)for(I=1;I<a;++I)if(N=m<0?I/s(-m):I*s(m),!(N<u)){if(N>g)break;C.push(N)}}else for(;m<=S;++m)for(I=a-1;I>=1;--I)if(N=m>0?I/s(-m):I*s(m),!(N<u)){if(N>g)break;C.push(N)}C.length*2<L&&(C=Ws(u,g,L))}else C=Ws(m,S,Math.min(S-m,L)).map(s);return v?C.reverse():C},e.tickFormat=(l,c)=>{if(l==null&&(l=10),c==null&&(c=a===10?"s":","),typeof c!="function"&&(!(a%1)&&(c=Da(c)).precision==null&&(c.trim=!0),c=qs(c)),l===1/0)return c;const u=Math.max(1,a*l/e.ticks().length);return g=>{let v=g/s(Math.round(i(g)));return v*a<a-.5&&(v*=a),v<=u?c(g):""}},e.nice=()=>n(Mc(n(),{floor:l=>s(Math.floor(i(l))),ceil:l=>s(Math.ceil(i(l)))})),e}function Fc(){const t=Ip(Qs()).domain([1,10]);return t.copy=()=>Ci(t,Fc()).base(t.base()),ra.apply(t,arguments),t}const Li=en(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Li.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?en(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Li);const p1=Li.range,Ur=en(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Xn)},(t,e)=>(e-t)/Xn,t=>t.getUTCSeconds()),m1=Ur.range,to=en(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Xn)},(t,e)=>{t.setTime(+t+e*On)},(t,e)=>(e-t)/On,t=>t.getMinutes()),y1=to.range,eo=en(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*On)},(t,e)=>(e-t)/On,t=>t.getUTCMinutes()),x1=eo.range,no=en(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Xn-t.getMinutes()*On)},(t,e)=>{t.setTime(+t+e*Bn)},(t,e)=>(e-t)/Bn,t=>t.getHours()),T1=no.range,ro=en(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Bn)},(t,e)=>(e-t)/Bn,t=>t.getUTCHours()),$1=ro.range,ao=en(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth()),S1=ao.range,io=en(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth()),A1=io.range;function Bc(t,e,n,a,i,s){const o=[[Ur,1,Xn],[Ur,5,5*Xn],[Ur,15,15*Xn],[Ur,30,30*Xn],[s,1,On],[s,5,5*On],[s,15,15*On],[s,30,30*On],[i,1,Bn],[i,3,3*Bn],[i,6,6*Bn],[i,12,12*Bn],[a,1,sr],[a,2,2*sr],[n,1,qi],[e,1,Po],[e,3,3*Po],[t,1,ts]];function l(u,g,v){const m=g<u;m&&([u,g]=[g,u]);const S=v&&typeof v.range=="function"?v:c(u,g,v),I=S?S.range(u,+g+1):[];return m?I.reverse():I}function c(u,g,v){const m=Math.abs(g-u)/v,S=ks(([,,L])=>L).right(o,m);if(S===o.length)return t.every(Zs(u/ts,g/ts,v));if(S===0)return Li.every(Math.max(Zs(u,g,v),1));const[I,N]=o[m/o[S-1][2]<o[S][2]/m?S-1:S];return I.every(N)}return[l,c]}const[Cp,Pp]=Bc(lr,io,Ja,wo,ro,eo),[wp,Mp]=Bc(or,ao,Za,pa,no,to);function Lp(t){return new Date(t)}function Dp(t){return t instanceof Date?+t:+new Date(+t)}function so(t,e,n,a,i,s,o,l,c,u){var g=Tc(),v=g.invert,m=g.domain,S=u(".%L"),I=u(":%S"),N=u("%I:%M"),L=u("%I %p"),C=u("%a %d"),V=u("%b %d"),H=u("%B"),Y=u("%Y");function _(K){return(c(K)<K?S:l(K)<K?I:o(K)<K?N:s(K)<K?L:a(K)<K?i(K)<K?C:V:n(K)<K?H:Y)(K)}return g.invert=function(K){return new Date(v(K))},g.domain=function(K){return arguments.length?m(Array.from(K,Dp)):m().map(Lp)},g.ticks=function(K){var at=m();return t(at[0],at[at.length-1],K==null?10:K)},g.tickFormat=function(K,at){return at==null?_:u(at)},g.nice=function(K){var at=m();return(!K||typeof K.range!="function")&&(K=e(at[0],at[at.length-1],K==null?10:K)),K?m(Mc(at,K)):g},g.copy=function(){return Ci(g,so(t,e,n,a,i,s,o,l,c,u))},g}function Np(){return ra.apply(so(wp,Mp,or,ao,Za,pa,no,to,Ur,rs).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Fp(){return ra.apply(so(Cp,Pp,lr,io,Ja,_a,ro,eo,Ur,as).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function zr(t="linear",e,n){const a={linear:Mi,log:wc,_log:Fc,time:Np,utc:Fp}[t]();return a.type=t,/_?log/.test(t)&&a.clamp(!0),a.range([e!=null?e:0,n!=null?n:1])}var Bp={getXScale(t,e,n,a){const i=this,s=i.state.loading!=="append"&&i.scale.zoom||zr(i.axis.getAxisType("x"),t,e);return i.getCustomizedXScale(n?s.domain(n):s,a)},getYScale(t,e,n,a){const s=zr(this.axis.getAxisType(t),e,n);return a&&s.domain(a),s},getYScaleById(t,e=!1){var n;const a=((n=this.axis)==null?void 0:n.getId(t))==="y2",i=e?a?"subY2":"subY":a?"y2":"y";return this.scale[i]},getCustomizedXScale(t,e){const n=this,a=e||(()=>n.axis.x.tickOffset()),i=n.config.axis_x_inverted,s=function(o,l){const c=t(o)+a();return l?c:Math.ceil(c)};for(const o in t)s[o]=t[o];return s.orgDomain=()=>t.domain(),s.orgScale=()=>t,n.axis.isCategorized()&&(s.domain=function(o){let l=o;return arguments.length?(t.domain(l),s):(l=this.orgDomain(),i?[l[0]+1,l[1]]:[l[0],l[1]+1])}),s},updateScales(t,e=!0){var n,a;const i=this,{axis:s,config:o,format:l,org:c,scale:u,state:{current:g,width:v,height:m,width2:S,height2:I,hasAxis:N,hasTreemap:L}}=i;if(N){const C=o.axis_rotated,V=i.getResettedPadding(1),H={x:C?V:0,y:C?0:m,subX:C?1:0,subY:C?0:I},Y={x:C?m:v,y:C?v:V,subX:C?m:v,subY:C?S:1},_=e&&((n=u.x)==null?void 0:n.orgDomain()),K=e&&c.xDomain;u.x=i.getXScale(H.x,Y.x,_,()=>s.x.tickOffset()),u.subX=i.getXScale(H.x,Y.x,K,at=>{var mt;return at%1?0:((mt=s.subX)!=null?mt:s.x).tickOffset()}),l.xAxisTick=s.getXAxisTickFormat(),l.subXAxisTick=s.getXAxisTickFormat(!0),s.setAxis("x",u.x,o.axis_x_tick_outer,t),o.subchart_show&&s.setAxis("subX",u.subX,o.axis_x_tick_outer,t),u.y=i.getYScale("y",H.y,Y.y,u.y?u.y.domain():o.axis_y_default),u.subY=i.getYScale("y",H.subY,Y.subY,u.subY?u.subY.domain():o.axis_y_default),s.setAxis("y",u.y,o.axis_y_tick_outer,t),o.axis_y2_show&&(u.y2=i.getYScale("y2",H.y,Y.y,u.y2?u.y2.domain():o.axis_y2_default),u.subY2=i.getYScale("y2",H.subY,Y.subY,u.subY2?u.subY2.domain():o.axis_y2_default),s.setAxis("y2",u.y2,o.axis_y2_tick_outer,t))}else if(L){const C=i.getCurrentPadding();u.x=Mi().rangeRound([C.left,g.width-C.right]),u.y=Mi().rangeRound([C.top,g.height-C.bottom])}else(a=i.updateArc)==null||a.call(i)},xx(t){const e=this,{config:n,scale:{x:a,zoom:i}}=e,s=n.zoom_enabled&&i?i:a;return t?s(Le(t.x)?t.x:t):null},xv(t){const e=this,{axis:n,config:a,scale:{x:i,zoom:s}}=e,o=a.zoom_enabled&&s?s:i;let l=e.getBaseValue(t);return n.isTimeSeries()?l=zn.call(e,l):n.isCategorized()&&Xe(l)&&(l=a.axis_x_categories.indexOf(l)),Math.ceil(o(l))},yv(t){const e=this,{scale:{y:n,y2:a}}=e,i=t.axis&&t.axis==="y2"?a:n;return Math.ceil(i(e.getBaseValue(t)))},subxx(t){return t?this.scale.subX(t.x):null}},Up={setContainerSize(){const t=this,{state:e}=t;e.current.width=t.getCurrentWidth(),e.current.height=t.getCurrentHeight()},getCurrentWidth(){const t=this;return t.config.size_width||t.getParentWidth()},getCurrentHeight(){const t=this,{config:e}=t,n=e.size_height||t.getParentHeight();return n>0?n:320/(t.hasType("gauge")&&!e.gauge_fullCircle?2:1)},getParentRectValue(t){const e=`offset${Ln(t)}`;let n=this.$el.chart.node(),a=0;for(;a<30&&n&&n.tagName!=="BODY";){try{a=n.getBoundingClientRect()[t]}catch(s){e in n&&(a=n[e])}n=n.parentNode}const i=vn.body[e];return a>i&&(a=i),a},getParentWidth(){return this.getParentRectValue("width")},getParentHeight(){const t=this.$el.chart.style("height");let e=0;return t&&(e=/px$/.test(t)?parseInt(t,10):this.getParentRectValue("height")),e},getSvgLeft(t){const e=this,{config:n,state:{hasAxis:a},$el:i}=e,s=n.axis_rotated,o=s||!s&&!n.axis_y_inner,l=s?dn.axisX:dn.axisY,c=i.main.select(`.${l}`).node(),u=a&&n[`axis_${s?"x":"y"}_label`];let g=0;if(a&&(Xe(u)||Xe(u.text)||/^inner-/.test(u==null?void 0:u.position))){const N=i.main.select(`.${l}-label`);N.empty()||(g=N.node().getBoundingClientRect().left)}const v=c&&o?c.getBoundingClientRect():{right:0},m=i.chart.node().getBoundingClientRect().left+g,S=e.hasArcType(),I=v.right-m-(S?0:e.getCurrentPaddingByDirection("left",t));return I>0?I:0},updateDimension(t){var e;const n=this,{config:a,state:{hasAxis:i},$el:s}=n;i&&!t&&n.axis.x&&a.axis_rotated&&((e=n.axis.subX)==null||e.create(s.axis.subX)),n.updateScales(t),n.updateSvgSize(),n.transformAll(!1)},updateSvgSize(){const t=this,{config:e,state:{clip:n,current:a,hasAxis:i,width:s,height:o},$el:{svg:l}}=t;if(e.resize_auto==="viewBox"?l.attr("viewBox",`0 0 ${a.width} ${a.height}`):l.attr("width",a.width).attr("height",a.height),i){const c=l.select(`.${Qo.brush} .overlay`),u={width:0,height:0};c.size()&&(u.width=+c.attr("width"),u.height=+c.attr("height")),l.selectAll([`#${n.id}`,`#${n.idGrid}`]).select("rect").attr("width",s).attr("height",o),l.select(`#${n.idXAxis}`).select("rect").call(t.setXAxisClipPath.bind(t)),l.select(`#${n.idYAxis}`).select("rect").call(t.setYAxisClipPath.bind(t)),n.idSubchart&&l.select(`#${n.idSubchart}`).select("rect").attr("width",s).attr("height",u.height)}},getCurrentPaddingByDirection(t,e=!1,n=!1){var a;const i=this,{config:s,$el:o,state:{hasAxis:l}}=i,c=s.axis_rotated,u=((a=s.padding)==null?void 0:a.mode)==="fit",g=ge(s[`padding_${t}`])?s[`padding_${t}`]:void 0,v=l?{top:c?"y2":null,bottom:c?"y":"x",left:c?"x":"y",right:c?null:"y2"}[t]:null,m=/^(left|right)$/.test(t),S=v&&s[`axis_${v}_inner`],I=v&&s[`axis_${v}_show`],N=v?s[`axis_${v}_axes`].length:0;let L=v?m?i.getAxisWidthByAxisId(v,e):i.getHorizontalAxisHeight(v):0;const C=20;let V=0;!u&&m&&(L=kg(L));let H=l&&m&&(S||ln(g)&&!I)?0:u?(I?L:0)+(g!=null?g:0):ln(g)?L:g;return m&&l?(v&&(u||S)&&s[`axis_${v}_label`].text&&(H+=i.axis.getAxisLabelPosition(v).isOuter?C:0),t==="right"?(H+=c?!u&&ln(g)?10:2:!I||S?u?2:1:0,H+=n?i.axis.getXAxisTickTextY2Overflow(C):0):t==="left"&&c&&ln(g)&&(H=s.axis_x_show?u?L:Math.max(L,40):1)):t==="top"?(o.title&&o.title.node()&&(H+=i.getTitlePadding()),V=c&&!S?N:0):t==="bottom"&&l&&c&&!I&&(H+=1),H+L*N-V},getCurrentPadding(t=!1){const e=this,[n,a,i,s]=["top","bottom","left","right"].map(o=>e.getCurrentPaddingByDirection(o,null,t));return{top:n,bottom:a,left:i,right:s}},getResettedPadding(t){const e=this,{config:n}=e,a=ge(t);let i=a?0:{};return n.padding===!1?!a&&Object.keys(t).forEach(s=>{i[s]=!_n(n.data_labels)&&n.data_labels!==!1&&s==="top"?t[s]:0}):i=t,i},updateSizes(t){var e,n,a,i,s;const o=this,{config:l,state:c,$el:{legend:u}}=o,g=l.axis_rotated,v=o.hasArcType()||c.hasFunnel||c.hasTreemap,m=((e=l.padding)==null?void 0:e.mode)==="fit";!t&&o.setContainerSize();const S={width:u?o.getLegendWidth():0,height:u?o.getLegendHeight():0};!v&&l.axis_x_show&&l.axis_x_tick_autorotate&&o.updateXAxisTickClip();const I={right:l.legend_show&&c.isLegendRight?o.getLegendWidth()+(m?0:20):0,bottom:!l.legend_show||c.isLegendRight||c.isLegendInset?0:S.height},N=g||v?0:o.getHorizontalAxisHeight("x"),L=l.subchart_axis_x_show&&l.subchart_axis_x_tick_text_show?N:30,C=l.subchart_show&&!v?l.subchart_size_height+L:0,V=o.hasType("gauge")&&l.arc_needle_show&&!l.gauge_fullCircle&&!l.gauge_label_show?10:0,H=o.getCurrentPadding(!0);if(c.margin=!v&&g?{top:H.top,right:v?0:H.right+I.right,bottom:I.bottom+H.bottom,left:C+(v?0:H.left)}:{top:(m?0:4)+H.top,right:v?0:H.right+I.right,bottom:V+C+I.bottom+H.bottom,left:v?0:H.left},c.margin=o.getResettedPadding(c.margin),c.margin2=g?{top:c.margin.top,right:NaN,bottom:20+I.bottom,left:o.state.rotatedPadding.left}:{top:c.current.height-C-I.bottom,right:NaN,bottom:L+I.bottom,left:c.margin.left},c.margin3={top:0,right:NaN,bottom:0,left:0},(n=o.updateSizeForLegend)==null||n.call(o,S),c.width=c.current.width-c.margin.left-c.margin.right,c.height=c.current.height-c.margin.top-c.margin.bottom,c.width<0&&(c.width=0),c.height<0&&(c.height=0),c.width2=g?c.margin.left-c.rotatedPadding.left-c.rotatedPadding.right:c.width,c.height2=g?c.height:c.current.height-c.margin2.top-c.margin2.bottom,c.width2<0&&(c.width2=0),c.height2<0&&(c.height2=0),o.hasArcType()){const Y=o.hasType("gauge"),_=l.legend_show&&c.isLegendRight,K=(a=c.hasRadar&&o.cache.get(Dn.radarTextWidth))!=null?a:0;c.arcWidth=c.width-(_?S.width+10:0)-K,c.arcHeight=c.height-(_&&!Y?0:10),(i=l.arc_rangeText_values)!=null&&i.length&&(Y?(c.arcWidth-=25,c.arcHeight-=10,c.margin.left+=10):(c.arcHeight-=20,c.margin.top+=10)),Y&&!l.gauge_fullCircle&&(c.arcHeight+=c.height-o.getPaddingBottomForGauge()),(s=o.updateRadius)==null||s.call(o)}c.isLegendRight&&v&&(c.margin3.left=c.arcWidth/2+c.radiusExpanded*1.1)}},zp={setCssRule(t,e,n,a){const i=this,{config:s,state:{cssRule:o,style:l}}=i;return s.boost_useCssRule?c=>{c.each(u=>{const g=a&&(a==null?void 0:a.call(i,u)),v=`${t?`.${on.shapes+i.getTargetSelectorSuffix(u.id)}`:""}${e}`;e in o&&l.sheet.deleteRule(o[v]),i.state.cssRule[v]=qg(l,v,n.filter(Boolean).map(m=>Xe(g)&&m.indexOf(":")===-1?`${m}: ${g}`:m||""))})}:()=>{}},getStylePropValue(t){const{config:{boost_useCssRule:e}}=this;return e?null:he(t)?t.bind(this):t}};function Uc(t){return typeof t=="string"?new Oe([document.querySelectorAll(t)],[document.documentElement]):new Oe([T(t)],qt)}function jp(t){let e="middle";return t>0&&t<=170?e="end":t>190&&t<=360&&(e="start"),e}function Gp(t,e,n,a,i){var s;const o=this,{value:l}=t,c=o.isCandlestickType(t),u=ge(l)&&l<0||c&&!((s=o.getCandlestickData(t))!=null&&s._isUp);let{x:g,y:v}=e;const m=4,S=m*2;return a?n==="start"?(g+=u?0:S,v+=m):n==="middle"?(g+=S,v-=S):n==="end"&&(u&&(g-=S),v+=m):(n==="start"?(g+=m,u&&(v+=S*2)):n==="middle"?v-=S:n==="end"&&(g-=m,u&&(v+=S*2)),i&&(v+=u?-17:c?13:7)),{x:g,y:v}}function zc(t,e){var n;const a=this.config.data_labels_position,{id:i,index:s,value:o}=t;return(n=he(a)?a.bind(this.api)(e,o,i,s,this.$el.text):(i in a?a[i]:a)[e])!=null?n:0}var Vp={opacityForText(t){const e=this;return e.isBarType(t)&&!e.meetsLabelThreshold(Math.abs(e.getRatio("bar",t)),"bar")?"0":e.hasDataLabel?null:"0"},initText(){const{$el:t}=this;t.main.select(`.${Se.chart}`).append("g").attr("class",In.chartTexts).style("pointer-events",t.funnel||t.treemap?"none":null)},updateTargetsForText(t){const e=this,n=e.getChartClass("Text"),a=e.getClass("texts","id"),i=e.classFocus.bind(e);e.$el.main.select(`.${In.chartTexts}`).selectAll(`.${In.chartText}`).data(t).attr("class",l=>`${n(l)}${i(l)}`.trim()).enter().append("g").style("opacity","0").attr("class",n).call(e.setCssRule(!0,` .${In.text}`,["fill","pointer-events:none"],e.updateTextColor)).append("g").attr("class",a)},updateText(){const t=this,{$el:e,$T:n,config:a,axis:i}=t,s=t.getClass("text","index"),o=a.data_labels.centered,l=e.main.selectAll(`.${In.texts}`).selectAll(`.${In.text}`).data(t.labelishData.bind(t));n(l.exit()).style("fill-opacity","0").remove(),e.text=l.enter().append("text").merge(l).attr("class",s).attr("text-anchor",c=>{let g=a[`axis_${i==null?void 0:i.getId(c.id)}_inverted`]?c.value>0:c.value<0;if(t.isCandlestickType(c)){const v=t.getCandlestickData(c);g=!(v!=null&&v._isUp)}else if(t.isTreemapType(c))return o?"middle":"start";return a.axis_rotated?g?"end":"start":"middle"}).style("fill",t.getStylePropValue(t.updateTextColor)).style("fill-opacity","0").each(function(c,u,g){const v=st(this);let{value:m}=c;if(t.isBubbleZType(c))m=t.getBubbleZData(m,"z");else if(t.isCandlestickType(c)){const S=t.getCandlestickData(c);S&&(m=S.close)}m=t.isTreemapType(c)?t.treemapDataLabelFormat(c)(v):t.dataLabelFormat(c.id)(m,c.id,c.index,g),ge(m)?this.textContent=m:wa(v,m)})},updateTextColor(t){const e=this,{config:n}=e,a=n.data_labels_colors,i=e.isArcType(t)&&!e.isRadarType(t)||e.isFunnelType(t)||e.isTreemapType(t)?null:e.color(t);let s;if(Xe(a))s=a;else if(Be(a)){const{id:o}=t.data||t;s=a[o]}else he(a)&&(s=a.bind(e.api)(i,t));if(e.isCandlestickType(t)&&!he(a)){const o=e.getCandlestickData(t);if(!(o!=null&&o._isUp)){const l=n.candlestick_color_down;s=Be(l)?l[t.id]:l}}return s||i},updateTextBGColor(t,e){const n=this,{$el:a}=n;let i="";if(Xe(e)||Be(e)){const s=Xe(e)?"":n.getTargetSelectorSuffix("id"in t?t.id:t.data.id),o=a.defs.select(["filter[id*='labels-bg","']"].join(s));o.size()&&(i=`url(#${o.attr("id")})`)}return i||null},redrawText(t,e,n,a){const i=this,{$T:s,axis:o,config:l,state:{hasTreemap:c}}=i,u=gr(!0),g=l.axis_rotated,v=l.data_labels.rotate,m=jp(v),S=v?`rotate(${v})`:"";return i.$el.text.style("fill",i.getStylePropValue(i.updateTextColor)).attr("filter",I=>i.updateTextBGColor.bind(i)(I,l.data_labels_backgroundColors)).style("fill-opacity",n?0:i.opacityForText.bind(i)).each(function(I,N){const L=s(c&&this.childElementCount?this.parentNode:this,!!(a&&this.getAttribute("x")),u),C=l[`axis_${o==null?void 0:o.getId(I.id)}_inverted`];let V={x:t.bind(this)(I,N),y:e.bind(this)(I,N)};v&&(V=Gp.bind(i)(I,V,m,g,C),L.attr("text-anchor",m)),this.childElementCount||v?L.attr("transform",`translate(${V.x} ${V.y}) ${S}`):L.attr("x",V.x).attr("y",V.y)}),!0},getTextRect(t,e){const n=this;let a=t.node?t.node():t;/text/i.test(a.tagName)||(a=a.querySelector("text"));const i=a.textContent,s=`${Dn.textRect}-${i.replace(/\W/g,"_")}`;let o=n.cache.get(s);return o||(n.$el.svg.append("text").style("visibility","hidden").style("font",st(a).style("font")).classed(e,!0).text(i).call(l=>{o=Si(l.node())}).remove(),n.cache.add(s,o)),o},generateXYForText(t,e){const n=this,{state:{hasRadar:a,hasFunnel:i,hasTreemap:s}}=n,o=Object.keys(t),l={},c=e?n.getXForText:n.getYForText;return i&&o.push("funnel"),a&&o.push("radar"),s&&o.push("treemap"),o.forEach(u=>{l[u]=n[`generateGet${Ln(u)}Points`](t[u],!1)}),function(u,g){const v=n.isAreaType(u)&&"area"||n.isBarType(u)&&"bar"||n.isCandlestickType(u)&&"candlestick"||n.isFunnelType(u)&&"funnel"||n.isRadarType(u)&&"radar"||n.isTreemapType(u)&&"treemap"||"line";return c.call(n,l[v](u,g),u,this)}},getCenteredTextPos(t,e,n,a){const i=this,{config:s}=i,o=s.axis_rotated,l=i.isBarType(t),c=i.isTreemapType(t);if(s.data_labels.centered&&(l||c)){const u=Si(n);if(l){const g=i.getRangedData(t,null,"bar")>=0;if(o){const v=(g?e[1][1]-e[0][1]:e[0][1]-e[1][1])/2+u.width/2;return g?-v-3:v+2}else{const v=(g?e[0][1]-e[1][1]:e[1][1]-e[0][1])/2+u.height/2;return g?v:-v-2}}else if(c)return a==="x"?(e[1][0]-e[0][0])/2:(e[1][1]-e[0][1])/2+u.height/2}return 0},getXForText(t,e,n){var a;const i=this,{config:s}=i,o=s.axis_rotated,l=i.isFunnelType(e),c=i.isTreemapType(e);let u=t?t[0][0]:0;if(i.isCandlestickType(e))o?u=(a=i.getCandlestickData(e))!=null&&a._isUp?t[2][2]+4:t[2][1]-4:u+=(t[1][0]-u)/2;else if(l)u+=i.state.current.width/2;else if(c)u+=s.data_labels.centered?0:5;else if(o){const g=s[`axis_${i.axis.getId(e.id)}_inverted`],v=i.isBarType(e)?4:6,m=e.value;u=t[2][1],g?u-=v*(m>0?1:-1):u+=v*(m<0?-1:1)}else u=i.hasType("bar")?(t[2][0]+t[0][0])/2:u;return(o||c)&&(u+=i.getCenteredTextPos(e,t,n,"x")),u+zc.call(this,e,"x")},getYForText(t,e,n){const a=this,{axis:i,config:s,state:o}=a,l=s.axis_rotated,c=s[`axis_${i==null?void 0:i.getId(e.id)}_inverted`],u=a.isBarType(e),g=a.isFunnelType(e),v=a.isTreemapType(e),m=s.point_r,S=Si(n);let{value:I}=e,N=3,L;if(a.isCandlestickType(e))I=a.getCandlestickData(e),l?(L=t[0][0],L+=(t[1][0]-L)/2+N):(L=I&&I._isUp?t[2][2]-N:t[2][1]+N*4,c&&(L+=15*(I._isUp?1:-1)));else if(g)L=t?t[0][1]+(t[1][1]-t[0][1])/2+S.height/2-3:0;else if(v)L=t[0][1]+(s.data_labels.centered?0:S.height+5);else if(l)L=(t[0][0]+t[2][0]+S.height*.6)/2;else if(L=t[2][1],ge(m)&&m>5&&(a.isLineType(e)||a.isScatterType(e))&&(N+=s.point_r/2.3),I<0||I===0&&!o.hasPositiveValue&&o.hasNegativeValue)L+=c?u?-3:-5:S.height+(u?-N:N);else{let C=-N*2;u?C=-N:a.isBubbleType(e)&&(C=N),c&&(C=u?10:15),L+=C}return(!l||v)&&(L+=a.getCenteredTextPos(e,t,n,"y")),L+zc.call(this,e,"y")},markOverlapped(t,e,n){const a=e.$el.arcs.selectAll(n),i=a.filter(c=>c.data.id!==t),s=a.filter(c=>c.data.id===t),o=kl(s.node()),l=(c,u)=>Math.sqrt(Math.pow(c,2)+Math.pow(u,2));s.node()&&i.each(function(){const c=kl(this),u=st(this),g=l(o.e,o.f)>l(c.e,c.f)?s:u,v=Math.ceil(Math.abs(o.e-c.e))<Math.ceil(g.node().getComputedTextLength()),m=Math.ceil(Math.abs(o.f-c.f))<parseInt(s.style("font-size"),10);u.classed(In.TextOverlapping,v&&m)})},undoMarkOverlapped(t,e){t.$el.arcs.selectAll(e).each(function(){Uc([this,this.previousSibling]).classed(In.TextOverlapping,!1)})},meetsLabelThreshold(t=0,e){const n=this,{config:a}=n,i=a[`${e}_label_threshold`]||0;return t>=i}};function jc(t="left",e){const n=ge(e);let a;return t.indexOf("center")>-1?a=n?e/2:"middle":t.indexOf("right")>-1?a=n?e:"end":a=n?0:"start",a}var Xp={initTitle(){const t=this,{config:e,$el:n}=t;if(e.title_text){n.title=n.svg.append("g");const a=n.title.append("text").style("text-anchor",jc(e.title_position)).attr("class",In.title);wa(a,e.title_text,[.3,1.5])}},redrawTitle(){const t=this,{config:e,state:{current:n},$el:{title:a}}=t;if(a){const i=jc(e.title_position,n.width),s=(e.title_padding.top||0)+t.getTextRect(t.$el.title,In.title).height;a.attr("transform",`translate(${i}, ${s})`)}},getTitlePadding(){const t=this,{$el:{title:e},config:n}=t;return(n.title_padding.top||0)+(e?t.getTextRect(e,In.title).height:0)+(n.title_padding.bottom||0)}},Yp={initTooltip(){const t=this,{config:e,$el:n}=t;n.tooltip=st(e.tooltip_contents.bindto),n.tooltip.empty()&&(n.tooltip=n.chart.append("div").attr("class",ti.tooltipContainer).style("position","absolute").style("pointer-events","none").style("display","none")),t.bindTooltipResizePos()},initShowTooltip(){var t;const e=this,{config:n,$el:a,state:{hasAxis:i,hasRadar:s}}=e;if(n.tooltip_init_show){const o=!(i||s);(t=e.axis)!=null&&t.isTimeSeries()&&Xe(n.tooltip_init_x)&&(n.tooltip_init_x=zn.call(e,n.tooltip_init_x)),e.api.tooltip.show({data:{[o?"index":"x"]:n.tooltip_init_x}});const l=n.tooltip_init_position;if(!n.tooltip_contents.bindto&&!_n(l)){const{top:c=0,left:u=50}=l;a.tooltip.style("top",Xe(c)?c:`${c}px`).style("left",Xe(u)?u:`${u}px`).style("display",null)}}},getTooltipHTML(...t){const e=this,{api:n,config:a}=e;return he(a.tooltip_contents)?a.tooltip_contents.bind(n)(...t):e.getTooltipContent(...t)},getTooltipContent(t,e,n,a){var i;const s=this,{api:o,config:l,state:c,$el:u}=s,[g,v,m]=["title","name","value"].map(gt=>{const Z=l[`tooltip_format_${gt}`];return he(Z)?Z.bind(o):Z}),S=(...gt)=>Is((g||e)(...gt)),I=(...gt)=>Is((v||(Z=>Z))(...gt)),N=(...gt)=>{const Z=m||(c.hasTreemap||s.isStackNormalized()?($t,ct)=>`${(ct*100).toFixed(2)}%`:n);return Is(Z(...gt))},L=l.tooltip_order,C=gt=>s.axis&&s.isBubbleZType(gt)?s.getBubbleZData(gt.value,"z"):s.getBaseValue(gt),V=s.levelColor?gt=>s.levelColor(gt.value):gt=>a(gt),H=l.tooltip_contents,Y=H.template,_=s.mapToTargetIds();if(L===null&&l.data_groups.length){const gt=s.orderTargets(s.data.targets).map(Z=>Z.id).reverse();t.sort((Z,$t)=>{let ct=Z?Z.value:null,At=$t?$t.value:null;return ct>0&&At>0&&(ct=Z.id?gt.indexOf(Z.id):null,At=$t.id?gt.indexOf($t.id):null),ct-At})}else if(/^(asc|desc)$/.test(L)){const gt=L==="asc";t.sort((Z,$t)=>{const ct=Z?C(Z):null,At=$t?C($t):null;return gt?ct-At:At-ct})}else he(L)&&t.sort(L.bind(o));const K=s.getTooltipContentTemplate(Y),at=t.length;let mt,St,dt,lt,Gt;for(Gt=0;Gt<at;Gt++)if(St=t[Gt],!(!St||!(C(St)||C(St)===0))){if(ln(mt)){const gt=(c.hasAxis||c.hasRadar)&&S(St.x);mt=bi(K[0],{CLASS_TOOLTIP:ti.tooltip,TITLE:Le(gt)?Y?gt:`<tr><th colspan="2">${gt}</th></tr>`:""})}if(!St.ratio&&u.arcs&&(dt=["arc",s.$el.arcs.select(`path.${je.arc}-${St.id}`).data()[0]],St.ratio=s.getRatio(...dt)),dt=[St.ratio,St.id,St.index],s.isAreaRangeType(St)){const[gt,Z]=["high","low"].map(ct=>N(s.getRangedData(St,ct),...dt));lt=`<b>Mid:</b> ${N(C(St),...dt)} <b>High:</b> ${gt} <b>Low:</b> ${Z}`}else if(s.isCandlestickType(St)){const[gt,Z,$t,ct,At]=["open","high","low","close","volume"].map(Vt=>s.getRangedData(St,Vt,"candlestick")?N(s.getRangedData(St,Vt,"candlestick"),...dt):void 0);lt=`<b>Open:</b> ${gt} <b>High:</b> ${Z} <b>Low:</b> ${$t} <b>Close:</b> ${ct}${At?` <b>Volume:</b> ${At}`:""}`}else if(s.isBarRangeType(St)){const{value:gt,id:Z,index:$t}=St;lt=`${N(gt,void 0,Z,$t)}`}else lt=N(C(St),...dt);if(lt!==void 0){if(St.name===null)continue;const gt=I((i=St.name)!=null?i:St.id,...dt),Z=V(St),$t={CLASS_TOOLTIP_NAME:ti.tooltipName+s.getTargetSelectorSuffix(St.id),COLOR:Y||!s.patterns?Z:`<svg><rect style="fill:${Z}" width="10" height="10"></rect></svg>`,NAME:gt,VALUE:lt};if(Y&&Be(H.text)){const ct=_.indexOf(St.id);Object.keys(H.text).forEach(At=>{$t[At]=H.text[At][ct]})}mt+=bi(K[1],$t)}}return`${mt}</table>`},getTooltipContentTemplate(t){return(t||`<table class="{=CLASS_TOOLTIP}"><tbody>
|
|
42
42
|
{=TITLE}
|
|
43
43
|
{{<tr class="{=CLASS_TOOLTIP_NAME}">
|
|
44
44
|
<td class="name">${this.patterns?"{=COLOR}":'<span style="background-color:{=COLOR}"></span>'}{=NAME}</td>
|
|
45
45
|
<td class="value">{=VALUE}</td>
|
|
46
46
|
</tr>}}
|
|
47
|
-
</tbody></table>`).replace(/(\r?\n|\t)/g,"").split(/{{(.*)}}/)},setTooltipPosition(t,e){var n,a;const i=this,{config:s,scale:o,state:l,$el:{eventRect:c,tooltip:u}}=i,{bindto:g}=s.tooltip_contents,v=s.axis_rotated,m=u==null?void 0:u.datum();if(!g&&m){const S=t!=null?t:JSON.parse(m.current),[I,N]=Hn(l.event,e!=null?e:c==null?void 0:c.node()),M={x:I,y:N};if(l.hasAxis&&o.x&&m&&"x"in m){const Y=(_=0,K,at="y")=>{var yt;const $t=o[K?(yt=i.axis)==null?void 0:yt.getId(K):at];return $t?$t(_)+(v?l.margin.left:l.margin.top):0};M.xAxis=o.x(m.x)+(s.tooltip_position?v?l.margin.top:l.margin.left:0),S.length===1?M.yAxis=Y(S[0].value,S[0].id):M.yAxis=Y}const{width:P=0,height:X=0}=m,H=(a=(n=s.tooltip_position)==null?void 0:n.bind(i.api)(S,P,X,c==null?void 0:c.node(),M))!=null?a:i.getTooltipPosition.bind(i)(P,X,M);["top","left"].forEach(Y=>{const _=H[Y];u.style(Y,`${_}px`),Y==="left"&&!m.xPosInPercent&&(m.xPosInPercent=_/l.current.width*100)})}},getTooltipPosition(t,e,n){var a,i,s;const o=this,{config:l,scale:c,state:u}=o,{width:g,height:v,current:m,hasFunnel:S,hasRadar:I,hasTreemap:N,isLegendRight:M,inputType:P}=u,X=o.hasType("gauge")&&!l.gauge_fullCircle,H=l.axis_rotated,Y=o.hasArcType(),_=o.getSvgLeft(!0);let K=_+m.width-o.getCurrentPaddingByDirection("right");const at=20;let{x:yt,y:$t}=n;if(I)yt+=yt>=g/2?15:-(t+15),$t+=15;else if(Y){if(P!=="touch"){let Ft=(i=(a=o.getTitlePadding)==null?void 0:a.call(o))!=null?i:0;Ft&&X&&((s=l.arc_rangeText_values)!=null&&s.length)&&(Ft+=10),yt+=(g-(M?o.getLegendWidth():0))/2,$t+=(X?v:v/2+e)+Ft}}else if(S||N)$t+=e;else{const ft={top:o.getCurrentPaddingByDirection("top",!0),left:o.getCurrentPaddingByDirection("left",!0)};H?(yt+=_+ft.left+at,$t=ft.top+n.xAxis+at,K-=_):(yt=_+ft.left+at+(c.zoom?yt:n.xAxis),$t+=ft.top-5)}if(yt+t+15>K&&(yt-=t+(S||N||Y?0:H?at*2:38)),$t+e>m.height){const ft=N?e+10:30;$t-=X?e*1.5:e+ft}const dt={top:$t,left:yt};return Object.keys(dt).forEach(ft=>{dt[ft]<0&&(dt[ft]=0)}),dt},showTooltip(t,e){const n=this,{config:a,$el:{tooltip:i}}=n,s=t.filter(c=>c&&we(n.getBaseValue(c)));if(!i||s.length===0||!a.tooltip_show)return;let o=i.datum();const l=JSON.stringify(t);if(!o||o.current!==l){const{index:c,x:u}=t.concat().sort()[0];_e(a.tooltip_onshow,n.api,t),i.html(n.getTooltipHTML(t,n.axis?n.axis.getXAxisTickFormat():n.categoryName.bind(n),n.getDefaultValueFormat(),n.color)).style("display",null).style("visibility",null).datum(o={index:c,x:u,current:l,width:i.property("offsetWidth"),height:i.property("offsetHeight")}),_e(a.tooltip_onshown,n.api,t),n._handleLinkedCharts(!0,c)}n.setTooltipPosition(s,e)},bindTooltipResizePos(){const t=this,{resizeFunction:e,state:n,$el:{tooltip:a}}=t;e.add(()=>{if(a.style("display")==="block"){const{current:i}=n,{width:s,xPosInPercent:o}=a.datum();let l=i.width/100*o;const c=i.width-(l+s);c<0&&(l+=c),a.style("left",`${l}px`)}})},hideTooltip(t){var e;const n=this,{api:a,config:i,$el:{tooltip:s}}=n;if(s&&s.style("display")!=="none"&&(!i.tooltip_doNotHide||t)){const o=JSON.parse((e=s.datum().current)!=null?e:{});_e(i.tooltip_onhide,a,o),s.style("display","none").style("visibility","hidden").datum(null),_e(i.tooltip_onhidden,a,o)}},_handleLinkedCharts(t,e){const n=this,{charts:a,config:i,state:{event:s}}=n;if(s!=null&&s.isTrusted&&i.tooltip_linked&&a.length>1){const o=i.tooltip_linked_name;a.filter(l=>l!==n.api).forEach(l=>{const{config:c,$el:u}=l.internal,g=c.tooltip_linked,v=c.tooltip_linked_name,m=vn.body.contains(u.chart.node());if(g&&o===v&&m){const S=u.tooltip.data()[0],I=e!==(S==null?void 0:S.index);try{l.tooltip[t&&I?"show":"hide"]({index:e})}catch(N){}}})}},updateTooltipOnRedraw(t,e){var n;const a=this,{config:i,$el:{eventRect:s,svg:o,tooltip:l},state:{event:c,hasAxis:u,hasRadar:g,hasTreemap:v}}=a;if((l==null?void 0:l.style("display"))==="block"&&c){const m=t!=null?t:(n=g?o:s)==null?void 0:n.node();if(u||g)if(a.isMultipleX())a.selectRectForMultipleXs(m,!1);else{const S=e!=null?e:a.getDataIndexFromEvent(c);e===-1?a.api.tooltip.hide():(a.selectRectForSingle(m,S),a.setExpand(S,null,!0))}else{const{clientX:S,clientY:I}=c;setTimeout(()=>{let N=vn.elementFromPoint(S,I);const M=st(N).datum();if(M){const P=a.hasArcType()?a.convertToArcData(a.updateAngle(M)):M==null?void 0:M.data;v&&(N=o.node()),P&&a.showTooltip([P],N)}else a.api.tooltip.hide()},i.transition_duration)}}}},Vp={getTranslate(t,e=0){var n;const a=this,{config:i,state:s}=a,o=i.axis_rotated;let l=0,c,u;if(e&&/^(x|y2?)$/.test(t)&&(l=a.getAxisSize(t)*e),t==="main")c=Ti(s.margin.left),u=Ti(s.margin.top);else if(t==="context")c=Ti(s.margin2.left),u=Ti(s.margin2.top);else if(t==="legend")c=s.margin3.left,u=s.margin3.top;else if(t==="x")c=o?-l:0,u=o?0:s.height+l;else if(t==="y")c=o?0:-l,u=o?s.height+l:0;else if(t==="y2")c=o?0:s.width+l,u=o?-l-1:0;else if(t==="subX")c=0,u=o?0:s.height2;else if(t==="arc")c=s.arcWidth/2,u=s.arcHeight/2,(n=i.arc_rangeText_values)!=null&&n.length&&(u+=5+(a.hasType("gauge")&&i.title_text?10:0));else if(t==="polar")c=s.arcWidth/2,u=s.arcHeight/2;else if(t==="radar"){const[g,v]=a.getRadarSize();c=s.width/2-g,u=s.height/2-v}return`translate(${c}, ${u})`},transformMain(t,e){const n=this,{$el:{main:a},$T:i}=n,s=e!=null&&e.axisX?e.axisX:i(a.select(`.${fn.axisX}`),t),o=e!=null&&e.axisY?e.axisY:i(a.select(`.${fn.axisY}`),t),l=e!=null&&e.axisY2?e.axisY2:i(a.select(`.${fn.axisY2}`),t);i(a,t).attr("transform",n.getTranslate("main")),s.attr("transform",n.getTranslate("x")),o.attr("transform",n.getTranslate("y")),l.attr("transform",n.getTranslate("y2")),a.select(`.${Ue.chartArcs}`).attr("transform",n.getTranslate("arc"))},transformAll(t,e){const n=this,{config:a,state:{hasAxis:i,hasFunnel:s,hasTreemap:o},$el:l}=n;!s&&!o&&n.transformMain(t,e),i&&a.subchart_show&&n.transformContext(t,e),l.legend&&n.transformLegend(t)}},Xp={isValidChartType(t){return!!(t&&Object.values(oe).indexOf(t)>-1)},setTargetType(t,e){const n=this,{config:a,state:{withoutFadeIn:i}}=n;n.mapToTargetIds(t).forEach(s=>{i[s]=e===a.data_types[s],a.data_types[s]=e}),t||(a.data_type=e)},updateTypesElements(){const t=this,{state:{current:e}}=t;Object.keys(oe).forEach(n=>{const a=oe[n],i=t.hasType(a,null,!0),s=e.types.indexOf(a);s===-1&&i?e.types.push(a):s>-1&&!i&&e.types.splice(s,1)}),t.setChartElements()},hasType(t,e,n=!1){var a;const i=this,{config:s,state:{current:o}}=i,l=s.data_types,c=e||i.data.targets;let u=!1;return!n&&((a=o.types)==null?void 0:a.indexOf(t))>-1?u=!0:c!=null&&c.length?c.forEach(g=>{const v=l[g.id];(v===t||!v&&t==="line")&&(u=!0)}):Object.keys(l).length?Object.keys(l).forEach(g=>{l[g]===t&&(u=!0)}):u=s.data_type===t,u},hasTypeOf(t,e,n=[]){return t in Sr?!Sr[t].filter(a=>n.indexOf(a)===-1).every(a=>!this.hasType(a,e)):!1},isTypeOf(t,e){var n;const a=Ge(t)?t:t.id,i=this.config&&(((n=this.config.data_types)==null?void 0:n[a])||this.config.data_type);return Be(e)?e.indexOf(i)>=0:i===e},hasPointType(){const t=this;return t.hasTypeOf("Line")||t.hasType("bubble")||t.hasType("scatter")},hasArcType(t,e){return this.hasTypeOf("Arc",t,e)},hasMultiArcGauge(){return this.hasType("gauge")&&this.config.gauge_type==="multi"},isLineType(t){const e=Ge(t)?t:t.id;return!this.config.data_types[e]||this.isTypeOf(e,Sr.Line)},isStepType(t){return this.isTypeOf(t,Sr.Step)},isSplineType(t){return this.isTypeOf(t,Sr.Spline)},isAreaType(t){return this.isTypeOf(t,Sr.Area)},isAreaRangeType(t){return this.isTypeOf(t,Sr.AreaRange)},isBarType(t){return this.isTypeOf(t,"bar")},isBubbleType(t){return this.isTypeOf(t,"bubble")},isCandlestickType(t){return this.isTypeOf(t,"candlestick")},isScatterType(t){return this.isTypeOf(t,"scatter")},isTreemapType(t){return this.isTypeOf(t,"treemap")},isPieType(t){return this.isTypeOf(t,"pie")},isFunnelType(t){return this.isTypeOf(t,"funnel")},isGaugeType(t){return this.isTypeOf(t,"gauge")},isDonutType(t){return this.isTypeOf(t,"donut")},isPolarType(t){return this.isTypeOf(t,"polar")},isRadarType(t){return this.isTypeOf(t,"radar")},isArcType(t){return this.isPieType(t)||this.isDonutType(t)||this.isGaugeType(t)||this.isPolarType(t)||this.isRadarType(t)},isCirclePoint(t){const{config:e}=this,n=e.point_pattern;let a=!1;return(t==null?void 0:t.tagName)==="circle"?a=!0:a=e.point_type==="circle"&&(!n||Be(n)&&n.length===0),a},lineData(t){return this.isLineType(t)?[t]:[]},arcData(t){return this.isArcType(t.data)?[t]:[]},labelishData(t){return this.isBarType(t)||this.isLineType(t)||this.isScatterType(t)||this.isBubbleType(t)||this.isCandlestickType(t)||this.isFunnelType(t)||this.isRadarType(t)||this.isTreemapType(t)?t.values.filter(e=>he(e.value)||!!e.value):[]},barLineBubbleData(t){return this.isBarType(t)||this.isLineType(t)||this.isBubbleType(t)?t.values:[]},isInterpolationType(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}};function Di(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 Ni(t){this._context=t}Ni.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:Di(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&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:Di(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Yp(t){return new Ni(t)}function Ar(){}function zc(t){this._context=t}zc.prototype={areaStart:Ar,areaEnd:Ar,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);break}}},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:Di(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Hp(t){return new zc(t)}function jc(t){this._context=t}jc.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||this._line!==0&&this._point===3)&&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,a=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,a):this._context.moveTo(n,a);break;case 3:this._point=4;default:Di(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Wp(t){return new jc(t)}function Gc(t,e){this._basis=new Ni(t),this._beta=e}Gc.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 a=t[0],i=e[0],s=t[n]-a,o=e[n]-i,l=-1,c;++l<=n;)c=l/n,this._basis.point(this._beta*t[l]+(1-this._beta)*(a+c*s),this._beta*e[l]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Kp=function t(e){function n(a){return e===1?new Ni(a):new Gc(a,e)}return n.beta=function(a){return t(+a)},n}(.85);function Fi(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 io(t,e){this._context=t,this._k=(1-e)/6}io.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:Fi(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&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:Fi(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Zp=function t(e){function n(a){return new io(a,e)}return n.tension=function(a){return t(+a)},n}(0);function so(t,e){this._context=t,this._k=(1-e)/6}so.prototype={areaStart:Ar,areaEnd:Ar,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);break}}},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:Fi(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var kp=function t(e){function n(a){return new so(a,e)}return n.tension=function(a){return t(+a)},n}(0);function oo(t,e){this._context=t,this._k=(1-e)/6}oo.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||this._line!==0&&this._point===3)&&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:Fi(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Jp=function t(e){function n(a){return new oo(a,e)}return n.tension=function(a){return t(+a)},n}(0);const Vc=Math.abs,bn=Math.atan2,jr=Math.cos,Qp=Math.max,lo=Math.min,rr=Math.sin,sa=Math.sqrt,En=1e-12,Na=Math.PI,Bi=Na/2,Ui=2*Na;function _p(t){return t>1?0:t<-1?Na:Math.acos(t)}function Xc(t){return t>=1?Bi:t<=-1?-Bi:Math.asin(t)}function co(t,e,n){var a=t._x1,i=t._y1,s=t._x2,o=t._y2;if(t._l01_a>En){var l=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);a=(a*l-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*l-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>En){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,g=3*t._l23_a*(t._l23_a+t._l12_a);s=(s*u+t._x1*t._l23_2a-e*t._l12_2a)/g,o=(o*u+t._y1*t._l23_2a-n*t._l12_2a)/g}t._context.bezierCurveTo(a,i,s,o,t._x2,t._y2)}function Yc(t,e){this._context=t,this._alpha=e}Yc.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);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+a*a,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:co(this,t,e);break}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 qp=function t(e){function n(a){return e?new Yc(a,e):new io(a,0)}return n.alpha=function(a){return t(+a)},n}(.5);function Hc(t,e){this._context=t,this._alpha=e}Hc.prototype={areaStart:Ar,areaEnd:Ar,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);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+a*a,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:co(this,t,e);break}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 tm=function t(e){function n(a){return e?new Hc(a,e):new so(a,0)}return n.alpha=function(a){return t(+a)},n}(.5);function Wc(t,e){this._context=t,this._alpha=e}Wc.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+a*a,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:co(this,t,e);break}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 em=function t(e){function n(a){return e?new Wc(a,e):new oo(a,0)}return n.alpha=function(a){return t(+a)},n}(.5);function Kc(t){return t<0?-1:1}function Zc(t,e,n){var a=t._x1-t._x0,i=e-t._x1,s=(t._y1-t._y0)/(a||i<0&&-0),o=(n-t._y1)/(i||a<0&&-0),l=(s*i+o*a)/(a+i);return(Kc(s)+Kc(o))*Math.min(Math.abs(s),Math.abs(o),.5*Math.abs(l))||0}function kc(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function uo(t,e,n){var a=t._x0,i=t._y0,s=t._x1,o=t._y1,l=(s-a)/3;t._context.bezierCurveTo(a+l,i+l*e,s-l,o-l*n,s,o)}function zi(t){this._context=t}zi.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:uo(this,this._t0,kc(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(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,uo(this,kc(this,n=Zc(this,t,e)),n);break;default:uo(this,this._t0,n=Zc(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function Jc(t){this._context=new Qc(t)}(Jc.prototype=Object.create(zi.prototype)).point=function(t,e){zi.prototype.point.call(this,e,t)};function Qc(t){this._context=t}Qc.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,a,i,s){this._context.bezierCurveTo(e,t,a,n,s,i)}};function nm(t){return new zi(t)}function rm(t){return new Jc(t)}function _c(t){this._context=t}_c.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]),n===2)this._context.lineTo(t[1],e[1]);else for(var a=qc(t),i=qc(e),s=0,o=1;o<n;++s,++o)this._context.bezierCurveTo(a[0][s],i[0][s],a[1][s],i[1][s],t[o],e[o]);(this._line||this._line!==0&&n===1)&&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)}};function qc(t){var e,n=t.length-1,a,i=new Array(n),s=new Array(n),o=new Array(n);for(i[0]=0,s[0]=2,o[0]=t[0]+2*t[1],e=1;e<n-1;++e)i[e]=1,s[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,s[n-1]=7,o[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)a=i[e]/s[e-1],s[e]-=a,o[e]-=a*o[e-1];for(i[n-1]=o[n-1]/s[n-1],e=n-2;e>=0;--e)i[e]=(o[e]-i[e+1])/s[e];for(s[n-1]=(t[n]+i[n-1])/2,e=0;e<n-1;++e)s[e]=2*t[e+1]-i[e+1];return[i,s]}function am(t){return new _c(t)}function tu(t){this._context=t}tu.prototype={areaStart:Ar,areaEnd:Ar,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))}};function im(t){return new tu(t)}function eu(t){this._context=t}eu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&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);break}}};function fo(t){return new eu(t)}function ji(t,e){this._context=t,this._t=e}ji.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&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&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)}break}}this._x=t,this._y=e}};function sm(t){return new ji(t,.5)}function om(t){return new ji(t,0)}function lm(t){return new ji(t,1)}function cm(t){const e=this;let n;return e.isLineType(t)?n=e.generateGetLinePoints(e.getShapeIndices(e.isLineType)):e.isBarType(t)&&(n=e.generateGetBarPoints(e.getShapeIndices(e.isBarType))),n}var um={getDrawShape(){const t=this,e=t.config.axis_rotated,{hasRadar:n,hasTreemap:a}=t.state,i={type:{},indices:{},pos:{}};if(!a&&["bar","candlestick","line","area"].forEach(s=>{const o=Ln(/^(bubble|scatter)$/.test(s)?"line":s);if(t.hasType(s)||t.hasTypeOf(o)||s==="line"&&(t.hasType("bubble")||t.hasType("scatter"))){const l=t.getShapeIndices(t[`is${o}Type`]),c=t[`generateDraw${o}`];i.indices[s]=l,i.type[s]=c?c.bind(t)(l,!1):void 0}}),!t.hasArcType()||n||a){let s,o;a||(s=n?t.radarCircleX:e?t.circleY:t.circleX,o=n?t.radarCircleY:e?t.circleX:t.circleY),i.pos={xForText:t.generateXYForText(i.indices,!0),yForText:t.generateXYForText(i.indices,!1),cx:(s||function(){}).bind(t),cy:(o||function(){}).bind(t)}}return i},getShapeIndices(t){const e=this,{config:n}=e,a=n.data_xs,i=ln(a),s={};let o=i?{}:0;return i&&Ps(Object.keys(a).map(l=>a[l])).forEach(l=>{o[l]=0,s[l]={}}),e.filterTargetsToShow(e.data.targets.filter(t,e)).forEach(l=>{var c;const u=l.id in a?a[l.id]:"",g=u?s[u]:s;for(let v=0,m;m=n.data_groups[v];v++)if(!(m.indexOf(l.id)<0))for(let S=0,I;I=m[S];S++){if(I in g){g[l.id]=g[I];break}l.id!==I&&u&&(g[I]=(c=g[l.id])!=null?c:o[u])}on(g[l.id])&&(g[l.id]=u?o[u]++:o++,g.__max__=(u?o[u]:o)-1)}),s},getIndices(t,e,n){const a=this,{data_xs:i,bar_indices_removeNull:s}=a.config,{id:o,index:l}=e;if(a.isBarType(o)&&s){const c={};return a.getAllValuesOnIndex(l,!0).forEach((u,g)=>{c[u.id]=g,c.__max__=g}),c}return ln(i)?t[i[o]]:t},getIndicesMax(t){return ln(this.config.data_xs)?Object.keys(t).map(e=>t[e].__max__||0).reduce((e,n)=>e+n):t.__max__},getShapeX(t,e,n){const a=this,{config:i,scale:s}=a,o=n?s.subX:s.zoom||s.x,l=i.bar_overlap,c=i.bar_padding,u=(v,m)=>v+m,g=nr(t)&&(t._$total.length?t._$total.reduce(u)/2:0);return v=>{const m=a.getIndices(e,v,"getShapeX"),S=v.id in m?m[v.id]:0,I=(m.__max__||0)+1;let N=0;if(ln(v.x)){const M=o(v.x,!0);if(g){const P=t[v.id]||t._$width;N=l?M-P/2:M-P+t._$total.slice(0,S+1).reduce(u)-g}else N=M-(he(t)?t:t._$width)*(I/2-(l?1:S))}return t&&N&&I>1&&c&&(S&&(N+=c*S),I>2?N-=(I-1)*c/2:I===2&&(N-=c/2)),N}},getShapeY(t){const e=this,n=e.isStackNormalized();return a=>{let{value:i}=a;return he(a)?i=a:e.isAreaRangeType(a)?i=e.getBaseValue(a,"mid"):n?i=e.getRatio("index",a,!0):e.isBubbleZType(a)?i=e.getBubbleZData(a.value,"y"):e.isBarRangeType(a)&&(i=i[1]),e.getYScaleById(a.id,t)(i)}},getShapeYMin(t){const e=this,n=e.axis.getId(t),a=e.scale[n],[i]=a.domain(),s=e.config[`axis_${n}_inverted`];return!e.isGrouped(t)&&!s&&i>0?i:0},getShapeOffsetData(t){const e=this,n=e.orderTargets(e.filterTargetsToShow(e.data.targets.filter(t,e))),a=e.isStackNormalized(),i=n.map(o=>{let l=o.values;const c={};e.isStepType(o)&&(l=e.convertValuesToStep(l));const u=l.reduce((g,v)=>{const m=Number(v.x);return g[m]=v,c[m]=a?e.getRatio("index",v,!0):v.value,g},{});return{id:o.id,rowValues:l,rowValueMapByXValue:u,values:c}});return{indexMapByTargetId:n.reduce((o,{id:l},c)=>(o[l]=c,o),{}),shapeOffsetTargets:i}},getShapeOffset(t,e,n){const a=this,{shapeOffsetTargets:i,indexMapByTargetId:s}=a.getShapeOffsetData(t),o=a.config.data_groupsZeroAs;return(l,c)=>{const{id:u,value:g,x:v}=l,m=a.getIndices(e,l),S=a.getYScaleById(u,n);if(a.isBarRangeType(l))return S(g[0]);const I=Number(v),N=S(o==="zero"?0:a.getShapeYMin(u));let M=N;return i.filter(P=>P.id!==u&&m[P.id]===m[u]).forEach(P=>{const{id:X,rowValueMapByXValue:H,rowValues:Y,values:_}=P;if(s[X]<s[u]){const K=_[I];let at=Y[c];(!at||Number(at.x)!==I)&&(at=H[I]),(at==null?void 0:at.value)*g>=0&&he(K)&&(g!==0||o==="positive"&&K>0||o==="negative"&&K<0)&&(M+=S(K)-N)}}),M}},circleY(t,e){const n=this,a=t.id;let i;return n.isGrouped(a)&&(i=cm.bind(n)(t)),i?i(t,e)[0][1]:n.getYScaleById(a)(n.getBaseValue(t))},getBarW(t,e,n){var a,i,s,o,l;const c=this,{config:u,org:g,scale:v,state:m}=c,S=c.getMaxDataCount(),I=t==="bar"&&((a=u.data_groups)==null?void 0:a.length),N=`${t}_width`,{k:M}=(s=(i=c.getZoomTransform)==null?void 0:i.call(c))!=null?s:{k:1},P=[(o=u.axis_x_min)!=null?o:g.xDomain[0],(l=u.axis_x_max)!=null?l:g.xDomain[1]].map(c.axis.isTimeSeries()?zn.bind(c):Number);let X=e.tickInterval(S);if(v.zoom&&!c.axis.isCategorized()&&M>1){const _=P.every((K,at)=>K===g.xDomain[at]);X=g.xDomain.map((K,at)=>{const yt=_?K:K-Math.abs(P[at]);return v.zoom(yt)}).reduce((K,at)=>Math.abs(K)+at)/S}const H=_=>{const K=_?u[N][_]:u[N],at=_?K.ratio:u[`${N}_ratio`],yt=_?K.max:u[`${N}_max`],$t=he(K)?K:ve(K)?K.call(c,m.width,n,S):n?X*at/n:0;return yt&&$t>yt?yt:$t};let Y=H();return!I&&nr(u[N])&&(Y={_$width:Y,_$total:[]},c.filterTargetsToShow(c.data.targets).forEach(_=>{u[N][_.id]&&(Y[_.id]=H(_.id),Y._$total.push(Y[_.id]||Y._$width))})),Y},getShapeByIndex(t,e,n){const a=this,{$el:i}=a,s=we(e)?`-${e}`:"";let o=i[t];return o&&!o.empty()?o=o.filter(l=>n?l.id===n:!0).filter(l=>we(e)?l.index===e:!0):o=(n?i.main.selectAll(`.${Fe[`${t}s`]}${a.getTargetSelectorSuffix(n)}`):i.main).selectAll(`.${Fe[t]}${s}`),o},isWithinShape(t,e){var n;const a=this,i=st(t);let s;return a.isTargetToShow(e.id)?(n=a.hasValidPointType)!=null&&n.call(a,t.nodeName)?s=a.isStepType(e)?a.isWithinStep(t,a.getYScaleById(e.id)(a.getBaseValue(e))):a.isWithinCircle(t,a.isBubbleType(e)?a.pointSelectR(e)*1.5:0):t.nodeName==="path"&&(s=i.classed(Fe.bar)?a.isWithinBar(t):!0):s=!1,s},getInterpolate(t){const n=this.getInterpolateType(t);return{basis:Yp,"basis-closed":Hp,"basis-open":Wp,bundle:Kp,cardinal:Zp,"cardinal-closed":kp,"cardinal-open":Jp,"catmull-rom":qp,"catmull-rom-closed":tm,"catmull-rom-open":em,"monotone-x":nm,"monotone-y":rm,natural:am,"linear-closed":im,linear:fo,step:sm,"step-after":lm,"step-before":om}[n]},getInterpolateType(t){const e=this,{config:n}=e,a=n.spline_interpolation_type,i=e.isInterpolationType(a)?a:"cardinal";return e.isSplineType(t)?i:e.isStepType(t)?n.line_step_type:"linear"},isWithinBar(t){const e=Hn(this.state.event,t),n=Vl(t),[a,i]=n,s=Math.min(a.x,i.x),o=Math.min(a.y,i.y),l=this.config.bar_sensitivity,{width:c,height:u}=t.getBBox(),g=s-l,v=s+c+l,m=o+u+l,S=o-l;return g<e[0]&&e[0]<v&&S<e[1]&&e[1]<m}},fm=Object.defineProperty,dm=(t,e,n)=>e in t?fm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Rn=(t,e,n)=>dm(t,typeof e!="symbol"?e+"":e,n);class Gr{constructor(e){Rn(this,"api"),Rn(this,"config"),Rn(this,"cache"),Rn(this,"$el"),Rn(this,"state"),Rn(this,"charts"),Rn(this,"data",{xs:{},targets:[]}),Rn(this,"axis"),Rn(this,"scale",{x:null,y:null,y2:null,subX:null,subY:null,subY2:null,zoom:null}),Rn(this,"org",{xScale:null,xDomain:null}),Rn(this,"color"),Rn(this,"patterns"),Rn(this,"levelColor"),Rn(this,"point"),Rn(this,"brush"),Rn(this,"format",{extraLineClasses:null,xAxisTick:null,dataTime:null,defaultAxisTime:null,axisTime:null});const n=this;n.api=e,n.config=new Nr,n.cache=new fv;const a=new ov;n.$el=a.getStore("element"),n.state=a.getStore("state"),n.$T=n.$T.bind(n)}$T(e,n,a){const{config:i,state:s}=this,o=i.transition_duration,l=i.subchart_show;let c=e;return c&&("tagName"in c&&(c=st(c)),c=(n!==!1&&o||n)&&(!s.zooming||s.dragging)&&!s.resizing&&s.rendered&&!l?c.transition(a).duration(o):c),c}beforeInit(){const e=this;e.callPluginHook("$beforeInit"),_e(e.config.onbeforeinit,e.api)}afterInit(){const e=this;e.callPluginHook("$afterInit"),_e(e.config.onafterinit,e.api)}init(){const e=this,{config:n,state:a,$el:i}=e,s=n.boost_useCssRule;if(dv(e),a.hasRadar=!a.hasAxis&&e.hasType("radar"),a.hasFunnel=!a.hasAxis&&e.hasType("funnel"),a.hasTreemap=!a.hasAxis&&e.hasType("treemap"),a.hasAxis=!e.hasArcType()&&!a.hasFunnel&&!a.hasTreemap,a.datetimeId=`bb-${+new Date*gr()}`,s){const l=vn.createElement("style");l.type="text/css",vn.head.appendChild(l),a.style={rootSelctor:`.${a.datetimeId}`,sheet:l.sheet},i.style=l}const o={element:n.bindto,classname:"bb"};Ne(n.bindto)&&(o.element=n.bindto.element||"#chart",o.classname=n.bindto.classname||o.classname),i.chart=ve(o.element.node)?n.bindto.element:st(o.element||[]),i.chart.empty()&&(i.chart=st(vn.body.appendChild(vn.createElement("div")))),i.chart.html("").classed(o.classname,!0).classed(a.datetimeId,s).style("position","relative"),e.initParams(),e.initToRender()}initToRender(e){const n=this,{config:a,state:i,$el:{chart:s}}=n,o=()=>s.style("display")==="none"||s.style("visibility")==="hidden",l=a.render.lazy||o(),c=We.MutationObserver;l&&c&&a.render.observe!==!1&&!e&&new c((u,g)=>{o()||(g.disconnect(),!i.rendered&&n.initToRender(!0))}).observe(s.node(),{attributes:!0,attributeFilter:["class","style"]}),(!l||e)&&n.convertData(a,u=>{n.initWithData(u),n.afterInit()})}initParams(){var e;const n=this,{config:a,format:i,state:s}=n,o=a.axis_rotated;if(n.color=n.generateColor(),n.levelColor=n.generateLevelColor(),a.padding===!1&&(a.axis_x_show=!1,a.axis_y_show=!1,a.axis_y2_show=!1,a.subchart_show=!1),(n.hasPointType()||(e=n.hasLegendDefsPoint)!=null&&e.call(n))&&(n.point=n.generatePoint()),s.hasAxis){n.initClip(),i.extraLineClasses=n.generateExtraLineClass(),i.dataTime=a.data_xLocaltime?Yo:Ho,i.axisTime=a.axis_x_localtime?rs:as;const l=n.config.zoom_enabled&&n.config.zoom_type==="drag";i.defaultAxisTime=c=>{const{x:u,zoom:g}=n.scale,v=l?g:g&&u.orgDomain().toString()!==g.domain().toString(),m=c.getMilliseconds()&&".%L"||c.getSeconds()&&".:%S"||c.getMinutes()&&"%I:%M"||c.getHours()&&"%I %p"||c.getDate()!==1&&"%b %d"||v&&c.getDate()===1&&"%b'%y"||c.getMonth()&&"%-m/%-d"||"%Y";return i.axisTime(m)(c)}}s.isLegendRight=a.legend_position==="right",s.isLegendInset=a.legend_position==="inset",s.isLegendTop=a.legend_inset_anchor==="top-left"||a.legend_inset_anchor==="top-right",s.isLegendLeft=a.legend_inset_anchor==="top-left"||a.legend_inset_anchor==="bottom-left",s.rotatedPadding.top=n.getResettedPadding(s.rotatedPadding.top),s.rotatedPadding.right=o&&!a.axis_x_show?0:30,s.inputType=tv(a.interaction_inputType_mouse,a.interaction_inputType_touch)}initWithData(e){var n,a,i;const s=this,{config:o,scale:l,state:c,$el:u,org:g}=s,{hasAxis:v,hasFunnel:m,hasTreemap:S}=c,I=o.interaction_enabled,N=s.hasType("polar"),M=o.data_labels_backgroundColors;if(v&&(s.axis=s.getAxisInstance(),o.zoom_enabled&&s.initZoom()),s.data.xs={},s.data.targets=s.convertDataToTargets(e),o.data_filter&&(s.data.targets=s.data.targets.filter(o.data_filter.bind(s.api))),o.data_hide&&s.addHiddenTargetIds(o.data_hide===!0?s.mapToIds(s.data.targets):o.data_hide),o.legend_hide&&s.addHiddenLegendIds(o.legend_hide===!0?s.mapToIds(s.data.targets):o.legend_hide),s.updateSizes(),s.updateScales(!0),v){const{x:H,y:Y,y2:_,subX:K,subY:at,subY2:yt}=l;H&&(H.domain(na(s.getXDomain(s.data.targets),!o.axis_x_inverted)),K.domain(H.domain()),g.xDomain=H.domain()),Y&&(Y.domain(s.getYDomain(s.data.targets,"y")),at.domain(Y.domain())),_&&(_.domain(s.getYDomain(s.data.targets,"y2")),yt&&yt.domain(_.domain()))}if(u.svg=u.chart.append("svg").style("overflow","hidden").style("display","block"),I&&c.inputType){const H=c.inputType==="touch",{onclick:Y,onover:_,onout:K}=o;u.svg.on("click",(Y==null?void 0:Y.bind(s.api))||null).on(H?"touchstart":"mouseenter",(_==null?void 0:_.bind(s.api))||null).on(H?"touchend":"mouseleave",(K==null?void 0:K.bind(s.api))||null)}o.svg_classname&&u.svg.attr("class",o.svg_classname);const P=ve(o.color_tiles)&&s.patterns;(v||P||N||S||M||(n=s.hasLegendDefsPoint)!=null&&n.call(s))&&(u.defs=u.svg.append("defs"),v&&["id","idXAxis","idYAxis","idGrid"].forEach(H=>{s.appendClip(u.defs,c.clip[H])}),s.generateTextBGColorFilter(M),P&&s.patterns.forEach(H=>u.defs.append(()=>H.node))),s.updateSvgSize(),s.bindResize();const X=u.svg.append("g").classed(Se.main,!0).attr("transform",m||S?null:s.getTranslate("main"));if(u.main=X,o.subchart_show&&s.initSubchart(),o.tooltip_show&&s.initTooltip(),o.title_text&&s.initTitle(),!S&&o.legend_show&&s.initLegend(),o.data_empty_label_text&&X.append("text").attr("class",`${In.text} ${Se.empty}`).attr("text-anchor","middle").attr("dominant-baseline","middle"),v&&(o.regions.length&&s.initRegion(),!o.clipPath&&s.axis.init()),X.append("g").classed(Se.chart,!0).attr("clip-path",v?c.clip.path:null),s.callPluginHook("$init"),s.initChartElements(),v&&(I&&((a=s.initEventRect)==null||a.call(s)),s.initGrid(),o.clipPath&&((i=s.axis)==null||i.init())),s.updateTargets(s.data.targets),s.updateDimension(),_e(o.oninit,s.api),s.setBackground(),s.redraw({withTransition:!1,withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransitionForAxis:!1,initializing:!0}),o.data_onmin||o.data_onmax){const H=s.getMinMaxData();_e(o.data_onmin,s.api,H.min),_e(o.data_onmax,s.api,H.max)}o.tooltip_show&&s.initShowTooltip(),c.rendered=!0}initChartElements(){const e=this,{hasAxis:n,hasRadar:a,hasTreemap:i}=e.state,s=[];if(n){const o=["bar","bubble","candlestick","line"];e.config.bar_front&&o.push(o.shift()),o.forEach(l=>{const c=Ln(l);(l==="line"&&e.hasTypeOf(c)||e.hasType(l))&&s.push(c)})}else if(i)s.push("Treemap");else if(e.hasType("funnel"))s.push("Funnel");else{const o=e.hasType("polar");a||s.push("Arc","Pie"),e.hasType("gauge")?s.push("Gauge"):a?s.push("Radar"):o&&s.push("Polar")}s.forEach(o=>{e[`init${o}`]()}),ln(e.config.data_labels)&&!e.hasArcType(null,["radar"])&&e.initText()}setChartElements(){const e=this,{$el:{chart:n,svg:a,defs:i,main:s,tooltip:o,legend:l,title:c,grid:u,needle:g,arcs:v,circle:m,bar:S,candlestick:I,line:N,area:M,text:P}}=e;e.api.$={chart:n,svg:a,defs:i,main:s,tooltip:o,legend:l,title:c,grid:u,arc:v,circles:m,bar:{bars:S},candlestick:I,line:{lines:N,areas:M},needle:g,text:{texts:P}}}setBackground(){const e=this,{config:{background:n},state:a,$el:{svg:i}}=e;if(ln(n)){const s=i.select("g").insert(n.imgUrl?"image":"rect",":first-child");n.imgUrl?s.attr("href",n.imgUrl):n.color&&s.style("fill",n.color).attr("clip-path",a.clip.path),s.attr("class",n.class||null).attr("width","100%").attr("height","100%")}}updateTargets(e){var n;const a=this,{hasAxis:i,hasFunnel:s,hasRadar:o,hasTreemap:l}=a.state,c=g=>a[`updateTargetsFor${g}`](e.filter(a[`is${g}Type`].bind(a)));if(a.updateTargetsForText(e),i)["bar","candlestick","line"].forEach(g=>{const v=Ln(g);(g==="line"&&a.hasTypeOf(v)||a.hasType(g))&&c(v)}),a.updateTargetsForSubchart&&a.updateTargetsForSubchart(e);else if(a.hasArcType(e)){let g="Arc";o?g="Radar":a.hasType("polar")&&(g="Polar"),c(g)}else s?c("Funnel"):l&&c("Treemap");const u=a.hasType("bubble")||a.hasType("scatter");u&&((n=a.updateTargetForCircle)==null||n.call(a)),a.filterTargetsToShowAtInit(u)}filterTargetsToShowAtInit(e=!1){const n=this,{$el:{svg:a},$T:i}=n;let s=`.${Se.target}`;e&&(s+=`, .${$n.chartCircles} > .${$n.circles}`),i(a.selectAll(s).filter(o=>n.isTargetToShow(o.id))).style("opacity",null)}getWithOption(e){const n={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(n).forEach(a=>{let i=n[a];Ge(i)&&(i=n[i]),n[a]=$r(e,`with${a}`,i)}),n}initialOpacity(e){const n=this,{withoutFadeIn:a}=n.state;return n.getBaseValue(e)!==null&&a[e.id]?null:"0"}bindResize(){const e=this,{config:n,state:a}=e,i=pv(n.resize_timer),s=[];s.push(()=>_e(n.onresize,e.api)),n.resize_auto&&s.push(()=>{a.resizing=!0,n.legend_show&&(e.updateSizes(),e.updateLegend()),e.api.flush(!1)}),s.push(()=>{_e(n.onresized,e.api),a.resizing=!1}),s.forEach(o=>i.add(o)),e.resizeFunction=i,We.addEventListener("resize",e.resizeFunction=i)}callPluginHook(e,...n){this.config.plugins.forEach(a=>{e==="$beforeInit"&&(a.$$=this,this.api.plugins.push(a)),a[e](...n)})}}xn(Gr.prototype,[Cv,Pv,wv,Bv,Uv,Vv,Xv,Fv,Yv,Hv,Wv,Dp,um,Np,Fp,zp,jp,Gp,Vp,Xp]);function hm(t){const e=this.config;let n,a,i;const s=()=>{const o=a.shift();if(o&&n&&nr(n)&&o in n)return n=n[o],s();if(!o)return n};Object.keys(e).forEach(o=>{n=t,a=o.split("_"),i=s(),ke(i)&&(e[o]=i)}),this.api&&(this.state.orgConfig=t)}var gm={resize(t){const e=this.internal,{config:n,state:a}=e;a.rendered&&(n.size_width=t?t.width:null,n.size_height=t?t.height:null,a.resizing=!0,this.flush(!1),e.resizeFunction())},flush(t){var e,n;const a=this.internal,{state:i,$el:{zoomResetBtn:s}}=a;i.rendered?(i.resizing?(e=a.brush)==null||e.updateResize():(n=a.axis)==null||n.setOrient(),s==null||s.style("display","none"),a.scale.zoom=null,t?a.redraw({withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withLegend:!0}):a.updateAndRedraw({withLegend:!0,withTransition:!1,withTransitionForTransform:!1}),!i.resizing&&a.brush&&(a.brush.getSelection().call(a.brush.move),a.unselectRect())):a.initToRender(!0)},destroy(){const t=this.internal,{$el:{chart:e,style:n,svg:a}}=t;if(ln(t)){t.callPluginHook("$willDestroy"),t.charts.splice(t.charts.indexOf(this),1),t.unbindAllEvents(),a.select("*").interrupt(),t.resizeFunction.clear(),We.removeEventListener("resize",t.resizeFunction),e.classed("bb",!1).style("position",null).selectChildren().remove(),n&&n.parentNode.removeChild(n),Object.keys(this).forEach(i=>{i==="internal"&&Object.keys(t).forEach(s=>{t[s]=null}),this[i]=null,delete this[i]});for(const i in this)this[i]=()=>{}}return null},config(t,e,n){const a=this.internal,{config:i,state:s}=a,o=t==null?void 0:t.replace(/\./g,"_");let l;return t&&o in i?ke(e)?(i[o]=e,l=e,n&&this.flush()):l=i[o]:(arguments.length===0||_n(t))&&(l=s.orgConfig),l}},vm={color(t){return this.internal.color(t)}};const nu=function(t){const{targets:e}=this.internal.data;if(!on(t)){const n=Be(t)?t:[t];return e.filter(a=>n.some(i=>i===a.id))}return e};xn(nu,{shown:function(t){return this.internal.filterTargetsToShow(this.data(t))},values:function(t,e=!0){let n=null;if(t){const a=this.data(t);Be(a)&&(n=[],a.forEach(i=>{const s=i.values.map(o=>o.value);e?n=n.concat(s):n.push(s)}))}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}});var pm={data:nu};const mm=t=>{var e,n;return(n=(e=We).btoa)==null?void 0:n.call(e,encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(a,i)=>String.fromCharCode(+`0x${i}`)))};function ym(t,e,n){const{width:a,height:i}=e||n,s=new XMLSerializer,o=t.cloneNode(!0),l=_g(Dr(vn.styleSheets)).filter(m=>m.cssText).map(m=>m.cssText);o.setAttribute("xmlns",ie.xhtml),o.style.margin="0",o.style.padding="0",e.preserveFontStyle&&o.querySelectorAll("text").forEach(m=>{m.innerHTML=""});const c=s.serializeToString(o),u=vn.createElement("style");u.appendChild(vn.createTextNode(l.join(`
|
|
48
|
-
`)));const g=s.serializeToString(u),v=`<svg xmlns="${
|
|
47
|
+
</tbody></table>`).replace(/(\r?\n|\t)/g,"").split(/{{(.*)}}/)},setTooltipPosition(t,e){var n,a;const i=this,{config:s,scale:o,state:l,$el:{eventRect:c,tooltip:u,svg:g}}=i,{bindto:v}=s.tooltip_contents,m=s.axis_rotated,S=u==null?void 0:u.datum();if(!v&&S){const I=t!=null?t:JSON.parse(S.current),[N,L]=Hn(l.event,e!=null?e:c==null?void 0:c.node()),C={x:N,y:L};if(l.hasAxis&&o.x&&S&&"x"in S){const _=(K=0,at,mt="y")=>{var St;const dt=o[at?(St=i.axis)==null?void 0:St.getId(at):mt];return dt?dt(K)+(m?l.margin.left:l.margin.top):0};C.xAxis=o.x(S.x)+(s.tooltip_position?m?l.margin.top:l.margin.left:0),I.length===1?C.yAxis=_(I[0].value,I[0].id):C.yAxis=_}const{width:V=0,height:H=0}=S,Y=(a=(n=s.tooltip_position)==null?void 0:n.bind(i.api)(I,V,H,c==null?void 0:c.node(),C))!=null?a:Ls(g)?i.getTooltipPositionViewBox.bind(i)(V,H,C):i.getTooltipPosition.bind(i)(V,H,C);["top","left"].forEach(_=>{const K=Y[_];u.style(_,`${K}px`),_==="left"&&!S.xPosInPercent&&(S.xPosInPercent=K/l.current.width*100)})}},getTooltipPositionViewBox(t,e,n){var a,i;const s=this,{$el:{eventRect:o,main:l},config:c,state:u}=s,g=c.axis_rotated,v=s.hasArcType(void 0,["radar"])||u.hasFunnel||u.hasTreemap,m=(i=(a=u.hasRadar?l:o)==null?void 0:a.node())!=null?i:u.event.target,S=38;let{x:I,y:N}=n;u.hasAxis&&(I=g?I:n.xAxis,N=g?n.xAxis:N);const L=Ps(m,I,N,!1);let C=L.y,V=L.x+S;v&&(C+=e,V-=S);const H=(v?l.node():m).getBoundingClientRect();return V+t>H.right&&(V=H.right-t-S),C+e>H.bottom&&(C-=e+S),{top:C,left:V}},getTooltipPosition(t,e,n){var a,i,s;const o=this,{config:l,scale:c,state:u}=o,{width:g,height:v,current:m,hasFunnel:S,hasRadar:I,hasTreemap:N,isLegendRight:L,inputType:C}=u,V=o.hasType("gauge")&&!l.gauge_fullCircle,H=l.axis_rotated,Y=o.hasArcType(),_=o.getSvgLeft(!0);let K=_+m.width-o.getCurrentPaddingByDirection("right");const at=20;let{x:mt,y:St}=n;if(I)mt+=mt>=g/2?15:-(t+15),St+=15;else if(Y){if(C!=="touch"){let Gt=(i=(a=o.getTitlePadding)==null?void 0:a.call(o))!=null?i:0;Gt&&V&&((s=l.arc_rangeText_values)!=null&&s.length)&&(Gt+=10),mt+=(g-(L?o.getLegendWidth():0))/2,St+=(V?v:v/2+e)+Gt}}else if(S||N)St+=e;else{const lt={top:o.getCurrentPaddingByDirection("top",!0),left:o.getCurrentPaddingByDirection("left",!0)};H?(mt+=_+lt.left+at,St=lt.top+n.xAxis+at,K-=_):(mt=_+lt.left+at+(c.zoom?mt:n.xAxis),St+=lt.top-5)}if(mt+t+15>K&&(mt-=t+(S||N||Y?0:H?at*2:38)),St+e>m.height){const lt=N?e+10:30;St-=V?e*1.5:e+lt}const dt={top:St,left:mt};return Object.keys(dt).forEach(lt=>{dt[lt]<0&&(dt[lt]=0)}),dt},showTooltip(t,e){const n=this,{config:a,$el:{tooltip:i}}=n,s=t.filter(c=>c&&Le(n.getBaseValue(c)));if(!i||s.length===0||!a.tooltip_show)return;let o=i.datum();const l=JSON.stringify(t);if(!o||o.current!==l){const{index:c,x:u}=t.concat().sort()[0];qe(a.tooltip_onshow,n.api,t),i.html(n.getTooltipHTML(t,n.axis?n.axis.getXAxisTickFormat():n.categoryName.bind(n),n.getDefaultValueFormat(),n.color)).style("display",null).style("visibility",null).datum(o={index:c,x:u,current:l,width:i.property("offsetWidth"),height:i.property("offsetHeight")}),qe(a.tooltip_onshown,n.api,t),n._handleLinkedCharts(!0,c)}n.setTooltipPosition(s,e)},bindTooltipResizePos(){const t=this,{resizeFunction:e,state:n,$el:{tooltip:a}}=t;e.add(()=>{if(a.style("display")==="block"){const{current:i}=n,{width:s,xPosInPercent:o}=a.datum();let l=i.width/100*o;const c=i.width-(l+s);c<0&&(l+=c),a.style("left",`${l}px`)}})},hideTooltip(t){var e;const n=this,{api:a,config:i,$el:{tooltip:s}}=n;if(s&&s.style("display")!=="none"&&(!i.tooltip_doNotHide||t)){const o=JSON.parse((e=s.datum().current)!=null?e:{});qe(i.tooltip_onhide,a,o),s.style("display","none").style("visibility","hidden").datum(null),qe(i.tooltip_onhidden,a,o)}},_handleLinkedCharts(t,e){const n=this,{charts:a,config:i,state:{event:s}}=n;if(s!=null&&s.isTrusted&&i.tooltip_linked&&a.length>1){const o=i.tooltip_linked_name;a.filter(l=>l!==n.api).forEach(l=>{const{config:c,$el:u}=l.internal,g=c.tooltip_linked,v=c.tooltip_linked_name,m=vn.body.contains(u.chart.node());if(g&&o===v&&m){const S=u.tooltip.data()[0],I=e!==(S==null?void 0:S.index);try{l.tooltip[t&&I?"show":"hide"]({index:e})}catch(N){}}})}},updateTooltipOnRedraw(t,e){var n;const a=this,{config:i,$el:{eventRect:s,svg:o,tooltip:l},state:{event:c,hasAxis:u,hasRadar:g,hasTreemap:v}}=a;if((l==null?void 0:l.style("display"))==="block"&&c){const m=t!=null?t:(n=g?o:s)==null?void 0:n.node();if(u||g)if(a.isMultipleX())a.selectRectForMultipleXs(m,!1);else{const S=e!=null?e:a.getDataIndexFromEvent(c);e===-1?a.api.tooltip.hide():(a.selectRectForSingle(m,S),a.setExpand(S,null,!0))}else{const{clientX:S,clientY:I}=c;setTimeout(()=>{let N=vn.elementFromPoint(S,I);const L=st(N).datum();if(L){const C=a.hasArcType()?a.convertToArcData(a.updateAngle(L)):L==null?void 0:L.data;v&&(N=o.node()),C&&a.showTooltip([C],N)}else a.api.tooltip.hide()},i.transition_duration)}}}},Hp={getTranslate(t,e=0){var n;const a=this,{config:i,state:s}=a,o=i.axis_rotated;let l=0,c,u;if(e&&/^(x|y2?)$/.test(t)&&(l=a.getAxisSize(t)*e),t==="main")c=Ti(s.margin.left),u=Ti(s.margin.top);else if(t==="context")c=Ti(s.margin2.left),u=Ti(s.margin2.top);else if(t==="legend")c=s.margin3.left,u=s.margin3.top;else if(t==="x")c=o?-l:0,u=o?0:s.height+l;else if(t==="y")c=o?0:-l,u=o?s.height+l:0;else if(t==="y2")c=o?0:s.width+l,u=o?-l-1:0;else if(t==="subX")c=0,u=o?0:s.height2;else if(t==="arc")c=s.arcWidth/2,u=s.arcHeight/2,(n=i.arc_rangeText_values)!=null&&n.length&&(u+=5+(a.hasType("gauge")&&i.title_text?10:0));else if(t==="polar")c=s.arcWidth/2,u=s.arcHeight/2;else if(t==="radar"){const[g,v]=a.getRadarSize();c=s.width/2-g,u=s.height/2-v}return`translate(${c}, ${u})`},transformMain(t,e){const n=this,{$el:{main:a},$T:i}=n,s=e!=null&&e.axisX?e.axisX:i(a.select(`.${dn.axisX}`),t),o=e!=null&&e.axisY?e.axisY:i(a.select(`.${dn.axisY}`),t),l=e!=null&&e.axisY2?e.axisY2:i(a.select(`.${dn.axisY2}`),t);i(a,t).attr("transform",n.getTranslate("main")),s.attr("transform",n.getTranslate("x")),o.attr("transform",n.getTranslate("y")),l.attr("transform",n.getTranslate("y2")),a.select(`.${je.chartArcs}`).attr("transform",n.getTranslate("arc"))},transformAll(t,e){const n=this,{config:a,state:{hasAxis:i,hasFunnel:s,hasTreemap:o},$el:l}=n;!s&&!o&&n.transformMain(t,e),i&&a.subchart_show&&n.transformContext(t,e),l.legend&&n.transformLegend(t)}},Wp={isValidChartType(t){return!!(t&&Object.values(se).indexOf(t)>-1)},setTargetType(t,e){const n=this,{config:a,state:{withoutFadeIn:i}}=n;n.mapToTargetIds(t).forEach(s=>{i[s]=e===a.data_types[s],a.data_types[s]=e}),t||(a.data_type=e)},updateTypesElements(){const t=this,{state:{current:e}}=t;Object.keys(se).forEach(n=>{const a=se[n],i=t.hasType(a,null,!0),s=e.types.indexOf(a);s===-1&&i?e.types.push(a):s>-1&&!i&&e.types.splice(s,1)}),t.setChartElements()},hasType(t,e,n=!1){var a;const i=this,{config:s,state:{current:o}}=i,l=s.data_types,c=e||i.data.targets;let u=!1;return!n&&((a=o.types)==null?void 0:a.indexOf(t))>-1?u=!0:c!=null&&c.length?c.forEach(g=>{const v=l[g.id];(v===t||!v&&t==="line")&&(u=!0)}):Object.keys(l).length?Object.keys(l).forEach(g=>{l[g]===t&&(u=!0)}):u=s.data_type===t,u},hasTypeOf(t,e,n=[]){return t in Sr?!Sr[t].filter(a=>n.indexOf(a)===-1).every(a=>!this.hasType(a,e)):!1},isTypeOf(t,e){var n;const a=Xe(t)?t:t.id,i=this.config&&(((n=this.config.data_types)==null?void 0:n[a])||this.config.data_type);return ze(e)?e.indexOf(i)>=0:i===e},hasPointType(){const t=this;return t.hasTypeOf("Line")||t.hasType("bubble")||t.hasType("scatter")},hasArcType(t,e){return this.hasTypeOf("Arc",t,e)},hasMultiArcGauge(){return this.hasType("gauge")&&this.config.gauge_type==="multi"},isLineType(t){const e=Xe(t)?t:t.id;return!this.config.data_types[e]||this.isTypeOf(e,Sr.Line)},isStepType(t){return this.isTypeOf(t,Sr.Step)},isSplineType(t){return this.isTypeOf(t,Sr.Spline)},isAreaType(t){return this.isTypeOf(t,Sr.Area)},isAreaRangeType(t){return this.isTypeOf(t,Sr.AreaRange)},isBarType(t){return this.isTypeOf(t,"bar")},isBubbleType(t){return this.isTypeOf(t,"bubble")},isCandlestickType(t){return this.isTypeOf(t,"candlestick")},isScatterType(t){return this.isTypeOf(t,"scatter")},isTreemapType(t){return this.isTypeOf(t,"treemap")},isPieType(t){return this.isTypeOf(t,"pie")},isFunnelType(t){return this.isTypeOf(t,"funnel")},isGaugeType(t){return this.isTypeOf(t,"gauge")},isDonutType(t){return this.isTypeOf(t,"donut")},isPolarType(t){return this.isTypeOf(t,"polar")},isRadarType(t){return this.isTypeOf(t,"radar")},isArcType(t){return this.isPieType(t)||this.isDonutType(t)||this.isGaugeType(t)||this.isPolarType(t)||this.isRadarType(t)},isCirclePoint(t){const{config:e}=this,n=e.point_pattern;let a=!1;return(t==null?void 0:t.tagName)==="circle"?a=!0:a=e.point_type==="circle"&&(!n||ze(n)&&n.length===0),a},lineData(t){return this.isLineType(t)?[t]:[]},arcData(t){return this.isArcType(t.data)?[t]:[]},labelishData(t){return this.isBarType(t)||this.isLineType(t)||this.isScatterType(t)||this.isBubbleType(t)||this.isCandlestickType(t)||this.isFunnelType(t)||this.isRadarType(t)||this.isTreemapType(t)?t.values.filter(e=>ge(e.value)||!!e.value):[]},barLineBubbleData(t){return this.isBarType(t)||this.isLineType(t)||this.isBubbleType(t)?t.values:[]},isInterpolationType(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}};function Di(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 Ni(t){this._context=t}Ni.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:Di(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&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:Di(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Kp(t){return new Ni(t)}function Ar(){}function Gc(t){this._context=t}Gc.prototype={areaStart:Ar,areaEnd:Ar,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);break}}},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:Di(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Zp(t){return new Gc(t)}function Vc(t){this._context=t}Vc.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||this._line!==0&&this._point===3)&&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,a=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,a):this._context.moveTo(n,a);break;case 3:this._point=4;default:Di(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function kp(t){return new Vc(t)}function Xc(t,e){this._basis=new Ni(t),this._beta=e}Xc.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 a=t[0],i=e[0],s=t[n]-a,o=e[n]-i,l=-1,c;++l<=n;)c=l/n,this._basis.point(this._beta*t[l]+(1-this._beta)*(a+c*s),this._beta*e[l]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Jp=function t(e){function n(a){return e===1?new Ni(a):new Xc(a,e)}return n.beta=function(a){return t(+a)},n}(.85);function Fi(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 oo(t,e){this._context=t,this._k=(1-e)/6}oo.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:Fi(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&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:Fi(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Qp=function t(e){function n(a){return new oo(a,e)}return n.tension=function(a){return t(+a)},n}(0);function lo(t,e){this._context=t,this._k=(1-e)/6}lo.prototype={areaStart:Ar,areaEnd:Ar,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);break}}},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:Fi(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var _p=function t(e){function n(a){return new lo(a,e)}return n.tension=function(a){return t(+a)},n}(0);function co(t,e){this._context=t,this._k=(1-e)/6}co.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||this._line!==0&&this._point===3)&&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:Fi(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var qp=function t(e){function n(a){return new co(a,e)}return n.tension=function(a){return t(+a)},n}(0);const Yc=Math.abs,bn=Math.atan2,jr=Math.cos,tm=Math.max,uo=Math.min,rr=Math.sin,sa=Math.sqrt,En=1e-12,Na=Math.PI,Bi=Na/2,Ui=2*Na;function em(t){return t>1?0:t<-1?Na:Math.acos(t)}function Hc(t){return t>=1?Bi:t<=-1?-Bi:Math.asin(t)}function fo(t,e,n){var a=t._x1,i=t._y1,s=t._x2,o=t._y2;if(t._l01_a>En){var l=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);a=(a*l-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*l-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>En){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,g=3*t._l23_a*(t._l23_a+t._l12_a);s=(s*u+t._x1*t._l23_2a-e*t._l12_2a)/g,o=(o*u+t._y1*t._l23_2a-n*t._l12_2a)/g}t._context.bezierCurveTo(a,i,s,o,t._x2,t._y2)}function Wc(t,e){this._context=t,this._alpha=e}Wc.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);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+a*a,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:fo(this,t,e);break}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 nm=function t(e){function n(a){return e?new Wc(a,e):new oo(a,0)}return n.alpha=function(a){return t(+a)},n}(.5);function Kc(t,e){this._context=t,this._alpha=e}Kc.prototype={areaStart:Ar,areaEnd:Ar,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);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+a*a,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:fo(this,t,e);break}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 rm=function t(e){function n(a){return e?new Kc(a,e):new lo(a,0)}return n.alpha=function(a){return t(+a)},n}(.5);function Zc(t,e){this._context=t,this._alpha=e}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._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+a*a,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:fo(this,t,e);break}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 am=function t(e){function n(a){return e?new Zc(a,e):new co(a,0)}return n.alpha=function(a){return t(+a)},n}(.5);function kc(t){return t<0?-1:1}function Jc(t,e,n){var a=t._x1-t._x0,i=e-t._x1,s=(t._y1-t._y0)/(a||i<0&&-0),o=(n-t._y1)/(i||a<0&&-0),l=(s*i+o*a)/(a+i);return(kc(s)+kc(o))*Math.min(Math.abs(s),Math.abs(o),.5*Math.abs(l))||0}function Qc(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function ho(t,e,n){var a=t._x0,i=t._y0,s=t._x1,o=t._y1,l=(s-a)/3;t._context.bezierCurveTo(a+l,i+l*e,s-l,o-l*n,s,o)}function zi(t){this._context=t}zi.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:ho(this,this._t0,Qc(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(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,ho(this,Qc(this,n=Jc(this,t,e)),n);break;default:ho(this,this._t0,n=Jc(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function _c(t){this._context=new qc(t)}(_c.prototype=Object.create(zi.prototype)).point=function(t,e){zi.prototype.point.call(this,e,t)};function qc(t){this._context=t}qc.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,a,i,s){this._context.bezierCurveTo(e,t,a,n,s,i)}};function im(t){return new zi(t)}function sm(t){return new _c(t)}function tu(t){this._context=t}tu.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]),n===2)this._context.lineTo(t[1],e[1]);else for(var a=eu(t),i=eu(e),s=0,o=1;o<n;++s,++o)this._context.bezierCurveTo(a[0][s],i[0][s],a[1][s],i[1][s],t[o],e[o]);(this._line||this._line!==0&&n===1)&&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)}};function eu(t){var e,n=t.length-1,a,i=new Array(n),s=new Array(n),o=new Array(n);for(i[0]=0,s[0]=2,o[0]=t[0]+2*t[1],e=1;e<n-1;++e)i[e]=1,s[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,s[n-1]=7,o[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)a=i[e]/s[e-1],s[e]-=a,o[e]-=a*o[e-1];for(i[n-1]=o[n-1]/s[n-1],e=n-2;e>=0;--e)i[e]=(o[e]-i[e+1])/s[e];for(s[n-1]=(t[n]+i[n-1])/2,e=0;e<n-1;++e)s[e]=2*t[e+1]-i[e+1];return[i,s]}function om(t){return new tu(t)}function nu(t){this._context=t}nu.prototype={areaStart:Ar,areaEnd:Ar,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))}};function lm(t){return new nu(t)}function ru(t){this._context=t}ru.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&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);break}}};function go(t){return new ru(t)}function ji(t,e){this._context=t,this._t=e}ji.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&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&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)}break}}this._x=t,this._y=e}};function cm(t){return new ji(t,.5)}function um(t){return new ji(t,0)}function fm(t){return new ji(t,1)}function dm(t){const e=this;let n;return e.isLineType(t)?n=e.generateGetLinePoints(e.getShapeIndices(e.isLineType)):e.isBarType(t)&&(n=e.generateGetBarPoints(e.getShapeIndices(e.isBarType))),n}var hm={getDrawShape(){const t=this,e=t.config.axis_rotated,{hasRadar:n,hasTreemap:a}=t.state,i={type:{},indices:{},pos:{}};if(!a&&["bar","candlestick","line","area"].forEach(s=>{const o=Ln(/^(bubble|scatter)$/.test(s)?"line":s);if(t.hasType(s)||t.hasTypeOf(o)||s==="line"&&(t.hasType("bubble")||t.hasType("scatter"))){const l=t.getShapeIndices(t[`is${o}Type`]),c=t[`generateDraw${o}`];i.indices[s]=l,i.type[s]=c?c.bind(t)(l,!1):void 0}}),!t.hasArcType()||n||a){let s,o;a||(s=n?t.radarCircleX:e?t.circleY:t.circleX,o=n?t.radarCircleY:e?t.circleX:t.circleY),i.pos={xForText:t.generateXYForText(i.indices,!0),yForText:t.generateXYForText(i.indices,!1),cx:(s||function(){}).bind(t),cy:(o||function(){}).bind(t)}}return i},getShapeIndices(t){const e=this,{config:n}=e,a=n.data_xs,i=cn(a),s={};let o=i?{}:0;return i&&ws(Object.keys(a).map(l=>a[l])).forEach(l=>{o[l]=0,s[l]={}}),e.filterTargetsToShow(e.data.targets.filter(t,e)).forEach(l=>{var c;const u=l.id in a?a[l.id]:"",g=u?s[u]:s;for(let v=0,m;m=n.data_groups[v];v++)if(!(m.indexOf(l.id)<0))for(let S=0,I;I=m[S];S++){if(I in g){g[l.id]=g[I];break}l.id!==I&&u&&(g[I]=(c=g[l.id])!=null?c:o[u])}ln(g[l.id])&&(g[l.id]=u?o[u]++:o++,g.__max__=(u?o[u]:o)-1)}),s},getIndices(t,e,n){const a=this,{data_xs:i,bar_indices_removeNull:s}=a.config,{id:o,index:l}=e;if(a.isBarType(o)&&s){const c={};return a.getAllValuesOnIndex(l,!0).forEach((u,g)=>{c[u.id]=g,c.__max__=g}),c}return cn(i)?t[i[o]]:t},getIndicesMax(t){return cn(this.config.data_xs)?Object.keys(t).map(e=>t[e].__max__||0).reduce((e,n)=>e+n):t.__max__},getShapeX(t,e,n){const a=this,{config:i,scale:s}=a,o=n?s.subX:s.zoom||s.x,l=i.bar_overlap,c=i.bar_padding,u=(v,m)=>v+m,g=nr(t)&&(t._$total.length?t._$total.reduce(u)/2:0);return v=>{const m=a.getIndices(e,v,"getShapeX"),S=v.id in m?m[v.id]:0,I=(m.__max__||0)+1;let N=0;if(cn(v.x)){const L=o(v.x,!0);if(g){const C=t[v.id]||t._$width;N=l?L-C/2:L-C+t._$total.slice(0,S+1).reduce(u)-g}else N=L-(ge(t)?t:t._$width)*(I/2-(l?1:S))}return t&&N&&I>1&&c&&(S&&(N+=c*S),I>2?N-=(I-1)*c/2:I===2&&(N-=c/2)),N}},getShapeY(t){const e=this,n=e.isStackNormalized();return a=>{let{value:i}=a;return ge(a)?i=a:e.isAreaRangeType(a)?i=e.getBaseValue(a,"mid"):n?i=e.getRatio("index",a,!0):e.isBubbleZType(a)?i=e.getBubbleZData(a.value,"y"):e.isBarRangeType(a)&&(i=i[1]),e.getYScaleById(a.id,t)(i)}},getShapeYMin(t){const e=this,n=e.axis.getId(t),a=e.scale[n],[i]=a.domain(),s=e.config[`axis_${n}_inverted`];return!e.isGrouped(t)&&!s&&i>0?i:0},getShapeOffsetData(t){const e=this,n=e.orderTargets(e.filterTargetsToShow(e.data.targets.filter(t,e))),a=e.isStackNormalized(),i=n.map(o=>{let l=o.values;const c={};e.isStepType(o)&&(l=e.convertValuesToStep(l));const u=l.reduce((g,v)=>{const m=Number(v.x);return g[m]=v,c[m]=a?e.getRatio("index",v,!0):v.value,g},{});return{id:o.id,rowValues:l,rowValueMapByXValue:u,values:c}});return{indexMapByTargetId:n.reduce((o,{id:l},c)=>(o[l]=c,o),{}),shapeOffsetTargets:i}},getShapeOffset(t,e,n){const a=this,{shapeOffsetTargets:i,indexMapByTargetId:s}=a.getShapeOffsetData(t),o=a.config.data_groupsZeroAs;return(l,c)=>{const{id:u,value:g,x:v}=l,m=a.getIndices(e,l),S=a.getYScaleById(u,n);if(a.isBarRangeType(l))return S(g[0]);const I=Number(v),N=S(o==="zero"?0:a.getShapeYMin(u));let L=N;return i.filter(C=>C.id!==u&&m[C.id]===m[u]).forEach(C=>{const{id:V,rowValueMapByXValue:H,rowValues:Y,values:_}=C;if(s[V]<s[u]){const K=_[I];let at=Y[c];(!at||Number(at.x)!==I)&&(at=H[I]),(at==null?void 0:at.value)*g>=0&&ge(K)&&(g!==0||o==="positive"&&K>0||o==="negative"&&K<0)&&(L+=S(K)-N)}}),L}},circleY(t,e){const n=this,a=t.id;let i;return n.isGrouped(a)&&(i=dm.bind(n)(t)),i?i(t,e)[0][1]:n.getYScaleById(a)(n.getBaseValue(t))},getBarW(t,e,n){var a,i,s,o,l;const c=this,{config:u,org:g,scale:v,state:m}=c,S=c.getMaxDataCount(),I=t==="bar"&&((a=u.data_groups)==null?void 0:a.length),N=`${t}_width`,{k:L}=(s=(i=c.getZoomTransform)==null?void 0:i.call(c))!=null?s:{k:1},C=[(o=u.axis_x_min)!=null?o:g.xDomain[0],(l=u.axis_x_max)!=null?l:g.xDomain[1]].map(c.axis.isTimeSeries()?zn.bind(c):Number);let V=e.tickInterval(S);if(v.zoom&&!c.axis.isCategorized()&&L>1){const _=C.every((K,at)=>K===g.xDomain[at]);V=g.xDomain.map((K,at)=>{const mt=_?K:K-Math.abs(C[at]);return v.zoom(mt)}).reduce((K,at)=>Math.abs(K)+at)/S}const H=_=>{const K=_?u[N][_]:u[N],at=_?K.ratio:u[`${N}_ratio`],mt=_?K.max:u[`${N}_max`],St=ge(K)?K:he(K)?K.call(c,m.width,n,S):n?V*at/n:0;return mt&&St>mt?mt:St};let Y=H();return!I&&nr(u[N])&&(Y={_$width:Y,_$total:[]},c.filterTargetsToShow(c.data.targets).forEach(_=>{u[N][_.id]&&(Y[_.id]=H(_.id),Y._$total.push(Y[_.id]||Y._$width))})),Y},getShapeByIndex(t,e,n){const a=this,{$el:i}=a,s=Le(e)?`-${e}`:"";let o=i[t];return o&&!o.empty()?o=o.filter(l=>n?l.id===n:!0).filter(l=>Le(e)?l.index===e:!0):o=(n?i.main.selectAll(`.${Ue[`${t}s`]}${a.getTargetSelectorSuffix(n)}`):i.main).selectAll(`.${Ue[t]}${s}`),o},isWithinShape(t,e){var n;const a=this,i=st(t);let s;return a.isTargetToShow(e.id)?(n=a.hasValidPointType)!=null&&n.call(a,t.nodeName)?s=a.isStepType(e)?a.isWithinStep(t,a.getYScaleById(e.id)(a.getBaseValue(e))):a.isWithinCircle(t,a.isBubbleType(e)?a.pointSelectR(e)*1.5:0):t.nodeName==="path"&&(s=i.classed(Ue.bar)?a.isWithinBar(t):!0):s=!1,s},getInterpolate(t){const n=this.getInterpolateType(t);return{basis:Kp,"basis-closed":Zp,"basis-open":kp,bundle:Jp,cardinal:Qp,"cardinal-closed":_p,"cardinal-open":qp,"catmull-rom":nm,"catmull-rom-closed":rm,"catmull-rom-open":am,"monotone-x":im,"monotone-y":sm,natural:om,"linear-closed":lm,linear:go,step:cm,"step-after":fm,"step-before":um}[n]},getInterpolateType(t){const e=this,{config:n}=e,a=n.spline_interpolation_type,i=e.isInterpolationType(a)?a:"cardinal";return e.isSplineType(t)?i:e.isStepType(t)?n.line_step_type:"linear"},isWithinBar(t){const e=Hn(this.state.event,t),n=Yl(t),[a,i]=n,s=Math.min(a.x,i.x),o=Math.min(a.y,i.y),l=this.config.bar_sensitivity,{width:c,height:u}=t.getBBox(),g=s-l,v=s+c+l,m=o+u+l,S=o-l;return g<e[0]&&e[0]<v&&S<e[1]&&e[1]<m}},gm=Object.defineProperty,vm=(t,e,n)=>e in t?gm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Rn=(t,e,n)=>vm(t,typeof e!="symbol"?e+"":e,n);class Gr{constructor(e){Rn(this,"api"),Rn(this,"config"),Rn(this,"cache"),Rn(this,"$el"),Rn(this,"state"),Rn(this,"charts"),Rn(this,"data",{xs:{},targets:[]}),Rn(this,"axis"),Rn(this,"scale",{x:null,y:null,y2:null,subX:null,subY:null,subY2:null,zoom:null}),Rn(this,"org",{xScale:null,xDomain:null}),Rn(this,"color"),Rn(this,"patterns"),Rn(this,"levelColor"),Rn(this,"point"),Rn(this,"brush"),Rn(this,"format",{extraLineClasses:null,xAxisTick:null,dataTime:null,defaultAxisTime:null,axisTime:null});const n=this;n.api=e,n.config=new Nr,n.cache=new gv;const a=new uv;n.$el=a.getStore("element"),n.state=a.getStore("state"),n.$T=n.$T.bind(n)}$T(e,n,a){const{config:i,state:s}=this,o=i.transition_duration,l=i.subchart_show;let c=e;return c&&("tagName"in c&&(c=st(c)),c=(n!==!1&&o||n)&&(!s.zooming||s.dragging)&&!s.resizing&&s.rendered&&!l?c.transition(a).duration(o):c),c}beforeInit(){const e=this;e.callPluginHook("$beforeInit"),qe(e.config.onbeforeinit,e.api)}afterInit(){const e=this;e.callPluginHook("$afterInit"),qe(e.config.onafterinit,e.api)}init(){const e=this,{config:n,state:a,$el:i}=e,s=n.boost_useCssRule;if(vv(e),a.hasRadar=!a.hasAxis&&e.hasType("radar"),a.hasFunnel=!a.hasAxis&&e.hasType("funnel"),a.hasTreemap=!a.hasAxis&&e.hasType("treemap"),a.hasAxis=!e.hasArcType()&&!a.hasFunnel&&!a.hasTreemap,a.datetimeId=`bb-${+new Date*gr()}`,s){const l=vn.createElement("style");l.type="text/css",vn.head.appendChild(l),a.style={rootSelctor:`.${a.datetimeId}`,sheet:l.sheet},i.style=l}const o={element:n.bindto,classname:"bb"};Be(n.bindto)&&(o.element=n.bindto.element||"#chart",o.classname=n.bindto.classname||o.classname),i.chart=he(o.element.node)?n.bindto.element:st(o.element||[]),i.chart.empty()&&(i.chart=st(vn.body.appendChild(vn.createElement("div")))),i.chart.html("").classed(o.classname,!0).classed(a.datetimeId,s).style("position","relative"),e.initParams(),e.initToRender()}initToRender(e){const n=this,{config:a,state:i,$el:{chart:s}}=n,o=()=>nv(s,{display:"none",visibility:"hidden"}),l=a.render.lazy===!1?!1:a.render.lazy||o(),c=Ke.MutationObserver;l&&c&&a.render.observe!==!1&&!e&&new c((u,g)=>{o()||(g.disconnect(),!i.rendered&&n.initToRender(!0))}).observe(s.node(),{attributes:!0,attributeFilter:["class","style"]}),(!l||e)&&n.convertData(a,u=>{n.initWithData(u),n.afterInit()})}initParams(){var e;const n=this,{config:a,format:i,state:s}=n,o=a.axis_rotated;if(n.color=n.generateColor(),n.levelColor=n.generateLevelColor(),a.padding===!1&&(a.axis_x_show=!1,a.axis_y_show=!1,a.axis_y2_show=!1,a.subchart_show=!1),(n.hasPointType()||(e=n.hasLegendDefsPoint)!=null&&e.call(n))&&(n.point=n.generatePoint()),s.hasAxis){n.initClip(),i.extraLineClasses=n.generateExtraLineClass(),i.dataTime=a.data_xLocaltime?Wo:Ko,i.axisTime=a.axis_x_localtime?rs:as;const l=n.config.zoom_enabled&&n.config.zoom_type==="drag";i.defaultAxisTime=c=>{const{x:u,zoom:g}=n.scale,v=l?g:g&&u.orgDomain().toString()!==g.domain().toString(),m=c.getMilliseconds()&&".%L"||c.getSeconds()&&".:%S"||c.getMinutes()&&"%I:%M"||c.getHours()&&"%I %p"||c.getDate()!==1&&"%b %d"||v&&c.getDate()===1&&"%b'%y"||c.getMonth()&&"%-m/%-d"||"%Y";return i.axisTime(m)(c)}}s.isLegendRight=a.legend_position==="right",s.isLegendInset=a.legend_position==="inset",s.isLegendTop=a.legend_inset_anchor==="top-left"||a.legend_inset_anchor==="top-right",s.isLegendLeft=a.legend_inset_anchor==="top-left"||a.legend_inset_anchor==="bottom-left",s.rotatedPadding.top=n.getResettedPadding(s.rotatedPadding.top),s.rotatedPadding.right=o&&!a.axis_x_show?0:30,s.inputType=rv(a.interaction_inputType_mouse,a.interaction_inputType_touch)}initWithData(e){var n,a,i;const s=this,{config:o,scale:l,state:c,$el:u,org:g}=s,{hasAxis:v,hasFunnel:m,hasTreemap:S}=c,I=o.interaction_enabled,N=s.hasType("polar"),L=o.data_labels_backgroundColors;if(v&&(s.axis=s.getAxisInstance(),o.zoom_enabled&&s.initZoom()),s.data.xs={},s.data.targets=s.convertDataToTargets(e),o.data_filter&&(s.data.targets=s.data.targets.filter(o.data_filter.bind(s.api))),o.data_hide&&s.addHiddenTargetIds(o.data_hide===!0?s.mapToIds(s.data.targets):o.data_hide),o.legend_hide&&s.addHiddenLegendIds(o.legend_hide===!0?s.mapToIds(s.data.targets):o.legend_hide),s.updateSizes(),s.updateScales(!0),v){const{x:H,y:Y,y2:_,subX:K,subY:at,subY2:mt}=l;H&&(H.domain(na(s.getXDomain(s.data.targets),!o.axis_x_inverted)),K.domain(H.domain()),g.xDomain=H.domain()),Y&&(Y.domain(s.getYDomain(s.data.targets,"y")),at.domain(Y.domain())),_&&(_.domain(s.getYDomain(s.data.targets,"y2")),mt&&mt.domain(_.domain()))}if(u.svg=u.chart.append("svg").style("overflow","hidden").style("display","block"),I&&c.inputType){const H=c.inputType==="touch",{onclick:Y,onover:_,onout:K}=o;u.svg.on("click",(Y==null?void 0:Y.bind(s.api))||null).on(H?"touchstart":"mouseenter",(_==null?void 0:_.bind(s.api))||null).on(H?"touchend":"mouseleave",(K==null?void 0:K.bind(s.api))||null)}o.svg_classname&&u.svg.attr("class",o.svg_classname);const C=he(o.color_tiles)&&s.patterns;(v||C||N||S||L||(n=s.hasLegendDefsPoint)!=null&&n.call(s))&&(u.defs=u.svg.append("defs"),v&&["id","idXAxis","idYAxis","idY2Axis","idGrid"].forEach(H=>{s.appendClip(u.defs,c.clip[H])}),s.generateTextBGColorFilter(L),C&&s.patterns.forEach(H=>u.defs.append(()=>H.node))),s.updateSvgSize(),s.bindResize();const V=u.svg.append("g").classed(Se.main,!0).attr("transform",m||S?null:s.getTranslate("main"));if(u.main=V,o.subchart_show&&s.initSubchart(),o.tooltip_show&&s.initTooltip(),o.title_text&&s.initTitle(),!S&&o.legend_show&&s.initLegend(),o.data_empty_label_text&&V.append("text").attr("class",`${In.text} ${Se.empty}`).attr("text-anchor","middle").attr("dominant-baseline","middle"),v&&(o.regions.length&&s.initRegion(),!o.clipPath&&s.axis.init()),V.append("g").classed(Se.chart,!0).attr("clip-path",v?c.clip.path:null),s.callPluginHook("$init"),s.initChartElements(),v&&(I&&((a=s.initEventRect)==null||a.call(s)),s.initGrid(),o.clipPath&&((i=s.axis)==null||i.init())),s.updateTargets(s.data.targets),s.updateDimension(),qe(o.oninit,s.api),s.setBackground(),s.redraw({withTransition:!1,withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransitionForAxis:!1,initializing:!0}),o.data_onmin||o.data_onmax){const H=s.getMinMaxData();qe(o.data_onmin,s.api,H.min),qe(o.data_onmax,s.api,H.max)}o.tooltip_show&&s.initShowTooltip(),c.rendered=!0}initChartElements(){const e=this,{hasAxis:n,hasRadar:a,hasTreemap:i}=e.state,s=[];if(n){const o=["bar","bubble","candlestick","line"];e.config.bar_front&&o.push(o.shift()),o.forEach(l=>{const c=Ln(l);(l==="line"&&e.hasTypeOf(c)||e.hasType(l))&&s.push(c)})}else if(i)s.push("Treemap");else if(e.hasType("funnel"))s.push("Funnel");else{const o=e.hasType("polar");a||s.push("Arc","Pie"),e.hasType("gauge")?s.push("Gauge"):a?s.push("Radar"):o&&s.push("Polar")}s.forEach(o=>{e[`init${o}`]()}),cn(e.config.data_labels)&&!e.hasArcType(null,["radar"])&&e.initText()}setChartElements(){const e=this,{$el:{chart:n,svg:a,defs:i,main:s,tooltip:o,legend:l,title:c,grid:u,needle:g,arcs:v,circle:m,bar:S,candlestick:I,line:N,area:L,text:C}}=e;e.api.$={chart:n,svg:a,defs:i,main:s,tooltip:o,legend:l,title:c,grid:u,arc:v,circles:m,bar:{bars:S},candlestick:I,line:{lines:N,areas:L},needle:g,text:{texts:C}}}setBackground(){const e=this,{config:{background:n},state:a,$el:{svg:i}}=e;if(cn(n)){const s=i.select("g").insert(n.imgUrl?"image":"rect",":first-child");n.imgUrl?s.attr("href",n.imgUrl):n.color&&s.style("fill",n.color).attr("clip-path",a.clip.path),s.attr("class",n.class||null).attr("width","100%").attr("height","100%")}}updateTargets(e){var n;const a=this,{hasAxis:i,hasFunnel:s,hasRadar:o,hasTreemap:l}=a.state,c=g=>a[`updateTargetsFor${g}`](e.filter(a[`is${g}Type`].bind(a)));if(a.updateTargetsForText(e),i)["bar","candlestick","line"].forEach(g=>{const v=Ln(g);(g==="line"&&a.hasTypeOf(v)||a.hasType(g))&&c(v)}),a.updateTargetsForSubchart&&a.updateTargetsForSubchart(e);else if(a.hasArcType(e)){let g="Arc";o?g="Radar":a.hasType("polar")&&(g="Polar"),c(g)}else s?c("Funnel"):l&&c("Treemap");const u=a.hasType("bubble")||a.hasType("scatter");u&&((n=a.updateTargetForCircle)==null||n.call(a)),a.filterTargetsToShowAtInit(u)}filterTargetsToShowAtInit(e=!1){const n=this,{$el:{svg:a},$T:i}=n;let s=`.${Se.target}`;e&&(s+=`, .${$n.chartCircles} > .${$n.circles}`),i(a.selectAll(s).filter(o=>n.isTargetToShow(o.id))).style("opacity",null)}getWithOption(e){const n={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(n).forEach(a=>{let i=n[a];Xe(i)&&(i=n[i]),n[a]=$r(e,`with${a}`,i)}),n}initialOpacity(e){const n=this,{withoutFadeIn:a}=n.state;return n.getBaseValue(e)!==null&&a[e.id]?null:"0"}bindResize(){const e=this,{config:n,state:a}=e,i=xv(n.resize_timer),s=[];s.push(()=>qe(n.onresize,e.api)),n.resize_auto===!0&&s.push(()=>{a.resizing=!0,n.legend_show&&(e.updateSizes(),e.updateLegend()),e.api.flush(!1)}),s.push(()=>{qe(n.onresized,e.api),a.resizing=!1}),s.forEach(o=>i.add(o)),e.resizeFunction=i,Ke.addEventListener("resize",e.resizeFunction=i)}callPluginHook(e,...n){this.config.plugins.forEach(a=>{e==="$beforeInit"&&(a.$$=this,this.api.plugins.push(a)),a[e](...n)})}}xn(Gr.prototype,[Mv,Lv,Dv,jv,Gv,Hv,Wv,zv,Kv,Zv,kv,Bp,hm,Up,zp,Vp,Xp,Yp,Hp,Wp]);function pm(t){const e=this.config;let n,a,i;const s=()=>{const o=a.shift();if(o&&n&&nr(n)&&o in n)return n=n[o],s();if(!o)return n};Object.keys(e).forEach(o=>{n=t,a=o.split("_"),i=s(),Je(i)&&(e[o]=i)}),this.api&&(this.state.orgConfig=t)}var mm={resize(t){const e=this.internal,{config:n,state:a}=e;a.rendered&&(n.size_width=t?t.width:null,n.size_height=t?t.height:null,a.resizing=!0,this.flush(!1),e.resizeFunction())},flush(t){var e,n;const a=this.internal,{state:i,$el:{zoomResetBtn:s}}=a;i.rendered?(i.resizing?(e=a.brush)==null||e.updateResize():(n=a.axis)==null||n.setOrient(),s==null||s.style("display","none"),a.scale.zoom=null,t?a.redraw({withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withLegend:!0}):a.updateAndRedraw({withLegend:!0,withTransition:!1,withTransitionForTransform:!1}),!i.resizing&&a.brush&&(a.brush.getSelection().call(a.brush.move),a.unselectRect())):a.initToRender(!0)},destroy(){const t=this.internal,{$el:{chart:e,style:n,svg:a}}=t;if(cn(t)){t.callPluginHook("$willDestroy"),t.charts.splice(t.charts.indexOf(this),1),t.unbindAllEvents(),a.select("*").interrupt(),t.resizeFunction.clear(),Ke.removeEventListener("resize",t.resizeFunction),e.classed("bb",!1).style("position",null).selectChildren().remove(),n&&n.parentNode.removeChild(n),Object.keys(this).forEach(i=>{i==="internal"&&Object.keys(t).forEach(s=>{t[s]=null}),this[i]=null,delete this[i]});for(const i in this)this[i]=()=>{}}return null},config(t,e,n){const a=this.internal,{config:i,state:s}=a,o=t==null?void 0:t.replace(/\./g,"_");let l;return t&&o in i?Je(e)?(i[o]=e,l=e,n&&this.flush()):l=i[o]:(arguments.length===0||_n(t))&&(l=s.orgConfig),l}},ym={color(t){return this.internal.color(t)}};const au=function(t){const{targets:e}=this.internal.data;if(!ln(t)){const n=ze(t)?t:[t];return e.filter(a=>n.some(i=>i===a.id))}return e};xn(au,{shown:function(t){return this.internal.filterTargetsToShow(this.data(t))},values:function(t,e=!0){let n=null;if(t){const a=this.data(t);ze(a)&&(n=[],a.forEach(i=>{const s=i.values.map(o=>o.value);e?n=n.concat(s):n.push(s)}))}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}});var xm={data:au};const Tm=t=>{var e,n;return(n=(e=Ke).btoa)==null?void 0:n.call(e,encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(a,i)=>String.fromCharCode(+`0x${i}`)))};function $m(t,e,n){const{width:a,height:i}=e||n,s=new XMLSerializer,o=t.cloneNode(!0),l=tv(Dr(vn.styleSheets)).filter(m=>m.cssText).map(m=>m.cssText);o.setAttribute("xmlns",ae.xhtml),o.style.margin="0",o.style.padding="0",e.preserveFontStyle&&o.querySelectorAll("text").forEach(m=>{m.innerHTML=""});const c=s.serializeToString(o),u=vn.createElement("style");u.appendChild(vn.createTextNode(l.join(`
|
|
48
|
+
`)));const g=s.serializeToString(u),v=`<svg xmlns="${ae.svg}" width="${a}" height="${i}"
|
|
49
49
|
viewBox="0 0 ${n.width} ${n.height}"
|
|
50
50
|
preserveAspectRatio="${(e==null?void 0:e.preserveAspectRatio)===!1?"none":"xMinYMid meet"}">
|
|
51
51
|
<foreignObject width="100%" height="100%">
|
|
52
52
|
${g}
|
|
53
53
|
${c.replace(/(url\()[^#]+/g,"$1")}
|
|
54
|
-
</foreignObject></svg>`;return`data:image/svg+xml;base64,${mm(v)}`}function xm(t,e){const{top:n,left:a}=e,{x:i,y:s}=t.getBBox(),{a:o,b:l,c,d:u,e:g,f:v}=t.getScreenCTM(),{width:m,height:S}=t.getBoundingClientRect();return{x:o*i+c*s+g-a,y:l*i+u*s+v-n+(S-Math.round(S/4)),width:m,height:S}}function Tm(t){const{left:e,top:n}=t.getBoundingClientRect(),a=s=>s.textContent||s.childElementCount,i=[];return Dr(t.querySelectorAll("text")).filter(a).forEach(s=>{const o=l=>{const{fill:c,fontFamily:u,fontSize:g,textAnchor:v,transform:m}=We.getComputedStyle(l),{x:S,y:I,width:N,height:M}=xm(l,{left:e,top:n});return{[l.textContent]:{x:S,y:I,width:N,height:M,fill:c,fontFamily:u,fontSize:g,textAnchor:v,transform:m}}};if(s.childElementCount>1){const l=[];return Dr(s.querySelectorAll("tspan")).filter(a).forEach(c=>{i.push(o(c))}),l}else i.push(o(s))}),i}function $m(t,e){e.forEach(n=>{Object.keys(n).forEach(a=>{const{x:i,y:s,width:o,height:l,fill:c,fontFamily:u,fontSize:g,transform:v}=n[a];if(t.save(),t.font=`${g} ${u}`,t.fillStyle=c,v==="none")t.fillText(a,i,s);else{const m=v.replace(/(matrix|\(|\))/g,"").split(",");m.splice(4).every(S=>+S==0)?(m.push(i+o-o/4),m.push(s-l+l/3)):(m.push(i),m.push(s)),t.transform(...m),t.fillText(a,0,0)}t.restore()})})}var Sm={export(t,e){const n=this.internal,{state:a,$el:{chart:i,svg:s}}=n,{width:o,height:l}=a.current,c=ea({width:o,height:l,preserveAspectRatio:!0,preserveFontStyle:!1,mimeType:"image/png"},t),u=ym(i.node(),c,{width:o,height:l}),g=c.preserveFontStyle?Tm(s.node()):[];if(e&&ve(e)){const v=new Image;v.crossOrigin="Anonymous",v.onload=()=>{const m=vn.createElement("canvas"),S=m.getContext("2d");m.width=c.width||o,m.height=c.height||l,S.drawImage(v,0,0),g.length&&($m(S,g),g.length=0),e.bind(this)(m.toDataURL(c.mimeType))},v.src=u}return u}},Am={focus(t){const e=this.internal,{state:n}=e,a=e.mapToTargetIds(t),i=e.$el.svg.selectAll(e.selectorTargets(a.filter(e.isTargetToShow,e)));this.revert(),this.defocus(),i.classed(Qe.focused,!0).classed(Qe.defocused,!1),e.hasArcType()&&!n.hasRadar&&(e.expandArc(a),e.hasType("gauge")&&e.markOverlapped(t,e,`.${Un.gaugeValue}`)),e.toggleFocusLegend(a,!0),n.focusedTargetIds=a,n.defocusedTargetIds=n.defocusedTargetIds.filter(s=>a.indexOf(s)<0)},defocus(t){const e=this.internal,{state:n}=e,a=e.mapToTargetIds(t);e.$el.svg.selectAll(e.selectorTargets(a.filter(e.isTargetToShow,e))).classed(Qe.focused,!1).classed(Qe.defocused,!0),e.hasArcType(null,["polar"])&&(e.unexpandArc(a),e.hasType("gauge")&&e.undoMarkOverlapped(e,`.${Un.gaugeValue}`)),e.toggleFocusLegend(a,!1),n.focusedTargetIds=n.focusedTargetIds.filter(s=>a.indexOf(s)<0),n.defocusedTargetIds=a},revert(t){const e=this.internal,{config:n,state:a,$el:i}=e,s=e.mapToTargetIds(t);i.svg.selectAll(e.selectorTargets(s)).classed(Qe.focused,!1).classed(Qe.defocused,!1),e.hasArcType(null,["polar"])&&e.unexpandArc(s),n.legend_show&&(e.showLegend(s.filter(e.isLegendToShow.bind(e))),i.legend.selectAll(e.selectorLegends(s)).filter(function(){return st(this).classed(Qe.legendItemFocused)}).classed(Qe.legendItemFocused,!1)),a.focusedTargetIds=[],a.defocusedTargetIds=[]}},bm={legend:{show:function(t){const e=this.internal;e.showLegend(e.mapToTargetIds(t)),e.updateAndRedraw({withLegend:!0})},hide:function(t){const e=this.internal;e.hideLegend(e.mapToTargetIds(t)),e.updateAndRedraw({withLegend:!0})}}},Em={load(t){const e=this.internal,{config:n}=e;t.xs&&e.addXs(t.xs),"names"in t&&this.data.names(t.names),"classes"in t&&Object.keys(t.classes).forEach(a=>{n.data_classes[a]=t.classes[a]}),"categories"in t&&e.axis.isCategorized()&&(n.axis_x_categories=t.categories),"axes"in t&&Object.keys(t.axes).forEach(a=>{n.data_axes[a]=t.axes[a]}),"colors"in t&&Object.keys(t.colors).forEach(a=>{n.data_colors[a]=t.colors[a]}),"unload"in t&&t.unload!==!1?e.unload(e.mapToTargetIds(t.unload===!0?null:t.unload),()=>{Ul(()=>e.loadFromArgs(t))}):e.loadFromArgs(t)},unload(t){const e=this.internal;let n=t||{};_n(n)&&this.tooltip.hide(),Be(n)?n={ids:n}:Ge(n)&&(n={ids:[n]});const a=e.mapToTargetIds(n.ids);e.unload(a,()=>{e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),e.cache.remove(a),oc.call(e,n.done,n.resizeAfter)})}};function ru(t,e,n){const a=this.internal,i=a.mapToTargetIds(e),s=a.state.hiddenTargetIds.map(c=>i.indexOf(c)>-1&&c).filter(Boolean);a.state.toggling=!0,a[`${t?"remove":"add"}HiddenTargetIds`](i);const o=a.$el.svg.selectAll(a.selectorTargets(i)),l=t?null:"0";t&&s.length&&(o.style("display",null),_e(a.config.data_onshown,this,s)),a.$T(o).style("opacity",l,"important").call($i,()=>{var c;!t&&s.length===0&&(o.style("display","none"),_e((c=a.config)==null?void 0:c.data_onhidden,this,i)),o.style("opacity",l)}),n.withLegend&&a[`${t?"show":"hide"}Legend`](i),a.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),a.state.toggling=!1}var Rm={show(t,e={}){ru.call(this,!0,t,e)},hide(t,e={}){ru.call(this,!1,t,e)},toggle(t,e={}){const n=this.internal,a={show:[],hide:[]};n.mapToTargetIds(t).forEach(i=>a[n.isTargetToShow(i)?"hide":"show"].push(i)),a.show.length&&this.show(a.show,e),a.hide.length&&setTimeout(()=>this.hide(a.hide,e),0)}},Om={tooltip:{show:function(t){var e,n,a;const i=this.internal,{$el:s,config:o,state:{eventReceiver:l,hasFunnel:c,hasTreemap:u,inputType:g}}=i;let v,m;if(t.mouse&&(m=t.mouse),t.data){const{data:S}=t,I=(e=i.getYScaleById(S.id))==null?void 0:e(S.value);if((c||u)&&S.id){const N=i.selectorTarget(S.id,void 0,`.${sn.shape}`);l.rect=s.main.select(N)}else i.isMultipleX()?m=[i.xx(S),I]:(o.tooltip_grouped||(m=[0,I]),v=(a=S.index)!=null?a:i.hasArcType()&&S.id?(n=i.getArcElementByIdOrIndex(S.id))==null?void 0:n.datum().index:i.getIndexByX(S.x))}else ke(t.x)?v=i.getIndexByX(t.x):ke(t.index)&&(v=t.index);(g==="mouse"?["mouseover","mousemove"]:["touchstart"]).forEach(S=>{i.dispatchEvent(S,v,m)})},hide:function(){var t,e,n;const a=this.internal,{state:{inputType:i},$el:{tooltip:s}}=a,o=s==null?void 0:s.datum();if(o){const{index:l}=JSON.parse(o.current)[0];(i==="mouse"?["mouseout"]:["touchend"]).forEach(c=>{a.dispatchEvent(c,l)})}i==="touch"&&a.callOverOutForTouch(),a.hideTooltip(!0),(t=a.hideGridFocus)==null||t.call(a),(e=a.unexpandCircles)==null||e.call(a),(n=a.expandBarTypeShapes)==null||n.call(a,!1)}}},Im=Object.defineProperty,Cm=(t,e,n)=>e in t?Im(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,au=(t,e,n)=>Cm(t,typeof e!="symbol"?e+"":e,n);class br{constructor(e){au(this,"plugins",[]),au(this,"internal");const n=new Gr(this);this.internal=n,function a(i,s,o){Object.keys(i).forEach(l=>{const c=ve(i[l]),u=s!==o,g=ln(i[l]),v=g&&Object.keys(i[l]).length>0;c&&(!u&&v||u)?s[l]=i[l].bind(o):g&&!c?s[l]={}:s[l]=i[l],v&&a(i[l],s[l],o)})}(br.prototype,this,this),hm.call(n,e),n.beforeInit(),n.init()}}xn(br.prototype,[gm,vm,pm,Sm,Am,bm,Em,Rm,Om]);function iu(t=!1,e,n,a){const i=this,{config:s,$el:{main:o}}=i,l=s.data_selection_grouped,c=s.data_selection_isselectable.bind(i.api);s.data_selection_enabled&&o.selectAll(`.${sn.shapes}`).selectAll(`.${sn.shape}`).each(function(u){const g=st(this),{id:v,index:m}=u.data?u.data:u,S=i.getToggle(this,u).bind(i),I=l||!e||e.indexOf(v)>=0,N=!n||n.indexOf(m)>=0,M=g.classed(qe.SELECTED);g.classed(ur.line)||g.classed(qa.area)||(t?I&&N&&c(u)&&!M?S(!0,g.classed(qe.SELECTED,!0),u,m):ke(a)&&a&&M&&S(!1,g.classed(qe.SELECTED,!1),u,m):I&&N&&c(u)&&M&&S(!1,g.classed(qe.SELECTED,!1),u,m))})}var Pm={selected(t){const e=this.internal,n=[];return e.$el.main.selectAll(`.${sn.shapes+e.getTargetSelectorSuffix(t)}`).selectAll(`.${sn.shape}`).filter(function(){return st(this).classed(qe.SELECTED)}).each(a=>n.push(a)),n},select(t,e,n){const a=this.internal;iu.bind(a)(!0,t,e,n)},unselect(t,e){const n=this.internal;iu.bind(n)(!1,t,e)}};const su=function(t){var e;const n=this.internal,{axis:a,brush:i,config:s,scale:{x:o,subX:l},state:c}=n;let u;return s.subchart_show&&(u=t,Array.isArray(u)?(a.isTimeSeries()&&(u=u.map(v=>zn.bind(n)(v))),n.withinRange(u,n.getZoomDomain("subX",!0),n.getZoomDomain("subX"))&&(c.domain=u,i.move(i.getSelection(),u.map(l)))):u=(e=c.domain)!=null?e:o.orgDomain()),u};xn(su,{show(){var t,e;const n=this.internal,{$el:{subchart:a},config:i}=n,s=i.subchart_show;if(!s){n.unbindZoomEvent(),i.subchart_show=!s,!a.main&&n.initSubchart();let o=a.main.selectAll(`.${Se.target}`);n.data.targets.length!==o.size()&&(n.updateSizes(),n.updateTargetsForSubchart(n.data.targets),o=(t=a.main)==null?void 0:t.selectAll(`.${Se.target}`)),o==null||o.style("opacity",null),(e=a.main)==null||e.style("display",null),this.resize()}},hide(){const t=this.internal,{$el:{subchart:{main:e}},config:n}=t;n.subchart_show&&(e==null?void 0:e.style("display"))!=="none"&&(n.subchart_show=!1,e.style("display","none"),this.resize())},toggle(){const t=this.internal,{config:e}=t;this.subchart[e.subchart_show?"hide":"show"]()},reset(){const t=this.internal,{brush:e}=t;e.clear(e.getSelection())}});var wm={subchart:su},Mm=1e-12;function ou(t){return((t=Math.exp(t))+1/t)/2}function Lm(t){return((t=Math.exp(t))-1/t)/2}function Dm(t){return((t=Math.exp(2*t))-1)/(t+1)}var Nm=function t(e,n,a){function i(s,o){var l=s[0],c=s[1],u=s[2],g=o[0],v=o[1],m=o[2],S=g-l,I=v-c,N=S*S+I*I,M,P;if(N<Mm)P=Math.log(m/u)/e,M=function(at){return[l+at*S,c+at*I,u*Math.exp(e*at*P)]};else{var X=Math.sqrt(N),H=(m*m-u*u+a*N)/(2*u*n*X),Y=(m*m-u*u-a*N)/(2*m*n*X),_=Math.log(Math.sqrt(H*H+1)-H),K=Math.log(Math.sqrt(Y*Y+1)-Y);P=(K-_)/e,M=function(at){var yt=at*P,$t=ou(_),dt=u/(n*X)*($t*Dm(e*yt+_)-Lm(_));return[l+dt*S,c+dt*I,u*$t/ou(e*yt+_)]}}return M.duration=P*1e3*e/Math.SQRT2,M}return i.rho=function(s){var o=Math.max(.001,+s),l=o*o,c=l*l;return t(o,l,c)},i}(Math.SQRT2,2,4),Gi=t=>()=>t;function Fm(t,{sourceEvent:e,target:n,transform:a,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:a,enumerable:!0,configurable:!0},_:{value:i}})}function vr(t,e,n){this.k=t,this.x=e,this.y=n}vr.prototype={constructor:vr,scale:function(t){return t===1?this:new vr(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new vr(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 ar=new vr(1,0,0);ho.prototype=vr.prototype;function ho(t){for(;!t.__zoom;)if(!(t=t.parentNode))return ar;return t.__zoom}function go(t){t.stopImmediatePropagation()}function Fa(t){t.preventDefault(),t.stopImmediatePropagation()}function Bm(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Um(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.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 lu(){return this.__zoom||ar}function zm(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function jm(){return navigator.maxTouchPoints||"ontouchstart"in this}function Gm(t,e,n){var a=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],s=t.invertY(e[0][1])-n[0][1],o=t.invertY(e[1][1])-n[1][1];return t.translate(i>a?(a+i)/2:Math.min(0,a)||Math.max(0,i),o>s?(s+o)/2:Math.min(0,s)||Math.max(0,o))}function Vm(){var t=Bm,e=Um,n=Gm,a=zm,i=jm,s=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],l=250,c=Nm,u=ni("start","zoom","end"),g,v,m,S=500,I=150,N=0,M=10;function P(Z){Z.property("__zoom",lu).on("wheel.zoom",yt,{passive:!1}).on("mousedown.zoom",$t).on("dblclick.zoom",dt).filter(i).on("touchstart.zoom",ft).on("touchmove.zoom",Ft).on("touchend.zoom touchcancel.zoom",ht).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}P.transform=function(Z,St,lt,At){var jt=Z.selection?Z.selection():Z;jt.property("__zoom",lu),Z!==jt?_(Z,St,lt,At):jt.interrupt().each(function(){K(this,arguments).event(At).start().zoom(null,typeof St=="function"?St.apply(this,arguments):St).end()})},P.scaleBy=function(Z,St,lt,At){P.scaleTo(Z,function(){var jt=this.__zoom.k,Ut=typeof St=="function"?St.apply(this,arguments):St;return jt*Ut},lt,At)},P.scaleTo=function(Z,St,lt,At){P.transform(Z,function(){var jt=e.apply(this,arguments),Ut=this.__zoom,kt=lt==null?Y(jt):typeof lt=="function"?lt.apply(this,arguments):lt,Kt=Ut.invert(kt),ae=typeof St=="function"?St.apply(this,arguments):St;return n(H(X(Ut,ae),kt,Kt),jt,o)},lt,At)},P.translateBy=function(Z,St,lt,At){P.transform(Z,function(){return n(this.__zoom.translate(typeof St=="function"?St.apply(this,arguments):St,typeof lt=="function"?lt.apply(this,arguments):lt),e.apply(this,arguments),o)},null,At)},P.translateTo=function(Z,St,lt,At,jt){P.transform(Z,function(){var Ut=e.apply(this,arguments),kt=this.__zoom,Kt=At==null?Y(Ut):typeof At=="function"?At.apply(this,arguments):At;return n(ar.translate(Kt[0],Kt[1]).scale(kt.k).translate(typeof St=="function"?-St.apply(this,arguments):-St,typeof lt=="function"?-lt.apply(this,arguments):-lt),Ut,o)},At,jt)};function X(Z,St){return St=Math.max(s[0],Math.min(s[1],St)),St===Z.k?Z:new vr(St,Z.x,Z.y)}function H(Z,St,lt){var At=St[0]-lt[0]*Z.k,jt=St[1]-lt[1]*Z.k;return At===Z.x&&jt===Z.y?Z:new vr(Z.k,At,jt)}function Y(Z){return[(+Z[0][0]+ +Z[1][0])/2,(+Z[0][1]+ +Z[1][1])/2]}function _(Z,St,lt,At){Z.on("start.zoom",function(){K(this,arguments).event(At).start()}).on("interrupt.zoom end.zoom",function(){K(this,arguments).event(At).end()}).tween("zoom",function(){var jt=this,Ut=arguments,kt=K(jt,Ut).event(At),Kt=e.apply(jt,Ut),ae=lt==null?Y(Kt):typeof lt=="function"?lt.apply(jt,Ut):lt,Ve=Math.max(Kt[1][0]-Kt[0][0],Kt[1][1]-Kt[0][1]),Oe=jt.__zoom,Xe=typeof St=="function"?St.apply(jt,Ut):St,hn=c(Oe.invert(ae).concat(Ve/Oe.k),Xe.invert(ae).concat(Ve/Xe.k));return function(De){if(De===1)De=Xe;else{var dn=hn(De),Jt=Ve/dn[2];De=new vr(Jt,ae[0]-dn[0]*Jt,ae[1]-dn[1]*Jt)}kt.zoom(null,De)}})}function K(Z,St,lt){return!lt&&Z.__zooming||new at(Z,St)}function at(Z,St){this.that=Z,this.args=St,this.active=0,this.sourceEvent=null,this.extent=e.apply(Z,St),this.taps=0}at.prototype={event:function(Z){return Z&&(this.sourceEvent=Z),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(Z,St){return this.mouse&&Z!=="mouse"&&(this.mouse[1]=St.invert(this.mouse[0])),this.touch0&&Z!=="touch"&&(this.touch0[1]=St.invert(this.touch0[0])),this.touch1&&Z!=="touch"&&(this.touch1[1]=St.invert(this.touch1[0])),this.that.__zoom=St,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(Z){var St=st(this.that).datum();u.call(Z,this.that,new Fm(Z,{sourceEvent:this.sourceEvent,target:P,type:Z,transform:this.that.__zoom,dispatch:u}),St)}};function yt(Z,...St){if(!t.apply(this,arguments))return;var lt=K(this,St).event(Z),At=this.__zoom,jt=Math.max(s[0],Math.min(s[1],At.k*Math.pow(2,a.apply(this,arguments)))),Ut=Yn(Z);if(lt.wheel)(lt.mouse[0][0]!==Ut[0]||lt.mouse[0][1]!==Ut[1])&&(lt.mouse[1]=At.invert(lt.mouse[0]=Ut)),clearTimeout(lt.wheel);else{if(At.k===jt)return;lt.mouse=[Ut,At.invert(Ut)],_r(this),lt.start()}Fa(Z),lt.wheel=setTimeout(kt,I),lt.zoom("mouse",n(H(X(At,jt),lt.mouse[0],lt.mouse[1]),lt.extent,o));function kt(){lt.wheel=null,lt.end()}}function $t(Z,...St){if(m||!t.apply(this,arguments))return;var lt=Z.currentTarget,At=K(this,St,!0).event(Z),jt=st(Z.view).on("mousemove.zoom",ae,!0).on("mouseup.zoom",Ve,!0),Ut=Yn(Z,lt),kt=Z.clientX,Kt=Z.clientY;ls(Z.view),go(Z),At.mouse=[Ut,this.__zoom.invert(Ut)],_r(this),At.start();function ae(Oe){if(Fa(Oe),!At.moved){var Xe=Oe.clientX-kt,hn=Oe.clientY-Kt;At.moved=Xe*Xe+hn*hn>N}At.event(Oe).zoom("mouse",n(H(At.that.__zoom,At.mouse[0]=Yn(Oe,lt),At.mouse[1]),At.extent,o))}function Ve(Oe){jt.on("mousemove.zoom mouseup.zoom",null),cs(Oe.view,At.moved),Fa(Oe),At.event(Oe).end()}}function dt(Z,...St){if(t.apply(this,arguments)){var lt=this.__zoom,At=Yn(Z.changedTouches?Z.changedTouches[0]:Z,this),jt=lt.invert(At),Ut=lt.k*(Z.shiftKey?.5:2),kt=n(H(X(lt,Ut),At,jt),e.apply(this,St),o);Fa(Z),l>0?st(this).transition().duration(l).call(_,kt,At,Z):st(this).call(P.transform,kt,At,Z)}}function ft(Z,...St){if(t.apply(this,arguments)){var lt=Z.touches,At=lt.length,jt=K(this,St,Z.changedTouches.length===At).event(Z),Ut,kt,Kt,ae;for(go(Z),kt=0;kt<At;++kt)Kt=lt[kt],ae=Yn(Kt,this),ae=[ae,this.__zoom.invert(ae),Kt.identifier],jt.touch0?!jt.touch1&&jt.touch0[2]!==ae[2]&&(jt.touch1=ae,jt.taps=0):(jt.touch0=ae,Ut=!0,jt.taps=1+!!g);g&&(g=clearTimeout(g)),Ut&&(jt.taps<2&&(v=ae[0],g=setTimeout(function(){g=null},S)),_r(this),jt.start())}}function Ft(Z,...St){if(this.__zooming){var lt=K(this,St).event(Z),At=Z.changedTouches,jt=At.length,Ut,kt,Kt,ae;for(Fa(Z),Ut=0;Ut<jt;++Ut)kt=At[Ut],Kt=Yn(kt,this),lt.touch0&<.touch0[2]===kt.identifier?lt.touch0[0]=Kt:lt.touch1&<.touch1[2]===kt.identifier&&(lt.touch1[0]=Kt);if(kt=lt.that.__zoom,lt.touch1){var Ve=lt.touch0[0],Oe=lt.touch0[1],Xe=lt.touch1[0],hn=lt.touch1[1],De=(De=Xe[0]-Ve[0])*De+(De=Xe[1]-Ve[1])*De,dn=(dn=hn[0]-Oe[0])*dn+(dn=hn[1]-Oe[1])*dn;kt=X(kt,Math.sqrt(De/dn)),Kt=[(Ve[0]+Xe[0])/2,(Ve[1]+Xe[1])/2],ae=[(Oe[0]+hn[0])/2,(Oe[1]+hn[1])/2]}else if(lt.touch0)Kt=lt.touch0[0],ae=lt.touch0[1];else return;lt.zoom("touch",n(H(kt,Kt,ae),lt.extent,o))}}function ht(Z,...St){if(this.__zooming){var lt=K(this,St).event(Z),At=Z.changedTouches,jt=At.length,Ut,kt;for(go(Z),m&&clearTimeout(m),m=setTimeout(function(){m=null},S),Ut=0;Ut<jt;++Ut)kt=At[Ut],lt.touch0&<.touch0[2]===kt.identifier?delete lt.touch0:lt.touch1&<.touch1[2]===kt.identifier&&delete lt.touch1;if(lt.touch1&&!lt.touch0&&(lt.touch0=lt.touch1,delete lt.touch1),lt.touch0)lt.touch0[1]=this.__zoom.invert(lt.touch0[0]);else if(lt.end(),lt.taps===2&&(kt=Yn(kt,this),Math.hypot(v[0]-kt[0],v[1]-kt[1])<M)){var Kt=st(this).on("dblclick.zoom");Kt&&Kt.apply(this,arguments)}}}return P.wheelDelta=function(Z){return arguments.length?(a=typeof Z=="function"?Z:Gi(+Z),P):a},P.filter=function(Z){return arguments.length?(t=typeof Z=="function"?Z:Gi(!!Z),P):t},P.touchable=function(Z){return arguments.length?(i=typeof Z=="function"?Z:Gi(!!Z),P):i},P.extent=function(Z){return arguments.length?(e=typeof Z=="function"?Z:Gi([[+Z[0][0],+Z[0][1]],[+Z[1][0],+Z[1][1]]]),P):e},P.scaleExtent=function(Z){return arguments.length?(s[0]=+Z[0],s[1]=+Z[1],P):[s[0],s[1]]},P.translateExtent=function(Z){return arguments.length?(o[0][0]=+Z[0][0],o[1][0]=+Z[1][0],o[0][1]=+Z[0][1],o[1][1]=+Z[1][1],P):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},P.constrain=function(Z){return arguments.length?(n=Z,P):n},P.duration=function(Z){return arguments.length?(l=+Z,P):l},P.interpolate=function(Z){return arguments.length?(c=Z,P):c},P.on=function(){var Z=u.on.apply(u,arguments);return Z===u?P:Z},P.clickDistance=function(Z){return arguments.length?(N=(Z=+Z)*Z,P):Math.sqrt(N)},P.tapDistance=function(Z){return arguments.length?(M=+Z,P):M},P}const cu=function(t){var e;const n=this.internal,{axis:a,config:i,org:s,scale:o,state:l}=n,c=a.isCategorized();let u;if(i.zoom_enabled)if(u=t,Array.isArray(u)){if(a.isTimeSeries()&&(u=u.map(v=>zn.bind(n)(v))),n.withinRange(u,n.getZoomDomain("zoom",!0),n.getZoomDomain("zoom"))){if(l.domain=u,u=n.getZoomDomainValue(u),n.api.tooltip.hide(),i.subchart_show){const v=o.zoom||o.x;n.brush.getSelection().call(n.brush.move,u.map(v))}else{const v=c?o.x.orgScale():s.xScale||o.x;n.updateCurrentZoomTransform(v,u)}n.setZoomResetButton()}}else u=n.zoom.getDomain();return(e=l.domain)!=null?e:u};xn(cu,{enable(t){const e=this.internal,{config:n}=e;/^(drag|wheel)$/.test(t)&&(n.zoom_type=t),n.zoom_enabled=!!t,e.zoom?t===!1&&e.bindZoomEvent(!1):(e.initZoom(),e.bindZoomEvent()),e.updateAndRedraw()},max(t){const e=this.internal,{config:n,org:{xDomain:a}}=e;return(t===0||t)&&(n.zoom_x_max=qn("max",[a[1],t])),n.zoom_x_max},min(t){const e=this.internal,{config:n,org:{xDomain:a}}=e;return(t===0||t)&&(n.zoom_x_min=qn("min",[a[0],t])),n.zoom_x_min},range(t){const e=this.zoom;if(Ne(t)){const{min:n,max:a}=t;ke(n)&&e.min(n),ke(a)&&e.max(a)}return{min:e.min(),max:e.max()}}});var Xm={zoom:cu,unzoom(){const t=this.internal,{config:e,$el:{eventRect:n,zoomResetBtn:a},scale:{zoom:i},state:s}=t;i&&(e.subchart_show?t.brush.getSelection().call(t.brush.move,null):t.zoom.updateTransformScale(ar),t.updateZoom(!0),a==null||a.style("display","none"),ho(n.node())!==ar&&t.zoom.transform(n,ar),s.domain=void 0)}},Ym={initBrush(){const t=this,{config:e,scale:n,$el:{subchart:a},state:i}=t,s=e.axis_rotated,o=e.subchart_size_height;let l,c,u;t.brush=(s?jg():zg()).handleSize(5),t.brush.on("start brush end",g=>{const{selection:v,sourceEvent:m,target:S,type:I}=g;I==="start"&&(t.state.inputType==="touch"&&t.hideTooltip(),c=m?v:null),/(start|brush)/.test(I)&&(I==="brush"&&m&&i.domain&&(c==null||c.forEach((N,M)=>{N!==v[M]&&(i.domain[M]=n.x.orgDomain()[M])})),t.redrawForBrush(I!=="start")),I==="end"&&(l=n.x.orgDomain()),S!=null&&S.handle&&(v===null?t.brush.handle.attr("display","none"):t.brush.handle.attr("display",null).attr("transform",(N,M)=>{const P=[v[M],o/2];return`translate(${s?P.reverse():P})`}))}),t.brush.updateResize=function(){u&&clearTimeout(u),u=setTimeout(()=>{const g=this.getSelection();l&&Bl(g.node())&&this.move(g,l.map(n.subX.orgScale()))},0)},t.brush.update=function(){var g;return this.extent()()[1].filter(m=>isNaN(m)).length===0&&((g=a.main)==null||g.select(`.${Fe.brush}`).call(this)),this},t.brush.scale=function(g){const v=e.subchart_size_height;let m=t.getExtent();!m&&g.range?m=[[0,0],[g.range()[1],v]]:Be(m)&&(m=m.map((S,I)=>[S,I>0?v:I])),s&&m[1].reverse(),this.extent(m),this.update()},t.brush.getSelection=()=>a.main?a.main.select(`.${Fe.brush}`):st([])},initSubchart(){const t=this,{config:e,state:{clip:n,hasAxis:a},$el:{defs:i,svg:s,subchart:o,axis:l}}=t;if(!a)return;const c=e.subchart_show?null:"hidden",u=`${n.id}-subchart`,g=t.getClipPath(u);n.idSubchart=u,t.appendClip(i,u),t.initBrush(),o.main=s.append("g").classed(Fe.subchart,!0).attr("transform",t.getTranslate("context"));const{main:v}=o;v.style("visibility",c),v.append("g").attr("clip-path",g).attr("class",Fe.chart),["bar","line","bubble","candlestick","scatter"].forEach(S=>{const I=Ln(/^(bubble|scatter)$/.test(S)?"circle":S);if(t.hasType(S)||t.hasTypeOf(I)){const N=v.select(`.${Fe.chart}`),M=Fe[`chart${I}s`];N.select(`.${M}`).empty()&&N.append("g").attr("class",M)}});const m=v.append("g").attr("clip-path",g).attr("class",Fe.brush).call(t.brush);e.subchart_showHandle&&t.addBrushHandle(m),l.subX=v.append("g").attr("class",Fe.axisX).attr("transform",t.getTranslate("subX")).attr("clip-path",e.axis_rotated?"":n.pathXAxis).style("visibility",e.subchart_axis_x_show?c:"hidden")},addBrushHandle(t){const e=this,{config:n}=e,a=n.axis_rotated,i=n.subchart_init_range,s="handle--custom",o=a?["M8.5 0 a6 6 0 0 0 -6 -6.5 H-2.5 a 6 6 0 0 0 -6 6.5 z m-5 -2 H-3.5 m7 -2 H-3.5z","M8.5 0 a6 -6 0 0 1 -6 6.5 H-2.5 a 6 -6 0 0 1 -6 -6.5z m-5 2 H-3.5 m7 2 H-3.5z"]:["M0 -8.5 A6 6 0 0 0 -6.5 -3.5 V2.5 A6 6 0 0 0 0 8.5 Z M-2 -3.5 V3.5 M-4 -3.5 V3.5z","M0 -8.5 A6 6 0 0 1 6.5 -3.5 V2.5 A6 6 0 0 1 0 8.5 Z M2 -3.5 V3.5 M4 -3.5 V3.5z"];e.brush.handle=t.selectAll(`.${s}`).data(a?[{type:"n"},{type:"s"}]:[{type:"w"},{type:"e"}]).enter().append("path").attr("class",s).attr("cursor",`${a?"ns":"ew"}-resize`).attr("d",l=>o[+/[se]/.test(l.type)]).attr("display",i?null:"none")},updateTargetsForSubchart(t){const e=this,{config:n,state:a,$el:{subchart:{main:i}}}=e;n.subchart_show&&(["bar","line","bubble","candlestick","scatter"].filter(s=>e.hasType(s)||e.hasTypeOf(Ln(s))).forEach(s=>{const o=/^(bubble|scatter)$/.test(s),l=Ln(o?"circle":s),c=e.getChartClass(l,!0),u=e.getClass(o?"circles":`${s}s`,!0),g=i.select(`.${Fe[`chart${`${l}s`}`]}`);if(o){const v=g.selectAll(`.${Fe.circles}`).data(t.filter(e[`is${Ln(s)}Type`].bind(e))).attr("class",u);v.exit().remove(),v.enter().append("g").attr("class",u)}else{const v=g.selectAll(`.${Fe[`chart${l}`]}`).attr("class",c).data(t.filter(e[`is${l}Type`].bind(e))),m=v.enter().append("g").style("opacity","0").attr("class",c).append("g").attr("class",u);v.exit().remove(),s==="line"&&e.hasTypeOf("Area")&&m.append("g").attr("class",e.getClass("areas",!0))}}),i.selectAll(`.${Fe.brush} rect`).attr(n.axis_rotated?"width":"height",n.axis_rotated?a.width2:a.height2))},redrawSubchart(t,e,n){var a;const i=this,{config:s,$el:{subchart:{main:o}},state:l}=i,c=!!e;if(o.style("visibility",s.subchart_show?null:"hidden"),s.subchart_show&&(((a=l.event)==null?void 0:a.type)==="zoom"&&i.brush.update(),t)){const u=s.subchart_init_range;if(!Hl(i)&&i.brush.update(),Object.keys(n.type).forEach(g=>{const v=Ln(g),m=i[`generateDraw${v}`](n.indices[g],!0);i[`update${v}`](c,!0),i[`redraw${v}`](m,c,!0)}),i.hasType("bubble")||i.hasType("scatter")){const{cx:g}=n.pos,v=i.updateCircleY(!0);i.updateCircle(!0),i.redrawCircle(g,v,c,void 0,!0)}!l.rendered&&u&&(l.domain=u,i.brush.move(i.brush.getSelection(),u.map(i.scale.x)))}},redrawForBrush(t=!0){var e;const n=this,{config:{subchart_onbrush:a,zoom_rescale:i},scale:s,state:o}=n;n.redraw({withTransition:!1,withY:i,withSubchart:!1,withUpdateXDomain:!0,withDimension:!1}),t&&o.rendered&&a.bind(n.api)((e=o.domain)!=null?e:s.x.orgDomain())},transformContext(t,e){const n=this,{$el:{subchart:a},$T:i}=n,s=e!=null&&e.axisSubX?e.axisSubX:i(a.main.select(`.${Fe.axisX}`),t);a.main.attr("transform",n.getTranslate("context")),s.attr("transform",n.getTranslate("subX"))},getExtent(){const t=this,{config:e,scale:n}=t;let a=e.axis_x_extent;if(a){if(ve(a))a=a.bind(t.api)(t.getXDomain(t.data.targets),n.subX);else if(t.axis.isTimeSeries()&&a.every(isNaN)){const i=zn.bind(t);a=a.map(s=>n.subX(i(s)))}}return a}},Hm={initZoom(){const t=this;t.scale.zoom=null,t.generateZoom(),t.initZoomBehaviour()},bindZoomEvent(t=!0){const e=this,{config:n}=e;n.zoom_enabled&&t?!n.subchart_show&&e.bindZoomOnEventRect():t===!1&&(e.api.unzoom(),e.unbindZoomEvent())},generateZoom(){const t=this,{config:e,org:n,scale:a}=t,i=Vm().duration(0).on("start",t.onZoomStart.bind(t)).on("zoom",t.onZoom.bind(t)).on("end",t.onZoomEnd.bind(t));i.orgScaleExtent=()=>{const s=e.zoom_extent||[1,10];return[s[0],Math.max(t.getMaxDataCount()/s[1],s[1])]},i.updateScaleExtent=function(){const s=Lr(t.scale.x.orgDomain())/Lr(t.getZoomDomain()),o=this.orgScaleExtent();return this.scaleExtent([o[0]*s,o[1]*s]),this},i.updateTransformScale=(s,o)=>{var l;const c=e.axis_rotated;(l=n.xScale)==null||l.range(a.x.range());const u=s[c?"rescaleY":"rescaleX"](n.xScale||a.x),g=t.trimXDomain(u.domain()),v=e.zoom_rescale;if(u.domain(g,n.xDomain),o){const m=u(a.x.domain()[0]),S=c?s.x:m,I=c?m:s.y;t.$el.eventRect.property("__zoom",ar.translate(S,I).scale(s.k))}t.state.xTickOffset||(t.state.xTickOffset=t.axis.x.tickOffset()),a.zoom=t.getCustomizedXScale(u),t.axis.x.scale(a.zoom),v?(!n.xScale&&(n.xScale=a.x.copy()),a.x.domain(g)):n.xScale&&(a.x.domain(n.xScale.domain()),n.xScale=null)},i.getDomain=()=>{const s=a[a.zoom?"zoom":"subX"].domain();return t.axis.isCategorized()&&(s[1]-=2),s},t.zoom=i},onZoomStart(t){const e=this,{sourceEvent:n}=t;n&&(e.zoom.startEvent=n,e.state.zooming=!0,_e(e.config.zoom_onzoomstart,e.api,t))},onZoom(t){var e;const n=this,{config:a,scale:i,state:s,org:o}=n,{sourceEvent:l}=t,c=(t==null?void 0:t.transform)===ar;if(!a.zoom_enabled||n.filterTargetsToShow(n.data.targets).length===0||!i.zoom&&(l==null?void 0:l.type.indexOf("touch"))>-1&&(l==null?void 0:l.touches.length)===1)return;t.sourceEvent&&(s.zooming=!0,s.domain=void 0);const u=(l==null?void 0:l.type)==="mousemove",g=(l==null?void 0:l.wheelDelta)<0,{transform:v}=t;!u&&g&&i.x.domain().every((S,I)=>S!==o.xDomain[I])&&i.x.domain(o.xDomain),n.zoom.updateTransformScale(v,a.zoom_type==="wheel"&&l);const m=a.transition_duration>0&&!a.subchart_show&&(s.dragging||c||!t.sourceEvent);n.redraw({withTransition:m,withY:a.zoom_rescale,withSubchart:!1,withEventRect:!1,withDimension:!1}),n.state.cancelClick=u,!c&&_e(a.zoom_onzoom,n.api,(e=n.state.domain)!=null?e:n.zoom.getDomain())},onZoomEnd(t){var e,n;const a=this,{config:i,state:s}=a;let{startEvent:o}=a.zoom,l=t==null?void 0:t.sourceEvent;const c=(t==null?void 0:t.transform)===ar;(o==null?void 0:o.type.indexOf("touch"))>-1&&(o=o.changedTouches[0],l=(e=l==null?void 0:l.changedTouches)==null?void 0:e[0]),!(i.zoom_type==="drag"&&l&&o.clientX===l.clientX&&o.clientY===l.clientY)&&(s.zooming=!1,a.redrawEventRect(),a.updateZoom(),!c&&(l||s.dragging)&&_e(i.zoom_onzoomend,a.api,(n=a.state.domain)!=null?n:a.zoom.getDomain()))},updateZoom(t){const e=this,{subX:n,x:a,zoom:i}=e.scale;if(i){const s=i.domain(),o=n.domain(),l=.015,c=e.config.axis_x_inverted?(s[0]>=o[0]||s[0]+l>=o[0])&&(o[1]>=s[1]||o[1]>=s[1]+l):(s[0]<=o[0]||s[0]-l<=o[0])&&(o[1]<=s[1]||o[1]<=s[1]-l);(t||c)&&(e.axis.x.scale(n),a.domain(n.orgDomain()),e.scale.zoom=null)}},updateCurrentZoomTransform(t,e){const n=this,{$el:{eventRect:a},config:i}=n,s=i.axis_rotated,o=[-t(e[0]),0],l=ar.scale(t.range()[1]/(t(e[1])-t(e[0]))).translate(...s?o.reverse():o);a.call(n.zoom.transform,l)},bindZoomOnEventRect(){var t;const e=this,{config:n,$el:{eventRect:a,svg:i}}=e,s=n.zoom_type==="drag"?e.zoomBehaviour:e.zoom;We.GestureEvent&&/^((?!chrome|android|mobile).)*safari/i.test((t=We.navigator)==null?void 0:t.userAgent)&&i.on("wheel",()=>{}),a==null||a.call(s).on("dblclick.zoom",null)},initZoomBehaviour(){const t=this,{config:e,state:n}=t,a=e.axis_rotated;let i=0,s=0,o;const l={axis:a?"y":"x",attr:a?"height":"width",index:a?1:0};t.zoomBehaviour=lc().clickDistance(4).on("start",function(c){n.event=c,t.setDragStatus(!0),t.unselectRect(),o||(o=t.$el.main.append("rect").attr("clip-path",n.clip.path).attr("class",ss.zoomBrush).attr("width",a?n.width:0).attr("height",a?0:n.height)),i=Hn(c,this)[l.index],s=i,o.attr(l.axis,i).attr(l.attr,0),t.onZoomStart(c)}).on("drag",function(c){s=Hn(c,this)[l.index],o.attr(l.axis,Math.min(i,s)).attr(l.attr,Math.abs(s-i))}).on("end",c=>{const u=t.scale.zoom||t.scale.x;n.event=c,o.attr(l.axis,0).attr(l.attr,0),i>s&&([i,s]=[s,i]),i<0&&(s+=Math.abs(i),i=0),i!==s&&t.api.zoom([i,s].map(g=>u.invert(g))),t.setDragStatus(!1)})},setZoomResetButton(){const t=this,{config:e,$el:n}=t,a=e.zoom_resetButton;a&&e.zoom_type==="drag"&&(n.zoomResetBtn?n.zoomResetBtn.style("display",null):n.zoomResetBtn=t.$el.chart.append("div").classed(Se.button,!0).append("span").on("click",function(){ve(a.onclick)&&a.onclick.bind(t.api)(this),t.api.unzoom()}).classed(ss.buttonZoomReset,!0).text(a.text||"Reset Zoom"))},getZoomTransform(){const t=this,{$el:{eventRect:e}}=t;return e!=null&&e.node()?ho(e.node()):{k:1}}},Wm={drag(t){const e=this,{config:n,state:a,$el:{main:i}}=e,s=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)return;const[l,c]=a.dragStart||[0,0],[u,g]=t,v=Math.min(l,u),m=Math.max(l,u),S=s?a.margin.top:Math.min(c,g),I=s?a.height:Math.max(c,g);i.select(`.${Ir.dragarea}`).attr("x",v).attr("y",S).attr("width",m-v).attr("height",I-S),i.selectAll(`.${sn.shapes}`).selectAll(`.${sn.shape}`).filter(N=>o==null?void 0:o.bind(e.api)(N)).each(function(N,M){const P=st(this),X=P.classed(qe.SELECTED),H=P.classed(Ir.INCLUDED);let Y=!1,_;if(P.classed($n.circle)){const K=+P.attr("cx")*1,at=+P.attr("cy")*1;_=e.togglePoint,Y=v<K&&K<m&&S<at&&at<I}else if(P.classed(Kn.bar)){const{x:K,y:at,width:yt,height:$t}=Xl(this);_=e.togglePath,Y=!(m<K||K+yt<v)&&!(I<at||at+$t<S)}else return;Y^H&&(P.classed(Ir.INCLUDED,!H),P.classed(qe.SELECTED,!X),_.call(e,!X,P,N,M))})},dragstart(t){const e=this,{config:n,state:a,$el:{main:i}}=e;e.hasArcType()||!n.data_selection_enabled||(a.dragStart=t,i.select(`.${Se.chart}`).append("rect").attr("class",Ir.dragarea).style("opacity","0.1"),e.setDragStatus(!0))},dragend(){const t=this,{config:e,$el:{main:n},$T:a}=t;t.hasArcType()||!e.data_selection_enabled||(a(n.select(`.${Ir.dragarea}`)).style("opacity","0").remove(),n.selectAll(`.${sn.shape}`).classed(Ir.INCLUDED,!1),t.setDragStatus(!1))}},Km=Object.defineProperty,Zm=Object.defineProperties,km=Object.getOwnPropertyDescriptors,uu=Object.getOwnPropertySymbols,Jm=Object.prototype.hasOwnProperty,Qm=Object.prototype.propertyIsEnumerable,fu=(t,e,n)=>e in t?Km(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,_m=(t,e)=>{for(var n in e||(e={}))Jm.call(e,n)&&fu(t,n,e[n]);if(uu)for(var n of uu(e))Qm.call(e,n)&&fu(t,n,e[n]);return t},qm=(t,e)=>Zm(t,km(e)),ty=qm(_m({},Wm),{selectPoint(t,e,n){const a=this,{config:i,$el:{main:s},$T:o}=a,l=i.axis_rotated,c=(l?a.circleY:a.circleX).bind(a),u=(l?a.circleX:a.circleY).bind(a),g=a.pointSelectR.bind(a);_e(i.data_onselected,a.api,e,t.node()),o(s.select(`.${qe.selectedCircles}${a.getTargetSelectorSuffix(e.id)}`).selectAll(`.${qe.selectedCircle}-${n}`).data([e]).enter().append("circle").attr("class",()=>a.generateClass(qe.selectedCircle,n)).attr("cx",c).attr("cy",u).attr("stroke",a.color).attr("r",v=>a.pointSelectR(v)*1.4)).attr("r",g)},unselectPoint(t,e,n){const a=this,{config:i,$el:{main:s},$T:o}=a;_e(i.data_onunselected,a.api,e,t==null?void 0:t.node()),o(s.select(`.${qe.selectedCircles}${a.getTargetSelectorSuffix(e.id)}`).selectAll(`.${qe.selectedCircle}-${n}`)).attr("r",0).remove()},togglePoint(t,e,n,a){this[`${t?"":"un"}selectPoint`](e,n,a)},selectPath(t,e){const n=this,{config:a}=n;_e(a.data_onselected,n.api,e,t.node()),a.interaction_brighten&&t.style("filter","brightness(1.25)")},unselectPath(t,e){const n=this,{config:a}=n;_e(a.data_onunselected,n.api,e,t.node()),a.interaction_brighten&&t.style("filter",null)},togglePath(t,e,n,a){this[`${t?"":"un"}selectPath`](e,n,a)},getToggle(t,e){const n=this;return t.nodeName==="path"?n.togglePath:n.isStepType(e)?()=>{}:n.togglePoint},toggleShape(t,e,n){var a;const i=this,{config:s,$el:{main:o}}=i;if(s.data_selection_enabled&&s.data_selection_isselectable.bind(i.api)(e)){const l=st(t),c=l.classed(qe.SELECTED),u=i.getToggle(t,e).bind(i);let g;if(!s.data_selection_multiple){const v=(a=i.isPointFocusOnly)==null?void 0:a.call(i);let m=`.${v?qe.selectedCircles:sn.shapes}`;s.data_selection_grouped&&(m+=i.getTargetSelectorSuffix(e.id)),o.selectAll(m).selectAll(v?`.${qe.selectedCircle}`:`.${sn.shape}.${qe.SELECTED}`).classed(qe.SELECTED,!1).each(function(S){const I=st(this);g=I,u(!1,I,S,S.index)})}(!g||g.node()!==l.node())&&(l.classed(qe.SELECTED,!c),u(!c,l,e,n))}}}),ey={data_selection_enabled:!1,data_selection_grouped:!1,data_selection_isselectable:()=>!0,data_selection_multiple:!0,data_selection_draggable:!1,data_onselected:()=>{},data_onunselected:()=>{}},ny={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:()=>{}},ry={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};let du=()=>(xn(Gr.prototype,ty),xn(br.prototype,Pm),Nr.setOptions([ey]),(du=()=>!0)()),hu=()=>(xn(Gr.prototype,Ym),xn(br.prototype,wm),Nr.setOptions([ny]),(hu=()=>!0)()),gu=()=>(xn(Gr.prototype,Hm),xn(br.prototype,Xm),Nr.setOptions([ry]),(gu=()=>!0)());function vu(t,e,n){const{config:a}=t,i=(s,o)=>{const l=he(o)?o:o===!1?void 0:null;l!==null&&(a[`axis_${s}_${e}`]=l)};ke(n)&&(nr(n)?Object.keys(n).forEach(s=>{i(s,n[s])}):(he(n)||n===!1)&&["y","y2"].forEach(s=>{i(s,n)}),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))}function pu(t,e){const{config:n}=t;return{x:n[`axis_x_${e}`],y:n[`axis_y_${e}`],y2:n[`axis_y2_${e}`]}}var ay={axis:{labels:function(t){const e=this.internal;let n;return t&&(Object.keys(t).forEach(a=>{e.axis.setLabelText(a,t[a])}),e.axis.updateLabels()),["x","y","y2"].forEach(a=>{const i=e.axis.getLabelText(a);i&&(!n&&(n={}),n[a]=i)}),n},min:function(t){const e=this.internal;return we(t)||t===!1?vu(e,"min",t):pu(e,"min")},max:function(t){const e=this.internal;return we(t)||t===!1?vu(e,"max",t):pu(e,"max")},range:function(t){const{axis:e}=this;if(arguments.length){const{min:n,max:a}=t;ke(a)&&e.max(a),ke(n)&&e.min(n)}else return{max:e.max(),min:e.min()}}}},iy={category(t,e){const n=this.internal,{config:a}=n;return arguments.length>1&&(a.axis_x_categories[t]=e,n.redraw()),a.axis_x_categories[t]},categories(t){const e=this.internal,{config:n}=e;if(!t||!Array.isArray(t)){const a=n.axis_x_categories;return _n(a)?Object.values(e.data.xs)[0]:a}return n.axis_x_categories=t,e.redraw(),n.axis_x_categories}},sy={flow(t){const e=this.internal;let n;(t.json||t.rows||t.columns)&&e.convertData(t,i=>{n=i,a()});function a(){let i,s=0,o=0,l,c;if(e.state.redrawing||!n||!Ma())return;const u=[],g=e.getMaxDataCount(),v=e.convertDataToTargets(n,!0),m=e.axis.isTimeSeries();e.data.targets.forEach(N=>{let M=!1;for(let P=0;P<v.length;P++)if(N.id===v[P].id){M=!0,N.values[N.values.length-1]&&(o=N.values[N.values.length-1].index+1),s=v[P].values.length;for(let X=0;X<s;X++)v[P].values[X].index=o+X,m||(v[P].values[X].x=o+X);N.values=N.values.concat(v[P].values),v.splice(P,1);break}!M&&u.push(N.id)}),e.data.targets.forEach(N=>{for(let M=0;M<u.length;M++)if(N.id===u[M]){o=N.values[N.values.length-1].index+1;for(let P=0;P<s;P++)N.values.push({id:N.id,index:o+P,x:m?e.getOtherTargetX(o+P):o+P,value:null})}}),e.data.targets.length&&v.forEach(N=>{const M=[];for(let P=e.data.targets[0].values[0].index;P<o;P++)M.push({id:N.id,index:P,x:m?e.getOtherTargetX(P):P,value:null});N.values.forEach(P=>{P.index+=o,m||(P.x+=o)}),N.values=M.concat(N.values)}),e.data.targets=e.data.targets.concat(v);const S=e.data.targets[0],I=S.values[0];ke(t.to)?(s=0,c=m?zn.call(e,t.to):t.to,S.values.forEach(N=>{N.x<c&&s++})):ke(t.length)&&(s=t.length),g?g===1&&m&&(l=(S.values[S.values.length-1].x-I.x)/2,i=[new Date(+I.x-l),new Date(+I.x+l)]):(m?l=S.values.length>1?S.values[S.values.length-1].x-I.x:I.x-e.getXDomain(e.data.targets)[0]:l=1,i=[I.x-l,I.x]),i&&e.updateXDomain(null,!0,!0,!1,i),e.updateTargets(e.data.targets),e.redraw({flow:{index:I.index,length:s,duration:we(t.duration)?t.duration:e.config.transition_duration,done:t.done,orgDataCount:g},withLegend:!0,withTransition:g>1,withTrimXDomain:!1,withUpdateXAxis:!0})}}};function vo(t,e){const n=this.internal,{config:a}=n,i=a.transition_duration&&Ma(),s=`grid_${e}_lines`;return t&&(a[s]=t,n.updateGrid(),n.redrawGrid(i)),a[s]}function mu(t,e){const n=`grid_${e}_lines`;return vo.bind(this)(this.internal.config[n].concat(t||[]),e)}function yu(t,e){this.internal.removeGridLines(t,e)}const xu=function(t){return vo.bind(this)(t,"x")};xn(xu,{add(t){return mu.bind(this)(t,"x")},remove(t){return yu.bind(this)(t,!0)}});const Tu=function(t){return vo.bind(this)(t,"y")};xn(Tu,{add(t){return mu.bind(this)(t,"y")},remove(t){return yu.bind(this)(t,!1)}});var oy={xgrids:xu,ygrids:Tu},ly={groups(t){const e=this.internal,{config:n}=e;return on(t)||(n.data_groups=t,e.redraw()),n.data_groups}};function $u(t,e=!1){const n=this.internal,{config:a}=n,i=a.transition_duration&&Ma();return t?(a.regions=e?a.regions.concat(t):t,n.updateRegion(),n.redrawRegion(i),e?a.regions:t):a.regions}const Su=function(t){return $u.bind(this)(t)};xn(Su,{add:function(t){return $u.bind(this)(t,!0)},remove:function(t){const e=this.internal,{config:n,$T:a}=e,i=t||{},s=$r(i,"classes",[$a.region]);let o=e.$el.main.select(`.${$a.regions}`).selectAll(s.map(l=>`.${l}`));return a(o).style("opacity","0").remove(),o=n.regions,Object.keys(i).length?(o=o.filter(l=>{let c=!1;return l.class?(l.class.split(" ").forEach(u=>{s.indexOf(u)>=0&&(c=!0)}),!c):!0}),n.regions=o):n.regions=[],o}});var cy={regions:Su},uy={x(t){const e=this.internal,{axis:n,data:a}=e,i=n.isCustomX()&&n.isCategorized();return Be(t)&&(i?this.categories(t):(e.updateTargetX(a.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))),i?this.categories():a.xs},xs(t){const e=this.internal;return Ne(t)&&(e.updateTargetXs(e.data.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),e.data.xs}};function fy(t){return t}var Vi=1,Xi=2,po=3,Ba=4,Au=1e-6;function dy(t){return"translate("+t+",0)"}function hy(t){return"translate(0,"+t+")"}function gy(t){return e=>+t(e)}function vy(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function py(){return!this.__axis}function Yi(t,e){var n=[],a=null,i=null,s=6,o=6,l=3,c=typeof window!="undefined"&&window.devicePixelRatio>1?0:.5,u=t===Vi||t===Ba?-1:1,g=t===Ba||t===Xi?"x":"y",v=t===Vi||t===po?dy:hy;function m(S){var I=a==null?e.ticks?e.ticks.apply(e,n):e.domain():a,N=i==null?e.tickFormat?e.tickFormat.apply(e,n):fy:i,M=Math.max(s,0)+l,P=e.range(),X=+P[0]+c,H=+P[P.length-1]+c,Y=(e.bandwidth?vy:gy)(e.copy(),c),_=S.selection?S.selection():S,K=_.selectAll(".domain").data([null]),at=_.selectAll(".tick").data(I,e).order(),yt=at.exit(),$t=at.enter().append("g").attr("class","tick"),dt=at.select("line"),ft=at.select("text");K=K.merge(K.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),at=at.merge($t),dt=dt.merge($t.append("line").attr("stroke","currentColor").attr(g+"2",u*s)),ft=ft.merge($t.append("text").attr("fill","currentColor").attr(g,u*M).attr("dy",t===Vi?"0em":t===po?"0.71em":"0.32em")),S!==_&&(K=K.transition(S),at=at.transition(S),dt=dt.transition(S),ft=ft.transition(S),yt=yt.transition(S).attr("opacity",Au).attr("transform",function(Ft){return isFinite(Ft=Y(Ft))?v(Ft+c):this.getAttribute("transform")}),$t.attr("opacity",Au).attr("transform",function(Ft){var ht=this.parentNode.__axis;return v((ht&&isFinite(ht=ht(Ft))?ht:Y(Ft))+c)})),yt.remove(),K.attr("d",t===Ba||t===Xi?o?"M"+u*o+","+X+"H"+c+"V"+H+"H"+u*o:"M"+c+","+X+"V"+H:o?"M"+X+","+u*o+"V"+c+"H"+H+"V"+u*o:"M"+X+","+c+"H"+H),at.attr("opacity",1).attr("transform",function(Ft){return v(Y(Ft)+c)}),dt.attr(g+"2",u*s),ft.attr(g,u*M).text(N),_.filter(py).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Xi?"start":t===Ba?"end":"middle"),_.each(function(){this.__axis=Y})}return m.scale=function(S){return arguments.length?(e=S,m):e},m.ticks=function(){return n=Array.from(arguments),m},m.tickArguments=function(S){return arguments.length?(n=S==null?[]:Array.from(S),m):n.slice()},m.tickValues=function(S){return arguments.length?(a=S==null?null:Array.from(S),m):a&&a.slice()},m.tickFormat=function(S){return arguments.length?(i=S,m):i},m.tickSize=function(S){return arguments.length?(s=o=+S,m):s},m.tickSizeInner=function(S){return arguments.length?(s=+S,m):s},m.tickSizeOuter=function(S){return arguments.length?(o=+S,m):o},m.tickPadding=function(S){return arguments.length?(l=+S,m):l},m.offset=function(S){return arguments.length?(c=+S,m):c},m}function my(t){return Yi(Vi,t)}function yy(t){return Yi(Xi,t)}function bu(t){return Yi(po,t)}function Eu(t){return Yi(Ba,t)}var xy=Object.defineProperty,Ty=(t,e,n)=>e in t?xy(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,mo=(t,e,n)=>Ty(t,typeof e!="symbol"?e+"":e,n);class Ru{constructor(e){mo(this,"owner"),mo(this,"config"),mo(this,"scale");const n=zr(),{config:a,params:i}=e;this.owner=e,this.config=a,this.scale=n,(a.noTransition||!i.config.transition_duration)&&(a.withoutTransition=!0),a.range=this.scaleExtent((i.orgXScale||n).range())}static getSizeFor1Char(e){const n={w:5.5,h:11.5};return!e.empty()&&e.select("text").text("0").call(a=>{try{const{width:i,height:s}=a.node().getBBox();i&&s&&(n.w=i,n.h=s)}finally{a.text("")}}),this.getSizeFor1Char=()=>n,n}getTickTransformSetter(e){const{config:n}=this,a=e==="x"?i=>`translate(${i+n.tickOffset},0)`:i=>`translate(0,${i})`;return(i,s)=>{i.attr("transform",o=>we(o)?a(Math.ceil(s(o))):null)}}scaleExtent(e){const n=e[0],a=e[e.length-1];return n<a?[n,a]:[a,n]}generateTicks(e,n){const{tickStepSize:a}=this.owner.params,[i,s]=e.domain();let o=[];if(n&&a){let l=Math.round(i);for(;l<=s;)o.push(l),l+=a}else if(e.ticks){const{tickArguments:l}=this.config;if(e.type==="log"&&!l){const c=zr("_log").domain([i>0?i:1,s]).range(e.range());o=c.ticks();for(let u=s.toFixed().length;o.length>15;u--)o=c.ticks(u);o.splice(0,1,i),o.splice(o.length-1,1,s)}else o=e.ticks(...this.config.tickArguments||[]);o=o.map(c=>Ge(c)&&he(c)&&!isNaN(c)&&Math.round(c*10)/10||c)}return o}copyScale(){const e=this.scale.copy();return e.domain().length||e.domain(this.scale.domain()),e.type=this.scale.type,e}textFormatted(e){const n=this.config.tickFormat,a=/\d+\.\d+0{5,}\d$/.test(e)?+String(e).replace(/0+\d$/,""):e,i=n?n(a):a;return ke(i)?i:""}transitionise(e){const{config:n}=this;let a=e;if(n.withoutTransition)a=e.interrupt();else if(n.transition||!this.owner.params.noTransition)try{a=e.transition(n.transition)}catch(i){}return a}}var $y=Object.defineProperty,Sy=(t,e,n)=>e in t?$y(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ua=(t,e,n)=>Sy(t,typeof e!="symbol"?e+"":e,n);class Ay{constructor(e={}){Ua(this,"helper"),Ua(this,"config"),Ua(this,"params"),Ua(this,"g"),Ua(this,"generatedTicks");const n={innerTickSize:6,outerTickSize:e.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:e.noTransition};n.tickLength=Math.max(n.innerTickSize,0)+n.tickPadding,this.config=n,this.params=e,this.helper=new Ru(this)}create(e){const n=this,{config:a,helper:i,params:s}=n,{scale:o}=i,{orient:l}=a,c=this.splitTickText.bind(n),u=/^(left|right)$/.test(l),g=/^(top|bottom)$/.test(l),v=i.getTickTransformSetter(g?"x":"y"),m=v===i.axisX?"y":"x",S=/^(top|left)$/.test(l)?-1:1,I=s.tickTextRotate;this.config.range=o.rangeExtent?o.rangeExtent():i.scaleExtent((s.orgXScale||o).range());const{innerTickSize:N,tickLength:M,range:P}=a,X=s.id,H=X&&/^(x|y|y2)$/.test(X)?s.config[`axis_${X}_tick_text_position`]:{x:0,y:0},Y=X==="subX"?"subchart_axis_x":`axis_${X}`,_=s.config[`${Y}_show`],K={tick:_?s.config[`${Y}_tick_show`]:!1,text:_?s.config[`${Y}_tick_text_show`]:!1};let at;e.each(function(){const yt=st(this);let $t=this.__chart__||o,dt=i.copyScale();at=yt,this.__chart__=dt,a.tickOffset=s.isCategory?Math.ceil((dt(1)-dt(0))/2):0;const ft=yt.selectAll(".domain").data([0]);if(ft.enter().append("path").attr("class","domain").merge(ft).attr("d",()=>{const Ft=a.outerTickSize*S;return g?`M${P[0]},${Ft}V0H${P[1]}V${Ft}`:`M${Ft},${P[0]}H0V${P[1]}H${Ft}`}),K.tick||K.text){const Ft=a.tickValues||i.generateTicks(dt,u);n.generatedTicks=Ft;let ht=yt.selectAll(".tick").data(Ft,dt);const Z=ht.enter().insert("g",".domain").attr("class","tick"),St=ht.exit().remove();ht=Z.merge(ht),K.tick&&Z.append("line"),K.text&&Z.append("text");const lt=Ru.getSizeFor1Char(ht),At=[];let jt=ht.select("text").selectAll("tspan").data((Kt,ae)=>{const Ve=s.tickMultiline?c(Kt,dt,Ft,u,lt.w):Be(i.textFormatted(Kt))?i.textFormatted(Kt).concat():[i.textFormatted(Kt)];return At[ae]=Ve.length,Ve.map(Oe=>({index:ae,splitted:Oe}))});jt.exit().remove(),jt=jt.enter().append("tspan").merge(jt).text(Kt=>Kt.splitted),jt.attr("x",g?0:M*S).attr("dx",(()=>{let Kt=0;return/(top|bottom)/.test(l)&&I&&(Kt=8*Math.sin(Math.PI*(I/180))*(l==="top"?-1:1)),Kt+(H.x||0)})()).attr("dy",(Kt,ae)=>{const Ve=".71em";let Oe=0;return l!=="top"&&(Oe=lt.h,ae===0&&(Oe=u?-((At[Kt.index]-1)*(lt.h/2)-3):H.y===0?Ve:0)),he(Oe)&&H.y?Oe+H.y:Oe||Ve});const Ut=ht.select("line"),kt=ht.select("text");if(Z.select("line").attr(`${m}2`,N*S),Z.select("text").attr(m,M*S),n.setTickLineTextPosition(Ut,kt),s.tickTitle){const Kt=kt.select("title");(Kt.empty()?kt.append("title"):Kt).text(ae=>s.tickTitle[ae])}if(dt.bandwidth){const Kt=dt,ae=Kt.bandwidth()/2;$t=Ve=>Kt(Ve)+ae,dt=$t}else $t.bandwidth?$t=dt:v(St,dt);ht=s.owner.state.flowing?i.transitionise(ht):s.owner.$T(ht),v(Z,$t),v(ht.style("opacity",null),dt)}}),this.g=at}getGeneratedTicks(e){var n;const a=((n=this.generatedTicks)==null?void 0:n.length)-1;let i=this.generatedTicks;if(a>e){const s=Math.round(a/e+.1);i=this.generatedTicks.map((o,l)=>l%s===0?o:null).filter(o=>o!==null).splice(0,e)}return i}getTickXY(){const{config:e}=this,n={x:0,y:0};return this.params.isCategory&&(n.x=e.tickCentered?0:e.tickOffset,n.y=e.tickCentered?e.tickOffset:0),n}getTickSize(e){const{scale:n}=this.helper,{config:a}=this,{innerTickSize:i,range:s}=a,o=n(e)+(a.tickCentered?0:a.tickOffset);return s[0]<o&&o<s[1]?i:0}setTickLineTextPosition(e,n){const a=this.getTickXY(),{innerTickSize:i,orient:s,tickLength:o,tickOffset:l}=this.config,c=this.params.tickTextRotate,u=I=>{const N=["start","end"];return s==="top"&&N.reverse(),I?N[I>0?0:1]:"middle"},g=I=>I?`rotate(${I})`:null,v=I=>{const N=I/(s==="bottom"?15:23);return I?11.5-2.5*N*(I>0?1:-1):o},{config:{axis_rotated:m,axis_x_tick_text_inner:S}}=this.params.owner;switch(s){case"bottom":e.attr("x1",a.x).attr("x2",a.x).attr("y2",this.getTickSize.bind(this)),n.attr("x",0).attr("y",v(c)).style("text-anchor",u(c)).style("text-anchor",(I,N,{length:M})=>!m&&N===0&&(S===!0||S.first)?"start":!m&&N===M-1&&(S===!0||S.last)?"end":u(c)).attr("transform",g(c));break;case"top":e.attr("x2",0).attr("y2",-i),n.attr("x",0).attr("y",-v(c)*2).style("text-anchor",u(c)).attr("transform",g(c));break;case"left":e.attr("x2",-i).attr("y1",a.y).attr("y2",a.y),n.attr("x",-o).attr("y",l).style("text-anchor","end");break;case"right":e.attr("x2",i).attr("y2",0),n.attr("x",o).attr("y",0).style("text-anchor","start")}}splitTickText(e,n,a,i,s){const{params:o}=this,l=this.helper.textFormatted(e),c=Ge(l)&&l.indexOf(`
|
|
54
|
+
</foreignObject></svg>`;return`data:image/svg+xml;base64,${Tm(v)}`}function Sm(t,e){const{top:n,left:a}=e,{x:i,y:s}=t.getBBox(),{a:o,b:l,c,d:u,e:g,f:v}=t.getScreenCTM(),{width:m,height:S}=t.getBoundingClientRect();return{x:o*i+c*s+g-a,y:l*i+u*s+v-n+(S-Math.round(S/4)),width:m,height:S}}function Am(t){const{left:e,top:n}=t.getBoundingClientRect(),a=s=>s.textContent||s.childElementCount,i=[];return Dr(t.querySelectorAll("text")).filter(a).forEach(s=>{const o=l=>{const{fill:c,fontFamily:u,fontSize:g,textAnchor:v,transform:m}=Ke.getComputedStyle(l),{x:S,y:I,width:N,height:L}=Sm(l,{left:e,top:n});return{[l.textContent]:{x:S,y:I,width:N,height:L,fill:c,fontFamily:u,fontSize:g,textAnchor:v,transform:m}}};if(s.childElementCount>1){const l=[];return Dr(s.querySelectorAll("tspan")).filter(a).forEach(c=>{i.push(o(c))}),l}else i.push(o(s))}),i}function bm(t,e){e.forEach(n=>{Object.keys(n).forEach(a=>{const{x:i,y:s,width:o,height:l,fill:c,fontFamily:u,fontSize:g,transform:v}=n[a];if(t.save(),t.font=`${g} ${u}`,t.fillStyle=c,v==="none")t.fillText(a,i,s);else{const m=v.replace(/(matrix|\(|\))/g,"").split(",");m.splice(4).every(S=>+S==0)?(m.push(i+o-o/4),m.push(s-l+l/3)):(m.push(i),m.push(s)),t.transform(...m),t.fillText(a,0,0)}t.restore()})})}var Em={export(t,e){const n=this.internal,{state:a,$el:{chart:i,svg:s}}=n,{width:o,height:l}=a.current,c=ea({width:o,height:l,preserveAspectRatio:!0,preserveFontStyle:!1,mimeType:"image/png"},t),u=$m(i.node(),c,{width:o,height:l}),g=c.preserveFontStyle?Am(s.node()):[];if(e&&he(e)){const v=new Image;v.crossOrigin="Anonymous",v.onload=()=>{const m=vn.createElement("canvas"),S=m.getContext("2d");m.width=c.width||o,m.height=c.height||l,S.drawImage(v,0,0),g.length&&(bm(S,g),g.length=0),e.bind(this)(m.toDataURL(c.mimeType))},v.src=u}return u}},Rm={focus(t){const e=this.internal,{state:n}=e,a=e.mapToTargetIds(t),i=e.$el.svg.selectAll(e.selectorTargets(a.filter(e.isTargetToShow,e)));this.revert(),this.defocus(),i.classed(_e.focused,!0).classed(_e.defocused,!1),e.hasArcType()&&!n.hasRadar&&(e.expandArc(a),e.hasType("gauge")&&e.markOverlapped(t,e,`.${Un.gaugeValue}`)),e.toggleFocusLegend(a,!0),n.focusedTargetIds=a,n.defocusedTargetIds=n.defocusedTargetIds.filter(s=>a.indexOf(s)<0)},defocus(t){const e=this.internal,{state:n}=e,a=e.mapToTargetIds(t);e.$el.svg.selectAll(e.selectorTargets(a.filter(e.isTargetToShow,e))).classed(_e.focused,!1).classed(_e.defocused,!0),e.hasArcType(null,["polar"])&&(e.unexpandArc(a),e.hasType("gauge")&&e.undoMarkOverlapped(e,`.${Un.gaugeValue}`)),e.toggleFocusLegend(a,!1),n.focusedTargetIds=n.focusedTargetIds.filter(s=>a.indexOf(s)<0),n.defocusedTargetIds=a},revert(t){const e=this.internal,{config:n,state:a,$el:i}=e,s=e.mapToTargetIds(t);i.svg.selectAll(e.selectorTargets(s)).classed(_e.focused,!1).classed(_e.defocused,!1),e.hasArcType(null,["polar"])&&e.unexpandArc(s),n.legend_show&&(e.showLegend(s.filter(e.isLegendToShow.bind(e))),i.legend.selectAll(e.selectorLegends(s)).filter(function(){return st(this).classed(_e.legendItemFocused)}).classed(_e.legendItemFocused,!1)),a.focusedTargetIds=[],a.defocusedTargetIds=[]}},Om={legend:{show:function(t){const e=this.internal;e.showLegend(e.mapToTargetIds(t)),e.updateAndRedraw({withLegend:!0})},hide:function(t){const e=this.internal;e.hideLegend(e.mapToTargetIds(t)),e.updateAndRedraw({withLegend:!0})}}},Im={load(t){const e=this.internal,{config:n}=e;t.xs&&e.addXs(t.xs),"names"in t&&this.data.names(t.names),"classes"in t&&Object.keys(t.classes).forEach(a=>{n.data_classes[a]=t.classes[a]}),"categories"in t&&e.axis.isCategorized()&&(n.axis_x_categories=t.categories),"axes"in t&&Object.keys(t.axes).forEach(a=>{n.data_axes[a]=t.axes[a]}),"colors"in t&&Object.keys(t.colors).forEach(a=>{n.data_colors[a]=t.colors[a]}),"unload"in t&&t.unload!==!1?e.unload(e.mapToTargetIds(t.unload===!0?null:t.unload),()=>{jl(()=>e.loadFromArgs(t))}):e.loadFromArgs(t)},unload(t){const e=this.internal;let n=t||{};_n(n)&&this.tooltip.hide(),ze(n)?n={ids:n}:Xe(n)&&(n={ids:[n]});const a=e.mapToTargetIds(n.ids);e.unload(a,()=>{e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),e.cache.remove(a),cc.call(e,n.done,n.resizeAfter)})}};function iu(t,e,n){const a=this.internal,i=a.mapToTargetIds(e),s=a.state.hiddenTargetIds.map(c=>i.indexOf(c)>-1&&c).filter(Boolean);a.state.toggling=!0,a[`${t?"remove":"add"}HiddenTargetIds`](i);const o=a.$el.svg.selectAll(a.selectorTargets(i)),l=t?null:"0";t&&s.length&&(o.style("display",null),qe(a.config.data_onshown,this,s)),a.$T(o).style("opacity",l,"important").call($i,()=>{var c;!t&&s.length===0&&(o.style("display","none"),qe((c=a.config)==null?void 0:c.data_onhidden,this,i)),o.style("opacity",l)}),n.withLegend&&a[`${t?"show":"hide"}Legend`](i),a.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),a.state.toggling=!1}var Cm={show(t,e={}){iu.call(this,!0,t,e)},hide(t,e={}){iu.call(this,!1,t,e)},toggle(t,e={}){const n=this.internal,a={show:[],hide:[]};n.mapToTargetIds(t).forEach(i=>a[n.isTargetToShow(i)?"hide":"show"].push(i)),a.show.length&&this.show(a.show,e),a.hide.length&&setTimeout(()=>this.hide(a.hide,e),0)}},Pm={tooltip:{show:function(t){var e,n,a;const i=this.internal,{$el:s,config:o,state:{eventReceiver:l,hasFunnel:c,hasTreemap:u,inputType:g}}=i;let v,m;if(t.mouse&&(m=t.mouse),t.data){const{data:S}=t,I=(e=i.getYScaleById(S.id))==null?void 0:e(S.value);if((c||u)&&S.id){const N=i.selectorTarget(S.id,void 0,`.${on.shape}`);l.rect=s.main.select(N)}else i.isMultipleX()?m=[i.xx(S),I]:(o.tooltip_grouped||(m=[0,I]),v=(a=S.index)!=null?a:i.hasArcType()&&S.id?(n=i.getArcElementByIdOrIndex(S.id))==null?void 0:n.datum().index:i.getIndexByX(S.x))}else Je(t.x)?v=i.getIndexByX(t.x):Je(t.index)&&(v=t.index);(g==="mouse"?["mouseover","mousemove"]:["touchstart"]).forEach(S=>{i.dispatchEvent(S,v,m)})},hide:function(){var t,e,n;const a=this.internal,{state:{inputType:i},$el:{tooltip:s}}=a,o=s==null?void 0:s.datum();if(o){const{index:l}=JSON.parse(o.current)[0];(i==="mouse"?["mouseout"]:["touchend"]).forEach(c=>{a.dispatchEvent(c,l)})}i==="touch"&&a.callOverOutForTouch(),a.hideTooltip(!0),(t=a.hideGridFocus)==null||t.call(a),(e=a.unexpandCircles)==null||e.call(a),(n=a.expandBarTypeShapes)==null||n.call(a,!1)}}},wm=Object.defineProperty,Mm=(t,e,n)=>e in t?wm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,su=(t,e,n)=>Mm(t,typeof e!="symbol"?e+"":e,n);class br{constructor(e){su(this,"plugins",[]),su(this,"internal");const n=new Gr(this);this.internal=n,function a(i,s,o){Object.keys(i).forEach(l=>{const c=he(i[l]),u=s!==o,g=cn(i[l]),v=g&&Object.keys(i[l]).length>0;c&&(!u&&v||u)?s[l]=i[l].bind(o):g&&!c?s[l]={}:s[l]=i[l],v&&a(i[l],s[l],o)})}(br.prototype,this,this),pm.call(n,e),n.beforeInit(),n.init()}}xn(br.prototype,[mm,ym,xm,Em,Rm,Om,Im,Cm,Pm]);function ou(t=!1,e,n,a){const i=this,{config:s,$el:{main:o}}=i,l=s.data_selection_grouped,c=s.data_selection_isselectable.bind(i.api);s.data_selection_enabled&&o.selectAll(`.${on.shapes}`).selectAll(`.${on.shape}`).each(function(u){const g=st(this),{id:v,index:m}=u.data?u.data:u,S=i.getToggle(this,u).bind(i),I=l||!e||e.indexOf(v)>=0,N=!n||n.indexOf(m)>=0,L=g.classed(tn.SELECTED);g.classed(ur.line)||g.classed(qa.area)||(t?I&&N&&c(u)&&!L?S(!0,g.classed(tn.SELECTED,!0),u,m):Je(a)&&a&&L&&S(!1,g.classed(tn.SELECTED,!1),u,m):I&&N&&c(u)&&L&&S(!1,g.classed(tn.SELECTED,!1),u,m))})}var Lm={selected(t){const e=this.internal,n=[];return e.$el.main.selectAll(`.${on.shapes+e.getTargetSelectorSuffix(t)}`).selectAll(`.${on.shape}`).filter(function(){return st(this).classed(tn.SELECTED)}).each(a=>n.push(a)),n},select(t,e,n){const a=this.internal;ou.bind(a)(!0,t,e,n)},unselect(t,e){const n=this.internal;ou.bind(n)(!1,t,e)}};const lu=function(t){var e;const n=this.internal,{axis:a,brush:i,config:s,scale:{x:o,subX:l},state:c}=n;let u;return s.subchart_show&&(u=t,Array.isArray(u)?(a.isTimeSeries()&&(u=u.map(v=>zn.bind(n)(v))),n.withinRange(u,n.getZoomDomain("subX",!0),n.getZoomDomain("subX"))&&(c.domain=u,i.move(i.getSelection(),u.map(l)))):u=(e=c.domain)!=null?e:o.orgDomain()),u};xn(lu,{show(){var t,e;const n=this.internal,{$el:{subchart:a},config:i}=n,s=i.subchart_show;if(!s){n.unbindZoomEvent(),i.subchart_show=!s,!a.main&&n.initSubchart();let o=a.main.selectAll(`.${Se.target}`);n.data.targets.length!==o.size()&&(n.updateSizes(),n.updateTargetsForSubchart(n.data.targets),o=(t=a.main)==null?void 0:t.selectAll(`.${Se.target}`)),o==null||o.style("opacity",null),(e=a.main)==null||e.style("display",null),this.resize()}},hide(){const t=this.internal,{$el:{subchart:{main:e}},config:n}=t;n.subchart_show&&(e==null?void 0:e.style("display"))!=="none"&&(n.subchart_show=!1,e.style("display","none"),this.resize())},toggle(){const t=this.internal,{config:e}=t;this.subchart[e.subchart_show?"hide":"show"]()},reset(){const t=this.internal,{brush:e}=t;e.clear(e.getSelection())}});var Dm={subchart:lu},Nm=1e-12;function cu(t){return((t=Math.exp(t))+1/t)/2}function Fm(t){return((t=Math.exp(t))-1/t)/2}function Bm(t){return((t=Math.exp(2*t))-1)/(t+1)}var Um=function t(e,n,a){function i(s,o){var l=s[0],c=s[1],u=s[2],g=o[0],v=o[1],m=o[2],S=g-l,I=v-c,N=S*S+I*I,L,C;if(N<Nm)C=Math.log(m/u)/e,L=function(at){return[l+at*S,c+at*I,u*Math.exp(e*at*C)]};else{var V=Math.sqrt(N),H=(m*m-u*u+a*N)/(2*u*n*V),Y=(m*m-u*u-a*N)/(2*m*n*V),_=Math.log(Math.sqrt(H*H+1)-H),K=Math.log(Math.sqrt(Y*Y+1)-Y);C=(K-_)/e,L=function(at){var mt=at*C,St=cu(_),dt=u/(n*V)*(St*Bm(e*mt+_)-Fm(_));return[l+dt*S,c+dt*I,u*St/cu(e*mt+_)]}}return L.duration=C*1e3*e/Math.SQRT2,L}return i.rho=function(s){var o=Math.max(.001,+s),l=o*o,c=l*l;return t(o,l,c)},i}(Math.SQRT2,2,4),Gi=t=>()=>t;function zm(t,{sourceEvent:e,target:n,transform:a,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:a,enumerable:!0,configurable:!0},_:{value:i}})}function vr(t,e,n){this.k=t,this.x=e,this.y=n}vr.prototype={constructor:vr,scale:function(t){return t===1?this:new vr(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new vr(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 ar=new vr(1,0,0);vo.prototype=vr.prototype;function vo(t){for(;!t.__zoom;)if(!(t=t.parentNode))return ar;return t.__zoom}function po(t){t.stopImmediatePropagation()}function Fa(t){t.preventDefault(),t.stopImmediatePropagation()}function jm(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Gm(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.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 uu(){return this.__zoom||ar}function Vm(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Xm(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ym(t,e,n){var a=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],s=t.invertY(e[0][1])-n[0][1],o=t.invertY(e[1][1])-n[1][1];return t.translate(i>a?(a+i)/2:Math.min(0,a)||Math.max(0,i),o>s?(s+o)/2:Math.min(0,s)||Math.max(0,o))}function Hm(){var t=jm,e=Gm,n=Ym,a=Vm,i=Xm,s=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],l=250,c=Um,u=ni("start","zoom","end"),g,v,m,S=500,I=150,N=0,L=10;function C(Z){Z.property("__zoom",uu).on("wheel.zoom",mt,{passive:!1}).on("mousedown.zoom",St).on("dblclick.zoom",dt).filter(i).on("touchstart.zoom",lt).on("touchmove.zoom",Gt).on("touchend.zoom touchcancel.zoom",gt).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}C.transform=function(Z,$t,ct,At){var Vt=Z.selection?Z.selection():Z;Vt.property("__zoom",uu),Z!==Vt?_(Z,$t,ct,At):Vt.interrupt().each(function(){K(this,arguments).event(At).start().zoom(null,typeof $t=="function"?$t.apply(this,arguments):$t).end()})},C.scaleBy=function(Z,$t,ct,At){C.scaleTo(Z,function(){var Vt=this.__zoom.k,Bt=typeof $t=="function"?$t.apply(this,arguments):$t;return Vt*Bt},ct,At)},C.scaleTo=function(Z,$t,ct,At){C.transform(Z,function(){var Vt=e.apply(this,arguments),Bt=this.__zoom,Kt=ct==null?Y(Vt):typeof ct=="function"?ct.apply(this,arguments):ct,ne=Bt.invert(Kt),le=typeof $t=="function"?$t.apply(this,arguments):$t;return n(H(V(Bt,le),Kt,ne),Vt,o)},ct,At)},C.translateBy=function(Z,$t,ct,At){C.transform(Z,function(){return n(this.__zoom.translate(typeof $t=="function"?$t.apply(this,arguments):$t,typeof ct=="function"?ct.apply(this,arguments):ct),e.apply(this,arguments),o)},null,At)},C.translateTo=function(Z,$t,ct,At,Vt){C.transform(Z,function(){var Bt=e.apply(this,arguments),Kt=this.__zoom,ne=At==null?Y(Bt):typeof At=="function"?At.apply(this,arguments):At;return n(ar.translate(ne[0],ne[1]).scale(Kt.k).translate(typeof $t=="function"?-$t.apply(this,arguments):-$t,typeof ct=="function"?-ct.apply(this,arguments):-ct),Bt,o)},At,Vt)};function V(Z,$t){return $t=Math.max(s[0],Math.min(s[1],$t)),$t===Z.k?Z:new vr($t,Z.x,Z.y)}function H(Z,$t,ct){var At=$t[0]-ct[0]*Z.k,Vt=$t[1]-ct[1]*Z.k;return At===Z.x&&Vt===Z.y?Z:new vr(Z.k,At,Vt)}function Y(Z){return[(+Z[0][0]+ +Z[1][0])/2,(+Z[0][1]+ +Z[1][1])/2]}function _(Z,$t,ct,At){Z.on("start.zoom",function(){K(this,arguments).event(At).start()}).on("interrupt.zoom end.zoom",function(){K(this,arguments).event(At).end()}).tween("zoom",function(){var Vt=this,Bt=arguments,Kt=K(Vt,Bt).event(At),ne=e.apply(Vt,Bt),le=ct==null?Y(ne):typeof ct=="function"?ct.apply(Vt,Bt):ct,Ee=Math.max(ne[1][0]-ne[0][0],ne[1][1]-ne[0][1]),Ie=Vt.__zoom,Ce=typeof $t=="function"?$t.apply(Vt,Bt):$t,Ye=c(Ie.invert(le).concat(Ee/Ie.k),Ce.invert(le).concat(Ee/Ce.k));return function(Fe){if(Fe===1)Fe=Ce;else{var hn=Ye(Fe),kt=Ee/hn[2];Fe=new vr(kt,le[0]-hn[0]*kt,le[1]-hn[1]*kt)}Kt.zoom(null,Fe)}})}function K(Z,$t,ct){return!ct&&Z.__zooming||new at(Z,$t)}function at(Z,$t){this.that=Z,this.args=$t,this.active=0,this.sourceEvent=null,this.extent=e.apply(Z,$t),this.taps=0}at.prototype={event:function(Z){return Z&&(this.sourceEvent=Z),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(Z,$t){return this.mouse&&Z!=="mouse"&&(this.mouse[1]=$t.invert(this.mouse[0])),this.touch0&&Z!=="touch"&&(this.touch0[1]=$t.invert(this.touch0[0])),this.touch1&&Z!=="touch"&&(this.touch1[1]=$t.invert(this.touch1[0])),this.that.__zoom=$t,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(Z){var $t=st(this.that).datum();u.call(Z,this.that,new zm(Z,{sourceEvent:this.sourceEvent,target:C,type:Z,transform:this.that.__zoom,dispatch:u}),$t)}};function mt(Z,...$t){if(!t.apply(this,arguments))return;var ct=K(this,$t).event(Z),At=this.__zoom,Vt=Math.max(s[0],Math.min(s[1],At.k*Math.pow(2,a.apply(this,arguments)))),Bt=Yn(Z);if(ct.wheel)(ct.mouse[0][0]!==Bt[0]||ct.mouse[0][1]!==Bt[1])&&(ct.mouse[1]=At.invert(ct.mouse[0]=Bt)),clearTimeout(ct.wheel);else{if(At.k===Vt)return;ct.mouse=[Bt,At.invert(Bt)],_r(this),ct.start()}Fa(Z),ct.wheel=setTimeout(Kt,I),ct.zoom("mouse",n(H(V(At,Vt),ct.mouse[0],ct.mouse[1]),ct.extent,o));function Kt(){ct.wheel=null,ct.end()}}function St(Z,...$t){if(m||!t.apply(this,arguments))return;var ct=Z.currentTarget,At=K(this,$t,!0).event(Z),Vt=st(Z.view).on("mousemove.zoom",le,!0).on("mouseup.zoom",Ee,!0),Bt=Yn(Z,ct),Kt=Z.clientX,ne=Z.clientY;ls(Z.view),po(Z),At.mouse=[Bt,this.__zoom.invert(Bt)],_r(this),At.start();function le(Ie){if(Fa(Ie),!At.moved){var Ce=Ie.clientX-Kt,Ye=Ie.clientY-ne;At.moved=Ce*Ce+Ye*Ye>N}At.event(Ie).zoom("mouse",n(H(At.that.__zoom,At.mouse[0]=Yn(Ie,ct),At.mouse[1]),At.extent,o))}function Ee(Ie){Vt.on("mousemove.zoom mouseup.zoom",null),cs(Ie.view,At.moved),Fa(Ie),At.event(Ie).end()}}function dt(Z,...$t){if(t.apply(this,arguments)){var ct=this.__zoom,At=Yn(Z.changedTouches?Z.changedTouches[0]:Z,this),Vt=ct.invert(At),Bt=ct.k*(Z.shiftKey?.5:2),Kt=n(H(V(ct,Bt),At,Vt),e.apply(this,$t),o);Fa(Z),l>0?st(this).transition().duration(l).call(_,Kt,At,Z):st(this).call(C.transform,Kt,At,Z)}}function lt(Z,...$t){if(t.apply(this,arguments)){var ct=Z.touches,At=ct.length,Vt=K(this,$t,Z.changedTouches.length===At).event(Z),Bt,Kt,ne,le;for(po(Z),Kt=0;Kt<At;++Kt)ne=ct[Kt],le=Yn(ne,this),le=[le,this.__zoom.invert(le),ne.identifier],Vt.touch0?!Vt.touch1&&Vt.touch0[2]!==le[2]&&(Vt.touch1=le,Vt.taps=0):(Vt.touch0=le,Bt=!0,Vt.taps=1+!!g);g&&(g=clearTimeout(g)),Bt&&(Vt.taps<2&&(v=le[0],g=setTimeout(function(){g=null},S)),_r(this),Vt.start())}}function Gt(Z,...$t){if(this.__zooming){var ct=K(this,$t).event(Z),At=Z.changedTouches,Vt=At.length,Bt,Kt,ne,le;for(Fa(Z),Bt=0;Bt<Vt;++Bt)Kt=At[Bt],ne=Yn(Kt,this),ct.touch0&&ct.touch0[2]===Kt.identifier?ct.touch0[0]=ne:ct.touch1&&ct.touch1[2]===Kt.identifier&&(ct.touch1[0]=ne);if(Kt=ct.that.__zoom,ct.touch1){var Ee=ct.touch0[0],Ie=ct.touch0[1],Ce=ct.touch1[0],Ye=ct.touch1[1],Fe=(Fe=Ce[0]-Ee[0])*Fe+(Fe=Ce[1]-Ee[1])*Fe,hn=(hn=Ye[0]-Ie[0])*hn+(hn=Ye[1]-Ie[1])*hn;Kt=V(Kt,Math.sqrt(Fe/hn)),ne=[(Ee[0]+Ce[0])/2,(Ee[1]+Ce[1])/2],le=[(Ie[0]+Ye[0])/2,(Ie[1]+Ye[1])/2]}else if(ct.touch0)ne=ct.touch0[0],le=ct.touch0[1];else return;ct.zoom("touch",n(H(Kt,ne,le),ct.extent,o))}}function gt(Z,...$t){if(this.__zooming){var ct=K(this,$t).event(Z),At=Z.changedTouches,Vt=At.length,Bt,Kt;for(po(Z),m&&clearTimeout(m),m=setTimeout(function(){m=null},S),Bt=0;Bt<Vt;++Bt)Kt=At[Bt],ct.touch0&&ct.touch0[2]===Kt.identifier?delete ct.touch0:ct.touch1&&ct.touch1[2]===Kt.identifier&&delete ct.touch1;if(ct.touch1&&!ct.touch0&&(ct.touch0=ct.touch1,delete ct.touch1),ct.touch0)ct.touch0[1]=this.__zoom.invert(ct.touch0[0]);else if(ct.end(),ct.taps===2&&(Kt=Yn(Kt,this),Math.hypot(v[0]-Kt[0],v[1]-Kt[1])<L)){var ne=st(this).on("dblclick.zoom");ne&&ne.apply(this,arguments)}}}return C.wheelDelta=function(Z){return arguments.length?(a=typeof Z=="function"?Z:Gi(+Z),C):a},C.filter=function(Z){return arguments.length?(t=typeof Z=="function"?Z:Gi(!!Z),C):t},C.touchable=function(Z){return arguments.length?(i=typeof Z=="function"?Z:Gi(!!Z),C):i},C.extent=function(Z){return arguments.length?(e=typeof Z=="function"?Z:Gi([[+Z[0][0],+Z[0][1]],[+Z[1][0],+Z[1][1]]]),C):e},C.scaleExtent=function(Z){return arguments.length?(s[0]=+Z[0],s[1]=+Z[1],C):[s[0],s[1]]},C.translateExtent=function(Z){return arguments.length?(o[0][0]=+Z[0][0],o[1][0]=+Z[1][0],o[0][1]=+Z[0][1],o[1][1]=+Z[1][1],C):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},C.constrain=function(Z){return arguments.length?(n=Z,C):n},C.duration=function(Z){return arguments.length?(l=+Z,C):l},C.interpolate=function(Z){return arguments.length?(c=Z,C):c},C.on=function(){var Z=u.on.apply(u,arguments);return Z===u?C:Z},C.clickDistance=function(Z){return arguments.length?(N=(Z=+Z)*Z,C):Math.sqrt(N)},C.tapDistance=function(Z){return arguments.length?(L=+Z,C):L},C}const fu=function(t){var e;const n=this.internal,{axis:a,config:i,org:s,scale:o,state:l}=n,c=a.isCategorized();let u;if(i.zoom_enabled)if(u=t,Array.isArray(u)){if(a.isTimeSeries()&&(u=u.map(v=>zn.bind(n)(v))),n.withinRange(u,n.getZoomDomain("zoom",!0),n.getZoomDomain("zoom"))){if(l.domain=u,u=n.getZoomDomainValue(u),n.api.tooltip.hide(),i.subchart_show){const v=o.zoom||o.x;n.brush.getSelection().call(n.brush.move,u.map(v))}else{const v=c?o.x.orgScale():s.xScale||o.x;n.updateCurrentZoomTransform(v,u)}n.setZoomResetButton()}}else u=n.zoom.getDomain();return(e=l.domain)!=null?e:u};xn(fu,{enable(t){const e=this.internal,{config:n}=e;/^(drag|wheel)$/.test(t)&&(n.zoom_type=t),n.zoom_enabled=!!t,e.zoom?t===!1&&e.bindZoomEvent(!1):(e.initZoom(),e.bindZoomEvent()),e.updateAndRedraw()},max(t){const e=this.internal,{config:n,org:{xDomain:a}}=e;return(t===0||t)&&(n.zoom_x_max=qn("max",[a[1],t])),n.zoom_x_max},min(t){const e=this.internal,{config:n,org:{xDomain:a}}=e;return(t===0||t)&&(n.zoom_x_min=qn("min",[a[0],t])),n.zoom_x_min},range(t){const e=this.zoom;if(Be(t)){const{min:n,max:a}=t;Je(n)&&e.min(n),Je(a)&&e.max(a)}return{min:e.min(),max:e.max()}}});var Wm={zoom:fu,unzoom(){const t=this.internal,{config:e,$el:{eventRect:n,zoomResetBtn:a},scale:{zoom:i},state:s}=t;i&&(e.subchart_show?t.brush.getSelection().call(t.brush.move,null):t.zoom.updateTransformScale(ar),t.updateZoom(!0),a==null||a.style("display","none"),vo(n.node())!==ar&&t.zoom.transform(n,ar),s.domain=void 0)}},Km={initBrush(){const t=this,{config:e,scale:n,$el:{subchart:a},state:i}=t,s=e.axis_rotated,o=e.subchart_size_height;let l,c,u;t.brush=(s?Vg():Gg()).handleSize(5),t.brush.on("start brush end",g=>{const{selection:v,sourceEvent:m,target:S,type:I}=g;I==="start"&&(t.state.inputType==="touch"&&t.hideTooltip(),c=m?v:null),/(start|brush)/.test(I)&&(I==="brush"&&m&&i.domain&&(c==null||c.forEach((N,L)=>{N!==v[L]&&(i.domain[L]=n.x.orgDomain()[L])})),t.redrawForBrush(I!=="start")),I==="end"&&(l=n.x.orgDomain()),S!=null&&S.handle&&(v===null?t.brush.handle.attr("display","none"):t.brush.handle.attr("display",null).attr("transform",(N,L)=>{const C=[v[L],o/2];return`translate(${s?C.reverse():C})`}))}),t.brush.updateResize=function(){u&&clearTimeout(u),u=setTimeout(()=>{const g=this.getSelection();l&&zl(g.node())&&this.move(g,l.map(n.subX.orgScale()))},0)},t.brush.update=function(){var g;return this.extent()()[1].filter(m=>isNaN(m)).length===0&&((g=a.main)==null||g.select(`.${Ue.brush}`).call(this)),this},t.brush.scale=function(g){const v=e.subchart_size_height;let m=t.getExtent();!m&&g.range?m=[[0,0],[g.range()[1],v]]:ze(m)&&(m=m.map((S,I)=>[S,I>0?v:I])),s&&m[1].reverse(),this.extent(m),this.update()},t.brush.getSelection=()=>a.main?a.main.select(`.${Ue.brush}`):st([])},initSubchart(){const t=this,{config:e,state:{clip:n,hasAxis:a},$el:{defs:i,svg:s,subchart:o,axis:l}}=t;if(!a)return;const c=e.subchart_show?null:"hidden",u=`${n.id}-subchart`,g=t.getClipPath(u);n.idSubchart=u,t.appendClip(i,u),t.initBrush(),o.main=s.append("g").classed(Ue.subchart,!0).attr("transform",t.getTranslate("context"));const{main:v}=o;v.style("visibility",c),v.append("g").attr("clip-path",g).attr("class",Ue.chart),["bar","line","bubble","candlestick","scatter"].forEach(S=>{const I=Ln(/^(bubble|scatter)$/.test(S)?"circle":S);if(t.hasType(S)||t.hasTypeOf(I)){const N=v.select(`.${Ue.chart}`),L=Ue[`chart${I}s`];N.select(`.${L}`).empty()&&N.append("g").attr("class",L)}});const m=v.append("g").attr("clip-path",g).attr("class",Ue.brush).call(t.brush);e.subchart_showHandle&&t.addBrushHandle(m),l.subX=v.append("g").attr("class",Ue.axisX).attr("transform",t.getTranslate("subX")).attr("clip-path",e.axis_rotated?"":n.pathXAxis).style("visibility",e.subchart_axis_x_show?c:"hidden")},addBrushHandle(t){const e=this,{config:n}=e,a=n.axis_rotated,i=n.subchart_init_range,s="handle--custom",o=a?["M8.5 0 a6 6 0 0 0 -6 -6.5 H-2.5 a 6 6 0 0 0 -6 6.5 z m-5 -2 H-3.5 m7 -2 H-3.5z","M8.5 0 a6 -6 0 0 1 -6 6.5 H-2.5 a 6 -6 0 0 1 -6 -6.5z m-5 2 H-3.5 m7 2 H-3.5z"]:["M0 -8.5 A6 6 0 0 0 -6.5 -3.5 V2.5 A6 6 0 0 0 0 8.5 Z M-2 -3.5 V3.5 M-4 -3.5 V3.5z","M0 -8.5 A6 6 0 0 1 6.5 -3.5 V2.5 A6 6 0 0 1 0 8.5 Z M2 -3.5 V3.5 M4 -3.5 V3.5z"];e.brush.handle=t.selectAll(`.${s}`).data(a?[{type:"n"},{type:"s"}]:[{type:"w"},{type:"e"}]).enter().append("path").attr("class",s).attr("cursor",`${a?"ns":"ew"}-resize`).attr("d",l=>o[+/[se]/.test(l.type)]).attr("display",i?null:"none")},updateTargetsForSubchart(t){const e=this,{config:n,state:a,$el:{subchart:{main:i}}}=e;n.subchart_show&&(["bar","line","bubble","candlestick","scatter"].filter(s=>e.hasType(s)||e.hasTypeOf(Ln(s))).forEach(s=>{const o=/^(bubble|scatter)$/.test(s),l=Ln(o?"circle":s),c=e.getChartClass(l,!0),u=e.getClass(o?"circles":`${s}s`,!0),g=i.select(`.${Ue[`chart${`${l}s`}`]}`);if(o){const v=g.selectAll(`.${Ue.circles}`).data(t.filter(e[`is${Ln(s)}Type`].bind(e))).attr("class",u);v.exit().remove(),v.enter().append("g").attr("class",u)}else{const v=g.selectAll(`.${Ue[`chart${l}`]}`).attr("class",c).data(t.filter(e[`is${l}Type`].bind(e))),m=v.enter().append("g").style("opacity","0").attr("class",c).append("g").attr("class",u);v.exit().remove(),s==="line"&&e.hasTypeOf("Area")&&m.append("g").attr("class",e.getClass("areas",!0))}}),i.selectAll(`.${Ue.brush} rect`).attr(n.axis_rotated?"width":"height",n.axis_rotated?a.width2:a.height2))},redrawSubchart(t,e,n){var a;const i=this,{config:s,$el:{subchart:{main:o}},state:l}=i,c=!!e;if(o.style("visibility",s.subchart_show?null:"hidden"),s.subchart_show&&(((a=l.event)==null?void 0:a.type)==="zoom"&&i.brush.update(),t)){const u=s.subchart_init_range;if(!Kl(i)&&i.brush.update(),Object.keys(n.type).forEach(g=>{const v=Ln(g),m=i[`generateDraw${v}`](n.indices[g],!0);i[`update${v}`](c,!0),i[`redraw${v}`](m,c,!0)}),i.hasType("bubble")||i.hasType("scatter")){const{cx:g}=n.pos,v=i.updateCircleY(!0);i.updateCircle(!0),i.redrawCircle(g,v,c,void 0,!0)}!l.rendered&&u&&(l.domain=u,i.brush.move(i.brush.getSelection(),u.map(i.scale.x)))}},redrawForBrush(t=!0){var e;const n=this,{config:{subchart_onbrush:a,zoom_rescale:i},scale:s,state:o}=n;n.redraw({withTransition:!1,withY:i,withSubchart:!1,withUpdateXDomain:!0,withDimension:!1}),t&&o.rendered&&a.bind(n.api)((e=o.domain)!=null?e:s.x.orgDomain())},transformContext(t,e){const n=this,{$el:{subchart:a},$T:i}=n,s=e!=null&&e.axisSubX?e.axisSubX:i(a.main.select(`.${Ue.axisX}`),t);a.main.attr("transform",n.getTranslate("context")),s.attr("transform",n.getTranslate("subX"))},getExtent(){const t=this,{config:e,scale:n}=t;let a=e.axis_x_extent;if(a){if(he(a))a=a.bind(t.api)(t.getXDomain(t.data.targets),n.subX);else if(t.axis.isTimeSeries()&&a.every(isNaN)){const i=zn.bind(t);a=a.map(s=>n.subX(i(s)))}}return a}},Zm={initZoom(){const t=this;t.scale.zoom=null,t.generateZoom(),t.config.zoom_type==="drag"&&t.initZoomBehaviour()},bindZoomEvent(t=!0){const e=this,{config:n}=e;n.zoom_enabled&&t?!n.subchart_show&&e.bindZoomOnEventRect():t===!1&&(e.api.unzoom(),e.unbindZoomEvent())},generateZoom(){const t=this,{config:e,org:n,scale:a}=t,i=Hm().duration(0).on("start",t.onZoomStart.bind(t)).on("zoom",t.onZoom.bind(t)).on("end",t.onZoomEnd.bind(t));i.orgScaleExtent=()=>{const s=e.zoom_extent||[1,10];return[s[0],Math.max(t.getMaxDataCount()/s[1],s[1])]},i.updateScaleExtent=function(){const s=Lr(t.scale.x.orgDomain())/Lr(t.getZoomDomain()),o=this.orgScaleExtent();return this.scaleExtent([o[0]*s,o[1]*s]),this},i.updateTransformScale=(s,o)=>{var l;const c=e.axis_rotated;(l=n.xScale)==null||l.range(a.x.range());const u=s[c?"rescaleY":"rescaleX"](n.xScale||a.x);if(u.domain().some(m=>/(Invalid Date|NaN)/.test(m.toString())))return;const g=t.trimXDomain(u.domain()),v=e.zoom_rescale;if(u.domain(g,n.xDomain),o){const m=u(a.x.domain()[0]),S=c?s.x:m,I=c?m:s.y;t.$el.eventRect.property("__zoom",ar.translate(S,I).scale(s.k))}t.state.xTickOffset||(t.state.xTickOffset=t.axis.x.tickOffset()),a.zoom=t.getCustomizedXScale(u),t.axis.x.scale(a.zoom),v?(!n.xScale&&(n.xScale=a.x.copy()),a.x.domain(g)):n.xScale&&(a.x.domain(n.xScale.domain()),n.xScale=null)},i.getDomain=()=>{const s=a[a.zoom?"zoom":"subX"].domain();return t.axis.isCategorized()&&(s[1]-=2),s},t.zoom=i},onZoomStart(t){const e=this,{sourceEvent:n}=t;n&&(e.zoom.startEvent=n,e.state.zooming=!0,qe(e.config.zoom_onzoomstart,e.api,t))},onZoom(t){var e;const n=this,{config:a,scale:i,state:s,org:o}=n,{sourceEvent:l}=t,c=(t==null?void 0:t.transform)===ar;if(!a.zoom_enabled||n.filterTargetsToShow(n.data.targets).length===0||!i.zoom&&(l==null?void 0:l.type.indexOf("touch"))>-1&&(l==null?void 0:l.touches.length)===1)return;t.sourceEvent&&(s.zooming=!0,s.domain=void 0);const u=(l==null?void 0:l.type)==="mousemove",g=(l==null?void 0:l.wheelDelta)<0,{transform:v}=t;!u&&g&&i.x.domain().every((S,I)=>S!==o.xDomain[I])&&i.x.domain(o.xDomain),n.zoom.updateTransformScale(v,a.zoom_type==="wheel"&&l);const m=a.transition_duration>0&&!a.subchart_show&&(s.dragging||c||!t.sourceEvent);n.redraw({withTransition:m,withY:a.zoom_rescale,withSubchart:!1,withEventRect:!1,withDimension:!1}),n.state.cancelClick=u,!c&&qe(a.zoom_onzoom,n.api,(e=n.state.domain)!=null?e:n.zoom.getDomain())},onZoomEnd(t){var e,n;const a=this,{config:i,state:s}=a;let{startEvent:o}=a.zoom,l=t==null?void 0:t.sourceEvent;const c=(t==null?void 0:t.transform)===ar;(o==null?void 0:o.type.indexOf("touch"))>-1&&(o=o.changedTouches[0],l=(e=l==null?void 0:l.changedTouches)==null?void 0:e[0]),!(i.zoom_type==="drag"&&l&&o.clientX===l.clientX&&o.clientY===l.clientY)&&(s.zooming=!1,a.redrawEventRect(),a.updateZoom(),!c&&(l||s.dragging)&&qe(i.zoom_onzoomend,a.api,(n=a.state.domain)!=null?n:a.zoom.getDomain()))},updateZoom(t){const e=this,{subX:n,x:a,zoom:i}=e.scale;if(i){const s=i.domain(),o=n.domain(),l=.015,c=e.config.axis_x_inverted?(s[0]>=o[0]||s[0]+l>=o[0])&&(o[1]>=s[1]||o[1]>=s[1]+l):(s[0]<=o[0]||s[0]-l<=o[0])&&(o[1]<=s[1]||o[1]<=s[1]-l);(t||c)&&(e.axis.x.scale(n),a.domain(n.orgDomain()),e.scale.zoom=null)}},updateCurrentZoomTransform(t,e){const n=this,{$el:{eventRect:a},config:i}=n,s=i.axis_rotated,o=[-t(e[0]),0],l=ar.scale(t.range()[1]/(t(e[1])-t(e[0]))).translate(...s?o.reverse():o);a.call(n.zoom.transform,l)},bindZoomOnEventRect(){var t;const e=this,{config:n,$el:{eventRect:a,svg:i}}=e,s=n.zoom_type==="drag"?e.zoomBehaviour:e.zoom;Ke.GestureEvent&&/^((?!chrome|android|mobile).)*safari/i.test((t=Ke.navigator)==null?void 0:t.userAgent)&&i.on("wheel",()=>{}),a==null||a.call(s).on("dblclick.zoom",null)},initZoomBehaviour(){const t=this,{config:e,state:n}=t,a=e.axis_rotated;let i=0,s=0,o;const l={axis:a?"y":"x",attr:a?"height":"width",index:a?1:0};t.zoomBehaviour=uc().clickDistance(4).on("start",function(c){n.event=c,t.setDragStatus(!0),t.unselectRect(),o||(o=t.$el.main.append("rect").attr("clip-path",n.clip.path).attr("class",ss.zoomBrush).attr("width",a?n.width:0).attr("height",a?0:n.height)),i=Hn(c,this)[l.index],s=i,o.attr(l.axis,i).attr(l.attr,0),t.onZoomStart(c)}).on("drag",function(c){s=Hn(c,this)[l.index],o.attr(l.axis,Math.min(i,s)).attr(l.attr,Math.abs(s-i))}).on("end",c=>{const u=t.scale.zoom||t.scale.x;n.event=c,o.attr(l.axis,0).attr(l.attr,0),i>s&&([i,s]=[s,i]),i<0&&(s+=Math.abs(i),i=0),i!==s&&t.api.zoom([i,s].map(g=>u.invert(g))),t.setDragStatus(!1)})},setZoomResetButton(){const t=this,{config:e,$el:n}=t,a=e.zoom_resetButton;a&&e.zoom_type==="drag"&&(n.zoomResetBtn?n.zoomResetBtn.style("display",null):n.zoomResetBtn=t.$el.chart.append("div").classed(Se.button,!0).append("span").on("click",function(){he(a.onclick)&&a.onclick.bind(t.api)(this),t.api.unzoom()}).classed(ss.buttonZoomReset,!0).text(a.text||"Reset Zoom"))},getZoomTransform(){const t=this,{$el:{eventRect:e}}=t;return e!=null&&e.node()?vo(e.node()):{k:1}}},km={drag(t){const e=this,{config:n,state:a,$el:{main:i}}=e,s=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)return;const[l,c]=a.dragStart||[0,0],[u,g]=t,v=Math.min(l,u),m=Math.max(l,u),S=s?a.margin.top:Math.min(c,g),I=s?a.height:Math.max(c,g);i.select(`.${Ir.dragarea}`).attr("x",v).attr("y",S).attr("width",m-v).attr("height",I-S),i.selectAll(`.${on.shapes}`).selectAll(`.${on.shape}`).filter(N=>o==null?void 0:o.bind(e.api)(N)).each(function(N,L){const C=st(this),V=C.classed(tn.SELECTED),H=C.classed(Ir.INCLUDED);let Y=!1,_;if(C.classed($n.circle)){const K=+C.attr("cx")*1,at=+C.attr("cy")*1;_=e.togglePoint,Y=v<K&&K<m&&S<at&&at<I}else if(C.classed(Kn.bar)){const{x:K,y:at,width:mt,height:St}=Hl(this);_=e.togglePath,Y=!(m<K||K+mt<v)&&!(I<at||at+St<S)}else return;Y^H&&(C.classed(Ir.INCLUDED,!H),C.classed(tn.SELECTED,!V),_.call(e,!V,C,N,L))})},dragstart(t){const e=this,{config:n,state:a,$el:{main:i}}=e;e.hasArcType()||!n.data_selection_enabled||(a.dragStart=t,i.select(`.${Se.chart}`).append("rect").attr("class",Ir.dragarea).style("opacity","0.1"),e.setDragStatus(!0))},dragend(){const t=this,{config:e,$el:{main:n},$T:a}=t;t.hasArcType()||!e.data_selection_enabled||(a(n.select(`.${Ir.dragarea}`)).style("opacity","0").remove(),n.selectAll(`.${on.shape}`).classed(Ir.INCLUDED,!1),t.setDragStatus(!1))}},Jm=Object.defineProperty,Qm=Object.defineProperties,_m=Object.getOwnPropertyDescriptors,du=Object.getOwnPropertySymbols,qm=Object.prototype.hasOwnProperty,ty=Object.prototype.propertyIsEnumerable,hu=(t,e,n)=>e in t?Jm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ey=(t,e)=>{for(var n in e||(e={}))qm.call(e,n)&&hu(t,n,e[n]);if(du)for(var n of du(e))ty.call(e,n)&&hu(t,n,e[n]);return t},ny=(t,e)=>Qm(t,_m(e)),ry=ny(ey({},km),{selectPoint(t,e,n){const a=this,{config:i,$el:{main:s},$T:o}=a,l=i.axis_rotated,c=(l?a.circleY:a.circleX).bind(a),u=(l?a.circleX:a.circleY).bind(a),g=a.pointSelectR.bind(a);qe(i.data_onselected,a.api,e,t.node()),o(s.select(`.${tn.selectedCircles}${a.getTargetSelectorSuffix(e.id)}`).selectAll(`.${tn.selectedCircle}-${n}`).data([e]).enter().append("circle").attr("class",()=>a.generateClass(tn.selectedCircle,n)).attr("cx",c).attr("cy",u).attr("stroke",a.color).attr("r",v=>a.pointSelectR(v)*1.4)).attr("r",g)},unselectPoint(t,e,n){const a=this,{config:i,$el:{main:s},$T:o}=a;qe(i.data_onunselected,a.api,e,t==null?void 0:t.node()),o(s.select(`.${tn.selectedCircles}${a.getTargetSelectorSuffix(e.id)}`).selectAll(`.${tn.selectedCircle}-${n}`)).attr("r",0).remove()},togglePoint(t,e,n,a){this[`${t?"":"un"}selectPoint`](e,n,a)},selectPath(t,e){const n=this,{config:a}=n;qe(a.data_onselected,n.api,e,t.node()),a.interaction_brighten&&t.style("filter","brightness(1.25)")},unselectPath(t,e){const n=this,{config:a}=n;qe(a.data_onunselected,n.api,e,t.node()),a.interaction_brighten&&t.style("filter",null)},togglePath(t,e,n,a){this[`${t?"":"un"}selectPath`](e,n,a)},getToggle(t,e){const n=this;return t.nodeName==="path"?n.togglePath:n.isStepType(e)?()=>{}:n.togglePoint},toggleShape(t,e,n){var a;const i=this,{config:s,$el:{main:o}}=i;if(s.data_selection_enabled&&s.data_selection_isselectable.bind(i.api)(e)){const l=st(t),c=l.classed(tn.SELECTED),u=i.getToggle(t,e).bind(i);let g;if(!s.data_selection_multiple){const v=(a=i.isPointFocusOnly)==null?void 0:a.call(i);let m=`.${v?tn.selectedCircles:on.shapes}`;s.data_selection_grouped&&(m+=i.getTargetSelectorSuffix(e.id)),o.selectAll(m).selectAll(v?`.${tn.selectedCircle}`:`.${on.shape}.${tn.SELECTED}`).classed(tn.SELECTED,!1).each(function(S){const I=st(this);g=I,u(!1,I,S,S.index)})}(!g||g.node()!==l.node())&&(l.classed(tn.SELECTED,!c),u(!c,l,e,n))}}}),ay={data_selection_enabled:!1,data_selection_grouped:!1,data_selection_isselectable:()=>!0,data_selection_multiple:!0,data_selection_draggable:!1,data_onselected:()=>{},data_onunselected:()=>{}},iy={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:()=>{}},sy={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};let gu=()=>(xn(Gr.prototype,ry),xn(br.prototype,Lm),Nr.setOptions([ay]),(gu=()=>!0)()),vu=()=>(xn(Gr.prototype,Km),xn(br.prototype,Dm),Nr.setOptions([iy]),(vu=()=>!0)()),pu=()=>(xn(Gr.prototype,Zm),xn(br.prototype,Wm),Nr.setOptions([sy]),(pu=()=>!0)());function mu(t,e,n){const{config:a}=t,i=(s,o)=>{const l=ge(o)?o:o===!1?void 0:null;l!==null&&(a[`axis_${s}_${e}`]=l)};Je(n)&&(nr(n)?Object.keys(n).forEach(s=>{i(s,n[s])}):(ge(n)||n===!1)&&["y","y2"].forEach(s=>{i(s,n)}),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))}function yu(t,e){const{config:n}=t;return{x:n[`axis_x_${e}`],y:n[`axis_y_${e}`],y2:n[`axis_y2_${e}`]}}var oy={axis:{labels:function(t){const e=this.internal;let n;return t&&(Object.keys(t).forEach(a=>{e.axis.setLabelText(a,t[a])}),e.axis.updateLabels()),["x","y","y2"].forEach(a=>{const i=e.axis.getLabelText(a);i&&(!n&&(n={}),n[a]=i)}),n},min:function(t){const e=this.internal;return Le(t)||t===!1?mu(e,"min",t):yu(e,"min")},max:function(t){const e=this.internal;return Le(t)||t===!1?mu(e,"max",t):yu(e,"max")},range:function(t){const{axis:e}=this;if(arguments.length){const{min:n,max:a}=t;Je(a)&&e.max(a),Je(n)&&e.min(n)}else return{max:e.max(),min:e.min()}}}},ly={category(t,e){const n=this.internal,{config:a}=n;return arguments.length>1&&(a.axis_x_categories[t]=e,n.redraw()),a.axis_x_categories[t]},categories(t){const e=this.internal,{config:n}=e;if(!t||!Array.isArray(t)){const a=n.axis_x_categories;return _n(a)?Object.values(e.data.xs)[0]:a}return n.axis_x_categories=t,e.redraw(),n.axis_x_categories}},cy={flow(t){const e=this.internal;let n;(t.json||t.rows||t.columns)&&e.convertData(t,i=>{n=i,a()});function a(){let i,s=0,o=0,l,c;if(e.state.redrawing||!n||!Ma())return;const u=[],g=e.getMaxDataCount(),v=e.convertDataToTargets(n,!0),m=e.axis.isTimeSeries();e.data.targets.forEach(N=>{let L=!1;for(let C=0;C<v.length;C++)if(N.id===v[C].id){L=!0,N.values[N.values.length-1]&&(o=N.values[N.values.length-1].index+1),s=v[C].values.length;for(let V=0;V<s;V++)v[C].values[V].index=o+V,m||(v[C].values[V].x=o+V);N.values=N.values.concat(v[C].values),v.splice(C,1);break}!L&&u.push(N.id)}),e.data.targets.forEach(N=>{for(let L=0;L<u.length;L++)if(N.id===u[L]){o=N.values[N.values.length-1].index+1;for(let C=0;C<s;C++)N.values.push({id:N.id,index:o+C,x:m?e.getOtherTargetX(o+C):o+C,value:null})}}),e.data.targets.length&&v.forEach(N=>{const L=[];for(let C=e.data.targets[0].values[0].index;C<o;C++)L.push({id:N.id,index:C,x:m?e.getOtherTargetX(C):C,value:null});N.values.forEach(C=>{C.index+=o,m||(C.x+=o)}),N.values=L.concat(N.values)}),e.data.targets=e.data.targets.concat(v);const S=e.data.targets[0],I=S.values[0];Je(t.to)?(s=0,c=m?zn.call(e,t.to):t.to,S.values.forEach(N=>{N.x<c&&s++})):Je(t.length)&&(s=t.length),g?g===1&&m&&(l=(S.values[S.values.length-1].x-I.x)/2,i=[new Date(+I.x-l),new Date(+I.x+l)]):(m?l=S.values.length>1?S.values[S.values.length-1].x-I.x:I.x-e.getXDomain(e.data.targets)[0]:l=1,i=[I.x-l,I.x]),i&&e.updateXDomain(null,!0,!0,!1,i),e.updateTargets(e.data.targets),e.redraw({flow:{index:I.index,length:s,duration:Le(t.duration)?t.duration:e.config.transition_duration,done:t.done,orgDataCount:g},withLegend:!0,withTransition:g>1,withTrimXDomain:!1,withUpdateXAxis:!0})}}};function mo(t,e){const n=this.internal,{config:a}=n,i=a.transition_duration&&Ma(),s=`grid_${e}_lines`;return t&&(a[s]=t,n.updateGrid(),n.redrawGrid(i)),a[s]}function xu(t,e){const n=`grid_${e}_lines`;return mo.bind(this)(this.internal.config[n].concat(t||[]),e)}function Tu(t,e){this.internal.removeGridLines(t,e)}const $u=function(t){return mo.bind(this)(t,"x")};xn($u,{add(t){return xu.bind(this)(t,"x")},remove(t){return Tu.bind(this)(t,!0)}});const Su=function(t){return mo.bind(this)(t,"y")};xn(Su,{add(t){return xu.bind(this)(t,"y")},remove(t){return Tu.bind(this)(t,!1)}});var uy={xgrids:$u,ygrids:Su},fy={groups(t){const e=this.internal,{config:n}=e;return ln(t)||(n.data_groups=t,e.redraw()),n.data_groups}};function Au(t,e=!1){const n=this.internal,{config:a}=n,i=a.transition_duration&&Ma();return t?(a.regions=e?a.regions.concat(t):t,n.updateRegion(),n.redrawRegion(i),e?a.regions:t):a.regions}const bu=function(t){return Au.bind(this)(t)};xn(bu,{add:function(t){return Au.bind(this)(t,!0)},remove:function(t){const e=this.internal,{config:n,$T:a}=e,i=t||{},s=$r(i,"classes",[$a.region]);let o=e.$el.main.select(`.${$a.regions}`).selectAll(s.map(l=>`.${l}`));return a(o).style("opacity","0").remove(),o=n.regions,Object.keys(i).length?(o=o.filter(l=>{let c=!1;return l.class?(l.class.split(" ").forEach(u=>{s.indexOf(u)>=0&&(c=!0)}),!c):!0}),n.regions=o):n.regions=[],o}});var dy={regions:bu},hy={x(t){const e=this.internal,{axis:n,data:a}=e,i=n.isCustomX()&&n.isCategorized();return ze(t)&&(i?this.categories(t):(e.updateTargetX(a.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))),i?this.categories():a.xs},xs(t){const e=this.internal;return Be(t)&&(e.updateTargetXs(e.data.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),e.data.xs}};function gy(t){return t}var Vi=1,Xi=2,yo=3,Ba=4,Eu=1e-6;function vy(t){return"translate("+t+",0)"}function py(t){return"translate(0,"+t+")"}function my(t){return e=>+t(e)}function yy(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function xy(){return!this.__axis}function Yi(t,e){var n=[],a=null,i=null,s=6,o=6,l=3,c=typeof window!="undefined"&&window.devicePixelRatio>1?0:.5,u=t===Vi||t===Ba?-1:1,g=t===Ba||t===Xi?"x":"y",v=t===Vi||t===yo?vy:py;function m(S){var I=a==null?e.ticks?e.ticks.apply(e,n):e.domain():a,N=i==null?e.tickFormat?e.tickFormat.apply(e,n):gy:i,L=Math.max(s,0)+l,C=e.range(),V=+C[0]+c,H=+C[C.length-1]+c,Y=(e.bandwidth?yy:my)(e.copy(),c),_=S.selection?S.selection():S,K=_.selectAll(".domain").data([null]),at=_.selectAll(".tick").data(I,e).order(),mt=at.exit(),St=at.enter().append("g").attr("class","tick"),dt=at.select("line"),lt=at.select("text");K=K.merge(K.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),at=at.merge(St),dt=dt.merge(St.append("line").attr("stroke","currentColor").attr(g+"2",u*s)),lt=lt.merge(St.append("text").attr("fill","currentColor").attr(g,u*L).attr("dy",t===Vi?"0em":t===yo?"0.71em":"0.32em")),S!==_&&(K=K.transition(S),at=at.transition(S),dt=dt.transition(S),lt=lt.transition(S),mt=mt.transition(S).attr("opacity",Eu).attr("transform",function(Gt){return isFinite(Gt=Y(Gt))?v(Gt+c):this.getAttribute("transform")}),St.attr("opacity",Eu).attr("transform",function(Gt){var gt=this.parentNode.__axis;return v((gt&&isFinite(gt=gt(Gt))?gt:Y(Gt))+c)})),mt.remove(),K.attr("d",t===Ba||t===Xi?o?"M"+u*o+","+V+"H"+c+"V"+H+"H"+u*o:"M"+c+","+V+"V"+H:o?"M"+V+","+u*o+"V"+c+"H"+H+"V"+u*o:"M"+V+","+c+"H"+H),at.attr("opacity",1).attr("transform",function(Gt){return v(Y(Gt)+c)}),dt.attr(g+"2",u*s),lt.attr(g,u*L).text(N),_.filter(xy).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Xi?"start":t===Ba?"end":"middle"),_.each(function(){this.__axis=Y})}return m.scale=function(S){return arguments.length?(e=S,m):e},m.ticks=function(){return n=Array.from(arguments),m},m.tickArguments=function(S){return arguments.length?(n=S==null?[]:Array.from(S),m):n.slice()},m.tickValues=function(S){return arguments.length?(a=S==null?null:Array.from(S),m):a&&a.slice()},m.tickFormat=function(S){return arguments.length?(i=S,m):i},m.tickSize=function(S){return arguments.length?(s=o=+S,m):s},m.tickSizeInner=function(S){return arguments.length?(s=+S,m):s},m.tickSizeOuter=function(S){return arguments.length?(o=+S,m):o},m.tickPadding=function(S){return arguments.length?(l=+S,m):l},m.offset=function(S){return arguments.length?(c=+S,m):c},m}function Ty(t){return Yi(Vi,t)}function $y(t){return Yi(Xi,t)}function Ru(t){return Yi(yo,t)}function Ou(t){return Yi(Ba,t)}var Sy=Object.defineProperty,Ay=(t,e,n)=>e in t?Sy(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,xo=(t,e,n)=>Ay(t,typeof e!="symbol"?e+"":e,n);class Iu{constructor(e){xo(this,"owner"),xo(this,"config"),xo(this,"scale");const n=zr(),{config:a,params:i}=e;this.owner=e,this.config=a,this.scale=n,(a.noTransition||!i.config.transition_duration)&&(a.withoutTransition=!0),a.range=this.scaleExtent((i.orgXScale||n).range())}static getSizeFor1Char(e,n=!0){const a={w:5.5,h:11.5};return!e.empty()&&e.text("0").call(i=>{try{const{width:s,height:o}=i.node().getBBox();s&&o&&(a.w=s,a.h=o)}finally{i.text("")}}),n&&(this.getSizeFor1Char=()=>a),a}getTickTransformSetter(e){const{config:n}=this,a=e==="x"?i=>`translate(${i+n.tickOffset},0)`:i=>`translate(0,${i})`;return(i,s)=>{i.attr("transform",o=>{const l=s(o);return Le(o)?a(Math.ceil(l)):null})}}scaleExtent(e){const n=e[0],a=e[e.length-1];return n<a?[n,a]:[a,n]}generateTicks(e,n){const{tickStepSize:a}=this.owner.params,[i,s]=e.domain();let o=[];if(n&&a){let l=Math.round(i);for(;l<=s;)o.push(l),l+=a}else if(e.ticks){const{tickArguments:l}=this.config;if(e.type==="log"&&!l){const c=zr("_log").domain([i>0?i:1,s]).range(e.range());o=c.ticks();for(let u=s.toFixed().length;o.length>15;u--)o=c.ticks(u);o.splice(0,1,i),o.splice(o.length-1,1,s)}else o=e.ticks(...this.config.tickArguments||[]);o=o.map(c=>Xe(c)&&ge(c)&&!isNaN(c)&&Math.round(c*10)/10||c)}return o}copyScale(){const e=this.scale.copy();return e.domain().length||e.domain(this.scale.domain()),e.type=this.scale.type,e}textFormatted(e){const n=this.config.tickFormat,a=/\d+\.\d+0{5,}\d$/.test(e)?+String(e).replace(/0+\d$/,""):e,i=n?n(a):a;return Je(i)?i:""}transitionise(e){const{config:n}=this;let a=e;if(n.withoutTransition)a=e.interrupt();else if(n.transition||!this.owner.params.noTransition)try{a=e.transition(n.transition)}catch(i){}return a}}var by=Object.defineProperty,Ey=(t,e,n)=>e in t?by(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ua=(t,e,n)=>Ey(t,typeof e!="symbol"?e+"":e,n);class Ry{constructor(e={}){Ua(this,"helper"),Ua(this,"config"),Ua(this,"params"),Ua(this,"g"),Ua(this,"generatedTicks");const n={innerTickSize:6,outerTickSize:e.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:e.noTransition};n.tickLength=Math.max(n.innerTickSize,0)+n.tickPadding,this.config=n,this.params=e,this.helper=new Iu(this)}create(e){const n=this,{config:a,helper:i,params:s}=n,{scale:o}=i,{orient:l}=a,c=this.splitTickText.bind(n),u=/^(left|right)$/.test(l),g=/^(top|bottom)$/.test(l),v=i.getTickTransformSetter(g?"x":"y"),m=v===i.axisX?"y":"x",S=/^(top|left)$/.test(l)?-1:1,I=s.tickTextRotate;this.config.range=o.rangeExtent?o.rangeExtent():i.scaleExtent((s.orgXScale||o).range());const{innerTickSize:N,tickLength:L,range:C}=a,V=s.id,H=V&&/^(x|y|y2)$/.test(V)?s.config[`axis_${V}_tick_text_position`]:{x:0,y:0},Y=V==="subX"?"subchart_axis_x":`axis_${V}`,_=s.config[`${Y}_show`],K={tick:_?s.config[`${Y}_tick_show`]:!1,text:_?s.config[`${Y}_tick_text_show`]:!1},at=s.config.axis_evalTextSize;let mt;e.each(function(){const St=st(this);let dt=this.__chart__||o,lt=i.copyScale();mt=St,this.__chart__=lt,a.tickOffset=s.isCategory?Math.ceil((lt(1)-lt(0))/2):0;const Gt=St.selectAll(".domain").data([0]);if(Gt.enter().append("path").attr("class","domain").merge(Gt).attr("d",()=>{const gt=a.outerTickSize*S;return g?`M${C[0]},${gt}V0H${C[1]}V${gt}`:`M${gt},${C[0]}H0V${C[1]}H${gt}`}),K.tick||K.text){const gt=a.tickValues||i.generateTicks(lt,u);n.generatedTicks=gt;let Z=St.selectAll(".tick").data(gt,lt);const $t=Z.enter().insert("g",".domain").attr("class","tick"),ct=Z.exit().remove();Z=$t.merge(Z),K.tick&&$t.append("line"),K.text&&$t.append("text");const At=Z.select("text"),Vt=he(at)?at.bind(n.params.owner.api)(At.node()):Iu.getSizeFor1Char(At,at),Bt=[];let Kt=At.selectAll("tspan").data((Ee,Ie)=>{const Ce=s.tickMultiline?c(Ee,lt,gt,u,Vt.w):ze(i.textFormatted(Ee))?i.textFormatted(Ee).concat():[i.textFormatted(Ee)];return Bt[Ie]=Ce.length,Ce.map(Ye=>({index:Ie,splitted:Ye}))});Kt.exit().remove(),Kt=Kt.enter().append("tspan").merge(Kt).text(Ee=>Ee.splitted),Kt.attr("x",g?0:L*S).attr("dx",(()=>{let Ee=0;return/(top|bottom)/.test(l)&&I&&(Ee=8*Math.sin(Math.PI*(I/180))*(l==="top"?-1:1)),Ee+(H.x||0)})()).attr("dy",(Ee,Ie)=>{const Ce=".71em";let Ye=0;return l!=="top"&&(Ye=Vt.h,Ie===0&&(Ye=u?-((Bt[Ee.index]-1)*(Vt.h/2)-3):H.y===0?Ce:0)),ge(Ye)&&H.y?Ye+H.y:Ye||Ce});const ne=Z.select("line"),le=Z.select("text");if($t.select("line").attr(`${m}2`,N*S),$t.select("text").attr(m,L*S),n.setTickLineTextPosition(ne,le),s.tickTitle){const Ee=le.select("title");(Ee.empty()?le.append("title"):Ee).text(Ie=>s.tickTitle[Ie])}if(lt.bandwidth){const Ee=lt,Ie=Ee.bandwidth()/2;dt=Ce=>Ee(Ce)+Ie,lt=dt}else dt.bandwidth?dt=lt:v(ct,lt);Z=s.owner.state.flowing?i.transitionise(Z):s.owner.$T(Z),v($t,dt),v(Z.style("opacity",null),lt)}}),this.g=mt}getGeneratedTicks(e){var n;const a=((n=this.generatedTicks)==null?void 0:n.length)-1;let i=this.generatedTicks;if(a>e){const s=Math.round(a/e+.1);i=this.generatedTicks.map((o,l)=>l%s===0?o:null).filter(o=>o!==null).splice(0,e)}return i}getTickXY(){const{config:e}=this,n={x:0,y:0};return this.params.isCategory&&(n.x=e.tickCentered?0:e.tickOffset,n.y=e.tickCentered?e.tickOffset:0),n}getTickSize(e){const{scale:n}=this.helper,{config:a}=this,{innerTickSize:i,range:s}=a,o=n(e)+(a.tickCentered?0:a.tickOffset);return s[0]<o&&o<s[1]?i:0}setTickLineTextPosition(e,n){const a=this.getTickXY(),{innerTickSize:i,orient:s,tickLength:o,tickOffset:l}=this.config,c=this.params.tickTextRotate,u=I=>{const N=["start","end"];return s==="top"&&N.reverse(),I?N[I>0?0:1]:"middle"},g=I=>I?`rotate(${I})`:null,v=I=>{const N=I/(s==="bottom"?15:23);return I?11.5-2.5*N*(I>0?1:-1):o},{config:{axis_rotated:m,axis_x_tick_text_inner:S}}=this.params.owner;switch(s){case"bottom":e.attr("x1",a.x).attr("x2",a.x).attr("y2",this.getTickSize.bind(this)),n.attr("x",0).attr("y",v(c)).style("text-anchor",u(c)).style("text-anchor",(I,N,{length:L})=>!m&&N===0&&(S===!0||S.first)?"start":!m&&N===L-1&&(S===!0||S.last)?"end":u(c)).attr("transform",g(c));break;case"top":e.attr("x2",0).attr("y2",-i),n.attr("x",0).attr("y",-v(c)*2).style("text-anchor",u(c)).attr("transform",g(c));break;case"left":e.attr("x2",-i).attr("y1",a.y).attr("y2",a.y),n.attr("x",-o).attr("y",l).style("text-anchor","end");break;case"right":e.attr("x2",i).attr("y2",0),n.attr("x",o).attr("y",0).style("text-anchor","start")}}splitTickText(e,n,a,i,s){const{params:o}=this,l=this.helper.textFormatted(e),c=Xe(l)&&l.indexOf(`
|
|
55
55
|
`)>-1?l.split(`
|
|
56
|
-
`):[];if(c.length)return c;if(Be(l))return l;let u=o.tickWidth;(!u||u<=0)&&(u=i?95:o.isCategory?Math.ceil(o.isInverted?n(a[0])-n(a[1]):n(a[1])-n(a[0]))-12:110);function g(v,m){let S,I,N;for(let M=1;M<m.length;M++)if(m.charAt(M)===" "&&(I=M),S=m.substr(0,M+1),N=s*S.length,u<N)return g(v.concat(m.substr(0,I||M)),m.slice(I?I+1:M));return v.concat(m)}return g(c,String(l))}scale(e){return arguments.length?(this.helper.scale=e,this):this.helper.scale}orient(e){return arguments.length?(this.config.orient=e in{top:1,right:1,bottom:1,left:1}?String(e):"bottom",this):this.config.orient}tickFormat(e){const{config:n}=this;return arguments.length?(n.tickFormat=e,this):n.tickFormat}tickCentered(e){const{config:n}=this;return arguments.length?(n.tickCentered=e,this):n.tickCentered}tickOffset(){return this.config.tickOffset}tickInterval(e){var n;const{outerTickSize:a,tickOffset:i,tickValues:s}=this.config;let o;if(this.params.isCategory)o=i*2;else{const l=(n=this.params.owner.scale.zoom)!=null?n:this.helper.scale;o=(this.g.select("path.domain").node().getTotalLength()-a*2)/(e||this.g.selectAll("line").size());const u=s?s.map((g,v,m)=>{const S=v+1;return S<m.length?l(m[S])-l(g):null}).filter(Boolean):[];o=Math.min(...u,o)}return o===1/0?0:o}ticks(...e){const{config:n}=this;return e.length?(n.tickArguments=Dr(e),this):n.tickArguments}tickCulling(e){const{config:n}=this;return arguments.length?(n.tickCulling=e,this):n.tickCulling}tickValues(e){const{config:n}=this;if(ve(e))n.tickValues=()=>e(this.helper.scale.domain());else{if(!arguments.length)return n.tickValues;n.tickValues=e}return this}setTransition(e){return this.config.transition=e,this}}var by=Object.defineProperty,Ey=(t,e,n)=>e in t?by(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,pr=(t,e,n)=>Ey(t,typeof e!="symbol"?e+"":e,n),Ry={getAxisInstance:function(){return this.axis||new Oy(this)}};class Oy{constructor(e){pr(this,"owner"),pr(this,"x"),pr(this,"subX"),pr(this,"y"),pr(this,"y2"),pr(this,"axesList",{}),pr(this,"tick",{x:null,y:null,y2:null}),pr(this,"xs",[]),pr(this,"orient",{x:"bottom",y:"left",y2:"right",subX:"bottom"}),this.owner=e,this.setOrient()}getAxisClassName(e){return`${fn.axis} ${fn[`axis${Ln(e)}`]}`}isHorizontal(e,n){const a=e.config.axis_rotated;return n?a:!a}isCategorized(){const{config:e,state:n}=this.owner;return e.axis_x_type.indexOf("category")>=0||n.hasRadar}isCustomX(){const{config:e}=this.owner;return!this.isTimeSeries()&&(e.data_x||ln(e.data_xs))}isTimeSeries(e="x"){return this.owner.config[`axis_${e}_type`]==="timeseries"}isLog(e="x"){return this.owner.config[`axis_${e}_type`]==="log"}isTimeSeriesY(){return this.isTimeSeries("y")}getAxisType(e="x"){let n="linear";return this.isTimeSeries(e)?n=this.owner.config.axis_x_localtime?"time":"utc":this.isLog(e)&&(n="log"),n}init(){const e=this.owner,{config:n,$el:{main:a,axis:i},state:{clip:s}}=e,o=n.axis_rotated,l=["x","y"];n.axis_y2_show&&l.push("y2"),l.forEach(c=>{const u=this.getAxisClassName(c),g=fn[`axis${c.toUpperCase()}Label`];i[c]=a.append("g").attr("class",u).attr("clip-path",()=>{let v=null;return c==="x"?v=s.pathXAxis:c==="y"&&(v=s.pathYAxis),v}).attr("transform",e.getTranslate(c)).style("visibility",n[`axis_${c}_show`]?null:"hidden"),i[c].append("text").attr("class",g).attr("transform",["rotate(-90)",null][c==="x"?+!o:+o]).style("text-anchor",()=>this.textAnchorForAxisLabel(c)),this.generateAxes(c)}),n.axis_tooltip&&this.setAxisTooltip()}setOrient(){const e=this.owner,{axis_rotated:n,axis_y_inner:a,axis_y2_inner:i}=e.config;this.orient={x:n?"left":"bottom",y:n?a?"top":"bottom":a?"right":"left",y2:n?i?"bottom":"top":i?"left":"right",subX:n?"left":"bottom"}}generateAxes(e){const n=this.owner,{config:a}=n,i=[],s=a[`axis_${e}_axes`],o=a.axis_rotated;let l;e==="x"?l=o?Eu:bu:e==="y"?l=o?bu:Eu:e==="y2"&&(l=o?my:yy),s.length&&s.forEach(c=>{const u=c.tick||{},g=n.scale[e].copy();c.domain&&g.domain(c.domain),i.push(l(g).ticks(u.count).tickFormat(ve(u.format)?u.format.bind(n.api):v=>v).tickValues(u.values).tickSizeOuter(u.outer===!1?0:6))}),this.axesList[e]=i}updateAxes(){const e=this.owner,{config:n,$el:{main:a},$T:i}=e;Object.keys(this.axesList).forEach(s=>{const o=n[`axis_${s}_axes`],l=e.scale[s].copy(),c=l.range();this.axesList[s].forEach((u,g)=>{const v=u.scale().range();c.every((I,N)=>I===v[N])||u.scale().range(c);const m=`${this.getAxisClassName(s)}-${g+1}`;let S=a.select(`.${m.replace(/\s/,".")}`);S.empty()?S=a.append("g").attr("class",m).style("visibility",n[`axis_${s}_show`]?null:"hidden").call(u):(o[g].domain&&l.domain(o[g].domain),i(S).call(u.scale(l))),S.attr("transform",e.getTranslate(s,g+1))})})}setAxis(e,n,a,i){const s=this.owner;e!=="subX"&&(this.tick[e]=this.getTickValues(e)),this[e]=this.getAxis(e,n,a,e==="x"&&(s.scale.zoom||s.config.subchart_show||s.state.resizing)?!0:i)}getAxis(e,n,a,i,s){const o=this.owner,{config:l}=o,c=/^(x|subX)$/.test(e),u=c?"x":e,g=c&&this.isCategorized(),v=this.orient[e],m=s?0:o.getAxisTickRotate(u);let S;if(c)S=e==="subX"?o.format.subXAxisTick:o.format.xAxisTick;else{const X=l[`axis_${e}_tick_format`];ve(X)&&(S=X.bind(o.api))}let I=this.tick[u];const N=ea({outerTick:a,noTransition:i,config:l,id:e,tickTextRotate:m,owner:o},c&&{isCategory:g,isInverted:l.axis_x_inverted,tickMultiline:l.axis_x_tick_multiline,tickWidth:l.axis_x_tick_width,tickTitle:g&&l.axis_x_tick_tooltip&&o.api.categories(),orgXScale:o.scale.x});c||(N.tickStepSize=l[`axis_${u}_tick_stepSize`]);const M=new Ay(N).scale(c&&o.scale.zoom||n).orient(v);if(c&&this.isTimeSeries()&&I&&!ve(I)){const X=zn.bind(o);I=I.map(H=>X(H))}else!c&&this.isTimeSeriesY()&&(M.ticks(l.axis_y_tick_time_value),I=null);I&&M.tickValues(I),M.tickFormat(S||!c&&o.isStackNormalized()&&(X=>`${X}%`)),g&&(M.tickCentered(l.axis_x_tick_centered),_n(l.axis_x_tick_culling)&&(l.axis_x_tick_culling=!1));const P=l[`axis_${u}_tick_count`];return P&&M.ticks(P),M}updateXAxisTickValues(e,n){var a;const i=this.owner,{config:s}=i,o=s.axis_x_tick_fit;let l=s.axis_x_tick_count,c;return(o||l&&o)&&(c=i.mapTargetsToUniqueXs(e),this.isCategorized()&&l>c.length&&(l=c.length),c=this.generateTickValues(c,l,this.isTimeSeries())),n?n.tickValues(c):this.x&&(this.x.tickValues(c),(a=this.subX)==null||a.tickValues(c)),c}getId(e){const{config:n,scale:a}=this.owner;let i=n.data_axes[e];return(!i||!a[i])&&(i="y"),i}getXAxisTickFormat(e){const n=this.owner,{config:a,format:i}=n,s=e&&a.subchart_axis_x_tick_format||a.axis_x_tick_format,o=this.isTimeSeries(),l=this.isCategorized();let c;return s?ve(s)?c=s.bind(n.api):o&&(c=u=>u?i.axisTime(s)(u):""):c=o?i.defaultAxisTime:l?n.categoryName:u=>u<0?u.toFixed(0):u,ve(c)?u=>c.apply(n,l?[u,n.categoryName(u)]:[u]):c}getTickValues(e){const n=this.owner,a=n.config[`axis_${e}_tick_values`],i=n[`${e}Axis`];return(ve(a)?a.call(n.api):a)||(i?i.tickValues():void 0)}getLabelOptionByAxisId(e){return this.owner.config[`axis_${e}_label`]}getLabelText(e){const n=this.getLabelOptionByAxisId(e);return Ge(n)?n:n?n.text:null}setLabelText(e,n){const a=this.owner,{config:i}=a,s=this.getLabelOptionByAxisId(e);Ge(s)?i[`axis_${e}_label`]=n:s&&(s.text=n)}getLabelPosition(e,n){const a=this.owner.config.axis_rotated,i=this.getLabelOptionByAxisId(e),s=nr(i)&&i.position?i.position:n[+!a],o=l=>!!~s.indexOf(l);return{isInner:o("inner"),isOuter:o("outer"),isLeft:o("left"),isCenter:o("center"),isRight:o("right"),isTop:o("top"),isMiddle:o("middle"),isBottom:o("bottom")}}getAxisLabelPosition(e){return this.getLabelPosition(e,e==="x"?["inner-top","inner-right"]:["inner-right","inner-top"])}getLabelPositionById(e){return this.getAxisLabelPosition(e)}xForAxisLabel(e){const n=this.owner,{state:{width:a,height:i}}=n,s=this.getAxisLabelPosition(e);let o=s.isMiddle?-i/2:0;return this.isHorizontal(n,e!=="x")?o=s.isLeft?0:s.isCenter?a/2:a:s.isBottom&&(o=-i),o}dxForAxisLabel(e){const n=this.owner,a=this.getAxisLabelPosition(e);let i=a.isBottom?"0.5em":"0";return this.isHorizontal(n,e!=="x")?i=a.isLeft?"0.5em":a.isRight?"-0.5em":"0":a.isTop&&(i="-0.5em"),i}textAnchorForAxisLabel(e){const n=this.owner,a=this.getAxisLabelPosition(e);let i=a.isMiddle?"middle":"end";return this.isHorizontal(n,e!=="x")?i=a.isLeft?"start":a.isCenter?"middle":"end":a.isBottom&&(i="start"),i}dyForAxisLabel(e){const n=this.owner,{config:a}=n,i=a.axis_rotated,s=this.getAxisLabelPosition(e).isInner,o=a[`axis_${e}_tick_rotate`]?n.getHorizontalAxisHeight(e):0,{width:l}=this.getMaxTickSize(e);let c;if(e==="x"){const u=a.axis_x_height;i?c=s?"1.2em":-25-l:s?c="-0.5em":u?c=u-10:o?c=o-10:c="3em"}else c={y:["-0.5em",10,"3em","1.2em",10],y2:["1.2em",-20,"-2.2em","-0.5em",15]}[e],i?s?c=c[0]:o?c=o*(e==="y2"?-1:1)-c[1]:c=c[2]:c=s?c[3]:(c[4]+(a[`axis_${e}_inner`]?0:l+c[4]))*(e==="y"?-1:1);return c}getMaxTickSize(e,n){const a=this.owner,{config:i,state:{current:s},$el:{svg:o,chart:l}}=a,c=s.maxTickSize[e],u=`axis_${e}`,g={width:0,height:0};if(n||!i[`${u}_show`]||c.width>0&&a.filterTargetsToShow().length===0)return c;if(o){const v=/^y2?$/.test(e),m=a.filterTargetsToShow(a.data.targets),S=a.scale[e].copy().domain(a[`get${v?"Y":"X"}Domain`](m,e)),I=S.domain(),N=I[0]===I[1]&&I.every(K=>K>0),M=Be(c.domain)&&c.domain[0]===c.domain[1]&&c.domain.every(K=>K>0);if(N||M)return c.size;c.domain=I,v||c.ticks.splice(0);const P=this.getAxis(e,S,!1,!1,!0),X=i[`${u}_tick_rotate`],H=i[`${u}_tick_count`];!i[`${u}_tick_values`]&&H&&P.tickValues(this.generateTickValues(I,H,v?this.isTimeSeriesY():this.isTimeSeries())),!v&&this.updateXAxisTickValues(m,P);const _=l.append("svg").style("visibility","hidden").style("position","fixed").style("top","0").style("left","0");P.create(_),_.selectAll("text").attr("transform",he(X)?`rotate(${X})`:null).each(function(K,at){const{width:yt,height:$t}=this.getBoundingClientRect();g.width=Math.max(g.width,yt),g.height=Math.max(g.height,$t),v||(c.ticks[at]=yt)}),_.remove()}return Object.keys(g).forEach(v=>{g[v]>0&&(c[v]=g[v])}),c}getXAxisTickTextY2Overflow(e){const n=this.owner,{axis:a,config:i,state:{current:s,isLegendRight:o,legendItemWidth:l}}=n,c=n.getAxisTickRotate("x"),u=c>0&&c<90;if((a.isCategorized()||a.isTimeSeries())&&i.axis_x_tick_fit&&(!i.axis_x_tick_culling||_n(i.axis_x_tick_culling))&&!i.axis_x_tick_multiline&&u){const g=i.axis_y2_show&&s.maxTickSize.y2.width||0,v=o&&l||0,m=s.width-n.getCurrentPaddingByDirection("left"),S=this.getXAxisTickMaxOverflow(c,m-e)-g-v,I=Math.max(0,S)+e;return Math.min(I,m/2)}return 0}getXAxisTickMaxOverflow(e,n){const a=this.owner,{axis:i,config:s,state:o}=a,l=i.isTimeSeries(),c=o.current.maxTickSize.x.ticks,u=c.length,{left:g,right:v}=o.axis.x.padding;let m=0;const S=u-(l&&s.axis_x_tick_fit?.5:0);for(let M=0;M<u;M++){const P=M+1,X=Math.cos(Math.PI*e/180)*c[M],H=P-(l?1:.5)+g;if(H<=0)continue;const _=(n-X)/H,K=S-P,at=v*_,yt=K*_+at,$t=X-_/2-yt;m=Math.max(m,$t)}const I=a.filterTargetsToShow(a.data.targets);let N=0;if(!l&&s.axis_x_tick_count<=I.length&&I[0].values.length){const M=zr(a.axis.getAxisType("x"),0,n-m).domain([g*-1,a.getXDomainMax(a.data.targets)+1+v]);N=Math.ceil((M(1)-M(0))/2)}return m+N}updateLabels(e){const n=this.owner,{$el:{main:a},$T:i}=n,s={x:a.select(`.${fn.axisX} .${fn.axisXLabel}`),y:a.select(`.${fn.axisY} .${fn.axisYLabel}`),y2:a.select(`.${fn.axisY2} .${fn.axisY2Label}`)};Object.keys(s).filter(o=>!s[o].empty()).forEach(o=>{const l=s[o];i(l,e).attr("x",()=>this.xForAxisLabel(o)).attr("dx",()=>this.dxForAxisLabel(o)).attr("dy",()=>this.dyForAxisLabel(o)).text(()=>this.getLabelText(o))})}getPadding(e,n,a,i){const s=he(e)?e:e[n];return we(s)?this.owner.convertPixelToScale(/(bottom|top)/.test(n)?"y":"x",s,i):a}generateTickValues(e,n,a){let i=e;if(n){const s=ve(n)?n():n;if(s===1)i=[e[0]];else if(s===2)i=[e[0],e[e.length-1]];else if(s>2){const o=this.isCategorized(),l=s-2,c=e[0],u=e[e.length-1],g=(u-c)/(l+1);let v;i=[c];for(let m=0;m<l;m++)v=+c+g*(m+1),i.push(a?new Date(v):o?Math.round(v):v);i.push(u)}}return a||(i=i.sort((s,o)=>s-o)),i}generateTransitions(e){const n=this.owner,{$el:{axis:a},$T:i}=n,[s,o,l,c]=["x","y","y2","subX"].map(u=>i(a[u],e));return{axisX:s,axisY:o,axisY2:l,axisSubX:c}}redraw(e,n,a){const i=this.owner,{config:s,$el:o}=i,l=n?"0":null;["x","y","y2","subX"].forEach(c=>{const u=this[c],g=o.axis[c];u&&g&&(!a&&!s.transition_duration&&(u.config.withoutTransition=!0),g.style("opacity",l),u.create(e[`axis${Ln(c)}`]))}),this.updateAxes()}redrawAxis(e,n,a,i,s){var o,l,c;const u=this.owner,{config:g,scale:v,$el:m}=u,S=!!v.zoom;let I;!S&&this.isCategorized()&&e.length===0&&v.x.domain([0,m.axis.x.selectAll(".tick").size()]),v.x&&e.length?(!S&&u.updateXDomain(e,n.UpdateXDomain,n.UpdateOrgXDomain,n.TrimXDomain),g.axis_x_tick_values||this.updateXAxisTickValues(e)):this.x&&(this.x.tickValues([]),(o=this.subX)==null||o.tickValues([])),g.zoom_rescale&&!i&&(I=v.x.orgDomain()),["y","y2"].forEach(N=>{const M=`axis_${N}_`,P=v[N];if(P){const X=g[`${M}tick_values`],H=g[`${M}tick_count`];if(P.domain(u.getYDomain(e,N,I)),!X&&H){const Y=u.axis[N],_=P.domain();Y.tickValues(this.generateTickValues(_,_.every(K=>K===0)?1:H,this.isTimeSeriesY()))}}}),this.redraw(a,u.hasArcType(),s),this.updateLabels(n.Transition),(n.UpdateXDomain||n.UpdateXAxis||n.Y)&&e.length&&this.setCulling(),n.Y&&((l=v.subY)==null||l.domain(u.getYDomain(e,"y")),(c=v.subY2)==null||c.domain(u.getYDomain(e,"y2")))}setCulling(){const e=this.owner,{config:n,state:{clip:a,current:i},$el:s}=e;["subX","x","y","y2"].forEach(o=>{const l=s.axis[o],u=`axis_${o==="subX"?"x":o}_tick_culling`,g=n[u];if(l&&g){const v=l.selectAll(".tick"),m=na(v.data()),S=m.length,I=n[`${u}_max`],N=n[`${u}_lines`];let M;if(S){for(let P=1;P<S;P++)if(S/P<I){M=P;break}v.each(function(P){const X=N?this.querySelector("text"):this;X&&(X.style.display=m.indexOf(P)%M?"none":null)})}else v.style("display",null);if(o==="x"){const P=i.maxTickSize.x.clipPath?a.pathXAxisTickTexts:null;s.svg.selectAll(`.${fn.axisX} .tick text`).attr("clip-path",P)}}})}setAxisTooltip(){var e;const n=this.owner,{config:{axis_rotated:a,axis_tooltip:i},$el:{axis:s,axisTooltip:o}}=n,l=(e=i.backgroundColor)!=null?e:"black";n.generateTextBGColorFilter(l,{x:-.15,y:-.2,width:1.3,height:1.3}),["x","y","y2"].forEach(c=>{var u,g,v;if(o[c]=(u=s[c])==null?void 0:u.append("text").classed(fn[`axis${c.toUpperCase()}Tooltip`],!0).attr("filter",n.updateTextBGColor({id:c},l)),a){const m=c==="x"?"x":"y",S=c==="y"?"1.15em":c==="x"?"-0.3em":"-0.4em";(g=o[c])==null||g.attr(m,S).attr(`d${c==="x"?"y":"x"}`,c==="x"?"0.4em":"-1.3em").style("text-anchor",c==="x"?"end":null)}else{const m=c==="x"?"y":"x",S=c==="x"?"1.15em":`${c==="y"?"-":""}0.4em`;(v=o[c])==null||v.attr(m,S).attr(`d${c==="x"?"x":"y"}`,c==="x"?"-1em":"0.3em").style("text-anchor",c==="y"?"end":null)}})}}var Iy={initEventRect(){this.$el.main.select(`.${Se.chart}`).append("g").attr("class",Zn.eventRects).style("fill-opacity","0")},redrawEventRect(){var t;const e=this,{config:n,state:a,$el:i}=e,s=e.isMultipleX(),o=n.axis_x_inverted;if(i.eventRect)e.updateEventRect(i.eventRect,!0);else if(e.data.targets.length){const c=e.$el.main.select(`.${Zn.eventRects}`).style("cursor",n.zoom_enabled&&n.zoom_type!=="drag"?n.axis_rotated?"ns-resize":"ew-resize":null).classed(Zn.eventRectsMultiple,s).classed(Zn.eventRectsSingle,!s).selectAll(`.${Zn.eventRect}`).data([0]).enter().append("rect");e.updateEventRect(c),e.updateEventType(c),c.call(e.getDraggableSelection()),i.eventRect=c,e.state.inputType==="touch"&&!i.svg.on("touchstart.eventRect")&&!e.hasArcType()&&e.bindTouchOnEventRect(),a.rendered&&e.updateEventRect(i.eventRect,!0)}if(!s){const l=e.getMaxDataCountTarget();(!n.data_xSort||o)&&l.sort((c,u)=>o?u.x-c.x:c.x-u.x),e.updateDataIndexByX(l),e.updateXs(l),(t=e.updatePointClass)==null||t.call(e,!0),a.eventReceiver.data=l}e.updateEventRectData()},bindTouchOnEventRect(){const t=this,{config:e,state:n,$el:{eventRect:a,svg:i}}=t,s=m=>{if(t.isMultipleX())t.selectRectForMultipleXs(m);else{const S=t.getDataIndexFromEvent(n.event);t.callOverOutForTouch(S),S===-1?t.unselectRect():t.selectRectForSingle(m,S)}},o=()=>{t.unselectRect(),t.callOverOutForTouch()},l=e.interaction_inputType_touch.preventDefault,c=Os(l)&&l||!1,u=!isNaN(l)&&l||null;let g;const v=m=>{const S=m.type,N=m.changedTouches[0][`client${e.axis_rotated?"Y":"X"}`];S==="touchstart"?c?m.preventDefault():u!==null&&(g=N):S==="touchmove"&&(c||g===!0||u!==null&&Math.abs(g-N)>=u)&&(g=!0,m.preventDefault())};a.on("touchstart",m=>{n.event=m,t.updateEventRect()}).on("touchstart.eventRect touchmove.eventRect",m=>{if(n.event=m,!a.empty()&&a.classed(Zn.eventRect)){if(n.dragging||n.flowing||t.hasArcType()||m.touches.length>1)return;v(m),s(a.node())}else o()},!0).on("touchend.eventRect",m=>{n.event=m,!a.empty()&&a.classed(Zn.eventRect)&&(t.hasArcType()||!t.toggleShape||n.cancelClick)&&n.cancelClick&&(n.cancelClick=!1)},!0),i.on("touchstart",m=>{n.event=m;const{target:S}=m;S&&S!==a.node()&&o()})},updateEventRect(t,e=!1){const n=this,{state:a,$el:i}=n,{eventReceiver:s,width:o,height:l,rendered:c,resizing:u}=a,g=t||i.eventRect,v=()=>{if(s){const m=Wl(i.chart.node());s.rect=g.node().getBoundingClientRect().toJSON(),s.rect.top+=m.y,s.rect.left+=m.x}};(!c||u||e)&&(g.attr("x",0).attr("y",0).attr("width",o).attr("height",l),(!c||e)&&g.classed(Zn.eventRect,!0)),v()},updateEventType(t){const e=this,n=Os(t),a=n?e.$el.eventRect:t,i=n?t!==(a==null?void 0:a.datum().multipleX):!1;a&&(i&&(a==null||a.on("mouseover mousemove mouseout click",null)),e.isMultipleX()?e.generateEventRectsForMultipleXs(a):e.generateEventRectsForSingleX(a))},updateEventRectData(){const t=this,{config:e,scale:n,state:a}=t,i=n.zoom||n.x,s=e.axis_rotated,o=t.isMultipleX();let l,c,u,g;if(t.updateEventType(o),o)l=0,c=0,u=a.width,g=a.height;else{let S,I;if(t.axis.isCategorized())S=t.getEventRectWidth(),I=N=>i(N.x)-S/2;else{const N=({index:M})=>({prev:t.getPrevX(M),next:t.getNextX(M)});S=M=>{const P=N(M),X=i.domain();let H;return P.prev===null&&P.next===null?H=s?a.height:a.width:P.prev===null?H=(i(P.next)+i(M.x))/2:P.next===null?H=i(X[1])-(i(P.prev)+i(M.x))/2:(Object.keys(P).forEach((Y,_)=>{var K;P[Y]=(K=P[Y])!=null?K:X[_]}),H=Math.max(0,(i(P.next)-i(P.prev))/2)),H},I=M=>{const P=N(M);let X;return P.prev===null&&P.next===null?X=0:P.prev===null?X=i(i.domain()[0]):X=(i(M.x)+i(P.prev))/2,X}}l=s?0:I,c=s?I:0,u=s?a.width:S,g=s?S:a.height}const{eventReceiver:v}=a,m=(S,I)=>ve(S)?S(I):S;v.coords.splice(v.data.length),v.data.forEach((S,I)=>{v.coords[I]={x:m(l,S),y:m(c,S),w:m(u,S),h:m(g,S)}})},selectRectForSingle(t,e){var n,a;const i=this,{config:s,$el:{main:o,circle:l}}=i,c=s.data_selection_enabled,u=s.data_selection_grouped,g=s.data_selection_isselectable,v=s.tooltip_grouped,m=i.getAllValuesOnIndex(e);if(v&&(i.showTooltip(m,t),(n=i.showGridFocus)==null||n.call(i,m),!c||u))return;!l&&o.selectAll(`.${Se.EXPANDED}:not(.${sn.shape}-${e})`).classed(Se.EXPANDED,!1);const S=o.selectAll(`.${sn.shape}-${e}`).classed(Se.EXPANDED,!0).style("cursor",g?"pointer":null).filter(function(I){return i.isWithinShape(this,I)});S.empty()&&!v&&((a=i.hideGridFocus)==null||a.call(i),i.hideTooltip(),!u&&i.setExpand(e)),S.call(I=>{var N,M;const P=I.data();c&&(u||g!=null&&g.bind(i.api)(P))&&(t.style.cursor="pointer"),v||(i.showTooltip(P,t),(N=i.showGridFocus)==null||N.call(i,P),(M=i.unexpandCircles)==null||M.call(i),I.each(X=>i.setExpand(e,X.id)))})},selectRectForMultipleXs(t,e=!0){const n=this,{config:a,state:i}=n,s=n.filterTargetsToShow(n.data.targets);if(i.dragging||n.hasArcType(s))return;const o=Hn(i.event,t),l=n.findClosestFromTargets(s,o);if(e&&i.mouseover&&(!l||l.id!==i.mouseover.id)&&(a.data_onout.call(n.api,i.mouseover),i.mouseover=void 0),!l){n.unselectRect();return}const u=(n.isBubbleType(l)||n.isScatterType(l)||!a.tooltip_grouped?[l]:n.filterByX(s,l.x)).map(v=>n.addName(v));n.showTooltip(u,t),n.setExpand(l.index,l.id,!0),n.showGridFocus(u);const g=n.dist(l,o);(n.isBarType(l.id)||g<n.getPointSensitivity(l))&&(n.$el.svg.select(`.${Zn.eventRect}`).style("cursor","pointer"),e&&!i.mouseover&&(a.data_onover.call(n.api,l),i.mouseover=l))},unselectRect(){const t=this,{$el:{circle:e,tooltip:n}}=t;t.$el.svg.select(`.${Zn.eventRect}`).style("cursor",null),t.hideGridFocus(),n&&(t.hideTooltip(),t._handleLinkedCharts(!1)),e&&!t.isPointFocusOnly()&&t.unexpandCircles(),t.expandBarTypeShapes(!1)},generateEventRectsForSingleX(t){const e=this,{config:n,state:a}=e,{eventReceiver:i}=a,s=t.style("cursor",n.data_selection_enabled&&n.data_selection_grouped?"pointer":null).on("click",function(o){a.event=o;const{currentIdx:l,data:c}=i,u=c[l===-1?e.getDataIndexFromEvent(o):l];e.clickHandlerForSingleX.bind(this)(u,e)}).datum({multipleX:!1});if(a.inputType==="mouse"){const o=l=>{const c=l?e.getDataIndexFromEvent(l):i.currentIdx;return c>-1?i.data[c]:null};s.on("mouseover",l=>{a.event=l,e.updateEventRect(),Object.values(e.$el.axisTooltip).forEach(c=>c==null?void 0:c.style("display",null))}).on("mousemove",function(l){const c=o(l);if(a.event=l,!c)return;let{index:u}=c;const g=n.line_step_type;if(n.line_step_tooltipMatch&&e.hasType("step")&&/^step\-(before|after)$/.test(g)){const m=e.scale.zoom||e.scale.x,S=e.axis.xs[u],I=m.invert(Hn(l,this)[0]);g==="step-after"&&I<S?u-=1:g==="step-before"&&I>S&&(u+=1)}e.showAxisGridFocus();const v=n.tooltip_grouped&&u===i.currentIdx;if(a.dragging||a.flowing||e.hasArcType()||v){n.tooltip_show&&v&&e.setTooltipPosition();return}u!==i.currentIdx&&(e.setOverOut(!1,i.currentIdx),i.currentIdx=u),u===-1?e.unselectRect():e.selectRectForSingle(this,u),e.setOverOut(u!==-1,u)}).on("mouseout",l=>{a.event=l,!(!n||e.hasArcType()||i.currentIdx===-1)&&(e.hideAxisGridFocus(),e.unselectRect(),e.setOverOut(!1,i.currentIdx),i.currentIdx=-1)})}return s},clickHandlerForSingleX(t,e){const n=e,{config:a,state:i,$el:{main:s}}=n;if(!t||n.hasArcType()||i.cancelClick){i.cancelClick&&(i.cancelClick=!1);return}const{index:o}=t;s.selectAll(`.${sn.shape}-${o}`).each(function(l){var c;(a.data_selection_grouped||n.isWithinShape(this,l))&&((c=n.toggleShape)==null||c.call(n,this,l,o),a.data_onclick.bind(n.api)(l,this))})},generateEventRectsForMultipleXs(t){const e=this,{state:n}=e;t.on("click",function(a){n.event=a,e.clickHandlerForMultipleXS.bind(this)(e)}).datum({multipleX:!0}),n.inputType==="mouse"&&t.on("mouseover mousemove",function(a){n.event=a,e.selectRectForMultipleXs(this)}).on("mouseout",a=>{n.event=a,!(!e.config||e.hasArcType())&&e.unselectRect()})},clickHandlerForMultipleXS(t){const e=t,{config:n,state:a}=e,i=e.filterTargetsToShow(e.data.targets);if(e.hasArcType(i))return;const s=Hn(a.event,this),o=e.findClosestFromTargets(i,s),l=n.point_sensitivity==="radius"?o.r:n.point_sensitivity;o&&(e.isBarType(o.id)||e.dist(o,s)<l)&&e.$el.main.selectAll(`.${sn.shapes}${e.getTargetSelectorSuffix(o.id)}`).selectAll(`.${sn.shape}-${o.index}`).each(function(){var c;(n.data_selection_grouped||e.isWithinShape(this,o))&&((c=e.toggleShape)==null||c.call(e,this,o,o.index),n.data_onclick.bind(e.api)(o,this))})}};const Cy=t=>+t;var Py={generateFlow(t){const e=this,{data:n,state:a,$el:i}=e;return function(){const s=t.flow.length;a.flowing=!0,n.targets.forEach(l=>{l.values.splice(0,s)}),e.updateXGrid&&e.updateXGrid(!0);const o={};["axis.x","grid.x","gridLines.x","region.list","text","bar","line","area","circle"].forEach(l=>{const c=l.split(".");let u=i[c[0]];u&&c.length>1&&(u=u[c[1]]),u!=null&&u.size()&&(o[l]=u)}),e.hideGridFocus(),e.setFlowList(o,t)}},setFlowList(t,e){const n=this,{flow:a,targets:i}=e,{duration:s=e.duration,index:o,length:l,orgDataCount:c}=a,u=n.getFlowTransform(i,c,o,l),g=ql();let v;g.add(Object.keys(t).map(m=>(v=t[m].transition().ease(Cy).duration(s),m==="axis.x"?v=v.call(S=>{n.axis.x.setTransition(S).create(S)}):m==="region.list"?v=v.filter(n.isRegionOnX).attr("transform",u):v=v.attr("transform",u),v))),v.call(g,()=>{n.cleanUpFlow(t,e)})},cleanUpFlow(t,e){const n=this,{config:a,state:i,$el:{svg:s}}=n,o=a.axis_rotated,{flow:l,shape:c,xv:u}=e,{cx:g,cy:v,xForText:m,yForText:S}=c.pos,{done:I=()=>{},length:N}=l;N&&(["circle","text","shape","eventRect"].forEach(M=>{const P=[];for(let X=0;X<N;X++)P.push(`.${Fe[M]}-${X}`);s.selectAll(`.${Fe[`${M}s`]}`).selectAll(P).remove()}),s.select(`.${Fe.xgrid}`).remove()),Object.keys(t).forEach(M=>{const P=t[M];if(M!=="axis.x"&&P.attr("transform",null),M==="grid.x")P.attr(i.xgridAttr);else if(M==="gridLines.x")P.attr("x1",o?0:u).attr("x2",o?i.width:u),P.select("text").attr("x",o?i.width:0).attr("y",u);else if(/^(area|bar|line)$/.test(M))P.attr("d",c.type[M]);else if(M==="text")P.attr("x",m).attr("y",S).style("fill-opacity",n.opacityForText.bind(n));else if(M==="circle")if(n.isCirclePoint())P.attr("cx",g).attr("cy",v);else{const X=Y=>g(Y)-a.point_r,H=Y=>v(Y)-a.point_r;P.attr("x",X).attr("y",H)}else M==="region.list"&&P.select("rect").filter(n.isRegionOnX).attr("x",n.regionX.bind(n)).attr("width",n.regionWidth.bind(n))}),a.interaction_enabled&&n.redrawEventRect(),I.call(n.api),i.flowing=!1},getFlowTransform(t,e,n,a){const i=this,{data:s,scale:{x:o}}=i,l=s.targets[0].values;let c=i.getValueOnIndex(l,n),u=i.getValueOnIndex(l,n+a),g;const v=o.domain(),m=i.updateXDomain(t,!0,!0);e?e===1||(c==null?void 0:c.x)===(u==null?void 0:u.x)?g=o(v[0])-o(m[0]):g=i.axis.isTimeSeries()?o(v[0])-o(m[0]):o((c==null?void 0:c.x)||0)-o(u.x):l.length!==1?g=o(v[0])-o(m[0]):i.axis.isTimeSeries()?(c=i.getValueOnIndex(l,0),u=i.getValueOnIndex(l,l.length-1),g=o(c.x)-o(u.x)):g=Lr(m)/2;const S=Lr(v)/Lr(m);return`translate(${g},0) scale(${S},1)`}},wy={initClip(){const t=this,{clip:e,datetimeId:n}=t.state;e.id=`${n}-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(t){const e=this,{config:n}=e;return!n.clipPath&&/-clip$/.test(t)||!n.axis_x_clipPath&&/-clip-xaxis$/.test(t)||!n.axis_y_clipPath&&/-clip-yaxis$/.test(t)?null:`url(#${t})`},appendClip(t,e){e&&t.append("clipPath").attr("id",e).append("rect")},setXAxisClipPath(t){const e=this,{config:n,state:{margin:a,width:i,height:s}}=e,o=n.axis_rotated,l=Math.max(30,a.left)-(o?0:20),c=(o?a.top+s+10:a.bottom)+20,u=o?-(1+l):-(l-1),g=-15,v=o?a.left+20:i+10+l;t.attr("x",u).attr("y",g).attr("width",v).attr("height",c)},setYAxisClipPath(t){const e=this,{config:n,state:{margin:a,width:i,height:s}}=e,o=n.axis_rotated,l=Math.max(30,a.left)-(o?20:0),c=n.axis_y_inner,u=c&&!o?n.axis_y_label.text?-20:-1:o?-(1+l):-(l-1),g=-(o?20:a.top),v=(o?i+15+l:a.left+20)+(c?20:0),m=(o?a.bottom+10:a.top+s)+10;t.attr("x",u).attr("y",g).attr("width",v).attr("height",m)},updateXAxisTickClip(){const t=this,{config:e,state:{clip:n,xAxisHeight:a},$el:{defs:i}}=t,s=t.getHorizontalAxisHeight("x");if(i&&!n.idXAxisTickTexts){const o=`${n.id}-xaxisticktexts`;t.appendClip(i,o),n.pathXAxisTickTexts=t.getClipPath(n.idXAxisTickTexts),n.idXAxisTickTexts=o}!e.axis_x_tick_multiline&&t.getAxisTickRotate("x")&&s!==a&&(t.setXAxisTickClipWidth(),t.setXAxisTickTextClipPathWidth()),t.state.xAxisHeight=s},setXAxisTickClipWidth(){const t=this,{config:e,state:{current:{maxTickSize:n}}}=t,a=t.getAxisTickRotate("x");if(!e.axis_x_tick_multiline&&a){const i=Math.sin(Math.PI/180*Math.abs(a));n.x.clipPath=(t.getHorizontalAxisHeight("x")-20)/i}else n.x.clipPath=null},setXAxisTickTextClipPathWidth(){const t=this,{state:{clip:e,current:n},$el:{svg:a}}=t;a&&a.select(`#${e.idXAxisTickTexts} rect`).attr("width",n.maxTickSize.x.clipPath).attr("height",30)}};const My=t=>we(t.position)||"end",Ly=t=>t.position==="start"?4:t.position==="middle"?0:-4;function Ou(t,e,n){return a=>{let i=t?0:e;return a.position==="start"?i=t?-n:0:a.position==="middle"&&(i=(t?-n:e)/2),i}}function Iu(t,e){e==="grid"&&t.each(function(){const n=st(this);["x1","x2","y1","y2"].forEach(a=>n.attr(a,Math.ceil(+n.attr(a))))})}var Dy={hasGrid(){const{config:t}=this;return["x","y"].some(e=>t[`grid_${e}_show`]||t[`grid_${e}_lines`].length)},initGrid(){const t=this;t.hasGrid()&&t.initGridLines(),t.initFocusGrid()},initGridLines(){const t=this,{config:e,state:{clip:n},$el:a}=t;(e.grid_x_lines.length||e.grid_y_lines.length)&&(a.gridLines.main=a.main.insert("g",`.${Se.chart}${e.grid_lines_front?" + *":""}`).attr("clip-path",n.pathGrid).attr("class",`${an.grid} ${an.gridLines}`),a.gridLines.main.append("g").attr("class",an.xgridLines),a.gridLines.main.append("g").attr("class",an.ygridLines),a.gridLines.x=Fc([]))},updateXGrid(t){const e=this,{config:n,scale:a,state:i,$el:{main:s,grid:o}}=e,l=n.axis_rotated,c=e.generateGridData(n.grid_x_type,a.x),u=e.axis.isCategorized()?e.axis.x.tickOffset():0,g=v=>(a.zoom||a.x)(v)+u*(l?-1:1);i.xgridAttr=l?{x1:0,x2:i.width,y1:g,y2:g}:{x1:g,x2:g,y1:0,y2:i.height},o.x=s.select(`.${an.xgrids}`).selectAll(`.${an.xgrid}`).data(c),o.x.exit().remove(),o.x=o.x.enter().append("line").attr("class",an.xgrid).merge(o.x),t||o.x.each(function(){const v=st(this);Object.keys(i.xgridAttr).forEach(m=>{v.attr(m,i.xgridAttr[m]).style("opacity",()=>v.attr(l?"y1":"x1")===(l?i.height:0)?"0":null)})})},updateYGrid(){const t=this,{axis:e,config:n,scale:a,state:i,$el:{grid:s,main:o}}=t,l=n.axis_rotated,c=g=>Math.ceil(a.y(g)),u=e.y.getGeneratedTicks(n.grid_y_ticks)||t.scale.y.ticks(n.grid_y_ticks);s.y=o.select(`.${an.ygrids}`).selectAll(`.${an.ygrid}`).data(u),s.y.exit().remove(),s.y=s.y.enter().append("line").attr("class",an.ygrid).merge(s.y),s.y.attr("x1",l?c:0).attr("x2",l?c:i.width).attr("y1",l?0:c).attr("y2",l?i.height:c),Iu(s.y,"grid")},updateGrid(){const t=this,{$el:{grid:e,gridLines:n}}=t;!n.main&&t.initGridLines(),e.main.style("visibility",t.hasArcType()?"hidden":null),t.hideGridFocus(),t.updateGridLines("x"),t.updateGridLines("y")},updateGridLines(t){const e=this,{config:n,$el:{gridLines:a,main:i},$T:s}=e,o=n.axis_rotated,l=t==="x";n[`grid_${t}_show`]&&e[`update${t.toUpperCase()}Grid`]();let c=i.select(`.${an[`${t}gridLines`]}`).selectAll(`.${an[`${t}gridLine`]}`).data(n[`grid_${t}_lines`]);s(c.exit()).style("opacity","0").remove();const u=c.enter().append("g");u.append("line").style("opacity","0"),c=u.merge(c),c.each(function(g){const v=st(this);v.select("text").empty()&&g.text&&v.append("text").style("opacity","0")}),s(c.attr("class",g=>`${an[`${t}gridLine`]} ${g.class||""}`.trim()).select("text").attr("text-anchor",My).attr("transform",()=>l?o?null:"rotate(-90)":o?"rotate(-90)":null).attr("dx",Ly).attr("dy",-5)).text(function(g){var v;return(v=g.text)!=null?v:this.remove()}),a[t]=c},redrawGrid(t){const e=this,{config:{axis_rotated:n},state:{width:a,height:i},$el:{gridLines:s},$T:o}=e,l=e.xv.bind(e),c=e.yv.bind(e);let u=s.x.select("line"),g=s.x.select("text"),v=s.y.select("line"),m=s.y.select("text");return u=o(u,t).attr("x1",n?0:l).attr("x2",n?a:l).attr("y1",n?l:0).attr("y2",n?l:i),g=o(g,t).attr("x",Ou(!n,a,i)).attr("y",l),v=o(v,t).attr("x1",n?c:0).attr("x2",n?c:a).attr("y1",n?0:c).attr("y2",n?i:c),m=o(m,t).attr("x",Ou(n,a,i)).attr("y",c),[u.style("opacity",null),g.style("opacity",null),v.style("opacity",null),m.style("opacity",null)]},initFocusGrid(){const t=this,{config:e,state:{clip:n},$el:a}=t,i=e.grid_front,s=`.${i&&a.gridLines.main?an.gridLines:Se.chart}${i?" + *":""}`,o=a.main.insert("g",s).attr("clip-path",n.pathGrid).attr("class",an.grid);if(a.grid.main=o,e.grid_x_show&&o.append("g").attr("class",an.xgrids),e.grid_y_show&&o.append("g").attr("class",an.ygrids),e.axis_tooltip){const l=o.append("g").attr("class","bb-axis-tooltip");l.append("line").attr("class","bb-axis-tooltip-x"),l.append("line").attr("class","bb-axis-tooltip-y")}e.interaction_enabled&&e.grid_focus_show&&!e.axis_tooltip&&(o.append("g").attr("class",Qe.xgridFocus).append("line").attr("class",Qe.xgridFocus),e.grid_focus_y&&!e.tooltip_grouped&&o.append("g").attr("class",Qe.ygridFocus).append("line").attr("class",Qe.ygridFocus))},showAxisGridFocus(){var t,e;const n=this,{config:a,format:i,state:{event:s,width:o,height:l}}=n,c=a.axis_rotated,[u,g]=Hn(s,(t=n.$el.eventRect)==null?void 0:t.node()),v={x:u,y:g};for(const[m,S]of Object.entries(n.$el.axisTooltip)){const I=m==="x"&&!c||m!=="x"&&c?"x":"y",N=v[I];let M=(e=n.scale[m])==null?void 0:e.invert(N);M&&(M=m==="x"&&n.axis.isTimeSeries()?i.xAxisTick(M):M==null?void 0:M.toFixed(2),S==null||S.attr(I,N).text(M))}n.$el.main.selectAll("line.bb-axis-tooltip-x, line.bb-axis-tooltip-y").style("visibility",null).each(function(m,S){const I=st(this);S===0?I.attr("x1",u).attr("x2",u).attr("y1",S?0:l).attr("y2",S?l:0):I.attr("x1",S?0:o).attr("x2",S?o:0).attr("y1",g).attr("y2",g)})},hideAxisGridFocus(){const t=this;t.$el.main.selectAll("line.bb-axis-tooltip-x, line.bb-axis-tooltip-y").style("visibility","hidden"),Object.values(t.$el.axisTooltip).forEach(e=>e==null?void 0:e.style("display","none"))},showGridFocus(t){var e;const n=this,{config:a,state:{width:i,height:s}}=n,o=a.axis_rotated,l=n.$el.main.selectAll(`line.${Qe.xgridFocus}, line.${Qe.ygridFocus}`),c=(t||[l.datum()]).filter(v=>v&&we(n.getBaseValue(v)));if(!a.tooltip_show||c.length===0||!a.axis_x_forceAsSingle&&n.hasType("bubble")||n.hasArcType())return;const u=a.grid_focus_edge&&!a.tooltip_grouped,g=n.xx.bind(n);l.style("visibility",null).data(c.concat(c)).each(function(v){const m=st(this),S={x:g(v),y:n.getYScaleById(v.id)(v.value)};let I;if(m.classed(Qe.xgridFocus))I=o?[null,S.x,u?S.y:i,S.x]:[S.x,u?S.y:null,S.x,s];else{const N=n.axis.getId(v.id)==="y2";I=o?[S.y,u&&!N?S.x:null,S.y,u&&N?S.x:s]:[u&&N?S.x:null,S.y,u&&!N?S.x:i,S.y]}["x1","y1","x2","y2"].forEach((N,M)=>m.attr(N,I[M]))}),Iu(l,"grid"),(e=n.showCircleFocus)==null||e.call(n,t)},hideGridFocus(){var t;const e=this,{state:{inputType:n,resizing:a},$el:{main:i}}=e;(n==="mouse"||!a)&&(i.selectAll(`line.${Qe.xgridFocus}, line.${Qe.ygridFocus}`).style("visibility","hidden"),(t=e.hideCircleFocus)==null||t.call(e))},updateGridFocus(){var t;const e=this,{state:{inputType:n,width:a,height:i,resizing:s},$el:{grid:o}}=e,l=o.main.select(`line.${Qe.xgridFocus}`);if(n==="touch")l.empty()?s&&((t=e.showCircleFocus)==null||t.call(e)):e.showGridFocus();else{const c=e.config.axis_rotated;l.attr("x1",c?0:-10).attr("x2",c?a:-10).attr("y1",c?-10:0).attr("y2",c?-10:i)}return!0},generateGridData(t,e){const n=this,a=n.$el.main.select(`.${fn.axisX}`).selectAll(".tick").size();let i=[];if(t==="year"){const s=n.getXDomain(),[o,l]=s.map(c=>c.getFullYear());for(let c=o;c<=l;c++)i.push(new Date(`${c}-01-01 00:00:00`))}else i=e.ticks(10),i.length>a&&(i=i.filter(s=>String(s).indexOf(".")<0));return i},getGridFilterToRemove(t){return t?e=>{let n=!1;return(Be(t)?t.concat():[t]).forEach(a=>{("value"in a&&e.value===a.value||"class"in a&&e.class===a.class)&&(n=!0)}),n}:()=>!0},removeGridLines(t,e){const n=this,{config:a,$T:i}=n,s=n.getGridFilterToRemove(t),o=g=>!s(g),l=e?an.xgridLines:an.ygridLines,c=e?an.xgridLine:an.ygridLine;i(n.$el.main.select(`.${l}`).selectAll(`.${c}`).filter(s)).style("opacity","0").remove();const u=`grid_${e?"x":"y"}_lines`;a[u]=a[u].filter(o)}},Ny={initRegion(){const t=this,{$el:e}=t;e.region.main=e.main.insert("g",":first-child").attr("clip-path",t.state.clip.path).attr("class",$a.regions)},updateRegion(){const t=this,{config:e,$el:{region:n},$T:a}=t;n.main||t.initRegion(),n.main.style("visibility",t.hasArcType()?"hidden":null);const i=n.main.selectAll(`.${$a.region}`).data(e.regions);a(i.exit()).style("opacity","0").remove();const s=i.enter().append("g");s.append("rect").style("fill-opacity","0"),n.list=s.merge(i).attr("class",t.classRegion.bind(t)),n.list.each(function(o){var l;st(this).select("text").empty()&&((l=o.label)!=null&&l.text)&&st(this).append("text").style("opacity","0")})},redrawRegion(t){const e=this,{$el:{region:n},$T:a}=e;let i=n.list.select("rect"),s=n.list.selectAll("text");return i=a(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)),s=a(s,t).attr("transform",o=>{var l;const{x:c=0,y:u=0,rotated:g=!1}=(l=o.label)!=null?l:{};return`translate(${e.regionX.bind(e)(o)+c}, ${e.regionY.bind(e)(o)+u})${g?" rotate(-90)":""}`}).attr("text-anchor",o=>{var l;return(l=o.label)!=null&&l.rotated?"end":null}).attr("dy","1em").style("fill",o=>{var l,c;return(c=(l=o.label)==null?void 0:l.color)!=null?c:null}).text(o=>{var l;return(l=o.label)==null?void 0:l.text}),[i.style("fill-opacity",o=>we(o.opacity)?o.opacity:null).on("end",function(){st(this.parentNode).selectAll("rect:not([x])").remove()}),s.style("opacity",null)]},getRegionXY(t,e){const n=this,{config:a,scale:i}=n,s=a.axis_rotated,o=t==="x";let l="start",c,u=0;return e.axis==="y"||e.axis==="y2"?(o||(l="end"),(o?s:!s)&&l in e&&(c=i[e.axis],u=c(e[l]))):(o?!s:s)&&l in e&&(c=i.zoom||i.x,u=c(n.axis.isTimeSeries()?zn.call(n,e[l]):e[l])),u},regionX(t){return this.getRegionXY("x",t)},regionY(t){return this.getRegionXY("y",t)},getRegionSize(t,e){const n=this,{config:a,scale:i,state:s}=n,o=a.axis_rotated,l=t==="width",c=n[l?"regionX":"regionY"](e);let u,g="end",v=s[t];return e.axis==="y"||e.axis==="y2"?(l||(g="start"),(l?o:!o)&&g in e&&(u=i[e.axis],v=u(e[g]))):(l?!o:o)&&g in e&&(u=i.zoom||i.x,v=u(n.axis.isTimeSeries()?zn.call(n,e[g]):e[g])),v<c?0:v-c},regionWidth(t){return this.getRegionSize("width",t)},regionHeight(t){return this.getRegionSize("height",t)},isRegionOnX(t){return!t.axis||t.axis==="x"}},Fy={getAxisSize(t){const e=this,n=e.config.axis_rotated;return n&&t==="x"||!n&&/y2?/.test(t)?e.getAxisWidthByAxisId(t,!0):e.getHorizontalAxisHeight(t)},getAxisWidthByAxisId(t,e){var n,a;const i=this;if(i.axis){const s=(n=i.axis)==null?void 0:n.getLabelPositionById(t),{width:o}=i.axis.getMaxTickSize(t,e),l=o===0?.5:0;return o+(((a=i.config.padding)==null?void 0:a.mode)==="fit"?s.isInner?10+l:10:s.isInner?20+l:40)}else return 40},getHorizontalAxisHeight(t){var e,n;const a=this,{config:i,state:s}=a,{rotatedPadding:o,isLegendRight:l,isLegendInset:c}=s,u=i.axis_rotated,g=((e=i.padding)==null?void 0:e.mode)==="fit",v=i[`axis_${t}_inner`],m=i[`axis_${t}_label`].text,S=13;let I=((n=i.padding)==null?void 0:n.mode)==="fit"?v&&!m?t==="y"?1:0:20:30;if(t==="x"&&!i.axis_x_show)return 8;if(t==="x"&&he(i.axis_x_height))return i.axis_x_height;if(t==="y"&&!i.axis_y_show)return i.legend_show&&!l&&!c?10:1;if(t==="y2"&&!i.axis_y2_show)return g?0:o.top;const N=a.axis.getMaxTickSize(t),M=Math.abs(i.axis_x_tick_rotate)>0&&(!i.axis_x_tick_autorotate||a.needToRotateXAxisTickTexts());return(i.axis_x_tick_multiline||M)&&N.height>S&&(I+=N.height-S),I+(a.axis.getLabelPositionById(t).isInner?0:10)+(t==="y2"&&!u?-10:0)},getEventRectWidth(){const t=this,{config:e,axis:n}=t,a=e.axis_x_inverted,i=n.x.tickInterval();return Math.max(0,a?Math.abs(i):i)},getAxisTickRotate(t){const e=this,{axis:n,config:a,state:i,$el:s}=e;let o=a[`axis_${t}_tick_rotate`];if(t==="x"){const l=n.isCategorized()||n.isTimeSeries();if(a.axis_x_tick_fit&&l){const c=a.axis_x_tick_count,u=i.current.maxTickSize.x.ticks.length;let g=0;if(c?g=c>u?u:c:u&&(g=u),g!==i.axis.x.tickCount){const{targets:v}=e.data;i.axis.x.padding=e.getXDomainPadding([e.getXDomainMinMax(v,"min"),e.getXDomainMinMax(v,"max")],g)}i.axis.x.tickCount=g}s.svg&&a.axis_x_tick_autorotate&&a.axis_x_tick_fit&&!a.axis_x_tick_multiline&&!a.axis_x_tick_culling&&l&&(o=e.needToRotateXAxisTickTexts()?a.axis_x_tick_rotate:0)}return o},needToRotateXAxisTickTexts(){const t=this,{state:{axis:e,current:n,isLegendRight:a,legendItemWidth:i}}=t,s=a&&i,o=n.width-s-t.getCurrentPaddingByDirection("left")-t.getCurrentPaddingByDirection("right"),l=e.x.tickCount+e.x.padding.left+e.x.padding.right,{width:c}=t.axis.getMaxTickSize("x"),u=l?o/l:0;return c>u}},By={axis_x_clipPath:!0,axis_x_show:!0,axis_x_forceAsSingle:!1,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_culling_lines:!0,axis_x_tick_count:void 0,axis_x_tick_show:!0,axis_x_tick_text_show:!0,axis_x_tick_text_inner:!1,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_inverted:!1,axis_x_padding:{},axis_x_height:void 0,axis_x_extent:void 0,axis_x_label:{},axis_x_axes:[]},Uy={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_culling_lines:!0,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:[]},zy={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_culling_lines:!0,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:[]},jy=Object.defineProperty,Cu=Object.getOwnPropertySymbols,Gy=Object.prototype.hasOwnProperty,Vy=Object.prototype.propertyIsEnumerable,Pu=(t,e,n)=>e in t?jy(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,yo=(t,e)=>{for(var n in e||(e={}))Gy.call(e,n)&&Pu(t,n,e[n]);if(Cu)for(var n of Cu(e))Vy.call(e,n)&&Pu(t,n,e[n]);return t},Xy=yo(yo(yo({axis_rotated:!1,axis_tooltip:!1},By),Uy),zy),Yy={grid_x_show:!1,grid_x_type:"tick",grid_x_lines:[],grid_y_show:!1,grid_y_lines:[],grid_y_ticks:void 0,grid_focus_edge:!1,grid_focus_show:!0,grid_focus_y:!1,grid_front:!1,grid_lines_front:!0},Hy={data_xs:{},data_xFormat:"%Y-%m-%d",data_xLocaltime:!0,data_xSort:!0,data_axes:{},data_regions:{},data_stack_normalize:!1};const Wy=[ay,iy,sy,oy,ly,cy,uy],wu={axis:Ry,clip:wy,eventrect:Iy,flow:Py,grid:Dy,region:Ny,sizeAxis:Fy},Mu={optDataAxis:Hy,optAxis:Xy,optGrid:Yy};var b1=Array.prototype.slice;function xo(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Me(t){return function(){return t}}function Ky(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function Zy(t){return t}function ky(){var t=Zy,e=Ky,n=null,a=Me(0),i=Me(Ui),s=Me(0);function o(l){var c,u=(l=xo(l)).length,g,v,m=0,S=new Array(u),I=new Array(u),N=+a.apply(this,arguments),M=Math.min(Ui,Math.max(-Ui,i.apply(this,arguments)-N)),P,X=Math.min(Math.abs(M)/u,s.apply(this,arguments)),H=X*(M<0?-1:1),Y;for(c=0;c<u;++c)(Y=I[S[c]=c]=+t(l[c],c,l))>0&&(m+=Y);for(e!=null?S.sort(function(_,K){return e(I[_],I[K])}):n!=null&&S.sort(function(_,K){return n(l[_],l[K])}),c=0,v=m?(M-u*H)/m:0;c<u;++c,N=P)g=S[c],Y=I[g],P=N+(Y>0?Y*v:0)+H,I[g]={data:l[g],index:c,value:Y,startAngle:N,endAngle:P,padAngle:X};return I}return o.value=function(l){return arguments.length?(t=typeof l=="function"?l:Me(+l),o):t},o.sortValues=function(l){return arguments.length?(e=l,n=null,o):e},o.sort=function(l){return arguments.length?(n=l,e=null,o):n},o.startAngle=function(l){return arguments.length?(a=typeof l=="function"?l:Me(+l),o):a},o.endAngle=function(l){return arguments.length?(i=typeof l=="function"?l:Me(+l),o):i},o.padAngle=function(l){return arguments.length?(s=typeof l=="function"?l:Me(+l),o):s},o}var Jy=Math.pow;const To=Math.PI,$o=2*To,Vr=1e-6,Qy=$o-Vr;function Lu(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function _y(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Lu;const n=Jy(10,e);return function(a){this._+=a[0];for(let i=1,s=a.length;i<s;++i)this._+=Math.round(arguments[i]*n)/n+a[i]}}class Hi{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?Lu:_y(e)}moveTo(e,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,n){this._append`L${this._x1=+e},${this._y1=+n}`}quadraticCurveTo(e,n,a,i){this._append`Q${+e},${+n},${this._x1=+a},${this._y1=+i}`}bezierCurveTo(e,n,a,i,s,o){this._append`C${+e},${+n},${+a},${+i},${this._x1=+s},${this._y1=+o}`}arcTo(e,n,a,i,s){if(e=+e,n=+n,a=+a,i=+i,s=+s,s<0)throw new Error(`negative radius: ${s}`);let o=this._x1,l=this._y1,c=a-e,u=i-n,g=o-e,v=l-n,m=g*g+v*v;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(m>Vr)if(!(Math.abs(v*c-u*g)>Vr)||!s)this._append`L${this._x1=e},${this._y1=n}`;else{let S=a-o,I=i-l,N=c*c+u*u,M=S*S+I*I,P=Math.sqrt(N),X=Math.sqrt(m),H=s*Math.tan((To-Math.acos((N+m-M)/(2*P*X)))/2),Y=H/X,_=H/P;Math.abs(Y-1)>Vr&&this._append`L${e+Y*g},${n+Y*v}`,this._append`A${s},${s},0,0,${+(v*S>g*I)},${this._x1=e+_*c},${this._y1=n+_*u}`}}arc(e,n,a,i,s,o){if(e=+e,n=+n,a=+a,o=!!o,a<0)throw new Error(`negative radius: ${a}`);let l=a*Math.cos(i),c=a*Math.sin(i),u=e+l,g=n+c,v=1^o,m=o?i-s:s-i;this._x1===null?this._append`M${u},${g}`:(Math.abs(this._x1-u)>Vr||Math.abs(this._y1-g)>Vr)&&this._append`L${u},${g}`,a&&(m<0&&(m=m%$o+$o),m>Qy?this._append`A${a},${a},0,1,${v},${e-l},${n-c}A${a},${a},0,1,${v},${this._x1=u},${this._y1=g}`:m>Vr&&this._append`A${a},${a},0,${+(m>=To)},${v},${this._x1=e+a*Math.cos(s)},${this._y1=n+a*Math.sin(s)}`)}rect(e,n,a,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${a=+a}v${+i}h${-a}Z`}toString(){return this._}}function qy(){return new Hi}qy.prototype=Hi.prototype;function E1(t=3){return new Hi(+t)}function So(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const a=Math.floor(n);if(!(a>=0))throw new RangeError(`invalid digits: ${n}`);e=a}return t},()=>new Hi(e)}function tx(t){return t.innerRadius}function ex(t){return t.outerRadius}function nx(t){return t.startAngle}function rx(t){return t.endAngle}function ax(t){return t&&t.padAngle}function ix(t,e,n,a,i,s,o,l){var c=n-t,u=a-e,g=o-i,v=l-s,m=v*c-g*u;if(!(m*m<En))return m=(g*(e-s)-v*(t-i))/m,[t+m*c,e+m*u]}function Wi(t,e,n,a,i,s,o){var l=t-n,c=e-a,u=(o?s:-s)/sa(l*l+c*c),g=u*c,v=-u*l,m=t+g,S=e+v,I=n+g,N=a+v,M=(m+I)/2,P=(S+N)/2,X=I-m,H=N-S,Y=X*X+H*H,_=i-s,K=m*N-I*S,at=(H<0?-1:1)*sa(Qp(0,_*_*Y-K*K)),yt=(K*H-X*at)/Y,$t=(-K*X-H*at)/Y,dt=(K*H+X*at)/Y,ft=(-K*X+H*at)/Y,Ft=yt-M,ht=$t-P,Z=dt-M,St=ft-P;return Ft*Ft+ht*ht>Z*Z+St*St&&(yt=dt,$t=ft),{cx:yt,cy:$t,x01:-g,y01:-v,x11:yt*(i/_-1),y11:$t*(i/_-1)}}function Du(){var t=tx,e=ex,n=Me(0),a=null,i=nx,s=rx,o=ax,l=null,c=So(u);function u(){var g,v,m=+t.apply(this,arguments),S=+e.apply(this,arguments),I=i.apply(this,arguments)-Bi,N=s.apply(this,arguments)-Bi,M=Vc(N-I),P=N>I;if(l||(l=g=c()),S<m&&(v=S,S=m,m=v),!(S>En))l.moveTo(0,0);else if(M>Ui-En)l.moveTo(S*jr(I),S*rr(I)),l.arc(0,0,S,I,N,!P),m>En&&(l.moveTo(m*jr(N),m*rr(N)),l.arc(0,0,m,N,I,P));else{var X=I,H=N,Y=I,_=N,K=M,at=M,yt=o.apply(this,arguments)/2,$t=yt>En&&(a?+a.apply(this,arguments):sa(m*m+S*S)),dt=lo(Vc(S-m)/2,+n.apply(this,arguments)),ft=dt,Ft=dt,ht,Z;if($t>En){var St=Xc($t/m*rr(yt)),lt=Xc($t/S*rr(yt));(K-=St*2)>En?(St*=P?1:-1,Y+=St,_-=St):(K=0,Y=_=(I+N)/2),(at-=lt*2)>En?(lt*=P?1:-1,X+=lt,H-=lt):(at=0,X=H=(I+N)/2)}var At=S*jr(X),jt=S*rr(X),Ut=m*jr(_),kt=m*rr(_);if(dt>En){var Kt=S*jr(H),ae=S*rr(H),Ve=m*jr(Y),Oe=m*rr(Y),Xe;if(M<Na)if(Xe=ix(At,jt,Ve,Oe,Kt,ae,Ut,kt)){var hn=At-Xe[0],De=jt-Xe[1],dn=Kt-Xe[0],Jt=ae-Xe[1],xe=1/rr(_p((hn*dn+De*Jt)/(sa(hn*hn+De*De)*sa(dn*dn+Jt*Jt)))/2),Ee=sa(Xe[0]*Xe[0]+Xe[1]*Xe[1]);ft=lo(dt,(m-Ee)/(xe-1)),Ft=lo(dt,(S-Ee)/(xe+1))}else ft=Ft=0}at>En?Ft>En?(ht=Wi(Ve,Oe,At,jt,S,Ft,P),Z=Wi(Kt,ae,Ut,kt,S,Ft,P),l.moveTo(ht.cx+ht.x01,ht.cy+ht.y01),Ft<dt?l.arc(ht.cx,ht.cy,Ft,bn(ht.y01,ht.x01),bn(Z.y01,Z.x01),!P):(l.arc(ht.cx,ht.cy,Ft,bn(ht.y01,ht.x01),bn(ht.y11,ht.x11),!P),l.arc(0,0,S,bn(ht.cy+ht.y11,ht.cx+ht.x11),bn(Z.cy+Z.y11,Z.cx+Z.x11),!P),l.arc(Z.cx,Z.cy,Ft,bn(Z.y11,Z.x11),bn(Z.y01,Z.x01),!P))):(l.moveTo(At,jt),l.arc(0,0,S,X,H,!P)):l.moveTo(At,jt),!(m>En)||!(K>En)?l.lineTo(Ut,kt):ft>En?(ht=Wi(Ut,kt,Kt,ae,m,-ft,P),Z=Wi(At,jt,Ve,Oe,m,-ft,P),l.lineTo(ht.cx+ht.x01,ht.cy+ht.y01),ft<dt?l.arc(ht.cx,ht.cy,ft,bn(ht.y01,ht.x01),bn(Z.y01,Z.x01),!P):(l.arc(ht.cx,ht.cy,ft,bn(ht.y01,ht.x01),bn(ht.y11,ht.x11),!P),l.arc(0,0,m,bn(ht.cy+ht.y11,ht.cx+ht.x11),bn(Z.cy+Z.y11,Z.cx+Z.x11),P),l.arc(Z.cx,Z.cy,ft,bn(Z.y11,Z.x11),bn(Z.y01,Z.x01),!P))):l.arc(0,0,m,_,Y,P)}if(l.closePath(),g)return l=null,g+""||null}return u.centroid=function(){var g=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,v=(+i.apply(this,arguments)+ +s.apply(this,arguments))/2-Na/2;return[jr(v)*g,rr(v)*g]},u.innerRadius=function(g){return arguments.length?(t=typeof g=="function"?g:Me(+g),u):t},u.outerRadius=function(g){return arguments.length?(e=typeof g=="function"?g:Me(+g),u):e},u.cornerRadius=function(g){return arguments.length?(n=typeof g=="function"?g:Me(+g),u):n},u.padRadius=function(g){return arguments.length?(a=g==null?null:typeof g=="function"?g:Me(+g),u):a},u.startAngle=function(g){return arguments.length?(i=typeof g=="function"?g:Me(+g),u):i},u.endAngle=function(g){return arguments.length?(s=typeof g=="function"?g:Me(+g),u):s},u.padAngle=function(g){return arguments.length?(o=typeof g=="function"?g:Me(+g),u):o},u.context=function(g){return arguments.length?(l=g==null?null:g,u):l},u}var sx=Object.defineProperty,ox=Object.defineProperties,lx=Object.getOwnPropertyDescriptors,Nu=Object.getOwnPropertySymbols,cx=Object.prototype.hasOwnProperty,ux=Object.prototype.propertyIsEnumerable,Fu=(t,e,n)=>e in t?sx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,fx=(t,e)=>{for(var n in e||(e={}))cx.call(e,n)&&Fu(t,n,e[n]);if(Nu)for(var n of Nu(e))ux.call(e,n)&&Fu(t,n,e[n]);return t},dx=(t,e)=>ox(t,lx(e));function Bu(t=0){const e=this,{config:n,state:a}=e,i=e.hasMultiArcGauge(),s=a.gaugeArcWidth/e.filterTargetsToShow(e.data.targets).length,o=t?Math.min(a.radiusExpanded*t-a.radius,s*.8-(1-t)*100):0;return{inner(l){const{innerRadius:c}=e.getRadius(l);return i?a.radius-s*(l.index+1):he(c)?c:0},outer(l){const{outerRadius:c}=e.getRadius(l);let u;if(i)u=a.radius-s*l.index+o;else if(e.hasType("polar")&&!t)u=e.getPolarOuterRadius(l,c);else if(u=c,t){let{radiusExpanded:g}=a;a.radius!==c&&(g-=Math.abs(a.radius-c)),u=g*t}return u},corner(l,c){const{arc_cornerRadius_ratio:u=0,arc_cornerRadius:g=0}=n,{data:{id:v},value:m}=l;let S=0;return u?S=u*c:S=he(g)?g:g.call(e.api,v,m,c),S}}}function Ao(t){return function(e){const n=({startAngle:i=0,endAngle:s=0,padAngle:o=0})=>({startAngle:i,endAngle:s,padAngle:o}),a=Jr(n(this._current),n(e));return this._current=e,function(i){const s=a(i),{data:o,index:l,value:c}=e;return t(dx(fx({},s),{data:o,index:l,value:c}))}}}var hx={initPie(){const t=this,{config:e}=t,n=e.data_type,a=e[`${n}_padding`],i=e[`${n}_startingAngle`]||0,s=(a?a*.01:e[`${n}_padAngle`])||0;t.pie=ky().startAngle(i).endAngle(i+2*Math.PI).padAngle(s).value(o=>{var l,c;return(c=(l=o.values)==null?void 0:l.reduce((u,g)=>u+g.value,0))!=null?c:o}).sort(t.getSortCompareFn.bind(t)(!0))},updateRadius(){const t=this,{config:e,state:n}=t,a=e.data_type,i=e[`${a}_padding`],s=e.gauge_width||e.donut_width,o=t.filterTargetsToShow(t.data.targets).length*e.gauge_arcs_minWidth;n.radiusExpanded=Math.min(n.arcWidth,n.arcHeight)/2*(t.hasMultiArcGauge()&&e.gauge_label_show?.85:1),n.radius=n.radiusExpanded*.95,n.innerRadiusRatio=s?(n.radius-s)/n.radius:.6,n.gaugeArcWidth=s||(o<=n.radius-n.innerRadius?n.radius-n.innerRadius:o<=n.radius?o:n.radius);const l=e.pie_innerRadius||(i?i*(n.innerRadiusRatio+.1):0);n.outerRadius=e.pie_outerRadius,n.innerRadius=t.hasType("donut")||t.hasType("gauge")?n.radius*n.innerRadiusRatio:l},getRadius(t){const e=this,n=t==null?void 0:t.data;let{innerRadius:a,outerRadius:i}=e.state;return!he(a)&&n&&(a=a[n.id]||0),Ne(i)&&n&&n.id in i?i=i[n.id]:he(i)||(i=e.state.radius),{innerRadius:a,outerRadius:i}},updateArc(){const t=this;t.updateRadius(),t.svgArc=t.getSvgArc(),t.svgArcExpanded=t.getSvgArcExpanded()},getArcLength(){const t=this,{config:e}=t,n=e.gauge_arcLength*3.6;let a=2*(n/360);return n<-360?a=-2:n>360&&(a=2),a*Math.PI},getStartingAngle(){const t=this,{config:e}=t,n=e.data_type,a=t.hasType("gauge")?e.gauge_fullCircle:!1,i=-1*Math.PI/2,s=Math.PI/2;let o=e[`${n}_startingAngle`]||0;return!a&&o<=i?o=i:!a&&o>=s?o=s:(o>Math.PI||o<-1*Math.PI)&&(o=Math.PI),o},updateAngle(t,e=!1){var n;const a=this,{config:i,state:s}=a,o=e&&a.hasType("gauge");let{pie:l}=a,c=t,u=!1;if(!i)return null;const g=a.getStartingAngle(),v=i.gauge_fullCircle||e&&!o?a.getArcLength():g*-2;if(c.data&&a.isGaugeType(c.data)&&!a.hasMultiArcGauge()){const{gauge_min:m,gauge_max:S}=i,I=a.getTotalDataSum(s.rendered),N=v*((I-m)/(S-m));l=l.startAngle(g).endAngle(N+g)}if(e===!1&&l(a.filterTargetsToShow()).forEach((m,S)=>{var I;!u&&m.data.id===((I=c.data)==null?void 0:I.id)&&(u=!0,c=m,c.index=S)}),isNaN(c.startAngle)&&(c.startAngle=0),isNaN(c.endAngle)&&(c.endAngle=c.startAngle),e||c.data&&(i.gauge_enforceMinMax||a.hasMultiArcGauge())){const{gauge_min:m,gauge_max:S}=i,I=e&&!o?a.getTotalDataSum(s.rendered):S,N=v/(I-m),M=(n=c.value)!=null?n:0,P=M<m?0:M<I?M-m:I-m;c.startAngle=g,c.endAngle=g+N*P}return u||e?c:null},getSvgArc(){const t=this,{inner:e,outer:n,corner:a}=Bu.call(t),i=Du().innerRadius(e).outerRadius(n),s=function(o,l){var c;let u="M 0 0";if(o.value||o.data){const g=l?o:(c=t.updateAngle(o))!=null?c:null;g&&(u=i.cornerRadius(a(g,n(g)))(g))}return u};return s.centroid=i.centroid,s},getSvgArcExpanded(t=1){const e=this,{inner:n,outer:a,corner:i}=Bu.call(e,t),s=Du().innerRadius(n).outerRadius(a);return o=>{const l=e.updateAngle(o),c=a(l);let u=0;return l&&(u=i(l,c)),l?s.cornerRadius(u)(l):"M 0 0"}},getArc(t,e,n){return n||this.isArcType(t.data)?this.svgArc(t,e):"M 0 0"},redrawArcRangeText(){const t=this,{config:e,$el:{arcs:n},state:a,$T:i}=t,s=e.arc_rangeText_format,o=t.hasType("gauge")&&e.arc_rangeText_fixed;let l=e.arc_rangeText_values;if(l!=null&&l.length){const c=e.arc_rangeText_unit==="%",u=t.getTotalDataSum(a.rendered);c&&(l=l.map(m=>u/100*m));const g=t.pie(l).map((m,S)=>(m.index=S,m));let v=n.selectAll(`.${Ue.arcRange}`).data(l);v.exit(),v=i(v.enter().append("text").attr("class",Ue.arcRange).style("text-anchor","middle").style("pointer-events","none").style("opacity","0").text(m=>{const S=c?m/u*100:m;return ve(s)?s(S):`${S}${c?"%":""}`}).merge(v)),(!a.rendered||a.rendered&&!o)&&u>0&&v.attr("transform",(m,S)=>t.transformForArcLabel(g[S],!0)),v.style("opacity",m=>!o&&(m>u||u===0)?"0":null)}},transformForArcLabel(t,e=!1){var n,a,i;const s=this,{config:o,state:{radiusExpanded:l}}=s,c=s.updateAngle(t,e);let u="";if(c){if(e||s.hasMultiArcGauge()){const g=Math.sin(c.endAngle-Math.PI/2),v=o.arc_rangeText_position;let m=Math.cos(c.endAngle-Math.PI/2)*(l+(e?5:25)),S=g*(l+15-Math.abs(g*10))+3;if(e&&v){const I=o.arc_rangeText_values,N=ve(v)?v(I[t.index]):v;m+=(n=N==null?void 0:N.x)!=null?n:0,S+=(a=N==null?void 0:N.y)!=null?a:0}u=`translate(${m},${S})`}else if(!s.hasType("gauge")||s.data.targets.length>1){let{outerRadius:g}=s.getRadius(t);s.hasType("polar")&&(g=s.getPolarOuterRadius(t,g));const v=this.svgArc.centroid(c),[m,S]=v.map(M=>isNaN(M)?0:M),I=Math.sqrt(m*m+S*S);let N=(i=["donut","gauge","pie","polar"].filter(s.hasType.bind(s)).map(M=>o[`${M}_label_ratio`]))==null?void 0:i[0];N?N=ve(N)?N.bind(s.api)(t,g,I):N:N=g&&(I?(36/g>.375?1.175-36/g:.8)*g/I:0),u=`translate(${m*N},${S*N})`}}return u},convertToArcData(t){return this.addName({id:"data"in t?t.data.id:t.id,value:t.value,ratio:this.getRatio("arc",t),index:t.index})},textForArcLabel(t){const e=this,n=e.hasType("gauge");e.shouldShowArcLabel()&&t.style("fill",e.updateTextColor.bind(e)).attr("filter",a=>e.updateTextBGColor.bind(e)(a,e.config.data_labels_backgroundColors)).each(function(a){var i;const s=st(this),o=e.updateAngle(a),l=e.getRatio("arc",o);if(e.meetsLabelThreshold(l,(i=["donut","gauge","pie","polar"].filter(e.hasType.bind(e)))==null?void 0:i[0])){const{value:u}=o||a,g=(e.getArcLabelFormat()||e.defaultArcValueFormat)(u,l,a.data.id).toString();wa(s,g,[-1,1],n)}else s.text("")})},expandArc(t){const e=this,{state:{transiting:n},$el:a}=e;if(n){const s=setInterval(()=>{n||(clearInterval(s),a.legend.selectAll(`.${Qe.legendItemFocused}`).size()>0&&e.expandArc(t))},10);return}const i=e.mapToTargetIds(t);a.svg.selectAll(e.selectorTargets(i,`.${Ue.chartArc}`)).each(function(s){if(!e.shouldExpand(s.data.id))return;const o=e.getExpandConfig(s.data.id,"duration"),l=e.getSvgArcExpanded(e.getExpandConfig(s.data.id,"rate"));st(this).selectAll("path").transition().duration(o).attrTween("d",Ao(e.svgArcExpanded.bind(e))).transition().duration(o*2).attrTween("d",Ao(l.bind(e)))})},unexpandArc(t){const e=this,{state:{transiting:n},$el:{svg:a}}=e;if(n)return;const i=e.mapToTargetIds(t);a.selectAll(e.selectorTargets(i,`.${Ue.chartArc}`)).selectAll("path").transition().duration(s=>e.getExpandConfig(s.data.id,"duration")).attrTween("d",Ao(e.svgArc.bind(e))),a.selectAll(`${Ue.arc}`).style("opacity",null)},getExpandConfig(t,e){const n=this,{config:a}=n,i={duration:50,rate:.98};let s;return n.isDonutType(t)?s="donut":n.isGaugeType(t)?s="gauge":n.isPieType(t)&&(s="pie"),s?a[`${s}_expand_${e}`]:i[e]},shouldExpand(t){const e=this,{config:n}=e;return e.isDonutType(t)&&n.donut_expand||e.isGaugeType(t)&&n.gauge_expand||e.isPieType(t)&&n.pie_expand},shouldShowArcLabel(){const t=this,{config:e}=t;return["donut","gauge","pie","polar"].some(n=>t.hasType(n)&&e[`${n}_label_show`])},getArcLabelFormat(){const t=this,{config:e}=t;let n=a=>a;return["donut","gauge","pie","polar"].filter(t.hasType.bind(t)).forEach(a=>{n=e[`${a}_label_format`]}),ve(n)?n.bind(t.api):n},updateTargetsForArc(t){const e=this,{$el:n}=e,a=e.hasType("gauge"),i=e.getChartClass("Arc"),s=e.getClass("arcs",!0),o=e.classFocus.bind(e),l=n.main.select(`.${Ue.chartArcs}`),c=l.selectAll(`.${Ue.chartArc}`).data(e.pie(t)).attr("class",g=>i(g)+o(g.data)),u=c.enter().append("g").attr("class",i).call(this.setCssRule(!1,`.${Ue.chartArcs} text`,["pointer-events:none","text-anchor:middle"]));u.append("g").attr("class",s).merge(c),u.append("text").attr("dy",a&&!e.hasMultiTargets()?"-.1em":".35em").style("opacity","0").style("text-anchor",e.getStylePropValue("middle")).style("pointer-events",e.getStylePropValue("none")),n.text=l.selectAll(`.${Se.target} text`)},initArc(){const t=this,{$el:e}=t;e.arcs=e.main.select(`.${Se.chart}`).append("g").attr("class",Ue.chartArcs).attr("transform",t.getTranslate("arc")),t.setArcTitle()},setArcTitle(t){const e=this,n=t||e.getArcTitle(),a=e.hasType("gauge");if(n){const i=a?Un.chartArcsGaugeTitle:Ue.chartArcsTitle;let s=e.$el.arcs.select(`.${i}`);s.empty()&&(s=e.$el.arcs.append("text").attr("class",i).style("text-anchor","middle")),a&&s.attr("dy","-0.3em"),wa(s,n,a?void 0:[-.6,1.35],!0)}},getArcTitle(){const t=this,e=t.hasType("donut")&&"donut"||t.hasType("gauge")&&"gauge";return e?t.config[`${e}_title`]:""},getArcTitleWithNeedleValue(){const t=this,{config:e,state:n}=t,a=t.getArcTitle();if(a&&t.config.arc_needle_show&&/{=[A-Z_]+}/.test(a)){let i=n.current.needle;return he(i)||(i=e.arc_needle_value),bi(a,{NEEDLE_VALUE:he(i)?i:0})}return!1},redrawArc(t,e,n){const a=this,{config:i,state:s,$el:{main:o}}=a,l=i.interaction_enabled,c=l&&i.data_selection_isselectable;let u=o.selectAll(`.${Ue.arcs}`).selectAll(`.${Ue.arc}`).data(a.arcData.bind(a));u.exit().transition().duration(e).style("opacity","0").remove(),u=u.enter().append("path").attr("class",a.getClass("arc",!0)).style("fill",g=>a.color(g.data)).style("cursor",g=>{var v;return(v=c==null?void 0:c.bind)!=null&&v.call(c,a.api)(g)?"pointer":null}).style("opacity","0").each(function(g){a.isGaugeType(g.data)&&(g.startAngle=i.gauge_startingAngle,g.endAngle=i.gauge_startingAngle),this._current=g}).merge(u),a.hasType("gauge")&&(a.updateGaugeMax(),a.hasMultiArcGauge()&&a.redrawArcGaugeLine()),u.attr("transform",g=>!a.isGaugeType(g.data)&&n?"scale(0)":"").style("opacity",function(g){return g===this._current?"0":null}).each(()=>{s.transiting=!0}).transition().duration(t).attrTween("d",function(g){const v=a.updateAngle(g);if(!v)return()=>"M 0 0";isNaN(this._current.startAngle)&&(this._current.startAngle=0),isNaN(this._current.endAngle)&&(this._current.endAngle=this._current.startAngle);const m=Jr(this._current,v);return this._current=m(0),function(S){const I=m(S);return I.data=g.data,a.getArc(I,!0)}}).attr("transform",n?"scale(1)":"").style("fill",g=>{let v;return a.levelColor?(v=a.levelColor(g.data.values[0].value),i.data_colors[g.data.id]=v):v=a.color(g.data),v}).style("opacity",null).call($i,function(){if(a.levelColor){const g=st(this),v=g.datum(this._current);a.updateLegendItemColor(v.data.id,g.style("fill"))}s.transiting=!1,_e(i.onrendered,a.api)}),l&&a.bindArcEvent(u),a.hasType("polar")&&a.redrawPolar(),a.hasType("gauge")&&a.redrawBackgroundArcs(),i.arc_needle_show&&a.redrawNeedle(),a.redrawArcText(t),a.redrawArcRangeText()},redrawNeedle(){const t=this,{$el:e,config:n,state:{hiddenTargetIds:a,radius:i}}=t,s=(i-1)/100*n.arc_needle_length,o=a.length!==t.data.targets.length;let l=t.$el.arcs.select(`.${Ue.needle}`);const c=n.arc_needle_path,u=n.arc_needle_bottom_width/2,g=n.arc_needle_top_width/2,v=n.arc_needle_top_rx,m=n.arc_needle_top_ry,S=n.arc_needle_bottom_len,I=n.arc_needle_bottom_rx,N=n.arc_needle_bottom_ry,M=t.getNeedleAngle(),P=()=>{const X=t.getArcTitleWithNeedleValue();X&&t.setArcTitle(X)};if(P(),l.empty()&&(l=e.arcs.append("path").classed(Ue.needle,!0),e.needle=l,e.needle.updateHelper=(X,H=!1)=>{e.needle.style("display")!=="none"&&t.$T(e.needle).style("transform",`rotate(${t.getNeedleAngle(X)}deg)`).call($i,()=>{H&&(n.arc_needle_value=X),P()})}),o){const X=ve(c)?c.call(t,s):`M-${u} ${S} A${I} ${N} 0 0 0 ${u} ${S} L${g} -${s} A${v} ${m} 0 0 0 -${g} -${s} L-${u} ${S} Z`;t.$T(l).attr("d",X).style("fill",n.arc_needle_color).style("display",null).style("transform",`rotate(${M}deg)`)}else l.style("display","none")},getNeedleAngle(t){const e=this,{config:n,state:a}=e,i=e.getArcLength(),s=e.hasType("gauge"),o=e.getTotalDataSum(!0);let l=ke(t)?t:n.arc_needle_value,c=n[`${n.data_type}_startingAngle`]||0,u=0;if(he(l)||(l=s&&e.data.targets.length===1?o:0),a.current.needle=l,s){c=e.getStartingAngle();const g=n.gauge_fullCircle?i:c*-2,{gauge_min:v,gauge_max:m}=n;u=g*((l-v)/(m-v))}else u=i*(l/o);return(c+u)*(180/Math.PI)},redrawBackgroundArcs(){const t=this,{config:e,state:n}=t,a=t.hasMultiArcGauge(),i=e.gauge_fullCircle,s=t.filterTargetsToShow(t.data.targets).length===0&&!!e.data_empty_label_text,o=t.getStartingAngle(),l=i?o+t.getArcLength():o*-1;let c=t.$el.arcs.select(`${a?"g":""}.${Ue.chartArcsBackground}`);if(a){let u=0;c=c.selectAll(`path.${Ue.chartArcsBackground}`).data(t.data.targets),c.enter().append("path").attr("class",(g,v)=>`${Ue.chartArcsBackground} ${Ue.chartArcsBackground}-${v}`).merge(c).style("fill",e.gauge_background||null).attr("d",({id:g})=>{if(s||n.hiddenTargetIds.indexOf(g)>=0)return"M 0 0";const v={data:[{value:e.gauge_max}],startAngle:o,endAngle:l,index:u++};return t.getArc(v,!0,!0)}),c.exit().remove()}else c.attr("d",s?"M 0 0":()=>{const u={data:[{value:e.gauge_max}],startAngle:o,endAngle:l};return t.getArc(u,!0,!0)})},bindArcEvent(t){const e=this,{config:n,state:a}=e,i=a.inputType==="touch",s=a.inputType==="mouse";function o(c,u,g){e.expandArc(g),e.api.focus(g),e.toggleFocusLegend(g,!0),e.showTooltip([u],c)}function l(c){const u=(c==null?void 0:c.id)||void 0;e.unexpandArc(u),e.api.revert(),e.revertLegend(),e.hideTooltip()}if(t.on("click",function(c,u,g){var v;const m=e.updateAngle(u);let S;m&&(S=e.convertToArcData(m),(v=e.toggleShape)==null||v.call(e,this,S,g),n.data_onclick.bind(e.api)(S,this))}),s&&t.on("mouseover",function(c,u){if(a.transiting)return;a.event=c;const g=e.updateAngle(u),v=g?e.convertToArcData(g):null,m=(v==null?void 0:v.id)||void 0;o(this,v,m),e.setOverOut(!0,v)}).on("mouseout",(c,u)=>{if(a.transiting)return;a.event=c;const g=e.updateAngle(u),v=g?e.convertToArcData(g):null;l(),e.setOverOut(!1,v)}).on("mousemove",function(c,u){const g=e.updateAngle(u),v=g?e.convertToArcData(g):null;a.event=c,e.showTooltip([v],this)}),i&&e.hasArcType()&&!e.radars){const c=u=>{var g,v;const{clientX:m,clientY:S}=(v=(g=u.changedTouches)==null?void 0:g[0])!=null?v:{clientX:0,clientY:0};return st(vn.elementFromPoint(m,S))};e.$el.svg.on("touchstart touchmove",function(u){if(a.transiting)return;a.event=u;const v=c(u).datum(),m=v!=null&&v.data&&v.data.id?e.updateAngle(v):null,S=m?e.convertToArcData(m):null,I=(S==null?void 0:S.id)||void 0;e.callOverOutForTouch(S),on(I)?l():o(this,S,I)})}},redrawArcText(t){const e=this,{config:n,state:a,$el:{main:i,arcs:s}}=e,o=e.hasType("gauge"),l=e.hasMultiArcGauge();let c;if(o&&e.data.targets.length===1&&n.gauge_title||(c=i.selectAll(`.${Ue.chartArc}`).select("text").style("opacity","0").attr("class",u=>e.isGaugeType(u.data)?Un.gaugeValue:null).call(e.textForArcLabel.bind(e)).attr("transform",u=>e.transformForArcLabel.bind(e)(u)).style("font-size",u=>e.isGaugeType(u.data)&&e.data.targets.length===1&&!l?`${Math.round(a.radius/5)}px`:null).transition().duration(t).style("opacity",u=>e.isTargetToShow(u.data.id)&&e.isArcType(u.data)?null:"0"),l&&c.attr("dy","-.1em")),i.select(`.${Ue.chartArcsTitle}`).style("opacity",e.hasType("donut")||o?null:"0"),o){const u=n.gauge_fullCircle;u&&(c==null||c.attr("dy",`${l?0:Math.round(a.radius/14)}`)),n.gauge_label_show&&(s.select(`.${Un.chartArcsGaugeUnit}`).attr("dy",`${u?1.5:.75}em`).text(n.gauge_units),s.select(`.${Un.chartArcsGaugeMin}`).attr("dx",`${-1*(a.innerRadius+(a.radius-a.innerRadius)/(u?1:2))}px`).attr("dy","1.2em").text(e.textForGaugeMinMax(n.gauge_min,!1)),!u&&s.select(`.${Un.chartArcsGaugeMax}`).attr("dx",`${a.innerRadius+(a.radius-a.innerRadius)/2}px`).attr("dy","1.2em").text(e.textForGaugeMinMax(n.gauge_max,!0)))}},getArcElementByIdOrIndex(t){const e=this,{$el:{arcs:n}}=e,a=he(t)?i=>i.index===t:i=>i.data.id===t;return n==null?void 0:n.selectAll(`.${Se.target} path`).filter(a)}};function Uu(t){return t[0]}function zu(t){return t[1]}function ju(t,e){var n=Me(!0),a=null,i=fo,s=null,o=So(l);t=typeof t=="function"?t:t===void 0?Uu:Me(t),e=typeof e=="function"?e:e===void 0?zu:Me(e);function l(c){var u,g=(c=xo(c)).length,v,m=!1,S;for(a==null&&(s=i(S=o())),u=0;u<=g;++u)!(u<g&&n(v=c[u],u,c))===m&&((m=!m)?s.lineStart():s.lineEnd()),m&&s.point(+t(v,u,c),+e(v,u,c));if(S)return s=null,S+""||null}return l.x=function(c){return arguments.length?(t=typeof c=="function"?c:Me(+c),l):t},l.y=function(c){return arguments.length?(e=typeof c=="function"?c:Me(+c),l):e},l.defined=function(c){return arguments.length?(n=typeof c=="function"?c:Me(!!c),l):n},l.curve=function(c){return arguments.length?(i=c,a!=null&&(s=i(a)),l):i},l.context=function(c){return arguments.length?(c==null?a=s=null:s=i(a=c),l):a},l}function gx(t,e,n){var a=null,i=Me(!0),s=null,o=fo,l=null,c=So(u);t=typeof t=="function"?t:t===void 0?Uu:Me(+t),e=typeof e=="function"?e:Me(e===void 0?0:+e),n=typeof n=="function"?n:n===void 0?zu:Me(+n);function u(v){var m,S,I,N=(v=xo(v)).length,M,P=!1,X,H=new Array(N),Y=new Array(N);for(s==null&&(l=o(X=c())),m=0;m<=N;++m){if(!(m<N&&i(M=v[m],m,v))===P)if(P=!P)S=m,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),I=m-1;I>=S;--I)l.point(H[I],Y[I]);l.lineEnd(),l.areaEnd()}P&&(H[m]=+t(M,m,v),Y[m]=+e(M,m,v),l.point(a?+a(M,m,v):H[m],n?+n(M,m,v):Y[m]))}if(X)return l=null,X+""||null}function g(){return ju().defined(i).curve(o).context(s)}return u.x=function(v){return arguments.length?(t=typeof v=="function"?v:Me(+v),a=null,u):t},u.x0=function(v){return arguments.length?(t=typeof v=="function"?v:Me(+v),u):t},u.x1=function(v){return arguments.length?(a=v==null?null:typeof v=="function"?v:Me(+v),u):a},u.y=function(v){return arguments.length?(e=typeof v=="function"?v:Me(+v),n=null,u):e},u.y0=function(v){return arguments.length?(e=typeof v=="function"?v:Me(+v),u):e},u.y1=function(v){return arguments.length?(n=v==null?null:typeof v=="function"?v:Me(+v),u):n},u.lineX0=u.lineY0=function(){return g().x(t).y(e)},u.lineY1=function(){return g().x(t).y(n)},u.lineX1=function(){return g().x(a).y(e)},u.defined=function(v){return arguments.length?(i=typeof v=="function"?v:Me(!!v),u):i},u.curve=function(v){return arguments.length?(o=v,s!=null&&(l=o(s)),u):o},u.context=function(v){return arguments.length?(v==null?s=l=null:l=o(s=v),u):s},u}var oa={initArea(t){const e=this,{config:n}=e;t.insert("g",`.${n.area_front?$n.circles:ur.lines}`).attr("class",e.getClass("areas",!0))},updateAreaColor(t){const e=this;return e.config.area_linearGradient?e.getGradienColortUrl(t.id):e.color(t)},updateArea(t,e=!1){const n=this,{config:a,state:i,$el:s,$T:o}=n,l=e?s.subchart:s;a.area_linearGradient&&n.updateLinearGradient();const c=l.main.selectAll(`.${qa.areas}`).selectAll(`.${qa.area}`).data(n.lineData.bind(n));o(c.exit(),t).style("opacity","0").remove(),l.area=c.enter().append("path").attr("class",n.getClass("area",!0)).style("fill",n.updateAreaColor.bind(n)).style("opacity",function(){return i.orgAreaOpacity=st(this).style("opacity"),"0"}).merge(c),c.style("opacity",i.orgAreaOpacity),n.setRatioForGroupedData(l.area.data())},redrawArea(t,e,n=!1){const a=this,{area:i}=n?this.$el.subchart:this.$el,{orgAreaOpacity:s}=a.state;return[a.$T(i,e,gr()).attr("d",t).style("fill",a.updateAreaColor.bind(a)).style("opacity",o=>String(a.isAreaRangeType(o)?s/1.75:s))]},generateDrawArea(t,e){const n=this,{config:a}=n,i=a.line_connectNull,s=a.axis_rotated,o=n.generateGetAreaPoints(t,e),l=n.getYScaleById.bind(n),c=v=>(e?n.subxx:n.xx).call(n,v),u=(v,m)=>n.isGrouped(v.id)?o(v,m)[0][1]:l(v.id,e)(n.isAreaRangeType(v)?n.getRangedData(v,"high"):n.getShapeYMin(v.id)),g=(v,m)=>n.isGrouped(v.id)?o(v,m)[1][1]:l(v.id,e)(n.isAreaRangeType(v)?n.getRangedData(v,"low"):v.value);return v=>{let m=i?n.filterRemoveNull(v.values):v.values,S=0,I=0,N;if(n.isAreaType(v)){let M=gx();M=s?M.y(c).x0(u).x1(g):M.x(c).y0(a.area_above?0:a.area_below?n.state.height:u).y1(g),i||(M=M.defined(P=>n.getBaseValue(P)!==null)),n.isStepType(v)&&(m=n.convertValuesToStep(m)),N=M.curve(n.getCurve(v))(m)}else m[0]&&(S=n.scale.x(m[0].x),I=n.getYScaleById(v.id)(m[0].value)),N=s?`M ${I} ${S}`:`M ${S} ${I}`;return N||"M 0 0"}},generateGetAreaPoints(t,e){const n=this,{config:a}=n,i=n.getShapeX(0,t,e),s=n.getShapeY(!!e),o=n.getShapeOffset(n.isAreaType,t,e),l=n.getYScaleById.bind(n);return function(c,u){const g=l.call(n,c.id,e)(n.getShapeYMin(c.id)),v=o(c,u)||g,m=i(c),S=c.value;let I=s(c);return a.axis_rotated&&(S>0&&I<g||S<0&&g<I)&&(I=g),[[m,v],[m,I-(g-v)],[m,I-(g-v)],[m,v]]}}},vx={initBar(){const{$el:t,config:e,state:{clip:n}}=this;t.bar=t.main.select(`.${Se.chart}`),t.bar=e.bar_front?t.bar.append("g"):t.bar.insert("g",":first-child"),t.bar.attr("class",Kn.chartBars).call(this.setCssRule(!1,`.${Kn.chartBars}`,["pointer-events:none"])),e.clipPath===!1&&(e.bar_radius||e.bar_radius_ratio)&&t.bar.attr("clip-path",n.pathXAxis.replace(/#[^)]*/,`#${n.id}`))},updateTargetsForBar(t){const e=this,{config:n,$el:a}=e,i=e.getChartClass("Bar"),s=e.getClass("bars",!0),o=e.classFocus.bind(e),l=n.interaction_enabled&&n.data_selection_isselectable;a.bar||e.initBar(),a.main.select(`.${Kn.chartBars}`).selectAll(`.${Kn.chartBar}`).data(t.filter(g=>g.values.some(v=>he(v.value)||e.isBarRangeType(v)))).attr("class",g=>i(g)+o(g)).enter().append("g").attr("class",i).style("opacity","0").style("pointer-events",e.getStylePropValue("none")).append("g").attr("class",s).style("cursor",g=>{var v;return(v=l==null?void 0:l.bind)!=null&&v.call(l,e.api)(g)?"pointer":null}).call(e.setCssRule(!0,` .${Kn.bar}`,["fill"],e.color))},updateBar(t,e=!1){const n=this,{config:a,$el:i,$T:s}=n,o=e?i.subchart:i,l=n.getClass("bar",!0),c=n.initialOpacity.bind(n);a.bar_linearGradient&&n.updateLinearGradient();const u=o.main.selectAll(`.${Kn.bars}`).selectAll(`.${Kn.bar}`).data(n.labelishData.bind(n));s(u.exit(),t).style("opacity","0").remove(),o.bar=u.enter().append("path").attr("class",l).style("fill",n.updateBarColor.bind(n)).merge(u).style("opacity",c),n.setRatioForGroupedData(o.bar.data())},updateBarColor(t){const e=this,n=e.getStylePropValue(e.color);return e.config.bar_linearGradient?e.getGradienColortUrl(t.id):n?n(t):null},redrawBar(t,e,n=!1){const a=this,{bar:i}=n?a.$el.subchart:a.$el;return[a.$T(i,e,gr()).attr("d",s=>(he(s.value)||a.isBarRangeType(s))&&t(s)).style("fill",a.updateBarColor.bind(a)).style("opacity",null)]},generateDrawBar(t,e){const n=this,{config:a}=n,i=n.generateGetBarPoints(t,e),s=a.axis_rotated,o=a.bar_radius,l=a.bar_radius_ratio,c=he(o)&&o>0?()=>o:he(l)?u=>u*l:null;return(u,g)=>{const v=i(u,g),m=+s,S=+!m,I=u.value<0,N=a[`axis_${n.axis.getId(u.id)}_inverted`],M=!N&&I||N&&!I,P=["",""];let X=0;const H=n.isGrouped(u.id),Y=c&&H?n.isStackingRadiusData(u):!1;if(c){const K=s?S:m,at=v[2][K]-v[0][K];X=!H||Y?c(at):0;const yt=`a${X},${X} ${M?"1 0 0":"0 0 1"} `;P[+!s]=`${yt}${X},${X}`,P[+s]=`${yt}${[-X,X][s?"sort":"reverse"]()}`,M&&P.reverse()}const _=s?`H${v[1][m]+(M?X:-X)} ${P[0]}V${v[2][S]-X} ${P[1]}H${v[3][m]}`:`V${v[1][S]+(M?-X:X)} ${P[0]}H${v[2][m]-X} ${P[1]}V${v[3][S]}`;return`M${v[0][m]},${v[0][S]}${_}z`}},isStackingRadiusData(t){const e=this,{$el:n,config:a,data:i,state:s}=e,{id:o,index:l,value:c}=t;if(s.hiddenTargetIds.indexOf(o)>-1){const m=n.bar.filter(S=>S.id===o&&S.value===c);return!m.empty()&&/a\d+/i.test(m.attr("d"))}const u=a.data_groups.find(m=>m.indexOf(o)>-1),v=e.orderTargets(e.filterTargetsToShow(i.targets.filter(e.isBarType,e))).filter(m=>u.indexOf(m.id)>-1).map(m=>m.values.filter(S=>S.index===l&&(he(c)&&c>0?S.value>0:S.value<0))[0]).filter(Boolean).map(m=>m.id);return c!==0&&v.indexOf(o)===v.length-1},generateGetBarPoints(t,e){const n=this,{config:a}=n,i=e?n.axis.subX:n.axis.x,s=n.getIndicesMax(t)+1,o=n.getBarW("bar",i,s),l=n.getShapeX(o,t,!!e),c=n.getShapeY(!!e),u=n.getShapeOffset(n.isBarType,t,!!e),g=n.getYScaleById.bind(n);return(v,m)=>{const{id:S}=v,I=g.call(n,S,e)(n.getShapeYMin(S)),N=u(v,m)||I,M=he(o)?o:o[v.id]||o._$width,P=a[`axis_${n.axis.getId(S)}_inverted`],X=v.value,H=l(v);let Y=c(v);a.axis_rotated&&!P&&(X>0&&Y<I||X<0&&I<Y)&&(Y=I),n.isBarRangeType(v)||(Y-=I-N);const _=H+M;return[[H,N],[H,Y],[_,Y],[_,N]]}}},px={initBubble(){const t=this,{config:e}=t;t.hasType("bubble")&&(e.point_show=!0,e.point_type="circle")},getBaseLength(){const t=this,{width:e,height:n}=t.state,a=Dn.bubbleBaseLength;let i=t.cache.get(a);return i||t.cache.add(a,i=qn("min",[e,n])),i},getBubbleR(t){const e=this;let n=e.config.bubble_maxR;ve(n)?n=n.bind(e.api)(t):he(n)||(n=e.getBaseLength()/(e.getMaxDataCount()*2)+12);const a=qn("max",e.getMinMaxData().max.map(o=>e.isBubbleZType(o)?e.getBubbleZData(o.value,"y"):Ne(o.value)?o.value.mid:o.value)),i=n*n*Math.PI,s=(e.isBubbleZType(t)?e.getBubbleZData(t.value,"z"):t.value)*(i/a);return Math.sqrt(s/Math.PI)},getBubbleZData(t,e){return Ne(t)?t[e]:t[e==="y"?0:1]}},mx=Object.defineProperty,Gu=Object.getOwnPropertySymbols,yx=Object.prototype.hasOwnProperty,xx=Object.prototype.propertyIsEnumerable,Vu=(t,e,n)=>e in t?mx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Tx=(t,e)=>{for(var n in e||(e={}))yx.call(e,n)&&Vu(t,n,e[n]);if(Gu)for(var n of Gu(e))xx.call(e,n)&&Vu(t,n,e[n]);return t},$x={initCandlestick(){const{$el:t}=this;t.candlestick=t.main.select(`.${Se.chart}`).append("g").attr("class",cr.chartCandlesticks)},updateTargetsForCandlestick(t){const e=this,{$el:n}=e,a=e.getChartClass("Candlestick");n.candlestick||e.initCandlestick(),e.$el.main.select(`.${cr.chartCandlesticks}`).selectAll(`.${cr.chartCandlestick}`).data(t).enter().append("g").attr("class",a).style("pointer-events","none")},updateCandlestick(t,e=!1){const n=this,{$el:a,$T:i}=n,s=e?a.subchart:a,o=n.getClass("candlestick",!0),l=n.initialOpacity.bind(n),c=s.main.selectAll(`.${cr.chartCandlestick}`).selectAll(`.${cr.candlestick}`).data(n.labelishData.bind(n));i(c.exit(),t).style("opacity","0").remove();const u=c.enter().filter(g=>g.value).append("g").attr("class",o);u.append("line"),u.append("path"),s.candlestick=c.merge(u).style("opacity",l)},generateDrawCandlestick(t,e){const n=this,{config:a}=n,i=n.generateGetCandlestickPoints(t,e),s=a.axis_rotated,o=a.candlestick_color_down;return(l,c,u)=>{const g=i(l,c),v=n.getCandlestickData(l),m=v==null?void 0:v._isUp,S=+s,I=+!S;u.classed&&u.classed(cr[m?"valueUp":"valueDown"],!0);const N=s?`H${g[1][1]} V${g[1][0]} H${g[0][1]}`:`V${g[1][1]} H${g[1][0]} V${g[0][1]}`;u.select("path").attr("d",`M${g[0][S]},${g[0][I]}${N}z`).style("fill",X=>(m?n.color(X):Ne(o)?o[X.id]:o)||n.color(X));const M=u.select("line"),P=s?{x1:g[2][1],x2:g[2][2],y1:g[2][0],y2:g[2][0]}:{x1:g[2][0],x2:g[2][0],y1:g[2][1],y2:g[2][2]};for(const X in P)M.attr(X,P[X])}},generateGetCandlestickPoints(t,e=!1){const n=this,a=e?n.axis.subX:n.axis.x,i=n.getIndicesMax(t)+1,s=n.getBarW("candlestick",a,i),o=n.getShapeX(s,t,!!e),l=n.getShapeY(!!e),c=n.getShapeOffset(n.isBarType,t,!!e),u=n.getYScaleById.bind(n);return(g,v)=>{const m=u.call(n,g.id,e)(n.getShapeYMin(g.id)),S=c(g,v)||m,I=he(s)?s:s[g.id]||s._$width,N=n.getCandlestickData(g);let M;if(N&&he(N.open)&&he(N.close)){const P={start:o(g),end:0};P.end=P.start+I;const X={start:l(N.open),end:l(N.close)},H={x:P.start+I/2,high:l(N.high),low:l(N.low)};X.start-=m-S,M=[[P.start,X.start],[P.end,X.end],[H.x,H.low,H.high]]}else M=[[0,0],[0,0],[0,0,0]];return M}},redrawCandlestick(t,e,n=!1){const a=this,{$el:i,$T:s}=a,{candlestick:o}=n?i.subchart:i,l=gr(!0);return[o.each(function(c,u){const g=s(st(this),e,l);t(c,u,g)}).style("opacity",null)]},getCandlestickData({value:t}){let e;if(Be(t)){const[n,a,i,s,o=!1]=t;e={open:n,high:a,low:i,close:s},o!==!1&&(e.volume=o)}else Ne(t)&&(e=Tx({},t));return e&&(e._isUp=e.close>=e.open),e||null}},Sx=Object.defineProperty,Xu=Object.getOwnPropertySymbols,Ax=Object.prototype.hasOwnProperty,bx=Object.prototype.propertyIsEnumerable,Yu=(t,e,n)=>e in t?Sx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ex=(t,e)=>{for(var n in e||(e={}))Ax.call(e,n)&&Yu(t,n,e[n]);if(Xu)for(var n of Xu(e))bx.call(e,n)&&Yu(t,n,e[n]);return t};function Ki(t=!1){const e=this,{config:n,state:{current:{width:a,height:i}}}=e,s=e.getCurrentPadding(),o=Ex({width:a-(s.left+s.right),height:i-(n.legend_show?e.getLegendHeight()+10:0)-(s.top+s.bottom)},s);if(t){const{width:l,height:c}=Hu.call(e,{width:o.width,height:o.height});o.width<l&&(o.width=l),o.height<c&&(o.height=c)}return o}function Hu(t){const e=this,{config:n}=e;let a=n.funnel_neck_width,i=n.funnel_neck_height;return[a,i]=[a,i].map((s,o)=>{let l=s;return Ne(s)&&(l=t[o?"height":"width"]*s.ratio),l}),{width:a,height:i}}function Rx(t){const e=this,{top:n,left:a,width:i}=Ki.call(e,!0),s=[];return t.forEach((o,l)=>{const{ratio:c}=o,u=l>0?s[l-1][2][1]:n;s.push(o.coords=[[a,u],[a+i,u],[a+i,l>0?c+u:c+n],[a,l>0?c+u:c+n],[a,u]])}),s}function Wu(t=!1){const e=this,{width:n,height:a,top:i,left:s}=Ki.call(e,!0),o=Hu.call(e,{width:n,height:a}),l=(n-o.width)/2,c=(n+o.width)/2,u=a-o.height,g=[[0,0],[n,0],[c,u],[c,a],[l,a],[l,u],[0,0]];return t&&g.forEach(v=>{v[0]+=s,v[1]+=i}),`M${g.join("L")}z`}function Ox(t){const e=this,{config:n}=e,a=t.map(i=>({id:i.id,value:i.values.reduce((s,o)=>s+o.value,0)}));return n.data_order&&a.sort(e.getSortCompareFn.bind(e)(!0)),Ku.call(e,a)}function Ku(t){const e=this,{height:n}=Ki.call(e),a=e.getTotalDataSum(!0);return t.forEach(i=>{i.ratio=i.value/a*n}),t}var Ix={initFunnel(){const t=this,{$el:e}=t;e.funnel=e.main.select(`.${Se.chart}`).append("g").classed(Ta.chartFunnels,!0),e.funnel.background=e.funnel.append("path").classed(Ta.funnelBackground,!0),t.bindFunnelEvent()},bindFunnelEvent(){const t=this,{$el:{funnel:e},config:n,state:a}=t,i=s=>{var o;const l=s.isTrusted?s.target:(o=a.eventReceiver.rect)==null?void 0:o.node();let c;return/^path$/i.test(l.tagName)&&(a.event=s,c=st(l).datum()),c};if(n.interaction_enabled){const s=a.inputType==="touch";e.on(s?"touchstart":"mouseover mousemove",o=>{const l=i(o);l&&(t.showTooltip([l],o.target),/^(touchstart|mouseover)$/.test(o.type)&&t.setOverOut(!0,l))}).on(s?"touchend":"mouseout",o=>{const l=i(o);t.hideTooltip(),t.setOverOut(!1,l)})}},updateTargetsForFunnel(t){const e=this,{$el:{funnel:n}}=e,a=e.getChartClass("Funnel"),i=e.getClass("funnel",!0);n||e.initFunnel();const s=Ox.call(e,t.filter(e.isFunnelType.bind(e))),o=n.selectAll(`.${Ta.chartFunnel}`).data(s);o.exit().remove();const l=o.enter().insert("g",`.${Ta.funnelBackground}`);l.append("path"),n.path=l.merge(o).attr("class",c=>a(c)).select("path").attr("class",i).style("opacity","0").style("fill",e.color)},updateFunnel(t){const e=this,{$el:{funnel:n}}=e,a=t.map(({id:i})=>i);n.path=n.path.filter(i=>a.indexOf(i.id)>=0)},generateGetFunnelPoints(){const t=this,{$el:{funnel:e}}=t,n=t.filterTargetsToShow(e.path),{top:a,left:i,right:s}=Ki.call(t),o=(i-s)/2,l={};let c=a!=null?a:0;return n.each((u,g)=>{var v;l[u.id]=[[o,c],[o,c+=((v=n==null?void 0:n[g])!=null?v:u).ratio]]}),u=>l[u.id]},redrawFunnel(){const t=this,{$T:e,$el:{funnel:n}}=t,a=t.filterTargetsToShow(n.path),i=Rx.call(t,Ku.call(t,a.data()));n.attr("clip-path",`path('${Wu.bind(t)()}')`),n.background.attr("d",Wu.call(t,!0)),e(a).attr("d",(s,o)=>`M${i[o].join("L")}z`).style("opacity","1"),n.selectAll("g").style("opacity",null)}},Cx={initGauge(){const t=this,{config:e,$el:{arcs:n}}=t,a=(i=null,s="")=>{n.append("text").attr("class",i).style("text-anchor","middle").style("pointer-events","none").text(s)};if(t.hasType("gauge")){const i=t.hasMultiArcGauge();n.append(i?"g":"path").attr("class",Ue.chartArcsBackground).style("fill",!i&&e.gauge_background||null),e.gauge_units&&a(Un.chartArcsGaugeUnit),e.gauge_label_show&&(a(Un.chartArcsGaugeMin),!e.gauge_fullCircle&&a(Un.chartArcsGaugeMax))}},updateGaugeMax(){const t=this,{config:e,state:n}=t,i=t.hasMultiArcGauge()?t.getMinMaxData().max[0].value:t.getTotalDataSum(n.rendered);!e.gauge_enforceMinMax&&i+e.gauge_min*(e.gauge_min>0?-1:1)>e.gauge_max&&(e.gauge_max=i-e.gauge_min)},redrawArcGaugeLine(){const t=this,{config:e,state:n,$el:a}=t,{hiddenTargetIds:i}=t.state,s=a.main.selectAll(`.${Ue.arcs}`).selectAll(`.${Ue.arcLabelLine}`).data(t.arcData.bind(t));s.enter().append("rect").attr("class",l=>`${Ue.arcLabelLine} ${Se.target} ${Se.target}-${l.data.id}`).merge(s).style("fill",l=>t.levelColor?t.levelColor(l.data.values[0].value):t.color(l.data)).style("display",e.gauge_label_show?null:"none").each(function(l){let c=0;const u=2;let g=0,v=0,m="";if(i.indexOf(l.data.id)<0){const S=t.updateAngle(l),I=n.gaugeArcWidth/t.filterTargetsToShow(t.data.targets).length*(S.index+1),N=S.endAngle-Math.PI/2,M=n.radius-I,P=N-(M===0?0:1/M);c=n.radiusExpanded-n.radius+I,g=Math.cos(P)*M,v=Math.sin(P)*M,m=`rotate(${N*180/Math.PI}, ${g}, ${v})`}st(this).attr("x",g).attr("y",v).attr("width",c).attr("height",u).attr("transform",m).style("stroke-dasharray",`0, ${c+u}, 0`)})},textForGaugeMinMax(t,e){const n=this,{config:a}=n,i=a.gauge_label_extents;return ve(i)?i.bind(n.api)(t,e):t},getGaugeLabelHeight(){const{config:t}=this;return this.config.gauge_label_show&&!t.gauge_fullCircle?20:0},getPaddingBottomForGauge(){const t=this;return t.getGaugeLabelHeight()*(t.config.gauge_label_show?2:2.5)}};function Px(t,e,n,a=!1){const i=t?[t,0]:n;for(let s=t||n.reduce((o,l)=>o+l);s<=e;)n.forEach(o=>{s+o<=e&&i.push(o),s+=o});return i.length%2!==0&&i.push(a?n[1]:0),{dash:i.join(" "),length:i.reduce((s,o)=>s+o,0)}}function wx(t,e,n){const a=this,i=[],s="2 2";if(ke(e)){const o=(l,c)=>on(l)?c:n?zn.call(a,l):l;for(let l=0,c;c=e[l];l++){const u=o(c.start,t[0].x),g=o(c.end,t[t.length-1].x),v=c.style||{dasharray:s};i[l]={start:u,end:g,style:v}}}return i}var Mx={initLine(){const{$el:t}=this;t.line=t.main.select(`.${Se.chart}`).append("g").attr("class",ur.chartLines).call(this.setCssRule(!1,`.${ur.chartLines}`,["pointer-events:none"]))},updateTargetsForLine(t){const e=this,{$el:{area:n,line:a,main:i}}=e,s=e.getChartClass("Line"),o=e.getClass("lines",!0),l=e.classFocus.bind(e);a||e.initLine();const c=t.filter(v=>!(e.isScatterType(v)||e.isBubbleType(v))),u=i.select(`.${ur.chartLines}`).selectAll(`.${ur.chartLine}`).data(c).attr("class",v=>s(v)+l(v)),g=u.enter().append("g").attr("class",s).style("opacity","0").style("pointer-events",e.getStylePropValue("none"));if(g.append("g").attr("class",o),e.hasTypeOf("Area")){const v=(!n&&g.empty()?u:g).filter(e.isAreaType.bind(e));e.initArea(v)}e.updateTargetForCircle(c,g)},updateLine(t,e=!1){const n=this,{format:{extraLineClasses:a},$el:i,$T:s}=n,o=e?i.subchart:i,l=o.main.selectAll(`.${ur.lines}`).selectAll(`.${ur.line}`).data(n.lineData.bind(n));s(l.exit(),t).style("opacity","0").remove(),o.line=l.enter().append("path").attr("class",c=>`${n.getClass("line",!0)(c)} ${a(c)||""}`).style("stroke",n.color).merge(l).style("opacity",n.initialOpacity.bind(n)).attr("transform",null)},redrawLine(t,e,n=!1){const a=this,{$el:i,$T:s}=a,{line:o}=n?i.subchart:i;return[s(o,e,gr()).attr("d",t).style("stroke",this.color).style("opacity",null)]},getCurve(t){const e=this;return e.config.axis_rotated&&e.isStepType(t)?a=>{const i=e.getInterpolate(t)(a);return i.orgPoint=i.point,i.pointRotated=function(s,o){this._point===1&&(this._point=2);const l=this._y*(1-this._t)+o*this._t;this._context.lineTo(this._x,l),this._context.lineTo(s,l),this._x=s,this._y=o},i.point=function(s,o){this._point===0?this.orgPoint(s,o):this.pointRotated(s,o)},i}:e.getInterpolate(t)},generateDrawLine(t,e){const n=this,{config:a,scale:i}=n,s=a.line_connectNull,o=a.axis_rotated,l=n.generateGetLinePoints(t,e),c=n.getYScaleById.bind(n),u=S=>(e?n.subxx:n.xx).call(n,S),g=(S,I)=>n.isGrouped(S.id)?l(S,I)[0][1]:c(S.id,e)(n.getBaseValue(S));let v=ju();v=o?v.x(g).y(u):v.x(u).y(g),s||(v=v.defined(S=>n.getBaseValue(S)!==null));const m=e?i.subX:i.x;return S=>{const I=c(S.id,e);let N=s?n.filterRemoveNull(S.values):S.values,M=0,P=0,X;if(n.isLineType(S)){const H=a.data_regions[S.id];H?X=n.lineWithRegions(N,i.zoom||m,I,H):(n.isStepType(S)&&(N=n.convertValuesToStep(N)),X=v.curve(n.getCurve(S))(N))}else N[0]&&(M=m(N[0].x),P=I(N[0].value)),X=o?`M ${P} ${M}`:`M ${M} ${P}`;return X||"M 0 0"}},lineWithRegions(t,e,n,a){const i=this,{config:s}=i,o=s.axis_rotated,l=i.axis.isTimeSeries(),c="2 2",u=wx.bind(i)(t,a,l),g=i.hasNullDataValue(t);let v,m,S,I;const N=o?dt=>n(dt.value):dt=>e(dt.x),M=o?dt=>e(dt.x):dt=>n(dt.value),P=dt=>`M${dt[0][0]},${dt[0][1]}L${dt[1][0]},${dt[1][1]}`,X=l?(dt,ft,Ft,ht)=>{const Z=dt.x.getTime(),St=ft.x-dt.x,lt=new Date(Z+St*Ft),At=new Date(Z+St*(Ft+ht)),jt=o?[[n(m(Ft)),e(lt)],[n(m(Ft+S)),e(At)]]:[[e(lt),n(m(Ft))],[e(At),n(m(Ft+S))]];return P(jt)}:(dt,ft,Ft,ht)=>{const Z=e(ft.x,!o),St=n(ft.value,o),lt=Ft+ht,At=e(v(Ft),!o),jt=n(m(Ft),o);let Ut=e(v(lt),!o),kt=n(m(lt),o);Ut>Z&&(Ut=Z),dt.value>ft.value&&(o?kt<St:kt>St)&&(kt=St);const Kt=[[At,jt],[Ut,kt]];return o&&Kt.forEach(ae=>ae.reverse()),P(Kt)},H={x:i.axis.getAxisType("x"),y:i.axis.getAxisType("y")};let Y="";const _=i.$el.line.filter(({id:dt})=>dt===t[0].id),K=_.clone().style("display","none"),at=(dt,ft)=>dt.attr("d",ft).node().getTotalLength(),yt={dash:[],lastLength:0};let $t=!1;for(let dt=0,ft;ft=t[dt];dt++){const Ft=t[dt-1],ht=Ft&&we(Ft.value);let Z=i.isWithinRegions(ft.x,u);if(we(ft.value)){if(on(u)||!Z||!ht)Y+=`${dt&&ht?"L":"M"}${N(ft)},${M(ft)}`;else if(ht)if(Z=((Z==null?void 0:Z.dasharray)||c).split(" ").map(Number),v=zr(H.x,Ft.x,ft.x),m=zr(H.y,Ft.value,ft.value),g){const St=e(ft.x)-e(Ft.x),lt=n(ft.value)-n(Ft.value),At=Math.sqrt(Math.pow(St,2)+Math.pow(lt,2));S=Z[0]/At,I=S*Z[1];for(let jt=S;jt<=1;jt+=I)Y+=X(Ft,ft,jt,S),jt+I>=1&&(Y+=X(Ft,ft,1,0))}else{let St=[];if($t=ft.x===t[t.length-1].x,l){const Ut=+Ft.x,kt=new Date(Ut),Kt=new Date(Ut+(+ft.x-Ut));St=[[e(kt),n(m(0))],[e(Kt),n(m(1))]]}else St=[[e(v(0)),n(m(0))],[e(v(1)),n(m(1))]];o&&St.forEach(Ut=>Ut.reverse());const lt=at(K,Y),At=at(K,Y+=`L${St[1].join(",")}`),jt=Px(lt-yt.lastLength,At-yt.lastLength,Z,$t);yt.lastLength+=jt.length,yt.dash.push(jt.dash)}}}return yt.dash.length&&(!$t&&yt.dash.push(at(K,Y)),K.remove(),_.attr("stroke-dasharray",yt.dash.join(" "))),Y},isWithinRegions(t,e){for(let n=0,a;a=e[n];n++)if(a.start<t&&t<=a.end)return a.style;return!1},isWithinStep(t,e){return Math.abs(e-Hn(this.state.event,t)[1])<30},shouldDrawPointsForLine(t){const e=this.config.line_point;return e===!0||Be(e)&&e.indexOf(t.id)!==-1}};const la=()=>gr();var Zi={initialOpacityForCircle(t){const{config:e,state:{withoutFadeIn:n}}=this;let a=e.point_opacity;return on(a)&&(a=this.getBaseValue(t)!==null&&n[t.id]?this.opacityForCircle(t):"0"),a},opacityForCircle(t){var e;const{config:n}=this;let a=n.point_opacity;return on(a)&&(a=n.point_show&&!((e=this.isPointFocusOnly)!=null&&e.call(this))?null:"0",a=we(this.getBaseValue(t))?this.isBubbleType(t)||this.isScatterType(t)?"0.5":a:"0"),a},initCircle(){const t=this,{$el:{main:e}}=t;!t.point&&(t.point=t.generatePoint()),(t.hasType("bubble")||t.hasType("scatter"))&&e.select(`.${Se.chart} > .${$n.chartCircles}`).empty()&&e.select(`.${Se.chart}`).append("g").attr("class",$n.chartCircles)},updateTargetForCircle(t,e){const n=this,{config:a,data:i,$el:s}=n,o=a.interaction_enabled&&a.data_selection_enabled,l=o&&a.data_selection_isselectable,c=n.getClass("circles",!0);if(!a.point_show)return;n.initCircle();let u=t,g=e;if(!u){u=i.targets.filter(m=>this.isScatterType(m)||this.isBubbleType(m));const v=s.main.select(`.${$n.chartCircles}`).style("pointer-events","none").selectAll(`.${$n.circles}`).data(u);v.exit().remove(),g=v.enter()}o&&g.append("g").attr("class",v=>n.generateClass(qe.selectedCircles,v.id)),g.append("g").attr("class",c).call(v=>{n.setCssRule(!0,`.${$n.circles}`,["cursor:pointer"],l)(v),n.setCssRule(!0,` .${$n.circle}`,["fill","stroke"],n.color)(v)}).style("opacity",function(){return st(this.parentNode).attr("class").indexOf($n.chartCircles)>-1?"0":null}),o&&u.forEach(v=>{s.main.selectAll(`.${qe.selectedCircles}${n.getTargetSelectorSuffix(v.id)}`).selectAll(`${qe.selectedCircle}`).each(m=>{m.value=v.values[m.index].value})})},updateCircle(t=!1){const e=this,{config:n,state:a,$el:i}=e,s=e.isPointFocusOnly(),o=t?i.subchart:i;if(n.point_show&&!a.toggling){n.point_radialGradient&&e.updateLinearGradient();const l=o.main.selectAll(`.${$n.circles}`).selectAll(`.${$n.circle}`).data(c=>e.isLineType(c)&&e.shouldDrawPointsForLine(c)||e.isBubbleType(c)||e.isRadarType(c)||e.isScatterType(c)?s?[c.values[0]]:c.values:[]);l.exit().remove(),l.enter().filter(Boolean).append(e.point("create",this,e.pointR.bind(e),e.updateCircleColor.bind(e))),o.circle=o.main.selectAll(`.${$n.circles} .${$n.circle}`).style("stroke",e.getStylePropValue(e.color)).style("opacity",e.initialOpacityForCircle.bind(e))}},updateCircleColor(t){const e=this,n=e.getStylePropValue(e.color);return e.config.point_radialGradient?e.getGradienColortUrl(t.id):n?n(t):null},redrawCircle(t,e,n,a,i=!1){const s=this,{state:{rendered:o},$el:l,$T:c}=s,u=i?l.subchart:l,g=u.main.selectAll(`.${qe.selectedCircle}`);if(!s.config.point_show)return[];const v=s.point("update",s,t,e,s.updateCircleColor.bind(s),n,a,g),m=s.isCirclePoint()?"c":"",S=gr(),I=s.opacityForCircle.bind(s),N=[];return u.circle.each(function(M){let P=v.bind(this)(M);P=c(P,n||!o,S).style("opacity",I),N.push(P)}),[N,c(g,n).attr(`${m}x`,t).attr(`${m}y`,e)]},showCircleFocus(t){const e=this,{state:{hasRadar:n,resizing:a,toggling:i,transiting:s},$el:o}=e;let{circle:l}=o;if(s===!1&&l&&e.isPointFocusOnly()){const c=(n?e.radarCircleX:e.circleX).bind(e),u=(n?e.radarCircleY:e.circleY).bind(e),g=i||on(t),v=e.point("update",e,c,u,e.getStylePropValue(e.color),a?!1:g);t&&(l=l.filter(function(m){var S;const I=(S=t.filter)==null?void 0:S.call(t,N=>N.id===m.id);return I.length?st(this).datum(I[0]):!1})),l.attr("class",this.updatePointClass.bind(this)).style("opacity",null).each(function(m){const{id:S,index:I,value:N}=m;let M="hidden";we(N)&&(v.bind(this)(m),e.expandCircles(I,S),M=""),this.style.visibility=M})}},hideCircleFocus(){const t=this,{$el:{circle:e}}=t;t.isPointFocusOnly()&&e&&(t.unexpandCircles(),e.style("visibility","hidden"))},circleX(t){return this.xx(t)},updateCircleY(t=!1){const e=this,n=e.generateGetLinePoints(e.getShapeIndices(e.isLineType),t);return(a,i)=>{const s=a.id;return e.isGrouped(s)?n(a,i)[0][1]:e.getYScaleById(s,t)(e.getBaseValue(a))}},expandCircles(t,e,n){const a=this,i=a.pointExpandedR.bind(a);n&&a.unexpandCircles();const s=a.getShapeByIndex("circle",t,e).classed(Se.EXPANDED,!0),o=i(s)/a.config.point_r,l=1-o;a.isCirclePoint()?s.attr("r",i):s.each(function(){const c=st(this);if(this.tagName==="circle")c.attr("r",i);else{const{width:u,height:g}=this.getBBox(),v=l*(+c.attr("x")+u/2),m=l*(+c.attr("y")+g/2);c.attr("transform",`translate(${v} ${m}) scale(${o})`)}})},unexpandCircles(t){const e=this,n=e.pointR.bind(e),a=e.getShapeByIndex("circle",t).filter(function(){return st(this).classed(Se.EXPANDED)}).classed(Se.EXPANDED,!1);if(a.attr("r",n),!e.isCirclePoint()){const i=n(a)/e.config.point_r;a.attr("transform",i!==1?`scale(${i})`:null)}},pointR(t){const e=this,{config:n}=e,a=n.point_r;let i=a;return e.isBubbleType(t)?i=e.getBubbleR(t):ve(a)&&(i=a.bind(e.api)(t)),t.r=i,i},pointExpandedR(t){const e=this,{config:n}=e,a=e.isBubbleType(t)?1.15:1.75;return n.point_focus_expand_enabled?n.point_focus_expand_r||e.pointR(t)*a:e.pointR(t)},pointSelectR(t){const e=this,n=e.config.point_select_r;return ve(n)?n(t):n||e.pointR(t)*4},isPointFocusOnly(){const t=this;return t.config.point_focus_only&&!t.hasType("bubble")&&!t.hasType("scatter")&&!t.hasArcType(null,["radar"])},isWithinCircle(t,e){const{config:n,state:a}=this,i=Hn(a.event,t),s=st(t),o=this.isCirclePoint(t)?"c":"",l=n.point_sensitivity==="radius"?t.getAttribute("r"):n.point_sensitivity;let c=+s.attr(`${o}x`),u=+s.attr(`${o}y`);if(!(c||u)&&t.nodeType===1){const{x:g,y:v}=Si(t);c=g,u=v}return Math.sqrt(Math.pow(c-i[0],2)+Math.pow(u-i[1],2))<(e||l)},getPointSensitivity(t){const e=this;let n=e.config.point_sensitivity;return ve(n)?n=n.call(e.api,t):n==="radius"&&(n=t.r),n},updatePointClass(t){const e=this,{circle:n}=e.$el;let a=!1;return(Ne(t)||n)&&(a=t===!0?n.each(function(i){let s=e.getClass("circle",!0)(i);this.getAttribute("class").indexOf(Se.EXPANDED)>-1&&(s+=` ${Se.EXPANDED}`),this.setAttribute("class",s)}):e.getClass("circle",!0)(t)),a},generateGetLinePoints(t,e){const n=this,{config:a}=n,i=n.getShapeX(0,t,e),s=n.getShapeY(e),o=n.getShapeOffset(n.isLineType,t,e),l=n.getYScaleById.bind(n);return(c,u)=>{const g=l.call(n,c.id,e)(n.getShapeYMin(c.id)),v=o(c,u)||g,m=i(c);let S=s(c);a.axis_rotated&&(c.value>0&&S<g||c.value<0&&g<S)&&(S=g);const I=[m,S-(g-v)];return[I,I,I,I]}},custom:{create(t,e,n){return t.append("use").attr("xlink:href",`#${e}`).attr("class",this.updatePointClass.bind(this)).style("fill",n).node()},update(t,e,n,a,i,s,o){const l=this,{width:c,height:u}=t.node().getBBox(),g=S=>we(S.value)?e(S)-c/2:0,v=S=>we(S.value)?n(S)-u/2:0;let m=t;return i&&(s&&m.attr("x",g),m=l.$T(m,i,la()),o&&l.$T(o,i,la())),m.attr("x",g).attr("y",v).style("fill",a)}},circle:{create(t,e,n){return t.append("circle").attr("class",this.updatePointClass.bind(this)).attr("r",e).style("fill",n).node()},update(t,e,n,a,i,s,o){const l=this;let c=t;return l.hasType("bubble")&&c.attr("r",l.pointR.bind(l)),i&&(s&&c.attr("cx",e),c.attr("cx")&&(c=l.$T(c,i,la())),o&&l.$T(c,i,la())),c.attr("cx",e).attr("cy",n).style("fill",a)}},rectangle:{create(t,e,n){const a=i=>e(i)*2;return t.append("rect").attr("class",this.updatePointClass.bind(this)).attr("width",a).attr("height",a).style("fill",n).node()},update(t,e,n,a,i,s,o){const l=this,c=l.config.point_r,u=m=>e(m)-c,g=m=>n(m)-c;let v=t;return i&&(s&&v.attr("x",u),v=l.$T(v,i,la()),o&&l.$T(o,i,la())),v.attr("x",u).attr("y",g).style("fill",a)}}};function Lx(t){return nr(t)&&ve(t.create)&&ve(t.update)}function Dx(t,e){var n;const a=this,i=(c,u)=>{const g=c.attributes;for(let v=0,m;m=g[v];v++)m=m.name,u.setAttribute(m,c.getAttribute(m))},o=new DOMParser().parseFromString(t,"image/svg+xml").documentElement,l=vn.createElementNS(ie.svg,o.nodeName.toLowerCase());if(l.id=e,l.style.fill="inherit",l.style.stroke="inherit",i(o,l),(n=o.childNodes)!=null&&n.length){const c=st(l);"innerHTML"in l?c.html(o.innerHTML):Dr(o.childNodes).forEach(u=>{i(u,c.append(u.tagName).node())})}a.$el.defs.node().appendChild(l)}var ca={hasValidPointType(t){return/^(circle|rect(angle)?|polygon|ellipse|use)$/i.test(t||this.config.point_type)},hasLegendDefsPoint(){var t;const{config:e}=this;return e.legend_show&&((t=e.point_pattern)==null?void 0:t.length)&&e.legend_usePoint},getDefsPointId(t){const{state:{datetimeId:e}}=this;return`${e}-point${t}`},generatePoint(){const t=this,{$el:e,config:n}=t,a=[],i=ln(n.point_pattern)?n.point_pattern:[n.point_type];return function(s,o,...l){return function(c){var u,g,v,m;const S=t.getTargetSelectorSuffix(c.id||((u=c.data)==null?void 0:u.id)||c),I=st(this);a.indexOf(S)<0&&a.push(S);let N=i[a.indexOf(S)%i.length];if(t.hasValidPointType(N))N=t[N];else if(!Lx(N||n.point_type)){const M=t.getDefsPointId(S);if(e.defs.select(`#${M}`).size()<1&&Dx.bind(t)(N,M),s==="create")return(g=t.custom)==null?void 0:g.create.bind(o)(I,M,...l);if(s==="update")return(v=t.custom)==null?void 0:v.update.bind(o)(I,...l)}return(m=N[s])==null?void 0:m.bind(o)(I,...l)}}}};function Zu(t){const e=t.config.polar_level_max;let n=t.getMinMaxData().max[0].value;return e&&e>n&&(n=e),n}var Nx={initPolar(){const t=this,{$el:{arcs:e},config:n}=t,a=n.polar_level_text_show,i=n.polar_level_text_backgroundColor;e.levels=e.append("g").attr("class",Tr.levels),a&&i&&t.generateTextBGColorFilter(i)},getPolarOuterRadius(t,e){var n;const a=Zu(this);return((n=t==null?void 0:t.data.values[0].value)!=null?n:0)/a*e},updateTargetsForPolar(t){this.updateTargetsForArc(t)},redrawPolar(){const t=this,{config:e}=t;e.polar_level_show&&t.updatePolarLevel()},updatePolarLevel(){const t=this,{config:e,state:n,$el:{arcs:{levels:a}}}=t,i=e.polar_level_depth,s=Zu(t),o=Ai(0,i),l=n.radius,c=o.map(m=>l*((m+1)/i)),u=(e.polar_level_text_format||function(){}).bind(t.api),g=a.selectAll(`.${Tr.level}`).data(o);g.exit().remove();const v=g.enter().append("g").attr("class",(m,S)=>`${Tr.level} ${Tr.level}-${S}`);if(v.append("circle"),v.merge(g).selectAll("circle").style("visibility",e.polar_level_show?null:"hidden").attr("cx",0).attr("cy",0).attr("r",m=>c[m]),e.polar_level_text_show){const m=e.polar_level_text_backgroundColor,S=`#${n.datetimeId}-labels-bg${t.getTargetSelectorSuffix(m)}`;v.append("text").style("text-anchor","middle"),v.merge(g).selectAll("text").attr("dy",I=>-c[I]+5).attr("filter",m?`url(${S})`:null).text(I=>u(s/o.length*(I+1)))}}};function Fx(t,e,n,a,i,s){const o=t&&a>0?n-a:a,l=2*Math.PI;return i*(1-s*(e==="x"?Math.sin:Math.cos)(o*l/n))}const ua=Dn.radarPoints,ku=Dn.radarTextWidth;var Bx={initRadar(){const t=this,{config:e,state:{current:n},$el:a}=t;t.hasType("radar")&&(a.radar=a.main.select(`.${Se.chart}`).append("g").attr("class",Zo.chartRadars),a.radar.levels=a.radar.append("g").attr("class",Tr.levels),a.radar.axes=a.radar.append("g").attr("class",fn.axis),a.radar.shapes=a.radar.append("g").attr("class",sn.shapes),n.dataMax=e.radar_axis_max||t.getMinMaxData().max[0].value,e.radar_axis_text_show&&(e.interaction_enabled&&t.bindRadarEvent(),t.updateRadarLevel(),t.updateRadarAxes()))},getRadarSize(){const t=this,{config:e,state:{arcWidth:n,arcHeight:a}}=t,i=e.axis_x_categories.length<4?-20:10,s=(Math.min(n,a)-i)/2;return[s,s]},updateTargetsForRadar(t){const e=this,{config:n}=e;_n(n.axis_x_categories)&&(n.axis_x_categories=Ai(0,qn("max",t.map(a=>a.values.length)))),e.generateRadarPoints()},getRadarPosition(t,e,n,a){const i=this,{config:s}=i,[o,l]=i.getRadarSize(),c=s.axis_x_categories.length,u=s.radar_direction_clockwise,g=Dr(t).map(v=>Fx(u,v,c,e,ke(n)?n:t==="x"?o:l,he(a)?a:s.radar_size_ratio));return g.length===1?g[0]:g},generateRadarPoints(){const t=this,e=t.data.targets,[n,a]=t.getRadarSize(),i=t.cache.get(ua)||{},s=i._size;(!s||s.width!==n&&s.height!==a)&&(e.forEach(o=>{i[o.id]=o.values.map((l,c)=>t.getRadarPosition(["x","y"],c,void 0,t.getRatio("radar",l)))}),i._size={width:n,height:a},t.cache.add(ua,i))},redrawRadar(){const t=this,{radar:e,main:n}=t.$el,a=t.getTranslate("radar");a&&(e.attr("transform",a),n.select(`.${In.chartTexts}`).attr("transform",a),t.generateRadarPoints(),t.updateRadarLevel(),t.updateRadarAxes(),t.updateRadarShape())},generateGetRadarPoints(){const t=this.cache.get(ua);return(e,n)=>{const a=t[e.id][n];return[a,a,a,a]}},updateRadarLevel(){const t=this,{config:e,state:n,$el:{radar:a}}=t,[i,s]=t.getRadarSize(),o=e.radar_level_depth,l=e.axis_x_categories.length,c=e.radar_level_text_show,u=a.levels,g=Ai(0,o),v=e.radar_size_ratio*Math.min(i,s),m=g.map(P=>v*((P+1)/o)),S=(e.radar_level_text_format||function(){}).bind(t.api),I=g.map(P=>{const X=m[P];return Ai(0,l).map(Y=>t.getRadarPosition(["x","y"],Y,X,1).join(",")).join(" ")}),N=u.selectAll(`.${Tr.level}`).data(g);N.exit().remove();const M=N.enter().append("g").attr("class",(P,X)=>`${Tr.level} ${Tr.level}-${X}`);M.append("polygon").style("visibility",e.radar_level_show?null:"hidden"),c&&(u.select("text").empty()&&u.append("text").attr("dx","-.5em").attr("dy","-.7em").style("text-anchor","end").text(()=>S(0)),M.append("text").attr("dx","-.5em").style("text-anchor","end").text(P=>S(n.current.dataMax/g.length*(P+1)))),M.merge(N).attr("transform",P=>`translate(${i-m[P]}, ${s-m[P]})`).selectAll("polygon").attr("points",P=>I[P]),c&&u.selectAll("text").attr("x",P=>on(P)?i:I[P].split(",")[0]).attr("y",P=>on(P)?s:0)},updateRadarAxes(){const t=this,{config:e,$el:{radar:n}}=t,[a,i]=t.getRadarSize(),s=e.axis_x_categories;let o=n.axes.selectAll("g").data(s);o.exit().remove();const l=o.enter().append("g").attr("class",(c,u)=>`${fn.axis}-${u}`);if(e.radar_axis_line_show&&l.append("line"),e.radar_axis_text_show&&l.append("text"),o=l.merge(o),e.radar_axis_line_show&&o.select("line").attr("x1",a).attr("y1",i).attr("x2",(c,u)=>t.getRadarPosition("x",u)).attr("y2",(c,u)=>t.getRadarPosition("y",u)),e.radar_axis_text_show){const{x:c=0,y:u=0}=e.radar_axis_text_position,g=t.cache.get(ku)||0;if(o.select("text").style("text-anchor","middle").attr("dy",".5em").call(v=>{v.each(function(m){wa(st(this),String(m),[-.6,1.2])})}).datum((v,m)=>({index:m})).attr("transform",function(v){on(this.width)&&(this.width=this.getBoundingClientRect().width/2);let m=t.getRadarPosition("x",v.index,void 0,1),S=Math.round(t.getRadarPosition("y",v.index,void 0,1));return m>a?m+=this.width+c:Math.round(m)<a&&(m-=this.width+c),S>i?(S/2===i&&this.firstChild.tagName==="tspan"&&this.firstChild.setAttribute("dy","0em"),S+=u):S<i&&(S-=u),`translate(${m} ${S})`}),!g){const v=[n.axes,n.levels].map(m=>Xl(m.node()).width);v.every(m=>m>0)&&t.cache.add(ku,v[0]-v[1])}}},bindRadarEvent(){const t=this,{state:e,$el:{radar:n,svg:a}}=t,i=t.isPointFocusOnly(),{inputType:s,transiting:o}=e,l=s==="mouse",c=u=>{e.event=u;const g=t.getDataIndexFromEvent(u),v=on(g);(l||v)&&(t.hideTooltip(),i?t.hideCircleFocus():t.unexpandCircles(),l?t.setOverOut(!1,g):v&&t.callOverOutForTouch())};n.axes.on(l?"mouseover ":"touchstart",u=>{if(o)return;e.event=u;const g=t.getDataIndexFromEvent(u);t.selectRectForSingle(a.node(),g),l?t.setOverOut(!0,g):t.callOverOutForTouch(g)}).on("mouseout",l?c:null),l||a.on("touchstart",c)},updateRadarShape(){const t=this,e=t.data.targets.filter(s=>t.isRadarType(s)),n=t.cache.get(ua),a=t.$el.radar.shapes.selectAll("polygon").data(e),i=a.enter().append("g").attr("class",t.getChartClass("Radar"));t.$T(a.exit()).remove(),i.append("polygon").merge(a).style("fill",t.color).style("stroke",t.color).attr("points",s=>n[s.id].join(" ")),t.updateTargetForCircle(e,i)},radarCircleX(t){return this.cache.get(ua)[t.id][t.index][0]},radarCircleY(t){return this.cache.get(ua)[t.id][t.index][1]}};function Ux(t){var e=0,n=t.children,a=n&&n.length;if(!a)e=1;else for(;--a>=0;)e+=n[a].value;t.value=e}function zx(){return this.eachAfter(Ux)}function jx(t,e){let n=-1;for(const a of this)t.call(e,a,++n,this);return this}function Gx(t,e){for(var n=this,a=[n],i,s,o=-1;n=a.pop();)if(t.call(e,n,++o,this),i=n.children)for(s=i.length-1;s>=0;--s)a.push(i[s]);return this}function Vx(t,e){for(var n=this,a=[n],i=[],s,o,l,c=-1;n=a.pop();)if(i.push(n),s=n.children)for(o=0,l=s.length;o<l;++o)a.push(s[o]);for(;n=i.pop();)t.call(e,n,++c,this);return this}function Xx(t,e){let n=-1;for(const a of this)if(t.call(e,a,++n,this))return a}function Yx(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,a=e.children,i=a&&a.length;--i>=0;)n+=a[i].value;e.value=n})}function Hx(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function Wx(t){for(var e=this,n=Kx(e,t),a=[e];e!==n;)e=e.parent,a.push(e);for(var i=a.length;t!==n;)a.splice(i,0,t),t=t.parent;return a}function Kx(t,e){if(t===e)return t;var n=t.ancestors(),a=e.ancestors(),i=null;for(t=n.pop(),e=a.pop();t===e;)i=t,t=n.pop(),e=a.pop();return i}function Zx(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function kx(){return Array.from(this)}function Jx(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function Qx(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}function*_x(){var t=this,e,n=[t],a,i,s;do for(e=n.reverse(),n=[];t=e.pop();)if(yield t,a=t.children)for(i=0,s=a.length;i<s;++i)n.push(a[i]);while(n.length)}function bo(t,e){t instanceof Map?(t=[void 0,t],e===void 0&&(e=e0)):e===void 0&&(e=t0);for(var n=new ki(t),a,i=[n],s,o,l,c;a=i.pop();)if((o=e(a.data))&&(c=(o=Array.from(o)).length))for(a.children=o,l=c-1;l>=0;--l)i.push(s=o[l]=new ki(o[l])),s.parent=a,s.depth=a.depth+1;return n.eachBefore(r0)}function qx(){return bo(this).eachBefore(n0)}function t0(t){return t.children}function e0(t){return Array.isArray(t)?t[1]:null}function n0(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function r0(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function ki(t){this.data=t,this.depth=this.height=0,this.parent=null}ki.prototype=bo.prototype={constructor:ki,count:zx,each:jx,eachAfter:Vx,eachBefore:Gx,find:Xx,sum:Yx,sort:Hx,path:Wx,ancestors:Zx,descendants:kx,leaves:Jx,links:Qx,copy:qx,[Symbol.iterator]:_x};function a0(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Ji(t,e,n,a,i){for(var s=t.children,o,l=-1,c=s.length,u=t.value&&(a-e)/t.value;++l<c;)o=s[l],o.y0=n,o.y1=i,o.x0=e,o.x1=e+=o.value*u}function Qi(t,e,n,a,i){for(var s=t.children,o,l=-1,c=s.length,u=t.value&&(i-n)/t.value;++l<c;)o=s[l],o.x0=e,o.x1=a,o.y0=n,o.y1=n+=o.value*u}var Ju=(1+Math.sqrt(5))/2;function Qu(t,e,n,a,i,s){for(var o=[],l=e.children,c,u,g=0,v=0,m=l.length,S,I,N=e.value,M,P,X,H,Y,_,K;g<m;){S=i-n,I=s-a;do M=l[v++].value;while(!M&&v<m);for(P=X=M,_=Math.max(I/S,S/I)/(N*t),K=M*M*_,Y=Math.max(X/K,K/P);v<m;++v){if(M+=u=l[v].value,u<P&&(P=u),u>X&&(X=u),K=M*M*_,H=Math.max(X/K,K/P),H>Y){M-=u;break}Y=H}o.push(c={value:M,dice:S<I,children:l.slice(g,v)}),c.dice?Ji(c,n,a,i,N?a+=I*M/N:s):Qi(c,n,a,N?n+=S*M/N:i,s),N-=M,g=v}return o}var _u=function t(e){function n(a,i,s,o,l){Qu(e,a,i,s,o,l)}return n.ratio=function(a){return t((a=+a)>1?a:1)},n}(Ju);function R1(t){return t==null?null:qu(t)}function qu(t){if(typeof t!="function")throw new Error;return t}function za(){return 0}function ja(t){return function(){return t}}function i0(){var t=_u,e=!1,n=1,a=1,i=[0],s=za,o=za,l=za,c=za,u=za;function g(m){return m.x0=m.y0=0,m.x1=n,m.y1=a,m.eachBefore(v),i=[0],e&&m.eachBefore(a0),m}function v(m){var S=i[m.depth],I=m.x0+S,N=m.y0+S,M=m.x1-S,P=m.y1-S;M<I&&(I=M=(I+M)/2),P<N&&(N=P=(N+P)/2),m.x0=I,m.y0=N,m.x1=M,m.y1=P,m.children&&(S=i[m.depth+1]=s(m)/2,I+=u(m)-S,N+=o(m)-S,M-=l(m)-S,P-=c(m)-S,M<I&&(I=M=(I+M)/2),P<N&&(N=P=(N+P)/2),t(m,I,N,M,P))}return g.round=function(m){return arguments.length?(e=!!m,g):e},g.size=function(m){return arguments.length?(n=+m[0],a=+m[1],g):[n,a]},g.tile=function(m){return arguments.length?(t=qu(m),g):t},g.padding=function(m){return arguments.length?g.paddingInner(m).paddingOuter(m):g.paddingInner()},g.paddingInner=function(m){return arguments.length?(s=typeof m=="function"?m:ja(+m),g):s},g.paddingOuter=function(m){return arguments.length?g.paddingTop(m).paddingRight(m).paddingBottom(m).paddingLeft(m):g.paddingTop()},g.paddingTop=function(m){return arguments.length?(o=typeof m=="function"?m:ja(+m),g):o},g.paddingRight=function(m){return arguments.length?(l=typeof m=="function"?m:ja(+m),g):l},g.paddingBottom=function(m){return arguments.length?(c=typeof m=="function"?m:ja(+m),g):c},g.paddingLeft=function(m){return arguments.length?(u=typeof m=="function"?m:ja(+m),g):u},g}function tf(t,e,n,a,i){var s=t.children,o,l=s.length,c,u=new Array(l+1);for(u[0]=c=o=0;o<l;++o)u[o+1]=c+=s[o].value;g(0,l,t.value,e,n,a,i);function g(v,m,S,I,N,M,P){if(v>=m-1){var X=s[v];X.x0=I,X.y0=N,X.x1=M,X.y1=P;return}for(var H=u[v],Y=S/2+H,_=v+1,K=m-1;_<K;){var at=_+K>>>1;u[at]<Y?_=at+1:K=at}Y-u[_-1]<u[_]-Y&&v+1<_&&--_;var yt=u[_]-H,$t=S-yt;if(M-I>P-N){var dt=S?(I*$t+M*yt)/S:M;g(v,_,yt,I,N,dt,P),g(_,m,$t,dt,N,M,P)}else{var ft=S?(N*$t+P*yt)/S:P;g(v,_,yt,I,N,M,ft),g(_,m,$t,I,ft,M,P)}}}function s0(t,e,n,a,i){(t.depth&1?Qi:Ji)(t,e,n,a,i)}var o0=function t(e){function n(a,i,s,o,l){if((c=a._squarify)&&c.ratio===e)for(var c,u,g,v,m=-1,S,I=c.length,N=a.value;++m<I;){for(u=c[m],g=u.children,v=u.value=0,S=g.length;v<S;++v)u.value+=g[v].value;u.dice?Ji(u,i,s,o,N?s+=(l-s)*u.value/N:l):Qi(u,i,s,N?i+=(o-i)*u.value/N:o,l),N-=u.value}else a._squarify=c=Qu(e,a,i,s,o,l),c.ratio=e}return n.ratio=function(a){return t((a=+a)>1?a:1)},n}(Ju);function l0(t,e){const n=this,{scale:{x:a,y:i},state:{width:s}}=n;t.selectAll("g").attr("transform",o=>`translate(${o===e?"0,0":`${a(o.x0)},${i(o.y0)}`})`).select("rect").attr("width",o=>o===e?s:a(o.x1)-a(o.x0)).attr("height",o=>o===e?0:i(o.y1)-i(o.y0))}function c0(t){const e=this;return t.map(n=>{const{id:a,values:i}=n,{value:s}=i[0];return{name:a,id:a,value:s,ratio:e.getRatio("treemap",i[0])}})}function u0(t){const e=this,n=bo(t).sum(i=>i.value),a=e.getSortCompareFn(!0);return[e.treemap(a?n.sort(a):n)]}var f0={initTreemap(){const t=this,{$el:e,state:{current:{width:n,height:a},clip:i,datetimeId:s}}=t;i.id=`${s}-clip`,t.treemap=i0().tile(t.getTreemapTile()),e.defs.append("clipPath").attr("id",i.id).append("rect").attr("width",n).attr("height",a),e.treemap=e.main.select(`.${Se.chart}`).attr("clip-path",`url(#${i.id})`).append("g").classed(Jo.chartTreemaps,!0),t.bindTreemapEvent()},bindTreemapEvent(){const t=this,{$el:e,config:n,state:a}=t,i=s=>{var o;const l=s.isTrusted?s.target:(o=a.eventReceiver.rect)==null?void 0:o.node();let c;return/^rect$/i.test(l.tagName)&&(a.event=s,c=st(l).datum()),c==null?void 0:c.data};if(n.interaction_enabled){const s=a.inputType==="touch";e.treemap.on(s?"touchstart":"mouseover mousemove",o=>{const l=i(o);l&&(t.showTooltip([l],o.currentTarget),/^(touchstart|mouseover)$/.test(o.type)&&t.setOverOut(!0,l))}).on(s?"touchend":"mouseout",o=>{const l=i(o);t.hideTooltip(),t.setOverOut(!1,l)})}},getTreemapTile(){var t,e;const n=this,{config:a,state:{current:{width:i,height:s}}}=n,o=(e={binary:tf,dice:Ji,slice:Qi,sliceDice:s0,squarify:_u,resquarify:o0}[(t=a.treemap_tile)!=null?t:"binary"])!=null?e:tf;return(l,c,u,g,v)=>{o(l,0,0,i,s);for(const m of l.children)m.x0=c+m.x0/i*(g-c),m.x1=c+m.x1/i*(g-c),m.y0=u+m.y0/s*(v-u),m.y1=u+m.y1/s*(v-u)}},getTreemapData(t){const e=this;return{name:"root",children:c0.bind(e)(e.filterTargetsToShow(t.filter(e.isTreemapType,e)))}},updateTargetsForTreemap(t){const e=this,{$el:{treemap:n}}=e,a=u0.call(e,e.getTreemapData(t!=null?t:e.data.targets));n.data(a)},updateTreemap(t){const e=this,{$el:n,$T:a}=e,i=n.treemap.datum(),s=e.getChartClass("Treemap"),o=e.getClass("treemap",!0),l=n.treemap.selectAll("g").data(i.children);a(l.exit(),t).style("opacity","0").remove(),l.enter().append("g").append("rect"),n.treemap.selectAll("g").attr("class",s).select("rect").attr("class",o).attr("fill",c=>e.color(c.data.name))},generateGetTreemapPoints(){const t=this,{$el:e,scale:{x:n,y:a}}=t,i={};return e.treemap.selectAll("g").each(s=>{i[s.data.name]=[[n(s.x0),a(s.y0)],[n(s.x1),a(s.y1)]]}),s=>i[s.id]},redrawTreemap(t){const e=this,{$el:n,state:{current:{width:a,height:i}}}=e;return n.defs.select("rect").attr("width",a).attr("height",i),[e.$T(n.treemap,t,gr()).call(l0.bind(e),n.treemap.datum())]},treemapDataLabelFormat(t){const e=this,{config:n}=e,{id:a,value:i}=t,s=n.treemap_label_format,o=e.getRatio("treemap",t),l=(o*100).toFixed(2),c=n.treemap_label_show&&e.meetsLabelThreshold(o,"treemap")?null:"0";return function(u){return u.style("opacity",c),ve(s)?s.bind(e.api)(i,o,a):`${a}
|
|
57
|
-
${l}%`}}},Xr={point_show:!0,point_r:2.5,point_radialGradient:!1,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"},fa={area_above:!1,area_below:!1,area_front:!0,area_linearGradient:!1,area_zerobased:!0},
|
|
56
|
+
`):[];if(c.length)return c;if(ze(l))return l;let u=o.tickWidth;(!u||u<=0)&&(u=i?95:o.isCategory?Math.ceil(o.isInverted?n(a[0])-n(a[1]):n(a[1])-n(a[0]))-12:110);function g(v,m){let S,I,N;for(let L=1;L<m.length;L++)if(m.charAt(L)===" "&&(I=L),S=m.substr(0,L+1),N=s*S.length,u<N)return g(v.concat(m.substr(0,I||L)),m.slice(I?I+1:L));return v.concat(m)}return g(c,String(l))}scale(e){return arguments.length?(this.helper.scale=e,this):this.helper.scale}orient(e){return arguments.length?(this.config.orient=e in{top:1,right:1,bottom:1,left:1}?String(e):"bottom",this):this.config.orient}tickFormat(e){const{config:n}=this;return arguments.length?(n.tickFormat=e,this):n.tickFormat}tickCentered(e){const{config:n}=this;return arguments.length?(n.tickCentered=e,this):n.tickCentered}tickOffset(){return this.config.tickOffset}tickInterval(e){var n;const{outerTickSize:a,tickOffset:i,tickValues:s}=this.config;let o;if(this.params.isCategory)o=i*2;else{const l=(n=this.params.owner.scale.zoom)!=null?n:this.helper.scale;o=(this.g.select("path.domain").node().getTotalLength()-a*2)/(e||this.g.selectAll("line").size());const u=s?s.map((g,v,m)=>{const S=v+1;return S<m.length?l(m[S])-l(g):null}).filter(Boolean):[];o=Math.min(...u,o)}return o===1/0?0:o}ticks(...e){const{config:n}=this;return e.length?(n.tickArguments=Dr(e),this):n.tickArguments}tickCulling(e){const{config:n}=this;return arguments.length?(n.tickCulling=e,this):n.tickCulling}tickValues(e){const{config:n}=this;if(he(e))n.tickValues=()=>e(this.helper.scale.domain());else{if(!arguments.length)return n.tickValues;n.tickValues=e}return this}setTransition(e){return this.config.transition=e,this}}var Oy=Object.defineProperty,Iy=(t,e,n)=>e in t?Oy(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,pr=(t,e,n)=>Iy(t,typeof e!="symbol"?e+"":e,n),Cy={getAxisInstance:function(){return this.axis||new Py(this)}};class Py{constructor(e){pr(this,"owner"),pr(this,"x"),pr(this,"subX"),pr(this,"y"),pr(this,"y2"),pr(this,"axesList",{}),pr(this,"tick",{x:null,y:null,y2:null}),pr(this,"xs",[]),pr(this,"orient",{x:"bottom",y:"left",y2:"right",subX:"bottom"}),this.owner=e,this.setOrient()}getAxisClassName(e){return`${dn.axis} ${dn[`axis${Ln(e)}`]}`}isHorizontal(e,n){const a=e.config.axis_rotated;return n?a:!a}isCategorized(){const{config:e,state:n}=this.owner;return e.axis_x_type.indexOf("category")>=0||n.hasRadar}isCustomX(){const{config:e}=this.owner;return!this.isTimeSeries()&&(e.data_x||cn(e.data_xs))}isTimeSeries(e="x"){return this.owner.config[`axis_${e}_type`]==="timeseries"}isLog(e="x"){return this.owner.config[`axis_${e}_type`]==="log"}isTimeSeriesY(){return this.isTimeSeries("y")}getAxisType(e="x"){let n="linear";return this.isTimeSeries(e)?n=this.owner.config.axis_x_localtime?"time":"utc":this.isLog(e)&&(n="log"),n}init(){const e=this.owner,{config:n,$el:{main:a,axis:i},state:{clip:s}}=e,o=n.axis_rotated,l=["x","y"];n.axis_y2_show&&l.push("y2"),l.forEach(c=>{const u=this.getAxisClassName(c),g=dn[`axis${c.toUpperCase()}Label`];i[c]=a.append("g").attr("class",u).attr("clip-path",()=>{let v=null;return c==="x"?v=s.pathXAxis:c==="y"&&(v=s.pathYAxis),v}).attr("transform",e.getTranslate(c)).style("visibility",n[`axis_${c}_show`]?null:"hidden"),i[c].append("text").attr("class",g).attr("transform",["rotate(-90)",null][c==="x"?+!o:+o]).style("text-anchor",()=>this.textAnchorForAxisLabel(c)),this.generateAxes(c)}),n.axis_tooltip&&this.setAxisTooltip()}setOrient(){const e=this.owner,{axis_rotated:n,axis_y_inner:a,axis_y2_inner:i}=e.config;this.orient={x:n?"left":"bottom",y:n?a?"top":"bottom":a?"right":"left",y2:n?i?"bottom":"top":i?"left":"right",subX:n?"left":"bottom"}}generateAxes(e){const n=this.owner,{config:a}=n,i=[],s=a[`axis_${e}_axes`],o=a.axis_rotated;let l;e==="x"?l=o?Ou:Ru:e==="y"?l=o?Ru:Ou:e==="y2"&&(l=o?Ty:$y),s.length&&s.forEach(c=>{const u=c.tick||{},g=n.scale[e].copy();c.domain&&g.domain(c.domain),i.push(l(g).ticks(u.count).tickFormat(he(u.format)?u.format.bind(n.api):v=>v).tickValues(u.values).tickSizeOuter(u.outer===!1?0:6))}),this.axesList[e]=i}updateAxes(){const e=this.owner,{config:n,$el:{main:a},$T:i}=e;Object.keys(this.axesList).forEach(s=>{const o=n[`axis_${s}_axes`],l=e.scale[s].copy(),c=l.range();this.axesList[s].forEach((u,g)=>{const v=u.scale().range();c.every((I,N)=>I===v[N])||u.scale().range(c);const m=`${this.getAxisClassName(s)}-${g+1}`;let S=a.select(`.${m.replace(/\s/,".")}`);S.empty()?S=a.append("g").attr("class",m).style("visibility",n[`axis_${s}_show`]?null:"hidden").call(u):(o[g].domain&&l.domain(o[g].domain),i(S).call(u.scale(l))),S.attr("transform",e.getTranslate(s,g+1))})})}setAxis(e,n,a,i){const s=this.owner;e!=="subX"&&(this.tick[e]=this.getTickValues(e)),this[e]=this.getAxis(e,n,a,e==="x"&&(s.scale.zoom||s.config.subchart_show||s.state.resizing)?!0:i)}getAxis(e,n,a,i,s){const o=this.owner,{config:l}=o,c=/^(x|subX)$/.test(e),u=c?"x":e,g=c&&this.isCategorized(),v=this.orient[e],m=s?0:o.getAxisTickRotate(u);let S;if(c)S=e==="subX"?o.format.subXAxisTick:o.format.xAxisTick;else{const V=l[`axis_${e}_tick_format`];he(V)&&(S=V.bind(o.api))}let I=this.tick[u];const N=ea({outerTick:a,noTransition:i,config:l,id:e,tickTextRotate:m,owner:o},c&&{isCategory:g,isInverted:l.axis_x_inverted,tickMultiline:l.axis_x_tick_multiline,tickWidth:l.axis_x_tick_width,tickTitle:g&&l.axis_x_tick_tooltip&&o.api.categories(),orgXScale:o.scale.x});c||(N.tickStepSize=l[`axis_${u}_tick_stepSize`]);const L=new Ry(N).scale(c&&o.scale.zoom||n).orient(v);if(c&&this.isTimeSeries()&&I&&!he(I)){const V=zn.bind(o);I=I.map(H=>V(H))}else!c&&this.isTimeSeriesY()&&(L.ticks(l.axis_y_tick_time_value),I=null);I&&L.tickValues(I),L.tickFormat(S||!c&&o.isStackNormalized()&&(V=>`${V}%`)),g&&(L.tickCentered(l.axis_x_tick_centered),_n(l.axis_x_tick_culling)&&(l.axis_x_tick_culling=!1));const C=l[`axis_${u}_tick_count`];return C&&L.ticks(C),L}updateXAxisTickValues(e,n){var a;const i=this.owner,{config:s}=i,o=s.axis_x_tick_fit;let l=s.axis_x_tick_count,c;return(o||l&&o)&&(c=i.mapTargetsToUniqueXs(e),this.isCategorized()&&l>c.length&&(l=c.length),c=this.generateTickValues(c,l,this.isTimeSeries())),n?n.tickValues(c):this.x&&(this.x.tickValues(c),(a=this.subX)==null||a.tickValues(c)),c}getId(e){const{config:n,scale:a}=this.owner;let i=n.data_axes[e];return(!i||!a[i])&&(i="y"),i}getXAxisTickFormat(e){const n=this.owner,{config:a,format:i}=n,s=e&&a.subchart_axis_x_tick_format||a.axis_x_tick_format,o=this.isTimeSeries(),l=this.isCategorized();let c;return s?he(s)?c=s.bind(n.api):o&&(c=u=>u?i.axisTime(s)(u):""):c=o?i.defaultAxisTime:l?n.categoryName:u=>u<0?u.toFixed(0):u,he(c)?u=>c.apply(n,l?[u,n.categoryName(u)]:[u]):c}getTickValues(e){const n=this.owner,a=n.config[`axis_${e}_tick_values`],i=n[`${e}Axis`];return(he(a)?a.call(n.api):a)||(i?i.tickValues():void 0)}getLabelOptionByAxisId(e){return this.owner.config[`axis_${e}_label`]}getLabelText(e){const n=this.getLabelOptionByAxisId(e);return Xe(n)?n:n?n.text:null}setLabelText(e,n){const a=this.owner,{config:i}=a,s=this.getLabelOptionByAxisId(e);Xe(s)?i[`axis_${e}_label`]=n:s&&(s.text=n)}getLabelPosition(e,n){const a=this.owner.config.axis_rotated,i=this.getLabelOptionByAxisId(e),s=nr(i)&&i.position?i.position:n[+!a],o=l=>!!~s.indexOf(l);return{isInner:o("inner"),isOuter:o("outer"),isLeft:o("left"),isCenter:o("center"),isRight:o("right"),isTop:o("top"),isMiddle:o("middle"),isBottom:o("bottom")}}getAxisLabelPosition(e){return this.getLabelPosition(e,e==="x"?["inner-top","inner-right"]:["inner-right","inner-top"])}getLabelPositionById(e){return this.getAxisLabelPosition(e)}xForAxisLabel(e){const n=this.owner,{state:{width:a,height:i}}=n,s=this.getAxisLabelPosition(e);let o=s.isMiddle?-i/2:0;return this.isHorizontal(n,e!=="x")?o=s.isLeft?0:s.isCenter?a/2:a:s.isBottom&&(o=-i),o}dxForAxisLabel(e){const n=this.owner,a=this.getAxisLabelPosition(e);let i=a.isBottom?"0.5em":"0";return this.isHorizontal(n,e!=="x")?i=a.isLeft?"0.5em":a.isRight?"-0.5em":"0":a.isTop&&(i="-0.5em"),i}textAnchorForAxisLabel(e){const n=this.owner,a=this.getAxisLabelPosition(e);let i=a.isMiddle?"middle":"end";return this.isHorizontal(n,e!=="x")?i=a.isLeft?"start":a.isCenter?"middle":"end":a.isBottom&&(i="start"),i}dyForAxisLabel(e){const n=this.owner,{config:a}=n,i=a.axis_rotated,s=this.getAxisLabelPosition(e).isInner,o=a[`axis_${e}_tick_rotate`]?n.getHorizontalAxisHeight(e):0,{width:l}=this.getMaxTickSize(e);let c;if(e==="x"){const u=a.axis_x_height;i?c=s?"1.2em":-25-l:s?c="-0.5em":u?c=u-10:o?c=o-10:c="3em"}else c={y:["-0.5em",10,"3em","1.2em",10],y2:["1.2em",-20,"-2.2em","-0.5em",15]}[e],i?s?c=c[0]:o?c=o*(e==="y2"?-1:1)-c[1]:c=c[2]:c=s?c[3]:(c[4]+(a[`axis_${e}_inner`]?0:l+c[4]))*(e==="y"?-1:1);return c}getMaxTickSize(e,n){const a=this.owner,{config:i,state:{current:s},$el:{svg:o,chart:l}}=a,c=s.maxTickSize[e],u=`axis_${e}`,g={width:0,height:0};if(n||!i[`${u}_show`]||c.width>0&&a.filterTargetsToShow().length===0)return c;if(o){const v=/^y2?$/.test(e),m=a.filterTargetsToShow(a.data.targets),S=a.scale[e].copy().domain(a[`get${v?"Y":"X"}Domain`](m,e)),I=S.domain(),N=I[0]===I[1]&&I.every(K=>K>0),L=ze(c.domain)&&c.domain[0]===c.domain[1]&&c.domain.every(K=>K>0);if(N||L)return c.size;c.domain=I,v||c.ticks.splice(0);const C=this.getAxis(e,S,!1,!1,!0),V=i[`${u}_tick_rotate`],H=i[`${u}_tick_count`];!i[`${u}_tick_values`]&&H&&C.tickValues(this.generateTickValues(I,H,v?this.isTimeSeriesY():this.isTimeSeries())),!v&&this.updateXAxisTickValues(m,C);const _=l.append("svg").style("visibility","hidden").style("position","fixed").style("top","0").style("left","0");C.create(_),_.selectAll("text").attr("transform",ge(V)?`rotate(${V})`:null).each(function(K,at){const{width:mt,height:St}=this.getBoundingClientRect();g.width=Math.max(g.width,mt),g.height=Math.max(g.height,St),v||(c.ticks[at]=mt)}),_.remove()}return Object.keys(g).forEach(v=>{g[v]>0&&(c[v]=g[v])}),c}getXAxisTickTextY2Overflow(e){const n=this.owner,{axis:a,config:i,state:{current:s,isLegendRight:o,legendItemWidth:l}}=n,c=n.getAxisTickRotate("x"),u=c>0&&c<90;if((a.isCategorized()||a.isTimeSeries())&&i.axis_x_tick_fit&&(!i.axis_x_tick_culling||_n(i.axis_x_tick_culling))&&!i.axis_x_tick_multiline&&u){const g=i.axis_y2_show&&s.maxTickSize.y2.width||0,v=o&&l||0,m=s.width-n.getCurrentPaddingByDirection("left"),S=this.getXAxisTickMaxOverflow(c,m-e)-g-v,I=Math.max(0,S)+e;return Math.min(I,m/2)}return 0}getXAxisTickMaxOverflow(e,n){const a=this.owner,{axis:i,config:s,state:o}=a,l=i.isTimeSeries(),c=o.current.maxTickSize.x.ticks,u=c.length,{left:g,right:v}=o.axis.x.padding;let m=0;const S=u-(l&&s.axis_x_tick_fit?.5:0);for(let L=0;L<u;L++){const C=L+1,V=Math.cos(Math.PI*e/180)*c[L],H=C-(l?1:.5)+g;if(H<=0)continue;const _=(n-V)/H,K=S-C,at=v*_,mt=K*_+at,St=V-_/2-mt;m=Math.max(m,St)}const I=a.filterTargetsToShow(a.data.targets);let N=0;if(!l&&s.axis_x_tick_count<=I.length&&I[0].values.length){const L=zr(a.axis.getAxisType("x"),0,n-m).domain([g*-1,a.getXDomainMax(a.data.targets)+1+v]);N=Math.ceil((L(1)-L(0))/2)}return m+N}updateLabels(e){const n=this.owner,{$el:{main:a},$T:i}=n,s={x:a.select(`.${dn.axisX} .${dn.axisXLabel}`),y:a.select(`.${dn.axisY} .${dn.axisYLabel}`),y2:a.select(`.${dn.axisY2} .${dn.axisY2Label}`)};Object.keys(s).filter(o=>!s[o].empty()).forEach(o=>{const l=s[o];i(l,e).attr("x",()=>this.xForAxisLabel(o)).attr("dx",()=>this.dxForAxisLabel(o)).attr("dy",()=>this.dyForAxisLabel(o)).text(()=>this.getLabelText(o))})}getPadding(e,n,a,i){const s=ge(e)?e:e[n];return Le(s)?this.owner.convertPixelToScale(/(bottom|top)/.test(n)?"y":"x",s,i):a}generateTickValues(e,n,a){let i=e;if(n){const s=he(n)?n():n;if(s===1)i=[e[0]];else if(s===2)i=[e[0],e[e.length-1]];else if(s>2){const o=this.isCategorized(),l=s-2,c=e[0],u=e[e.length-1],g=(u-c)/(l+1);let v;i=[c];for(let m=0;m<l;m++)v=+c+g*(m+1),i.push(a?new Date(v):o?Math.round(v):v);i.push(u)}}return a||(i=i.sort((s,o)=>s-o)),i}generateTransitions(e){const n=this.owner,{$el:{axis:a},$T:i}=n,[s,o,l,c]=["x","y","y2","subX"].map(u=>i(a[u],e));return{axisX:s,axisY:o,axisY2:l,axisSubX:c}}redraw(e,n,a){const i=this.owner,{config:s,$el:o}=i,l=n?"0":null;["x","y","y2","subX"].forEach(c=>{const u=this[c],g=o.axis[c];u&&g&&(!a&&!s.transition_duration&&(u.config.withoutTransition=!0),g.style("opacity",l),u.create(e[`axis${Ln(c)}`]))}),this.updateAxes()}redrawAxis(e,n,a,i,s){var o,l,c;const u=this.owner,{config:g,scale:v,$el:m}=u,S=!!v.zoom;let I;!S&&this.isCategorized()&&e.length===0&&v.x.domain([0,m.axis.x.selectAll(".tick").size()]),v.x&&e.length?(!S&&u.updateXDomain(e,n.UpdateXDomain,n.UpdateOrgXDomain,n.TrimXDomain),g.axis_x_tick_values||this.updateXAxisTickValues(e)):this.x&&(this.x.tickValues([]),(o=this.subX)==null||o.tickValues([])),g.zoom_rescale&&!i&&(I=v.x.orgDomain()),["y","y2"].forEach(N=>{const L=`axis_${N}_`,C=v[N];if(C){const V=g[`${L}tick_values`],H=g[`${L}tick_count`];if(C.domain(u.getYDomain(e,N,I)),!V&&H){const Y=u.axis[N],_=C.domain();Y.tickValues(this.generateTickValues(_,_.every(K=>K===0)?1:H,this.isTimeSeriesY()))}}}),this.redraw(a,u.hasArcType(),s),this.updateLabels(n.Transition),(n.UpdateXDomain||n.UpdateXAxis||n.Y)&&e.length&&this.setCulling(),n.Y&&((l=v.subY)==null||l.domain(u.getYDomain(e,"y")),(c=v.subY2)==null||c.domain(u.getYDomain(e,"y2")))}setCulling(){const e=this.owner,{config:n,state:{clip:a,current:i},$el:s}=e;["subX","x","y","y2"].forEach(o=>{const l=s.axis[o],u=`axis_${o==="subX"?"x":o}_tick_culling`,g=n[u];if(l&&g){const v=l.selectAll(".tick"),m=na(v.data()),S=m.length,I=n[`${u}_max`],N=n[`${u}_lines`];let L;if(S){for(let C=1;C<S;C++)if(S/C<I){L=C;break}v.each(function(C){const V=N?this.querySelector("text"):this;V&&(V.style.display=m.indexOf(C)%L?"none":null)})}else v.style("display",null);if(o==="x"){const C=i.maxTickSize.x.clipPath?a.pathXAxisTickTexts:null;s.svg.selectAll(`.${dn.axisX} .tick text`).attr("clip-path",C)}}})}setAxisTooltip(){var e;const n=this.owner,{config:{axis_rotated:a,axis_tooltip:i},$el:{axis:s,axisTooltip:o}}=n,l=(e=i.backgroundColor)!=null?e:"black";n.generateTextBGColorFilter(l,{x:-.15,y:-.2,width:1.3,height:1.3}),["x","y","y2"].forEach(c=>{var u,g,v;if(o[c]=(u=s[c])==null?void 0:u.append("text").classed(dn[`axis${c.toUpperCase()}Tooltip`],!0).attr("filter",n.updateTextBGColor({id:c},l)),a){const m=c==="x"?"x":"y",S=c==="y"?"1.15em":c==="x"?"-0.3em":"-0.4em";(g=o[c])==null||g.attr(m,S).attr(`d${c==="x"?"y":"x"}`,c==="x"?"0.4em":"-1.3em").style("text-anchor",c==="x"?"end":null)}else{const m=c==="x"?"y":"x",S=c==="x"?"1.15em":`${c==="y"?"-":""}0.4em`;(v=o[c])==null||v.attr(m,S).attr(`d${c==="x"?"x":"y"}`,c==="x"?"-1em":"0.3em").style("text-anchor",c==="y"?"end":null)}})}}var wy={initEventRect(){this.$el.main.select(`.${Se.chart}`).append("g").attr("class",Zn.eventRects).style("fill-opacity","0")},redrawEventRect(){var t;const e=this,{config:n,state:a,$el:i}=e,s=e.isMultipleX(),o=n.axis_x_inverted;if(i.eventRect)e.updateEventRect(i.eventRect,!0);else if(e.data.targets.length){const c=e.$el.main.select(`.${Zn.eventRects}`).style("cursor",n.zoom_enabled&&n.zoom_type!=="drag"?n.axis_rotated?"ns-resize":"ew-resize":null).classed(Zn.eventRectsMultiple,s).classed(Zn.eventRectsSingle,!s).selectAll(`.${Zn.eventRect}`).data([0]).enter().append("rect");e.updateEventRect(c),e.updateEventType(c),c.call(e.getDraggableSelection()),i.eventRect=c,e.state.inputType==="touch"&&!i.svg.on("touchstart.eventRect")&&!e.hasArcType()&&e.bindTouchOnEventRect(),a.rendered&&e.updateEventRect(i.eventRect,!0)}if(!s){const l=e.getMaxDataCountTarget();(!n.data_xSort||o)&&l.sort((c,u)=>o?u.x-c.x:c.x-u.x),e.updateDataIndexByX(l),e.updateXs(l),(t=e.updatePointClass)==null||t.call(e,!0),a.eventReceiver.data=l}e.updateEventRectData()},bindTouchOnEventRect(){const t=this,{config:e,state:n,$el:{eventRect:a,svg:i}}=t,s=m=>{if(t.isMultipleX())t.selectRectForMultipleXs(m);else{const S=t.getDataIndexFromEvent(n.event);t.callOverOutForTouch(S),S===-1?t.unselectRect():t.selectRectForSingle(m,S)}},o=()=>{t.unselectRect(),t.callOverOutForTouch()},l=e.interaction_inputType_touch.preventDefault,c=Os(l)&&l||!1,u=!isNaN(l)&&l||null;let g;const v=m=>{const S=m.type,N=m.changedTouches[0][`client${e.axis_rotated?"Y":"X"}`];S==="touchstart"?c?m.preventDefault():u!==null&&(g=N):S==="touchmove"&&(c||g===!0||u!==null&&Math.abs(g-N)>=u)&&(g=!0,m.preventDefault())};a.on("touchstart",m=>{n.event=m,t.updateEventRect()}).on("touchstart.eventRect touchmove.eventRect",m=>{if(n.event=m,!a.empty()&&a.classed(Zn.eventRect)){if(n.dragging||n.flowing||t.hasArcType()||m.touches.length>1)return;v(m),s(a.node())}else o()},!0).on("touchend.eventRect",m=>{n.event=m,!a.empty()&&a.classed(Zn.eventRect)&&(t.hasArcType()||!t.toggleShape||n.cancelClick)&&n.cancelClick&&(n.cancelClick=!1)},!0),i.on("touchstart",m=>{n.event=m;const{target:S}=m;S&&S!==a.node()&&o()})},updateEventRect(t,e=!1){const n=this,{state:a,$el:i}=n,{eventReceiver:s,width:o,height:l,rendered:c,resizing:u}=a,g=t||i.eventRect,v=()=>{if(s){const m=Zl(i.chart.node());s.rect=g.node().getBoundingClientRect().toJSON(),s.rect.top+=m.y,s.rect.left+=m.x}};(!c||u||e)&&(g.attr("x",0).attr("y",0).attr("width",o).attr("height",l),(!c||e)&&g.classed(Zn.eventRect,!0)),v()},updateEventType(t){const e=this,n=Os(t),a=n?e.$el.eventRect:t,i=n?t!==(a==null?void 0:a.datum().multipleX):!1;a&&(i&&(a==null||a.on("mouseover mousemove mouseout click",null)),e.isMultipleX()?e.generateEventRectsForMultipleXs(a):e.generateEventRectsForSingleX(a))},updateEventRectData(){const t=this,{config:e,scale:n,state:a}=t,i=n.zoom||n.x,s=e.axis_rotated,o=t.isMultipleX();let l,c,u,g;if(t.updateEventType(o),o)l=0,c=0,u=a.width,g=a.height;else{let S,I;if(t.axis.isCategorized())S=t.getEventRectWidth(),I=N=>i(N.x)-S/2;else{const N=({index:L})=>({prev:t.getPrevX(L),next:t.getNextX(L)});S=L=>{const C=N(L),V=i.domain();let H;return C.prev===null&&C.next===null?H=s?a.height:a.width:C.prev===null?H=(i(C.next)+i(L.x))/2:C.next===null?H=i(V[1])-(i(C.prev)+i(L.x))/2:(Object.keys(C).forEach((Y,_)=>{var K;C[Y]=(K=C[Y])!=null?K:V[_]}),H=Math.max(0,(i(C.next)-i(C.prev))/2)),H},I=L=>{const C=N(L);let V;return C.prev===null&&C.next===null?V=0:C.prev===null?V=i(i.domain()[0]):V=(i(L.x)+i(C.prev))/2,V}}l=s?0:I,c=s?I:0,u=s?a.width:S,g=s?S:a.height}const{eventReceiver:v}=a,m=(S,I)=>he(S)?S(I):S;v.coords.splice(v.data.length),v.data.forEach((S,I)=>{v.coords[I]={x:m(l,S),y:m(c,S),w:m(u,S),h:m(g,S)}})},selectRectForSingle(t,e){var n,a;const i=this,{config:s,$el:{main:o,circle:l}}=i,c=s.data_selection_enabled,u=s.data_selection_grouped,g=s.data_selection_isselectable,v=s.tooltip_grouped,m=i.getAllValuesOnIndex(e);if(v&&(i.showTooltip(m,t),(n=i.showGridFocus)==null||n.call(i,m),!c||u))return;!l&&o.selectAll(`.${Se.EXPANDED}:not(.${on.shape}-${e})`).classed(Se.EXPANDED,!1);const S=o.selectAll(`.${on.shape}-${e}`).classed(Se.EXPANDED,!0).style("cursor",g?"pointer":null).filter(function(I){return i.isWithinShape(this,I)});S.empty()&&!v&&s.interaction_onout&&((a=i.hideGridFocus)==null||a.call(i),i.hideTooltip(),!u&&i.setExpand(e)),S.call(I=>{var N,L;const C=I.data();c&&(u||g!=null&&g.bind(i.api)(C))&&(t.style.cursor="pointer"),v||(i.showTooltip(C,t),(N=i.showGridFocus)==null||N.call(i,C),(L=i.unexpandCircles)==null||L.call(i),I.each(V=>i.setExpand(e,V.id)))})},selectRectForMultipleXs(t,e=!0){const n=this,{config:a,state:i}=n,s=n.filterTargetsToShow(n.data.targets);if(i.dragging||n.hasArcType(s))return;const o=Hn(i.event,t),l=n.findClosestFromTargets(s,o);if(e&&i.mouseover&&(!l||l.id!==i.mouseover.id)&&(a.data_onout.call(n.api,i.mouseover),i.mouseover=void 0),!l){n.unselectRect();return}const u=(n.isBubbleType(l)||n.isScatterType(l)||!a.tooltip_grouped?[l]:n.filterByX(s,l.x)).map(v=>n.addName(v));n.showTooltip(u,t),n.setExpand(l.index,l.id,!0),n.showGridFocus(u);const g=n.dist(l,o);(n.isBarType(l.id)||g<n.getPointSensitivity(l))&&(n.$el.svg.select(`.${Zn.eventRect}`).style("cursor","pointer"),e&&!i.mouseover&&(a.data_onover.call(n.api,l),i.mouseover=l))},unselectRect(){const t=this,{$el:{circle:e,tooltip:n}}=t;t.$el.svg.select(`.${Zn.eventRect}`).style("cursor",null),t.hideGridFocus(),n&&(t.hideTooltip(),t._handleLinkedCharts(!1)),e&&!t.isPointFocusOnly()&&t.unexpandCircles(),t.expandBarTypeShapes(!1)},generateEventRectsForSingleX(t){const e=this,{config:n,state:a}=e,{eventReceiver:i}=a,s=t.style("cursor",n.data_selection_enabled&&n.data_selection_grouped?"pointer":null).on("click",function(o){a.event=o;const{currentIdx:l,data:c}=i,u=c[l===-1?e.getDataIndexFromEvent(o):l];e.clickHandlerForSingleX.bind(this)(u,e)}).datum({multipleX:!1});if(a.inputType==="mouse"){const o=l=>{const c=l?e.getDataIndexFromEvent(l):i.currentIdx;return c>-1?i.data[c]:null};s.on("mouseover",l=>{a.event=l,e.updateEventRect(),Object.values(e.$el.axisTooltip).forEach(c=>c==null?void 0:c.style("display",null))}).on("mousemove",function(l){const c=o(l);if(a.event=l,!c)return;let{index:u}=c;const g=n.line_step_type;if(n.line_step_tooltipMatch&&e.hasType("step")&&/^step\-(before|after)$/.test(g)){const m=e.scale.zoom||e.scale.x,S=e.axis.xs[u],I=m.invert(Hn(l,this)[0]);g==="step-after"&&I<S?u-=1:g==="step-before"&&I>S&&(u+=1)}e.showAxisGridFocus();const v=n.tooltip_grouped&&u===i.currentIdx;if(a.dragging||a.flowing||e.hasArcType()||v){n.tooltip_show&&v&&e.setTooltipPosition();return}u!==i.currentIdx&&(e.setOverOut(!1,i.currentIdx),i.currentIdx=u),u===-1?e.unselectRect():e.selectRectForSingle(this,u),e.setOverOut(u!==-1,u)}).on("mouseout",l=>{a.event=l,!(!n||e.hasArcType()||i.currentIdx===-1||!n.interaction_onout)&&(e.hideAxisGridFocus(),e.unselectRect(),e.setOverOut(!1,i.currentIdx),i.currentIdx=-1)})}return s},clickHandlerForSingleX(t,e){const n=e,{config:a,state:i,$el:{main:s}}=n;if(!t||n.hasArcType()||i.cancelClick){i.cancelClick&&(i.cancelClick=!1);return}const{index:o}=t;s.selectAll(`.${on.shape}-${o}`).each(function(l){var c;(a.data_selection_grouped||n.isWithinShape(this,l))&&((c=n.toggleShape)==null||c.call(n,this,l,o),a.data_onclick.bind(n.api)(l,this))})},generateEventRectsForMultipleXs(t){const e=this,{config:n,state:a}=e;t.on("click",function(i){a.event=i,e.clickHandlerForMultipleXS.bind(this)(e)}).datum({multipleX:!0}),a.inputType==="mouse"&&t.on("mouseover mousemove",function(i){a.event=i,e.selectRectForMultipleXs(this)}).on("mouseout",i=>{a.event=i,!(!e.config||e.hasArcType()||!n.interaction_onout)&&e.unselectRect()})},clickHandlerForMultipleXS(t){const e=t,{config:n,state:a}=e,i=n.point_sensitivity,s=e.filterTargetsToShow(e.data.targets);if(e.hasArcType(s))return;const o=Hn(a.event,this),l=e.findClosestFromTargets(s,o),c=i==="radius"?l==null?void 0:l.r:he(i)?l&&i(l):i;l&&(e.isBarType(l.id)||e.dist(l,o)<c)&&e.$el.main.selectAll(`.${on.shapes}${e.getTargetSelectorSuffix(l.id)}`).selectAll(`.${on.shape}-${l.index}`).each(function(){var u;(n.data_selection_grouped||e.isWithinShape(this,l))&&((u=e.toggleShape)==null||u.call(e,this,l,l.index),n.data_onclick.bind(e.api)(l,this))})}};const My=t=>+t;var Ly={generateFlow(t){const e=this,{data:n,state:a,$el:i}=e;return function(){const s=t.flow.length;a.flowing=!0,n.targets.forEach(l=>{l.values.splice(0,s)}),e.updateXGrid&&e.updateXGrid(!0);const o={};["axis.x","grid.x","gridLines.x","region.list","text","bar","line","area","circle"].forEach(l=>{const c=l.split(".");let u=i[c[0]];u&&c.length>1&&(u=u[c[1]]),u!=null&&u.size()&&(o[l]=u)}),e.hideGridFocus(),e.setFlowList(o,t)}},setFlowList(t,e){const n=this,{flow:a,targets:i}=e,{duration:s=e.duration,index:o,length:l,orgDataCount:c}=a,u=n.getFlowTransform(i,c,o,l),g=ec();let v;g.add(Object.keys(t).map(m=>(v=t[m].transition().ease(My).duration(s),m==="axis.x"?v=v.call(S=>{n.axis.x.setTransition(S).create(S)}):m==="region.list"?v=v.filter(n.isRegionOnX).attr("transform",u):v=v.attr("transform",u),v))),v.call(g,()=>{n.cleanUpFlow(t,e)})},cleanUpFlow(t,e){const n=this,{config:a,state:i,$el:{svg:s}}=n,o=a.axis_rotated,{flow:l,shape:c,xv:u}=e,{cx:g,cy:v,xForText:m,yForText:S}=c.pos,{done:I=()=>{},length:N}=l;N&&(["circle","text","shape","eventRect"].forEach(L=>{const C=[];for(let V=0;V<N;V++)C.push(`.${Ue[L]}-${V}`);s.selectAll(`.${Ue[`${L}s`]}`).selectAll(C).remove()}),s.select(`.${Ue.xgrid}`).remove()),Object.keys(t).forEach(L=>{const C=t[L];if(L!=="axis.x"&&C.attr("transform",null),L==="grid.x")C.attr(i.xgridAttr);else if(L==="gridLines.x")C.attr("x1",o?0:u).attr("x2",o?i.width:u),C.select("text").attr("x",o?i.width:0).attr("y",u);else if(/^(area|bar|line)$/.test(L))C.attr("d",c.type[L]);else if(L==="text")C.attr("x",m).attr("y",S).style("fill-opacity",n.opacityForText.bind(n));else if(L==="circle")if(n.isCirclePoint())C.attr("cx",g).attr("cy",v);else{const V=Y=>g(Y)-a.point_r,H=Y=>v(Y)-a.point_r;C.attr("x",V).attr("y",H)}else L==="region.list"&&C.select("rect").filter(n.isRegionOnX).attr("x",n.regionX.bind(n)).attr("width",n.regionWidth.bind(n))}),a.interaction_enabled&&n.redrawEventRect(),I.call(n.api),i.flowing=!1},getFlowTransform(t,e,n,a){const i=this,{data:s,scale:{x:o}}=i,l=s.targets[0].values;let c=i.getValueOnIndex(l,n),u=i.getValueOnIndex(l,n+a),g;const v=o.domain(),m=i.updateXDomain(t,!0,!0);e?e===1||(c==null?void 0:c.x)===(u==null?void 0:u.x)?g=o(v[0])-o(m[0]):g=i.axis.isTimeSeries()?o(v[0])-o(m[0]):o((c==null?void 0:c.x)||0)-o(u.x):l.length!==1?g=o(v[0])-o(m[0]):i.axis.isTimeSeries()?(c=i.getValueOnIndex(l,0),u=i.getValueOnIndex(l,l.length-1),g=o(c.x)-o(u.x)):g=Lr(m)/2;const S=Lr(v)/Lr(m);return`translate(${g},0) scale(${S},1)`}},Dy={initClip(){const t=this,{clip:e,datetimeId:n}=t.state;e.id=`${n}-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(t){const e=this,{config:n}=e;return!n.clipPath&&/-clip$/.test(t)||!n.axis_x_clipPath&&/-clip-xaxis$/.test(t)||!n.axis_y_clipPath&&/-clip-yaxis$/.test(t)?null:`url(#${t})`},appendClip(t,e){e&&t.append("clipPath").attr("id",e).append("rect")},setXAxisClipPath(t){const e=this,{config:n,state:{margin:a,width:i,height:s}}=e,o=n.axis_rotated,l=Math.max(30,a.left)-(o?0:20),c=(o?a.top+s+10:a.bottom)+20,u=o?-(1+l):-(l-1),g=-15,v=o?a.left+20:i+10+l;t.attr("x",u).attr("y",g).attr("width",v).attr("height",c)},setYAxisClipPath(t){const e=this,{config:n,state:{margin:a,width:i,height:s}}=e,o=n.axis_rotated,l=Math.max(30,a.left)-(o?20:0),c=n.axis_y_inner,u=c&&!o?n.axis_y_label.text?-20:-1:o?-(1+l):-(l-1),g=-(o?20:a.top),v=(o?i+15+l:a.left+20)+(c?20:0),m=(o?a.bottom+10:a.top+s)+10;t.attr("x",u).attr("y",g).attr("width",v).attr("height",m)},updateXAxisTickClip(){const t=this,{config:e,state:{clip:n,xAxisHeight:a},$el:{defs:i}}=t,s=t.getHorizontalAxisHeight("x");if(i&&!n.idXAxisTickTexts){const o=`${n.id}-xaxisticktexts`;t.appendClip(i,o),n.pathXAxisTickTexts=t.getClipPath(n.idXAxisTickTexts),n.idXAxisTickTexts=o}!e.axis_x_tick_multiline&&t.getAxisTickRotate("x")&&s!==a&&(t.setXAxisTickClipWidth(),t.setXAxisTickTextClipPathWidth()),t.state.xAxisHeight=s},setXAxisTickClipWidth(){const t=this,{config:e,state:{current:{maxTickSize:n}}}=t,a=t.getAxisTickRotate("x");if(!e.axis_x_tick_multiline&&a){const i=Math.sin(Math.PI/180*Math.abs(a));n.x.clipPath=(t.getHorizontalAxisHeight("x")-20)/i}else n.x.clipPath=null},setXAxisTickTextClipPathWidth(){const t=this,{state:{clip:e,current:n},$el:{svg:a}}=t;a&&a.select(`#${e.idXAxisTickTexts} rect`).attr("width",n.maxTickSize.x.clipPath).attr("height",30)}};const Ny=t=>Le(t.position)||"end",Fy=t=>t.position==="start"?4:t.position==="middle"?0:-4;function Cu(t,e,n){return a=>{let i=t?0:e;return a.position==="start"?i=t?-n:0:a.position==="middle"&&(i=(t?-n:e)/2),i}}function Pu(t,e){e==="grid"&&t.each(function(){const n=st(this);["x1","x2","y1","y2"].forEach(a=>n.attr(a,Math.ceil(+n.attr(a))))})}var By={hasGrid(){const{config:t}=this;return["x","y"].some(e=>t[`grid_${e}_show`]||t[`grid_${e}_lines`].length)},initGrid(){const t=this;t.hasGrid()&&t.initGridLines(),t.initFocusGrid()},initGridLines(){const t=this,{config:e,state:{clip:n},$el:a}=t;(e.grid_x_lines.length||e.grid_y_lines.length)&&(a.gridLines.main=a.main.insert("g",`.${Se.chart}${e.grid_lines_front?" + *":""}`).attr("clip-path",n.pathGrid).attr("class",`${sn.grid} ${sn.gridLines}`),a.gridLines.main.append("g").attr("class",sn.xgridLines),a.gridLines.main.append("g").attr("class",sn.ygridLines),a.gridLines.x=Uc([]))},updateXGrid(t){const e=this,{config:n,scale:a,state:i,$el:{main:s,grid:o}}=e,l=n.axis_rotated,c=e.generateGridData(n.grid_x_type,a.x),u=e.axis.isCategorized()?e.axis.x.tickOffset():0,g=v=>(a.zoom||a.x)(v)+u*(l?-1:1);i.xgridAttr=l?{x1:0,x2:i.width,y1:g,y2:g}:{x1:g,x2:g,y1:0,y2:i.height},o.x=s.select(`.${sn.xgrids}`).selectAll(`.${sn.xgrid}`).data(c),o.x.exit().remove(),o.x=o.x.enter().append("line").attr("class",sn.xgrid).merge(o.x),t||o.x.each(function(){const v=st(this);Object.keys(i.xgridAttr).forEach(m=>{v.attr(m,i.xgridAttr[m]).style("opacity",()=>v.attr(l?"y1":"x1")===(l?i.height:0)?"0":null)})})},updateYGrid(){const t=this,{axis:e,config:n,scale:a,state:i,$el:{grid:s,main:o}}=t,l=n.axis_rotated,c=g=>Math.ceil(a.y(g)),u=e.y.getGeneratedTicks(n.grid_y_ticks)||t.scale.y.ticks(n.grid_y_ticks);s.y=o.select(`.${sn.ygrids}`).selectAll(`.${sn.ygrid}`).data(u),s.y.exit().remove(),s.y=s.y.enter().append("line").attr("class",sn.ygrid).merge(s.y),s.y.attr("x1",l?c:0).attr("x2",l?c:i.width).attr("y1",l?0:c).attr("y2",l?i.height:c),Pu(s.y,"grid")},updateGrid(){const t=this,{$el:{grid:e,gridLines:n}}=t;!n.main&&t.initGridLines(),e.main.style("visibility",t.hasArcType()?"hidden":null),t.hideGridFocus(),t.updateGridLines("x"),t.updateGridLines("y")},updateGridLines(t){const e=this,{config:n,$el:{gridLines:a,main:i},$T:s}=e,o=n.axis_rotated,l=t==="x";n[`grid_${t}_show`]&&e[`update${t.toUpperCase()}Grid`]();let c=i.select(`.${sn[`${t}gridLines`]}`).selectAll(`.${sn[`${t}gridLine`]}`).data(n[`grid_${t}_lines`]);s(c.exit()).style("opacity","0").remove();const u=c.enter().append("g");u.append("line").style("opacity","0"),c=u.merge(c),c.each(function(g){const v=st(this);v.select("text").empty()&&g.text&&v.append("text").style("opacity","0")}),s(c.attr("class",g=>`${sn[`${t}gridLine`]} ${g.class||""}`.trim()).select("text").attr("text-anchor",Ny).attr("transform",()=>l?o?null:"rotate(-90)":o?"rotate(-90)":null).attr("dx",Fy).attr("dy",-5)).text(function(g){var v;return(v=g.text)!=null?v:this.remove()}),a[t]=c},redrawGrid(t){const e=this,{config:{axis_rotated:n},state:{width:a,height:i},$el:{gridLines:s},$T:o}=e,l=e.xv.bind(e),c=e.yv.bind(e);let u=s.x.select("line"),g=s.x.select("text"),v=s.y.select("line"),m=s.y.select("text");return u=o(u,t).attr("x1",n?0:l).attr("x2",n?a:l).attr("y1",n?l:0).attr("y2",n?l:i),g=o(g,t).attr("x",Cu(!n,a,i)).attr("y",l),v=o(v,t).attr("x1",n?c:0).attr("x2",n?c:a).attr("y1",n?0:c).attr("y2",n?i:c),m=o(m,t).attr("x",Cu(n,a,i)).attr("y",c),[u.style("opacity",null),g.style("opacity",null),v.style("opacity",null),m.style("opacity",null)]},initFocusGrid(){const t=this,{config:e,state:{clip:n},$el:a}=t,i=e.grid_front,s=`.${i&&a.gridLines.main?sn.gridLines:Se.chart}${i?" + *":""}`,o=a.main.insert("g",s).attr("clip-path",n.pathGrid).attr("class",sn.grid);if(a.grid.main=o,e.grid_x_show&&o.append("g").attr("class",sn.xgrids),e.grid_y_show&&o.append("g").attr("class",sn.ygrids),e.axis_tooltip){const l=o.append("g").attr("class","bb-axis-tooltip");l.append("line").attr("class","bb-axis-tooltip-x"),l.append("line").attr("class","bb-axis-tooltip-y")}e.interaction_enabled&&e.grid_focus_show&&!e.axis_tooltip&&(o.append("g").attr("class",_e.xgridFocus).append("line").attr("class",_e.xgridFocus),e.grid_focus_y&&!e.tooltip_grouped&&o.append("g").attr("class",_e.ygridFocus).append("line").attr("class",_e.ygridFocus))},showAxisGridFocus(){var t,e;const n=this,{config:a,format:i,state:{event:s,width:o,height:l}}=n,c=a.axis_rotated,[u,g]=Hn(s,(t=n.$el.eventRect)==null?void 0:t.node()),v={x:u,y:g};for(const[m,S]of Object.entries(n.$el.axisTooltip)){const I=m==="x"&&!c||m!=="x"&&c?"x":"y",N=v[I];let L=(e=n.scale[m])==null?void 0:e.invert(N);L&&(L=m==="x"&&n.axis.isTimeSeries()?i.xAxisTick(L):L==null?void 0:L.toFixed(2),S==null||S.attr(I,N).text(L))}n.$el.main.selectAll("line.bb-axis-tooltip-x, line.bb-axis-tooltip-y").style("visibility",null).each(function(m,S){const I=st(this);S===0?I.attr("x1",u).attr("x2",u).attr("y1",S?0:l).attr("y2",S?l:0):I.attr("x1",S?0:o).attr("x2",S?o:0).attr("y1",g).attr("y2",g)})},hideAxisGridFocus(){const t=this;t.$el.main.selectAll("line.bb-axis-tooltip-x, line.bb-axis-tooltip-y").style("visibility","hidden"),Object.values(t.$el.axisTooltip).forEach(e=>e==null?void 0:e.style("display","none"))},showGridFocus(t){var e;const n=this,{config:a,state:{width:i,height:s}}=n,o=a.axis_rotated,l=n.$el.main.selectAll(`line.${_e.xgridFocus}, line.${_e.ygridFocus}`),c=(t||[l.datum()]).filter(v=>v&&Le(n.getBaseValue(v)));if(!a.tooltip_show||c.length===0||!a.axis_x_forceAsSingle&&n.hasType("bubble")||n.hasArcType())return;const u=a.grid_focus_edge&&!a.tooltip_grouped,g=n.xx.bind(n);l.style("visibility",null).data(c.concat(c)).each(function(v){const m=st(this),S={x:g(v),y:n.getYScaleById(v.id)(v.value)};let I;if(m.classed(_e.xgridFocus))I=o?[null,S.x,u?S.y:i,S.x]:[S.x,u?S.y:null,S.x,s];else{const N=n.axis.getId(v.id)==="y2";I=o?[S.y,u&&!N?S.x:null,S.y,u&&N?S.x:s]:[u&&N?S.x:null,S.y,u&&!N?S.x:i,S.y]}["x1","y1","x2","y2"].forEach((N,L)=>m.attr(N,I[L]))}),Pu(l,"grid"),(e=n.showCircleFocus)==null||e.call(n,t)},hideGridFocus(){var t;const e=this,{state:{inputType:n,resizing:a},$el:{main:i}}=e;(n==="mouse"||!a)&&(i.selectAll(`line.${_e.xgridFocus}, line.${_e.ygridFocus}`).style("visibility","hidden"),(t=e.hideCircleFocus)==null||t.call(e))},updateGridFocus(){var t;const e=this,{state:{inputType:n,width:a,height:i,resizing:s},$el:{grid:o}}=e,l=o.main.select(`line.${_e.xgridFocus}`);if(n==="touch")l.empty()?s&&((t=e.showCircleFocus)==null||t.call(e)):e.showGridFocus();else{const c=e.config.axis_rotated;l.attr("x1",c?0:-10).attr("x2",c?a:-10).attr("y1",c?-10:0).attr("y2",c?-10:i)}return!0},generateGridData(t,e){const n=this,a=n.$el.main.select(`.${dn.axisX}`).selectAll(".tick").size();let i=[];if(t==="year"){const s=n.getXDomain(),[o,l]=s.map(c=>c.getFullYear());for(let c=o;c<=l;c++)i.push(new Date(`${c}-01-01 00:00:00`))}else i=e.ticks(10),i.length>a&&(i=i.filter(s=>String(s).indexOf(".")<0));return i},getGridFilterToRemove(t){return t?e=>{let n=!1;return(ze(t)?t.concat():[t]).forEach(a=>{("value"in a&&e.value===a.value||"class"in a&&e.class===a.class)&&(n=!0)}),n}:()=>!0},removeGridLines(t,e){const n=this,{config:a,$T:i}=n,s=n.getGridFilterToRemove(t),o=g=>!s(g),l=e?sn.xgridLines:sn.ygridLines,c=e?sn.xgridLine:sn.ygridLine;i(n.$el.main.select(`.${l}`).selectAll(`.${c}`).filter(s)).style("opacity","0").remove();const u=`grid_${e?"x":"y"}_lines`;a[u]=a[u].filter(o)}},Uy={initRegion(){const t=this,{$el:e}=t;e.region.main=e.main.insert("g",":first-child").attr("clip-path",t.state.clip.path).attr("class",$a.regions)},updateRegion(){const t=this,{config:e,$el:{region:n},$T:a}=t;n.main||t.initRegion(),n.main.style("visibility",t.hasArcType()?"hidden":null);const i=n.main.selectAll(`.${$a.region}`).data(e.regions);a(i.exit()).style("opacity","0").remove();const s=i.enter().append("g");s.append("rect").style("fill-opacity","0"),n.list=s.merge(i).attr("class",t.classRegion.bind(t)),n.list.each(function(o){var l;st(this).select("text").empty()&&((l=o.label)!=null&&l.text)&&st(this).append("text").style("opacity","0")})},redrawRegion(t){const e=this,{$el:{region:n},$T:a}=e;let i=n.list.select("rect"),s=n.list.selectAll("text");return i=a(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)),s=a(s,t).attr("transform",o=>{var l;const{x:c=0,y:u=0,rotated:g=!1}=(l=o.label)!=null?l:{};return`translate(${e.regionX.bind(e)(o)+c}, ${e.regionY.bind(e)(o)+u})${g?" rotate(-90)":""}`}).attr("text-anchor",o=>{var l;return(l=o.label)!=null&&l.rotated?"end":null}).attr("dy","1em").style("fill",o=>{var l,c;return(c=(l=o.label)==null?void 0:l.color)!=null?c:null}).text(o=>{var l;return(l=o.label)==null?void 0:l.text}),[i.style("fill-opacity",o=>Le(o.opacity)?o.opacity:null).on("end",function(){st(this.parentNode).selectAll("rect:not([x])").remove()}),s.style("opacity",null)]},getRegionXY(t,e){const n=this,{config:a,scale:i}=n,s=a.axis_rotated,o=t==="x";let l="start",c,u=0;return e.axis==="y"||e.axis==="y2"?(o||(l="end"),(o?s:!s)&&l in e&&(c=i[e.axis],u=c(e[l]))):(o?!s:s)&&l in e&&(c=i.zoom||i.x,u=c(n.axis.isTimeSeries()?zn.call(n,e[l]):e[l])),u},regionX(t){return this.getRegionXY("x",t)},regionY(t){return this.getRegionXY("y",t)},getRegionSize(t,e){const n=this,{config:a,scale:i,state:s}=n,o=a.axis_rotated,l=t==="width",c=n[l?"regionX":"regionY"](e);let u,g="end",v=s[t];return e.axis==="y"||e.axis==="y2"?(l||(g="start"),(l?o:!o)&&g in e&&(u=i[e.axis],v=u(e[g]))):(l?!o:o)&&g in e&&(u=i.zoom||i.x,v=u(n.axis.isTimeSeries()?zn.call(n,e[g]):e[g])),v<c?0:v-c},regionWidth(t){return this.getRegionSize("width",t)},regionHeight(t){return this.getRegionSize("height",t)},isRegionOnX(t){return!t.axis||t.axis==="x"}},zy={getAxisSize(t){const e=this,n=e.config.axis_rotated;return n&&t==="x"||!n&&/y2?/.test(t)?e.getAxisWidthByAxisId(t,!0):e.getHorizontalAxisHeight(t)},getAxisWidthByAxisId(t,e){var n,a;const i=this;if(i.axis){const s=(n=i.axis)==null?void 0:n.getLabelPositionById(t),{width:o}=i.axis.getMaxTickSize(t,e),l=o===0?.5:0;return o+(((a=i.config.padding)==null?void 0:a.mode)==="fit"?s.isInner?10+l:10:s.isInner?20+l:40)}else return 40},getHorizontalAxisHeight(t){var e,n;const a=this,{config:i,state:s}=a,{rotatedPadding:o,isLegendRight:l,isLegendInset:c}=s,u=i.axis_rotated,g=((e=i.padding)==null?void 0:e.mode)==="fit",v=i[`axis_${t}_inner`],m=i[`axis_${t}_label`].text,S=13;let I=((n=i.padding)==null?void 0:n.mode)==="fit"?v&&!m?t==="y"?1:0:20:30;if(t==="x"&&!i.axis_x_show)return 8;if(t==="x"&&ge(i.axis_x_height))return i.axis_x_height;if(t==="y"&&!i.axis_y_show)return i.legend_show&&!l&&!c?10:1;if(t==="y2"&&!i.axis_y2_show)return g?0:o.top;const N=a.axis.getMaxTickSize(t),L=Math.abs(i.axis_x_tick_rotate)>0&&(!i.axis_x_tick_autorotate||a.needToRotateXAxisTickTexts());return(i.axis_x_tick_multiline||L)&&N.height>S&&(I+=N.height-S),I+(a.axis.getLabelPositionById(t).isInner?0:10)+(t==="y2"&&!u?-10:0)},getEventRectWidth(){const t=this,{config:e,axis:n}=t,a=e.axis_x_inverted,i=n.x.tickInterval();return Math.max(0,a?Math.abs(i):i)},getAxisTickRotate(t){const e=this,{axis:n,config:a,state:i,$el:s}=e;let o=a[`axis_${t}_tick_rotate`];if(t==="x"){const l=n.isCategorized()||n.isTimeSeries();if(a.axis_x_tick_fit&&l){const c=a.axis_x_tick_count,u=i.current.maxTickSize.x.ticks.length;let g=0;if(c?g=c>u?u:c:u&&(g=u),g!==i.axis.x.tickCount){const{targets:v}=e.data;i.axis.x.padding=e.getXDomainPadding([e.getXDomainMinMax(v,"min"),e.getXDomainMinMax(v,"max")],g)}i.axis.x.tickCount=g}s.svg&&a.axis_x_tick_autorotate&&a.axis_x_tick_fit&&!a.axis_x_tick_multiline&&!a.axis_x_tick_culling&&l&&(o=e.needToRotateXAxisTickTexts()?a.axis_x_tick_rotate:0)}return o},needToRotateXAxisTickTexts(){const t=this,{state:{axis:e,current:n,isLegendRight:a,legendItemWidth:i}}=t,s=a&&i,o=n.width-s-t.getCurrentPaddingByDirection("left")-t.getCurrentPaddingByDirection("right"),l=e.x.tickCount+e.x.padding.left+e.x.padding.right,{width:c}=t.axis.getMaxTickSize("x"),u=l?o/l:0;return c>u}},jy={axis_x_clipPath:!0,axis_x_show:!0,axis_x_forceAsSingle:!1,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_culling_lines:!0,axis_x_tick_count:void 0,axis_x_tick_show:!0,axis_x_tick_text_show:!0,axis_x_tick_text_inner:!1,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_inverted:!1,axis_x_padding:{},axis_x_height:void 0,axis_x_extent:void 0,axis_x_label:{},axis_x_axes:[]},Gy={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_culling_lines:!0,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:[]},Vy={axis_y2_clipPath:!0,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_culling_lines:!0,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:[]},Xy=Object.defineProperty,wu=Object.getOwnPropertySymbols,Yy=Object.prototype.hasOwnProperty,Hy=Object.prototype.propertyIsEnumerable,Mu=(t,e,n)=>e in t?Xy(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,To=(t,e)=>{for(var n in e||(e={}))Yy.call(e,n)&&Mu(t,n,e[n]);if(wu)for(var n of wu(e))Hy.call(e,n)&&Mu(t,n,e[n]);return t},Wy=To(To(To({axis_evalTextSize:!0,axis_rotated:!1,axis_tooltip:!1},jy),Gy),Vy),Ky={grid_x_show:!1,grid_x_type:"tick",grid_x_lines:[],grid_y_show:!1,grid_y_lines:[],grid_y_ticks:void 0,grid_focus_edge:!1,grid_focus_show:!0,grid_focus_y:!1,grid_front:!1,grid_lines_front:!0},Zy={data_xs:{},data_xFormat:"%Y-%m-%d",data_xLocaltime:!0,data_xSort:!0,data_axes:{},data_regions:{},data_stack_normalize:!1};const ky=[oy,ly,cy,uy,fy,dy,hy],Lu={axis:Cy,clip:Dy,eventrect:wy,flow:Ly,grid:By,region:Uy,sizeAxis:zy},Du={optDataAxis:Zy,optAxis:Wy,optGrid:Ky};var O1=Array.prototype.slice;function $o(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function De(t){return function(){return t}}function Jy(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function Qy(t){return t}function _y(){var t=Qy,e=Jy,n=null,a=De(0),i=De(Ui),s=De(0);function o(l){var c,u=(l=$o(l)).length,g,v,m=0,S=new Array(u),I=new Array(u),N=+a.apply(this,arguments),L=Math.min(Ui,Math.max(-Ui,i.apply(this,arguments)-N)),C,V=Math.min(Math.abs(L)/u,s.apply(this,arguments)),H=V*(L<0?-1:1),Y;for(c=0;c<u;++c)(Y=I[S[c]=c]=+t(l[c],c,l))>0&&(m+=Y);for(e!=null?S.sort(function(_,K){return e(I[_],I[K])}):n!=null&&S.sort(function(_,K){return n(l[_],l[K])}),c=0,v=m?(L-u*H)/m:0;c<u;++c,N=C)g=S[c],Y=I[g],C=N+(Y>0?Y*v:0)+H,I[g]={data:l[g],index:c,value:Y,startAngle:N,endAngle:C,padAngle:V};return I}return o.value=function(l){return arguments.length?(t=typeof l=="function"?l:De(+l),o):t},o.sortValues=function(l){return arguments.length?(e=l,n=null,o):e},o.sort=function(l){return arguments.length?(n=l,e=null,o):n},o.startAngle=function(l){return arguments.length?(a=typeof l=="function"?l:De(+l),o):a},o.endAngle=function(l){return arguments.length?(i=typeof l=="function"?l:De(+l),o):i},o.padAngle=function(l){return arguments.length?(s=typeof l=="function"?l:De(+l),o):s},o}var qy=Math.pow;const So=Math.PI,Ao=2*So,Vr=1e-6,tx=Ao-Vr;function Nu(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function ex(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Nu;const n=qy(10,e);return function(a){this._+=a[0];for(let i=1,s=a.length;i<s;++i)this._+=Math.round(arguments[i]*n)/n+a[i]}}class Hi{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?Nu:ex(e)}moveTo(e,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,n){this._append`L${this._x1=+e},${this._y1=+n}`}quadraticCurveTo(e,n,a,i){this._append`Q${+e},${+n},${this._x1=+a},${this._y1=+i}`}bezierCurveTo(e,n,a,i,s,o){this._append`C${+e},${+n},${+a},${+i},${this._x1=+s},${this._y1=+o}`}arcTo(e,n,a,i,s){if(e=+e,n=+n,a=+a,i=+i,s=+s,s<0)throw new Error(`negative radius: ${s}`);let o=this._x1,l=this._y1,c=a-e,u=i-n,g=o-e,v=l-n,m=g*g+v*v;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(m>Vr)if(!(Math.abs(v*c-u*g)>Vr)||!s)this._append`L${this._x1=e},${this._y1=n}`;else{let S=a-o,I=i-l,N=c*c+u*u,L=S*S+I*I,C=Math.sqrt(N),V=Math.sqrt(m),H=s*Math.tan((So-Math.acos((N+m-L)/(2*C*V)))/2),Y=H/V,_=H/C;Math.abs(Y-1)>Vr&&this._append`L${e+Y*g},${n+Y*v}`,this._append`A${s},${s},0,0,${+(v*S>g*I)},${this._x1=e+_*c},${this._y1=n+_*u}`}}arc(e,n,a,i,s,o){if(e=+e,n=+n,a=+a,o=!!o,a<0)throw new Error(`negative radius: ${a}`);let l=a*Math.cos(i),c=a*Math.sin(i),u=e+l,g=n+c,v=1^o,m=o?i-s:s-i;this._x1===null?this._append`M${u},${g}`:(Math.abs(this._x1-u)>Vr||Math.abs(this._y1-g)>Vr)&&this._append`L${u},${g}`,a&&(m<0&&(m=m%Ao+Ao),m>tx?this._append`A${a},${a},0,1,${v},${e-l},${n-c}A${a},${a},0,1,${v},${this._x1=u},${this._y1=g}`:m>Vr&&this._append`A${a},${a},0,${+(m>=So)},${v},${this._x1=e+a*Math.cos(s)},${this._y1=n+a*Math.sin(s)}`)}rect(e,n,a,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${a=+a}v${+i}h${-a}Z`}toString(){return this._}}function nx(){return new Hi}nx.prototype=Hi.prototype;function I1(t=3){return new Hi(+t)}function bo(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const a=Math.floor(n);if(!(a>=0))throw new RangeError(`invalid digits: ${n}`);e=a}return t},()=>new Hi(e)}function rx(t){return t.innerRadius}function ax(t){return t.outerRadius}function ix(t){return t.startAngle}function sx(t){return t.endAngle}function ox(t){return t&&t.padAngle}function lx(t,e,n,a,i,s,o,l){var c=n-t,u=a-e,g=o-i,v=l-s,m=v*c-g*u;if(!(m*m<En))return m=(g*(e-s)-v*(t-i))/m,[t+m*c,e+m*u]}function Wi(t,e,n,a,i,s,o){var l=t-n,c=e-a,u=(o?s:-s)/sa(l*l+c*c),g=u*c,v=-u*l,m=t+g,S=e+v,I=n+g,N=a+v,L=(m+I)/2,C=(S+N)/2,V=I-m,H=N-S,Y=V*V+H*H,_=i-s,K=m*N-I*S,at=(H<0?-1:1)*sa(tm(0,_*_*Y-K*K)),mt=(K*H-V*at)/Y,St=(-K*V-H*at)/Y,dt=(K*H+V*at)/Y,lt=(-K*V+H*at)/Y,Gt=mt-L,gt=St-C,Z=dt-L,$t=lt-C;return Gt*Gt+gt*gt>Z*Z+$t*$t&&(mt=dt,St=lt),{cx:mt,cy:St,x01:-g,y01:-v,x11:mt*(i/_-1),y11:St*(i/_-1)}}function Fu(){var t=rx,e=ax,n=De(0),a=null,i=ix,s=sx,o=ox,l=null,c=bo(u);function u(){var g,v,m=+t.apply(this,arguments),S=+e.apply(this,arguments),I=i.apply(this,arguments)-Bi,N=s.apply(this,arguments)-Bi,L=Yc(N-I),C=N>I;if(l||(l=g=c()),S<m&&(v=S,S=m,m=v),!(S>En))l.moveTo(0,0);else if(L>Ui-En)l.moveTo(S*jr(I),S*rr(I)),l.arc(0,0,S,I,N,!C),m>En&&(l.moveTo(m*jr(N),m*rr(N)),l.arc(0,0,m,N,I,C));else{var V=I,H=N,Y=I,_=N,K=L,at=L,mt=o.apply(this,arguments)/2,St=mt>En&&(a?+a.apply(this,arguments):sa(m*m+S*S)),dt=uo(Yc(S-m)/2,+n.apply(this,arguments)),lt=dt,Gt=dt,gt,Z;if(St>En){var $t=Hc(St/m*rr(mt)),ct=Hc(St/S*rr(mt));(K-=$t*2)>En?($t*=C?1:-1,Y+=$t,_-=$t):(K=0,Y=_=(I+N)/2),(at-=ct*2)>En?(ct*=C?1:-1,V+=ct,H-=ct):(at=0,V=H=(I+N)/2)}var At=S*jr(V),Vt=S*rr(V),Bt=m*jr(_),Kt=m*rr(_);if(dt>En){var ne=S*jr(H),le=S*rr(H),Ee=m*jr(Y),Ie=m*rr(Y),Ce;if(L<Na)if(Ce=lx(At,Vt,Ee,Ie,ne,le,Bt,Kt)){var Ye=At-Ce[0],Fe=Vt-Ce[1],hn=ne-Ce[0],kt=le-Ce[1],xe=1/rr(em((Ye*hn+Fe*kt)/(sa(Ye*Ye+Fe*Fe)*sa(hn*hn+kt*kt)))/2),Re=sa(Ce[0]*Ce[0]+Ce[1]*Ce[1]);lt=uo(dt,(m-Re)/(xe-1)),Gt=uo(dt,(S-Re)/(xe+1))}else lt=Gt=0}at>En?Gt>En?(gt=Wi(Ee,Ie,At,Vt,S,Gt,C),Z=Wi(ne,le,Bt,Kt,S,Gt,C),l.moveTo(gt.cx+gt.x01,gt.cy+gt.y01),Gt<dt?l.arc(gt.cx,gt.cy,Gt,bn(gt.y01,gt.x01),bn(Z.y01,Z.x01),!C):(l.arc(gt.cx,gt.cy,Gt,bn(gt.y01,gt.x01),bn(gt.y11,gt.x11),!C),l.arc(0,0,S,bn(gt.cy+gt.y11,gt.cx+gt.x11),bn(Z.cy+Z.y11,Z.cx+Z.x11),!C),l.arc(Z.cx,Z.cy,Gt,bn(Z.y11,Z.x11),bn(Z.y01,Z.x01),!C))):(l.moveTo(At,Vt),l.arc(0,0,S,V,H,!C)):l.moveTo(At,Vt),!(m>En)||!(K>En)?l.lineTo(Bt,Kt):lt>En?(gt=Wi(Bt,Kt,ne,le,m,-lt,C),Z=Wi(At,Vt,Ee,Ie,m,-lt,C),l.lineTo(gt.cx+gt.x01,gt.cy+gt.y01),lt<dt?l.arc(gt.cx,gt.cy,lt,bn(gt.y01,gt.x01),bn(Z.y01,Z.x01),!C):(l.arc(gt.cx,gt.cy,lt,bn(gt.y01,gt.x01),bn(gt.y11,gt.x11),!C),l.arc(0,0,m,bn(gt.cy+gt.y11,gt.cx+gt.x11),bn(Z.cy+Z.y11,Z.cx+Z.x11),C),l.arc(Z.cx,Z.cy,lt,bn(Z.y11,Z.x11),bn(Z.y01,Z.x01),!C))):l.arc(0,0,m,_,Y,C)}if(l.closePath(),g)return l=null,g+""||null}return u.centroid=function(){var g=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,v=(+i.apply(this,arguments)+ +s.apply(this,arguments))/2-Na/2;return[jr(v)*g,rr(v)*g]},u.innerRadius=function(g){return arguments.length?(t=typeof g=="function"?g:De(+g),u):t},u.outerRadius=function(g){return arguments.length?(e=typeof g=="function"?g:De(+g),u):e},u.cornerRadius=function(g){return arguments.length?(n=typeof g=="function"?g:De(+g),u):n},u.padRadius=function(g){return arguments.length?(a=g==null?null:typeof g=="function"?g:De(+g),u):a},u.startAngle=function(g){return arguments.length?(i=typeof g=="function"?g:De(+g),u):i},u.endAngle=function(g){return arguments.length?(s=typeof g=="function"?g:De(+g),u):s},u.padAngle=function(g){return arguments.length?(o=typeof g=="function"?g:De(+g),u):o},u.context=function(g){return arguments.length?(l=g==null?null:g,u):l},u}var cx=Object.defineProperty,ux=Object.defineProperties,fx=Object.getOwnPropertyDescriptors,Bu=Object.getOwnPropertySymbols,dx=Object.prototype.hasOwnProperty,hx=Object.prototype.propertyIsEnumerable,Uu=(t,e,n)=>e in t?cx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,gx=(t,e)=>{for(var n in e||(e={}))dx.call(e,n)&&Uu(t,n,e[n]);if(Bu)for(var n of Bu(e))hx.call(e,n)&&Uu(t,n,e[n]);return t},vx=(t,e)=>ux(t,fx(e));function zu(t=0){const e=this,{config:n,state:a}=e,i=e.hasMultiArcGauge(),s=a.gaugeArcWidth/e.filterTargetsToShow(e.data.targets).length,o=t?Math.min(a.radiusExpanded*t-a.radius,s*.8-(1-t)*100):0;return{inner(l){const{innerRadius:c}=e.getRadius(l);return i?a.radius-s*(l.index+1):ge(c)?c:0},outer(l){const{outerRadius:c}=e.getRadius(l);let u;if(i)u=a.radius-s*l.index+o;else if(e.hasType("polar")&&!t)u=e.getPolarOuterRadius(l,c);else if(u=c,t){let{radiusExpanded:g}=a;a.radius!==c&&(g-=Math.abs(a.radius-c)),u=g*t}return u},corner(l,c){const{arc_cornerRadius_ratio:u=0,arc_cornerRadius:g=0}=n,{data:{id:v},value:m}=l;let S=0;return u?S=u*c:S=ge(g)?g:g.call(e.api,v,m,c),S}}}function Eo(t){return function(e){const n=({startAngle:i=0,endAngle:s=0,padAngle:o=0})=>({startAngle:i,endAngle:s,padAngle:o}),a=Jr(n(this._current),n(e));return this._current=e,function(i){const s=a(i),{data:o,index:l,value:c}=e;return t(vx(gx({},s),{data:o,index:l,value:c}))}}}var px={initPie(){const t=this,{config:e}=t,n=e.data_type,a=e[`${n}_padding`],i=e[`${n}_startingAngle`]||0,s=(a?a*.01:e[`${n}_padAngle`])||0;t.pie=_y().startAngle(i).endAngle(i+2*Math.PI).padAngle(s).value(o=>{var l,c;return(c=(l=o.values)==null?void 0:l.reduce((u,g)=>u+g.value,0))!=null?c:o}).sort(t.getSortCompareFn.bind(t)(!0))},updateRadius(){const t=this,{config:e,state:n}=t,a=e.data_type,i=e[`${a}_padding`],s=e.gauge_width||e.donut_width,o=t.filterTargetsToShow(t.data.targets).length*e.gauge_arcs_minWidth;n.radiusExpanded=Math.min(n.arcWidth,n.arcHeight)/2*(t.hasMultiArcGauge()&&e.gauge_label_show?.85:1),n.radius=n.radiusExpanded*.95,n.innerRadiusRatio=s?(n.radius-s)/n.radius:.6,n.gaugeArcWidth=s||(o<=n.radius-n.innerRadius?n.radius-n.innerRadius:o<=n.radius?o:n.radius);const l=e.pie_innerRadius||(i?i*(n.innerRadiusRatio+.1):0);n.outerRadius=e.pie_outerRadius,n.innerRadius=t.hasType("donut")||t.hasType("gauge")?n.radius*n.innerRadiusRatio:l},getRadius(t){const e=this,n=t==null?void 0:t.data;let{innerRadius:a,outerRadius:i}=e.state;return!ge(a)&&n&&(a=a[n.id]||0),Be(i)&&n&&n.id in i?i=i[n.id]:ge(i)||(i=e.state.radius),{innerRadius:a,outerRadius:i}},updateArc(){const t=this;t.updateRadius(),t.svgArc=t.getSvgArc(),t.svgArcExpanded=t.getSvgArcExpanded()},getArcLength(){const t=this,{config:e}=t,n=e.gauge_arcLength*3.6;let a=2*(n/360);return n<-360?a=-2:n>360&&(a=2),a*Math.PI},getStartingAngle(){const t=this,{config:e}=t,n=e.data_type,a=t.hasType("gauge")?e.gauge_fullCircle:!1,i=-1*Math.PI/2,s=Math.PI/2;let o=e[`${n}_startingAngle`]||0;return!a&&o<=i?o=i:!a&&o>=s?o=s:(o>Math.PI||o<-1*Math.PI)&&(o=Math.PI),o},updateAngle(t,e=!1){var n;const a=this,{config:i,state:s}=a,o=e&&a.hasType("gauge");let{pie:l}=a,c=t,u=!1;if(!i)return null;const g=a.getStartingAngle(),v=i.gauge_fullCircle||e&&!o?a.getArcLength():g*-2;if(c.data&&a.isGaugeType(c.data)&&!a.hasMultiArcGauge()){const{gauge_min:m,gauge_max:S}=i,I=a.getTotalDataSum(s.rendered),N=v*((I-m)/(S-m));l=l.startAngle(g).endAngle(N+g)}if(e===!1&&l(a.filterTargetsToShow()).forEach((m,S)=>{var I;!u&&m.data.id===((I=c.data)==null?void 0:I.id)&&(u=!0,c=m,c.index=S)}),isNaN(c.startAngle)&&(c.startAngle=0),isNaN(c.endAngle)&&(c.endAngle=c.startAngle),e||c.data&&(i.gauge_enforceMinMax||a.hasMultiArcGauge())){const{gauge_min:m,gauge_max:S}=i,I=e&&!o?a.getTotalDataSum(s.rendered):S,N=v/(I-m),L=(n=c.value)!=null?n:0,C=L<m?0:L<I?L-m:I-m;c.startAngle=g,c.endAngle=g+N*C}return u||e?c:null},getSvgArc(){const t=this,{inner:e,outer:n,corner:a}=zu.call(t),i=Fu().innerRadius(e).outerRadius(n),s=function(o,l){var c;let u="M 0 0";if(o.value||o.data){const g=l?o:(c=t.updateAngle(o))!=null?c:null;g&&(u=i.cornerRadius(a(g,n(g)))(g))}return u};return s.centroid=i.centroid,s},getSvgArcExpanded(t=1){const e=this,{inner:n,outer:a,corner:i}=zu.call(e,t),s=Fu().innerRadius(n).outerRadius(a);return o=>{const l=e.updateAngle(o),c=a(l);let u=0;return l&&(u=i(l,c)),l?s.cornerRadius(u)(l):"M 0 0"}},getArc(t,e,n){return n||this.isArcType(t.data)?this.svgArc(t,e):"M 0 0"},redrawArcRangeText(){const t=this,{config:e,$el:{arcs:n},state:a,$T:i}=t,s=e.arc_rangeText_format,o=t.hasType("gauge")&&e.arc_rangeText_fixed;let l=e.arc_rangeText_values;if(l!=null&&l.length){const c=e.arc_rangeText_unit==="%",u=t.getTotalDataSum(a.rendered);c&&(l=l.map(m=>u/100*m));const g=t.pie(l).map((m,S)=>(m.index=S,m));let v=n.selectAll(`.${je.arcRange}`).data(l);v.exit(),v=i(v.enter().append("text").attr("class",je.arcRange).style("text-anchor","middle").style("pointer-events","none").style("opacity","0").text(m=>{const S=c?m/u*100:m;return he(s)?s(S):`${S}${c?"%":""}`}).merge(v)),(!a.rendered||a.rendered&&!o)&&u>0&&v.attr("transform",(m,S)=>t.transformForArcLabel(g[S],!0)),v.style("opacity",m=>!o&&(m>u||u===0)?"0":null)}},transformForArcLabel(t,e=!1){var n,a,i;const s=this,{config:o,state:{radiusExpanded:l}}=s,c=s.updateAngle(t,e);let u="";if(c){if(e||s.hasMultiArcGauge()){const g=Math.sin(c.endAngle-Math.PI/2),v=o.arc_rangeText_position;let m=Math.cos(c.endAngle-Math.PI/2)*(l+(e?5:25)),S=g*(l+15-Math.abs(g*10))+3;if(e&&v){const I=o.arc_rangeText_values,N=he(v)?v(I[t.index]):v;m+=(n=N==null?void 0:N.x)!=null?n:0,S+=(a=N==null?void 0:N.y)!=null?a:0}u=`translate(${m},${S})`}else if(!s.hasType("gauge")||s.data.targets.length>1){let{outerRadius:g}=s.getRadius(t);s.hasType("polar")&&(g=s.getPolarOuterRadius(t,g));const v=this.svgArc.centroid(c),[m,S]=v.map(L=>isNaN(L)?0:L),I=Math.sqrt(m*m+S*S);let N=(i=["donut","gauge","pie","polar"].filter(s.hasType.bind(s)).map(L=>o[`${L}_label_ratio`]))==null?void 0:i[0];N?N=he(N)?N.bind(s.api)(t,g,I):N:N=g&&(I?(36/g>.375?1.175-36/g:.8)*g/I:0),u=`translate(${m*N},${S*N})`}}return u},convertToArcData(t){return this.addName({id:"data"in t?t.data.id:t.id,value:t.value,ratio:this.getRatio("arc",t),index:t.index})},textForArcLabel(t){const e=this,n=e.hasType("gauge");e.shouldShowArcLabel()&&t.style("fill",e.updateTextColor.bind(e)).attr("filter",a=>e.updateTextBGColor.bind(e)(a,e.config.data_labels_backgroundColors)).each(function(a){var i;const s=st(this),o=e.updateAngle(a),l=e.getRatio("arc",o);if(e.meetsLabelThreshold(l,(i=["donut","gauge","pie","polar"].filter(e.hasType.bind(e)))==null?void 0:i[0])){const{value:u}=o||a,g=(e.getArcLabelFormat()||e.defaultArcValueFormat)(u,l,a.data.id).toString();wa(s,g,[-1,1],n)}else s.text("")})},expandArc(t){const e=this,{state:{transiting:n},$el:a}=e;if(n){const s=setInterval(()=>{n||(clearInterval(s),a.legend.selectAll(`.${_e.legendItemFocused}`).size()>0&&e.expandArc(t))},10);return}const i=e.mapToTargetIds(t);a.svg.selectAll(e.selectorTargets(i,`.${je.chartArc}`)).each(function(s){if(!e.shouldExpand(s.data.id))return;const o=e.getExpandConfig(s.data.id,"duration"),l=e.getSvgArcExpanded(e.getExpandConfig(s.data.id,"rate"));st(this).selectAll("path").transition().duration(o).attrTween("d",Eo(e.svgArcExpanded.bind(e))).transition().duration(o*2).attrTween("d",Eo(l.bind(e)))})},unexpandArc(t){const e=this,{state:{transiting:n},$el:{svg:a}}=e;if(n)return;const i=e.mapToTargetIds(t);a.selectAll(e.selectorTargets(i,`.${je.chartArc}`)).selectAll("path").transition().duration(s=>e.getExpandConfig(s.data.id,"duration")).attrTween("d",Eo(e.svgArc.bind(e))),a.selectAll(`${je.arc}`).style("opacity",null)},getExpandConfig(t,e){const n=this,{config:a}=n,i={duration:50,rate:.98};let s;return n.isDonutType(t)?s="donut":n.isGaugeType(t)?s="gauge":n.isPieType(t)&&(s="pie"),s?a[`${s}_expand_${e}`]:i[e]},shouldExpand(t){const e=this,{config:n}=e;return e.isDonutType(t)&&n.donut_expand||e.isGaugeType(t)&&n.gauge_expand||e.isPieType(t)&&n.pie_expand},shouldShowArcLabel(){const t=this,{config:e}=t;return["donut","gauge","pie","polar"].some(n=>t.hasType(n)&&e[`${n}_label_show`])},getArcLabelFormat(){const t=this,{config:e}=t;let n=a=>a;return["donut","gauge","pie","polar"].filter(t.hasType.bind(t)).forEach(a=>{n=e[`${a}_label_format`]}),he(n)?n.bind(t.api):n},updateTargetsForArc(t){const e=this,{$el:n}=e,a=e.hasType("gauge"),i=e.getChartClass("Arc"),s=e.getClass("arcs",!0),o=e.classFocus.bind(e),l=n.main.select(`.${je.chartArcs}`),c=l.selectAll(`.${je.chartArc}`).data(e.pie(t)).attr("class",g=>i(g)+o(g.data)),u=c.enter().append("g").attr("class",i).call(this.setCssRule(!1,`.${je.chartArcs} text`,["pointer-events:none","text-anchor:middle"]));u.append("g").attr("class",s).merge(c),u.append("text").attr("dy",a&&!e.hasMultiTargets()?"-.1em":".35em").style("opacity","0").style("text-anchor",e.getStylePropValue("middle")).style("pointer-events",e.getStylePropValue("none")),n.text=l.selectAll(`.${Se.target} text`)},initArc(){const t=this,{$el:e}=t;e.arcs=e.main.select(`.${Se.chart}`).append("g").attr("class",je.chartArcs).attr("transform",t.getTranslate("arc")),t.setArcTitle()},setArcTitle(t){const e=this,n=t||e.getArcTitle(),a=e.hasType("gauge");if(n){const i=a?Un.chartArcsGaugeTitle:je.chartArcsTitle;let s=e.$el.arcs.select(`.${i}`);s.empty()&&(s=e.$el.arcs.append("text").attr("class",i).style("text-anchor","middle")),a&&s.attr("dy","-0.3em"),wa(s,n,a?void 0:[-.6,1.35],!0)}},getArcTitle(){const t=this,e=t.hasType("donut")&&"donut"||t.hasType("gauge")&&"gauge";return e?t.config[`${e}_title`]:""},getArcTitleWithNeedleValue(){const t=this,{config:e,state:n}=t,a=t.getArcTitle();if(a&&t.config.arc_needle_show&&/{=[A-Z_]+}/.test(a)){let i=n.current.needle;return ge(i)||(i=e.arc_needle_value),bi(a,{NEEDLE_VALUE:ge(i)?i:0})}return!1},redrawArc(t,e,n){const a=this,{config:i,state:s,$el:{main:o}}=a,l=i.interaction_enabled,c=l&&i.data_selection_isselectable;let u=o.selectAll(`.${je.arcs}`).selectAll(`.${je.arc}`).data(a.arcData.bind(a));u.exit().transition().duration(e).style("opacity","0").remove(),u=u.enter().append("path").attr("class",a.getClass("arc",!0)).style("fill",g=>a.color(g.data)).style("cursor",g=>{var v;return(v=c==null?void 0:c.bind)!=null&&v.call(c,a.api)(g)?"pointer":null}).style("opacity","0").each(function(g){a.isGaugeType(g.data)&&(g.startAngle=i.gauge_startingAngle,g.endAngle=i.gauge_startingAngle),this._current=g}).merge(u),a.hasType("gauge")&&(a.updateGaugeMax(),a.hasMultiArcGauge()&&a.redrawArcGaugeLine()),u.attr("transform",g=>!a.isGaugeType(g.data)&&n?"scale(0)":"").style("opacity",function(g){return g===this._current?"0":null}).each(()=>{s.transiting=!0}).transition().duration(t).attrTween("d",function(g){const v=a.updateAngle(g);if(!v)return()=>"M 0 0";isNaN(this._current.startAngle)&&(this._current.startAngle=0),isNaN(this._current.endAngle)&&(this._current.endAngle=this._current.startAngle);const m=Jr(this._current,v);return this._current=m(0),function(S){const I=m(S);return I.data=g.data,a.getArc(I,!0)}}).attr("transform",n?"scale(1)":"").style("fill",g=>{let v;return a.levelColor?(v=a.levelColor(g.data.values[0].value),i.data_colors[g.data.id]=v):v=a.color(g.data),v}).style("opacity",null).call($i,function(){if(a.levelColor){const g=st(this),v=g.datum(this._current);a.updateLegendItemColor(v.data.id,g.style("fill"))}s.transiting=!1,qe(i.onrendered,a.api)}),l&&a.bindArcEvent(u),a.hasType("polar")&&a.redrawPolar(),a.hasType("gauge")&&a.redrawBackgroundArcs(),i.arc_needle_show&&a.redrawNeedle(),a.redrawArcText(t),a.redrawArcRangeText()},redrawNeedle(){const t=this,{$el:e,config:n,state:{hiddenTargetIds:a,radius:i}}=t,s=(i-1)/100*n.arc_needle_length,o=a.length!==t.data.targets.length;let l=t.$el.arcs.select(`.${je.needle}`);const c=n.arc_needle_path,u=n.arc_needle_bottom_width/2,g=n.arc_needle_top_width/2,v=n.arc_needle_top_rx,m=n.arc_needle_top_ry,S=n.arc_needle_bottom_len,I=n.arc_needle_bottom_rx,N=n.arc_needle_bottom_ry,L=t.getNeedleAngle(),C=()=>{const V=t.getArcTitleWithNeedleValue();V&&t.setArcTitle(V)};if(C(),l.empty()&&(l=e.arcs.append("path").classed(je.needle,!0),e.needle=l,e.needle.updateHelper=(V,H=!1)=>{e.needle.style("display")!=="none"&&t.$T(e.needle).style("transform",`rotate(${t.getNeedleAngle(V)}deg)`).call($i,()=>{H&&(n.arc_needle_value=V),C()})}),o){const V=he(c)?c.call(t,s):`M-${u} ${S} A${I} ${N} 0 0 0 ${u} ${S} L${g} -${s} A${v} ${m} 0 0 0 -${g} -${s} L-${u} ${S} Z`;t.$T(l).attr("d",V).style("fill",n.arc_needle_color).style("display",null).style("transform",`rotate(${L}deg)`)}else l.style("display","none")},getNeedleAngle(t){const e=this,{config:n,state:a}=e,i=e.getArcLength(),s=e.hasType("gauge"),o=e.getTotalDataSum(!0);let l=Je(t)?t:n.arc_needle_value,c=n[`${n.data_type}_startingAngle`]||0,u=0;if(ge(l)||(l=s&&e.data.targets.length===1?o:0),a.current.needle=l,s){c=e.getStartingAngle();const g=n.gauge_fullCircle?i:c*-2,{gauge_min:v,gauge_max:m}=n;u=g*((l-v)/(m-v))}else u=i*(l/o);return(c+u)*(180/Math.PI)},redrawBackgroundArcs(){const t=this,{config:e,state:n}=t,a=t.hasMultiArcGauge(),i=e.gauge_fullCircle,s=t.filterTargetsToShow(t.data.targets).length===0&&!!e.data_empty_label_text,o=t.getStartingAngle(),l=i?o+t.getArcLength():o*-1;let c=t.$el.arcs.select(`${a?"g":""}.${je.chartArcsBackground}`);if(a){let u=0;c=c.selectAll(`path.${je.chartArcsBackground}`).data(t.data.targets),c.enter().append("path").attr("class",(g,v)=>`${je.chartArcsBackground} ${je.chartArcsBackground}-${v}`).merge(c).style("fill",e.gauge_background||null).attr("d",({id:g})=>{if(s||n.hiddenTargetIds.indexOf(g)>=0)return"M 0 0";const v={data:[{value:e.gauge_max}],startAngle:o,endAngle:l,index:u++};return t.getArc(v,!0,!0)}),c.exit().remove()}else c.attr("d",s?"M 0 0":()=>{const u={data:[{value:e.gauge_max}],startAngle:o,endAngle:l};return t.getArc(u,!0,!0)})},bindArcEvent(t){const e=this,{config:n,state:a}=e,i=a.inputType==="touch",s=a.inputType==="mouse";function o(c,u,g){e.expandArc(g),e.api.focus(g),e.toggleFocusLegend(g,!0),e.showTooltip([u],c)}function l(c){const u=(c==null?void 0:c.id)||void 0;e.unexpandArc(u),e.api.revert(),e.revertLegend(),e.hideTooltip()}if(t.on("click",function(c,u,g){var v;const m=e.updateAngle(u);let S;m&&(S=e.convertToArcData(m),(v=e.toggleShape)==null||v.call(e,this,S,g),n.data_onclick.bind(e.api)(S,this))}),s&&t.on("mouseover",function(c,u){if(a.transiting)return;a.event=c;const g=e.updateAngle(u),v=g?e.convertToArcData(g):null,m=(v==null?void 0:v.id)||void 0;o(this,v,m),e.setOverOut(!0,v)}).on("mouseout",(c,u)=>{if(a.transiting||!n.interaction_onout)return;a.event=c;const g=e.updateAngle(u),v=g?e.convertToArcData(g):null;l(),e.setOverOut(!1,v)}).on("mousemove",function(c,u){const g=e.updateAngle(u),v=g?e.convertToArcData(g):null;a.event=c,e.showTooltip([v],this)}),i&&e.hasArcType()&&!e.radars){const c=u=>{var g,v;const{clientX:m,clientY:S}=(v=(g=u.changedTouches)==null?void 0:g[0])!=null?v:{clientX:0,clientY:0};return st(vn.elementFromPoint(m,S))};e.$el.svg.on("touchstart touchmove",function(u){if(a.transiting)return;a.event=u;const v=c(u).datum(),m=v!=null&&v.data&&v.data.id?e.updateAngle(v):null,S=m?e.convertToArcData(m):null,I=(S==null?void 0:S.id)||void 0;e.callOverOutForTouch(S),ln(I)?l():o(this,S,I)})}},redrawArcText(t){const e=this,{config:n,state:a,$el:{main:i,arcs:s}}=e,o=e.hasType("gauge"),l=e.hasMultiArcGauge();let c;if(o&&e.data.targets.length===1&&n.gauge_title||(c=i.selectAll(`.${je.chartArc}`).select("text").style("opacity","0").attr("class",u=>e.isGaugeType(u.data)?Un.gaugeValue:null).call(e.textForArcLabel.bind(e)).attr("transform",u=>e.transformForArcLabel.bind(e)(u)).style("font-size",u=>e.isGaugeType(u.data)&&e.data.targets.length===1&&!l?`${Math.round(a.radius/5)}px`:null).transition().duration(t).style("opacity",u=>e.isTargetToShow(u.data.id)&&e.isArcType(u.data)?null:"0"),l&&c.attr("dy","-.1em")),i.select(`.${je.chartArcsTitle}`).style("opacity",e.hasType("donut")||o?null:"0"),o){const u=n.gauge_fullCircle;u&&(c==null||c.attr("dy",`${l?0:Math.round(a.radius/14)}`)),n.gauge_label_show&&(s.select(`.${Un.chartArcsGaugeUnit}`).attr("dy",`${u?1.5:.75}em`).text(n.gauge_units),s.select(`.${Un.chartArcsGaugeMin}`).attr("dx",`${-1*(a.innerRadius+(a.radius-a.innerRadius)/(u?1:2))}px`).attr("dy","1.2em").text(e.textForGaugeMinMax(n.gauge_min,!1)),!u&&s.select(`.${Un.chartArcsGaugeMax}`).attr("dx",`${a.innerRadius+(a.radius-a.innerRadius)/2}px`).attr("dy","1.2em").text(e.textForGaugeMinMax(n.gauge_max,!0)))}},getArcElementByIdOrIndex(t){const e=this,{$el:{arcs:n}}=e,a=ge(t)?i=>i.index===t:i=>i.data.id===t;return n==null?void 0:n.selectAll(`.${Se.target} path`).filter(a)}};function ju(t){return t[0]}function Gu(t){return t[1]}function Vu(t,e){var n=De(!0),a=null,i=go,s=null,o=bo(l);t=typeof t=="function"?t:t===void 0?ju:De(t),e=typeof e=="function"?e:e===void 0?Gu:De(e);function l(c){var u,g=(c=$o(c)).length,v,m=!1,S;for(a==null&&(s=i(S=o())),u=0;u<=g;++u)!(u<g&&n(v=c[u],u,c))===m&&((m=!m)?s.lineStart():s.lineEnd()),m&&s.point(+t(v,u,c),+e(v,u,c));if(S)return s=null,S+""||null}return l.x=function(c){return arguments.length?(t=typeof c=="function"?c:De(+c),l):t},l.y=function(c){return arguments.length?(e=typeof c=="function"?c:De(+c),l):e},l.defined=function(c){return arguments.length?(n=typeof c=="function"?c:De(!!c),l):n},l.curve=function(c){return arguments.length?(i=c,a!=null&&(s=i(a)),l):i},l.context=function(c){return arguments.length?(c==null?a=s=null:s=i(a=c),l):a},l}function mx(t,e,n){var a=null,i=De(!0),s=null,o=go,l=null,c=bo(u);t=typeof t=="function"?t:t===void 0?ju:De(+t),e=typeof e=="function"?e:De(e===void 0?0:+e),n=typeof n=="function"?n:n===void 0?Gu:De(+n);function u(v){var m,S,I,N=(v=$o(v)).length,L,C=!1,V,H=new Array(N),Y=new Array(N);for(s==null&&(l=o(V=c())),m=0;m<=N;++m){if(!(m<N&&i(L=v[m],m,v))===C)if(C=!C)S=m,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),I=m-1;I>=S;--I)l.point(H[I],Y[I]);l.lineEnd(),l.areaEnd()}C&&(H[m]=+t(L,m,v),Y[m]=+e(L,m,v),l.point(a?+a(L,m,v):H[m],n?+n(L,m,v):Y[m]))}if(V)return l=null,V+""||null}function g(){return Vu().defined(i).curve(o).context(s)}return u.x=function(v){return arguments.length?(t=typeof v=="function"?v:De(+v),a=null,u):t},u.x0=function(v){return arguments.length?(t=typeof v=="function"?v:De(+v),u):t},u.x1=function(v){return arguments.length?(a=v==null?null:typeof v=="function"?v:De(+v),u):a},u.y=function(v){return arguments.length?(e=typeof v=="function"?v:De(+v),n=null,u):e},u.y0=function(v){return arguments.length?(e=typeof v=="function"?v:De(+v),u):e},u.y1=function(v){return arguments.length?(n=v==null?null:typeof v=="function"?v:De(+v),u):n},u.lineX0=u.lineY0=function(){return g().x(t).y(e)},u.lineY1=function(){return g().x(t).y(n)},u.lineX1=function(){return g().x(a).y(e)},u.defined=function(v){return arguments.length?(i=typeof v=="function"?v:De(!!v),u):i},u.curve=function(v){return arguments.length?(o=v,s!=null&&(l=o(s)),u):o},u.context=function(v){return arguments.length?(v==null?s=l=null:l=o(s=v),u):s},u}var oa={initArea(t){const e=this,{config:n}=e;t.insert("g",`.${n.area_front?$n.circles:ur.lines}`).attr("class",e.getClass("areas",!0))},updateAreaColor(t){const e=this;return e.config.area_linearGradient?e.getGradienColortUrl(t.id):e.color(t)},updateArea(t,e=!1){const n=this,{config:a,state:i,$el:s,$T:o}=n,l=e?s.subchart:s;a.area_linearGradient&&n.updateLinearGradient();const c=l.main.selectAll(`.${qa.areas}`).selectAll(`.${qa.area}`).data(n.lineData.bind(n));o(c.exit(),t).style("opacity","0").remove(),l.area=c.enter().append("path").attr("class",n.getClass("area",!0)).style("fill",n.updateAreaColor.bind(n)).style("opacity",function(){return i.orgAreaOpacity=st(this).style("opacity"),"0"}).merge(c),c.style("opacity",i.orgAreaOpacity),n.setRatioForGroupedData(l.area.data())},redrawArea(t,e,n=!1){const a=this,{area:i}=n?this.$el.subchart:this.$el,{orgAreaOpacity:s}=a.state;return[a.$T(i,e,gr()).attr("d",t).style("fill",a.updateAreaColor.bind(a)).style("opacity",o=>String(a.isAreaRangeType(o)?s/1.75:s))]},generateDrawArea(t,e){const n=this,{config:a}=n,i=a.line_connectNull,s=a.axis_rotated,o=n.generateGetAreaPoints(t,e),l=n.getYScaleById.bind(n),c=v=>(e?n.subxx:n.xx).call(n,v),u=(v,m)=>n.isGrouped(v.id)?o(v,m)[0][1]:l(v.id,e)(n.isAreaRangeType(v)?n.getRangedData(v,"high"):n.getShapeYMin(v.id)),g=(v,m)=>n.isGrouped(v.id)?o(v,m)[1][1]:l(v.id,e)(n.isAreaRangeType(v)?n.getRangedData(v,"low"):v.value);return v=>{let m=i?n.filterRemoveNull(v.values):v.values,S=0,I=0,N;if(n.isAreaType(v)){let L=mx();L=s?L.y(c).x0(u).x1(g):L.x(c).y0(a.area_above?0:a.area_below?n.state.height:u).y1(g),i||(L=L.defined(C=>n.getBaseValue(C)!==null)),n.isStepType(v)&&(m=n.convertValuesToStep(m)),N=L.curve(n.getCurve(v))(m)}else m[0]&&(S=n.scale.x(m[0].x),I=n.getYScaleById(v.id)(m[0].value)),N=s?`M ${I} ${S}`:`M ${S} ${I}`;return N||"M 0 0"}},generateGetAreaPoints(t,e){const n=this,{config:a}=n,i=n.getShapeX(0,t,e),s=n.getShapeY(!!e),o=n.getShapeOffset(n.isAreaType,t,e),l=n.getYScaleById.bind(n);return function(c,u){const g=l.call(n,c.id,e)(n.getShapeYMin(c.id)),v=o(c,u)||g,m=i(c),S=c.value;let I=s(c);return a.axis_rotated&&(S>0&&I<g||S<0&&g<I)&&(I=g),[[m,v],[m,I-(g-v)],[m,I-(g-v)],[m,v]]}}},yx={initBar(){const{$el:t,config:e,state:{clip:n}}=this;t.bar=t.main.select(`.${Se.chart}`),t.bar=e.bar_front?t.bar.append("g"):t.bar.insert("g",":first-child"),t.bar.attr("class",Kn.chartBars).call(this.setCssRule(!1,`.${Kn.chartBars}`,["pointer-events:none"])),e.clipPath===!1&&(e.bar_radius||e.bar_radius_ratio)&&t.bar.attr("clip-path",n.pathXAxis.replace(/#[^)]*/,`#${n.id}`))},updateTargetsForBar(t){const e=this,{config:n,$el:a}=e,i=e.getChartClass("Bar"),s=e.getClass("bars",!0),o=e.classFocus.bind(e),l=n.interaction_enabled&&n.data_selection_isselectable;a.bar||e.initBar(),a.main.select(`.${Kn.chartBars}`).selectAll(`.${Kn.chartBar}`).data(t.filter(g=>g.values.some(v=>ge(v.value)||e.isBarRangeType(v)))).attr("class",g=>i(g)+o(g)).enter().append("g").attr("class",i).style("opacity","0").style("pointer-events",e.getStylePropValue("none")).append("g").attr("class",s).style("cursor",g=>{var v;return(v=l==null?void 0:l.bind)!=null&&v.call(l,e.api)(g)?"pointer":null}).call(e.setCssRule(!0,` .${Kn.bar}`,["fill"],e.color))},updateBar(t,e=!1){const n=this,{config:a,$el:i,$T:s}=n,o=e?i.subchart:i,l=n.getClass("bar",!0),c=n.initialOpacity.bind(n);a.bar_linearGradient&&n.updateLinearGradient();const u=o.main.selectAll(`.${Kn.bars}`).selectAll(`.${Kn.bar}`).data(n.labelishData.bind(n));s(u.exit(),t).style("opacity","0").remove(),o.bar=u.enter().append("path").attr("class",l).style("fill",n.updateBarColor.bind(n)).merge(u).style("opacity",c),n.setRatioForGroupedData(o.bar.data())},updateBarColor(t){const e=this,n=e.getStylePropValue(e.color);return e.config.bar_linearGradient?e.getGradienColortUrl(t.id):n?n(t):null},redrawBar(t,e,n=!1){const a=this,{bar:i}=n?a.$el.subchart:a.$el;return[a.$T(i,e,gr()).attr("d",s=>(ge(s.value)||a.isBarRangeType(s))&&t(s)).style("fill",a.updateBarColor.bind(a)).style("opacity",null)]},generateDrawBar(t,e){const n=this,{config:a}=n,i=n.generateGetBarPoints(t,e),s=a.axis_rotated,o=a.bar_radius,l=a.bar_radius_ratio,c=ge(o)&&o>0?()=>o:ge(l)?u=>u*l:null;return(u,g)=>{const v=i(u,g),m=+s,S=+!m,I=u.value<0,N=a[`axis_${n.axis.getId(u.id)}_inverted`],L=!N&&I||N&&!I,C=["",""];let V=0;const H=n.isGrouped(u.id),Y=c&&H?n.isStackingRadiusData(u):!1;if(c){const K=s?S:m,at=v[2][K]-v[0][K];V=!H||Y?c(at):0;const mt=`a${V},${V} ${L?"1 0 0":"0 0 1"} `;C[+!s]=`${mt}${V},${V}`,C[+s]=`${mt}${[-V,V][s?"sort":"reverse"]()}`,L&&C.reverse()}const _=s?`H${v[1][m]+(L?V:-V)} ${C[0]}V${v[2][S]-V} ${C[1]}H${v[3][m]}`:`V${v[1][S]+(L?-V:V)} ${C[0]}H${v[2][m]-V} ${C[1]}V${v[3][S]}`;return`M${v[0][m]},${v[0][S]}${_}z`}},isStackingRadiusData(t){const e=this,{$el:n,config:a,data:i,state:s}=e,{id:o,index:l,value:c}=t;if(s.hiddenTargetIds.indexOf(o)>-1){const m=n.bar.filter(S=>S.id===o&&S.value===c);return!m.empty()&&/a\d+/i.test(m.attr("d"))}const u=a.data_groups.find(m=>m.indexOf(o)>-1),v=e.orderTargets(e.filterTargetsToShow(i.targets.filter(e.isBarType,e))).filter(m=>u.indexOf(m.id)>-1).map(m=>m.values.filter(S=>S.index===l&&(ge(c)&&c>0?S.value>0:S.value<0))[0]).filter(Boolean).map(m=>m.id);return c!==0&&v.indexOf(o)===v.length-1},generateGetBarPoints(t,e){const n=this,{config:a}=n,i=e?n.axis.subX:n.axis.x,s=n.getIndicesMax(t)+1,o=n.getBarW("bar",i,s),l=n.getShapeX(o,t,!!e),c=n.getShapeY(!!e),u=n.getShapeOffset(n.isBarType,t,!!e),g=n.getYScaleById.bind(n);return(v,m)=>{const{id:S}=v,I=g.call(n,S,e)(n.getShapeYMin(S)),N=u(v,m)||I,L=ge(o)?o:o[v.id]||o._$width,C=a[`axis_${n.axis.getId(S)}_inverted`],V=v.value,H=l(v);let Y=c(v);a.axis_rotated&&!C&&(V>0&&Y<I||V<0&&I<Y)&&(Y=I),n.isBarRangeType(v)||(Y-=I-N);const _=H+L;return[[H,N],[H,Y],[_,Y],[_,N]]}}},xx={initBubble(){const t=this,{config:e}=t;t.hasType("bubble")&&(e.point_show=!0,e.point_type="circle")},getBaseLength(){const t=this,{width:e,height:n}=t.state,a=Dn.bubbleBaseLength;let i=t.cache.get(a);return i||t.cache.add(a,i=qn("min",[e,n])),i},getBubbleR(t){const e=this;let n=e.config.bubble_maxR;he(n)?n=n.bind(e.api)(t):ge(n)||(n=e.getBaseLength()/(e.getMaxDataCount()*2)+12);const a=qn("max",e.getMinMaxData().max.map(o=>e.isBubbleZType(o)?e.getBubbleZData(o.value,"y"):Be(o.value)?o.value.mid:o.value)),i=n*n*Math.PI,s=(e.isBubbleZType(t)?e.getBubbleZData(t.value,"z"):t.value)*(i/a);return Math.sqrt(s/Math.PI)},getBubbleZData(t,e){return Be(t)?t[e]:t[e==="y"?0:1]}},Tx=Object.defineProperty,Xu=Object.getOwnPropertySymbols,$x=Object.prototype.hasOwnProperty,Sx=Object.prototype.propertyIsEnumerable,Yu=(t,e,n)=>e in t?Tx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ax=(t,e)=>{for(var n in e||(e={}))$x.call(e,n)&&Yu(t,n,e[n]);if(Xu)for(var n of Xu(e))Sx.call(e,n)&&Yu(t,n,e[n]);return t},bx={initCandlestick(){const{$el:t}=this;t.candlestick=t.main.select(`.${Se.chart}`).append("g").attr("class",cr.chartCandlesticks)},updateTargetsForCandlestick(t){const e=this,{$el:n}=e,a=e.getChartClass("Candlestick");n.candlestick||e.initCandlestick(),e.$el.main.select(`.${cr.chartCandlesticks}`).selectAll(`.${cr.chartCandlestick}`).data(t).enter().append("g").attr("class",a).style("pointer-events","none")},updateCandlestick(t,e=!1){const n=this,{$el:a,$T:i}=n,s=e?a.subchart:a,o=n.getClass("candlestick",!0),l=n.initialOpacity.bind(n),c=s.main.selectAll(`.${cr.chartCandlestick}`).selectAll(`.${cr.candlestick}`).data(n.labelishData.bind(n));i(c.exit(),t).style("opacity","0").remove();const u=c.enter().filter(g=>g.value).append("g").attr("class",o);u.append("line"),u.append("path"),s.candlestick=c.merge(u).style("opacity",l)},generateDrawCandlestick(t,e){const n=this,{config:a}=n,i=n.generateGetCandlestickPoints(t,e),s=a.axis_rotated,o=a.candlestick_color_down;return(l,c,u)=>{const g=i(l,c),v=n.getCandlestickData(l),m=v==null?void 0:v._isUp,S=+s,I=+!S;u.classed&&u.classed(cr[m?"valueUp":"valueDown"],!0);const N=s?`H${g[1][1]} V${g[1][0]} H${g[0][1]}`:`V${g[1][1]} H${g[1][0]} V${g[0][1]}`;u.select("path").attr("d",`M${g[0][S]},${g[0][I]}${N}z`).style("fill",V=>(m?n.color(V):Be(o)?o[V.id]:o)||n.color(V));const L=u.select("line"),C=s?{x1:g[2][1],x2:g[2][2],y1:g[2][0],y2:g[2][0]}:{x1:g[2][0],x2:g[2][0],y1:g[2][1],y2:g[2][2]};for(const V in C)L.attr(V,C[V])}},generateGetCandlestickPoints(t,e=!1){const n=this,a=e?n.axis.subX:n.axis.x,i=n.getIndicesMax(t)+1,s=n.getBarW("candlestick",a,i),o=n.getShapeX(s,t,!!e),l=n.getShapeY(!!e),c=n.getShapeOffset(n.isBarType,t,!!e),u=n.getYScaleById.bind(n);return(g,v)=>{const m=u.call(n,g.id,e)(n.getShapeYMin(g.id)),S=c(g,v)||m,I=ge(s)?s:s[g.id]||s._$width,N=n.getCandlestickData(g);let L;if(N&&ge(N.open)&&ge(N.close)){const C={start:o(g),end:0};C.end=C.start+I;const V={start:l(N.open),end:l(N.close)},H={x:C.start+I/2,high:l(N.high),low:l(N.low)};V.start-=m-S,L=[[C.start,V.start],[C.end,V.end],[H.x,H.low,H.high]]}else L=[[0,0],[0,0],[0,0,0]];return L}},redrawCandlestick(t,e,n=!1){const a=this,{$el:i,$T:s}=a,{candlestick:o}=n?i.subchart:i,l=gr(!0);return[o.each(function(c,u){const g=s(st(this),e,l);t(c,u,g)}).style("opacity",null)]},getCandlestickData({value:t}){let e;if(ze(t)){const[n,a,i,s,o=!1]=t;e={open:n,high:a,low:i,close:s},o!==!1&&(e.volume=o)}else Be(t)&&(e=Ax({},t));return e&&(e._isUp=e.close>=e.open),e||null}},Ex=Object.defineProperty,Hu=Object.getOwnPropertySymbols,Rx=Object.prototype.hasOwnProperty,Ox=Object.prototype.propertyIsEnumerable,Wu=(t,e,n)=>e in t?Ex(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ix=(t,e)=>{for(var n in e||(e={}))Rx.call(e,n)&&Wu(t,n,e[n]);if(Hu)for(var n of Hu(e))Ox.call(e,n)&&Wu(t,n,e[n]);return t};function Ki(t=!1){const e=this,{config:n,state:{current:{width:a,height:i}}}=e,s=e.getCurrentPadding(),o=Ix({width:a-(s.left+s.right),height:i-(n.legend_show?e.getLegendHeight()+10:0)-(s.top+s.bottom)},s);if(t){const{width:l,height:c}=Ku.call(e,{width:o.width,height:o.height});o.width<l&&(o.width=l),o.height<c&&(o.height=c)}return o}function Ku(t){const e=this,{config:n}=e;let a=n.funnel_neck_width,i=n.funnel_neck_height;return[a,i]=[a,i].map((s,o)=>{let l=s;return Be(s)&&(l=t[o?"height":"width"]*s.ratio),l}),{width:a,height:i}}function Cx(t){const e=this,{top:n,left:a,width:i}=Ki.call(e,!0),s=[];return t.forEach((o,l)=>{const{ratio:c}=o,u=l>0?s[l-1][2][1]:n;s.push(o.coords=[[a,u],[a+i,u],[a+i,l>0?c+u:c+n],[a,l>0?c+u:c+n],[a,u]])}),s}function Zu(t=!1){const e=this,{width:n,height:a,top:i,left:s}=Ki.call(e,!0),o=Ku.call(e,{width:n,height:a}),l=(n-o.width)/2,c=(n+o.width)/2,u=a-o.height,g=[[0,0],[n,0],[c,u],[c,a],[l,a],[l,u],[0,0]];return t&&g.forEach(v=>{v[0]+=s,v[1]+=i}),`M${g.join("L")}z`}function Px(t){const e=this,{config:n}=e,a=t.map(i=>({id:i.id,value:i.values.reduce((s,o)=>s+o.value,0)}));return n.data_order&&a.sort(e.getSortCompareFn.bind(e)(!0)),ku.call(e,a)}function ku(t){const e=this,{height:n}=Ki.call(e),a=e.getTotalDataSum(!0);return t.forEach(i=>{i.ratio=i.value/a*n}),t}var wx={initFunnel(){const t=this,{$el:e}=t;e.funnel=e.main.select(`.${Se.chart}`).append("g").classed(Ta.chartFunnels,!0),e.funnel.background=e.funnel.append("path").classed(Ta.funnelBackground,!0),t.bindFunnelEvent()},bindFunnelEvent(){const t=this,{$el:{funnel:e},config:n,state:a}=t,i=s=>{var o;const l=s.isTrusted?s.target:(o=a.eventReceiver.rect)==null?void 0:o.node();let c;return/^path$/i.test(l.tagName)&&(a.event=s,c=st(l).datum()),c};if(n.interaction_enabled){const s=a.inputType==="touch";e.on(s?"touchstart":"mouseover mousemove",o=>{const l=i(o);l&&(t.showTooltip([l],o.target),/^(touchstart|mouseover)$/.test(o.type)&&t.setOverOut(!0,l))}).on(s?"touchend":"mouseout",o=>{const l=i(o);n.interaction_onout&&(t.hideTooltip(),t.setOverOut(!1,l))})}},updateTargetsForFunnel(t){const e=this,{$el:{funnel:n}}=e,a=e.getChartClass("Funnel"),i=e.getClass("funnel",!0);n||e.initFunnel();const s=Px.call(e,t.filter(e.isFunnelType.bind(e))),o=n.selectAll(`.${Ta.chartFunnel}`).data(s);o.exit().remove();const l=o.enter().insert("g",`.${Ta.funnelBackground}`);l.append("path"),n.path=l.merge(o).attr("class",c=>a(c)).select("path").attr("class",i).style("opacity","0").style("fill",e.color)},updateFunnel(t){const e=this,{$el:{funnel:n}}=e,a=t.map(({id:i})=>i);n.path=n.path.filter(i=>a.indexOf(i.id)>=0)},generateGetFunnelPoints(){const t=this,{$el:{funnel:e}}=t,n=t.filterTargetsToShow(e.path),{top:a,left:i,right:s}=Ki.call(t),o=(i-s)/2,l={};let c=a!=null?a:0;return n.each((u,g)=>{var v;l[u.id]=[[o,c],[o,c+=((v=n==null?void 0:n[g])!=null?v:u).ratio]]}),u=>l[u.id]},redrawFunnel(){const t=this,{$T:e,$el:{funnel:n}}=t,a=t.filterTargetsToShow(n.path),i=Cx.call(t,ku.call(t,a.data()));n.attr("clip-path",`path('${Zu.bind(t)()}')`),n.background.attr("d",Zu.call(t,!0)),e(a).attr("d",(s,o)=>`M${i[o].join("L")}z`).style("opacity","1"),n.selectAll("g").style("opacity",null)}},Mx={initGauge(){const t=this,{config:e,$el:{arcs:n}}=t,a=(i=null,s="")=>{n.append("text").attr("class",i).style("text-anchor","middle").style("pointer-events","none").text(s)};if(t.hasType("gauge")){const i=t.hasMultiArcGauge();n.append(i?"g":"path").attr("class",je.chartArcsBackground).style("fill",!i&&e.gauge_background||null),e.gauge_units&&a(Un.chartArcsGaugeUnit),e.gauge_label_show&&(a(Un.chartArcsGaugeMin),!e.gauge_fullCircle&&a(Un.chartArcsGaugeMax))}},updateGaugeMax(){const t=this,{config:e,state:n}=t,i=t.hasMultiArcGauge()?t.getMinMaxData().max[0].value:t.getTotalDataSum(n.rendered);!e.gauge_enforceMinMax&&i+e.gauge_min*(e.gauge_min>0?-1:1)>e.gauge_max&&(e.gauge_max=i-e.gauge_min)},redrawArcGaugeLine(){const t=this,{config:e,state:n,$el:a}=t,{hiddenTargetIds:i}=t.state,s=a.main.selectAll(`.${je.arcs}`).selectAll(`.${je.arcLabelLine}`).data(t.arcData.bind(t));s.enter().append("rect").attr("class",l=>`${je.arcLabelLine} ${Se.target} ${Se.target}-${l.data.id}`).merge(s).style("fill",l=>t.levelColor?t.levelColor(l.data.values[0].value):t.color(l.data)).style("display",e.gauge_label_show?null:"none").each(function(l){let c=0;const u=2;let g=0,v=0,m="";if(i.indexOf(l.data.id)<0){const S=t.updateAngle(l),I=n.gaugeArcWidth/t.filterTargetsToShow(t.data.targets).length*(S.index+1),N=S.endAngle-Math.PI/2,L=n.radius-I,C=N-(L===0?0:1/L);c=n.radiusExpanded-n.radius+I,g=Math.cos(C)*L,v=Math.sin(C)*L,m=`rotate(${N*180/Math.PI}, ${g}, ${v})`}st(this).attr("x",g).attr("y",v).attr("width",c).attr("height",u).attr("transform",m).style("stroke-dasharray",`0, ${c+u}, 0`)})},textForGaugeMinMax(t,e){const n=this,{config:a}=n,i=a.gauge_label_extents;return he(i)?i.bind(n.api)(t,e):t},getGaugeLabelHeight(){const{config:t}=this;return this.config.gauge_label_show&&!t.gauge_fullCircle?20:0},getPaddingBottomForGauge(){const t=this;return t.getGaugeLabelHeight()*(t.config.gauge_label_show?2:2.5)}};function Lx(t,e,n,a=!1){const i=t?[t,0]:n;for(let s=t||n.reduce((o,l)=>o+l);s<=e;)n.forEach(o=>{s+o<=e&&i.push(o),s+=o});return i.length%2!==0&&i.push(a?n[1]:0),{dash:i.join(" "),length:i.reduce((s,o)=>s+o,0)}}function Dx(t,e,n){const a=this,i=[],s="2 2";if(Je(e)){const o=(l,c)=>ln(l)?c:n?zn.call(a,l):l;for(let l=0,c;c=e[l];l++){const u=o(c.start,t[0].x),g=o(c.end,t[t.length-1].x),v=c.style||{dasharray:s};i[l]={start:u,end:g,style:v}}}return i}var Nx={initLine(){const{$el:t}=this;t.line=t.main.select(`.${Se.chart}`).append("g").attr("class",ur.chartLines).call(this.setCssRule(!1,`.${ur.chartLines}`,["pointer-events:none"]))},updateTargetsForLine(t){const e=this,{$el:{area:n,line:a,main:i}}=e,s=e.getChartClass("Line"),o=e.getClass("lines",!0),l=e.classFocus.bind(e);a||e.initLine();const c=t.filter(v=>!(e.isScatterType(v)||e.isBubbleType(v))),u=i.select(`.${ur.chartLines}`).selectAll(`.${ur.chartLine}`).data(c).attr("class",v=>s(v)+l(v)),g=u.enter().append("g").attr("class",s).style("opacity","0").style("pointer-events",e.getStylePropValue("none"));if(g.append("g").attr("class",o),e.hasTypeOf("Area")){const v=(!n&&g.empty()?u:g).filter(e.isAreaType.bind(e));e.initArea(v)}e.updateTargetForCircle(c,g)},updateLine(t,e=!1){const n=this,{format:{extraLineClasses:a},$el:i,$T:s}=n,o=e?i.subchart:i,l=o.main.selectAll(`.${ur.lines}`).selectAll(`.${ur.line}`).data(n.lineData.bind(n));s(l.exit(),t).style("opacity","0").remove(),o.line=l.enter().append("path").attr("class",c=>`${n.getClass("line",!0)(c)} ${a(c)||""}`).style("stroke",n.color).merge(l).style("opacity",n.initialOpacity.bind(n)).attr("transform",null)},redrawLine(t,e,n=!1){const a=this,{$el:i,$T:s}=a,{line:o}=n?i.subchart:i;return[s(o,e,gr()).attr("d",t).style("stroke",this.color).style("opacity",null)]},getCurve(t){const e=this;return e.config.axis_rotated&&e.isStepType(t)?a=>{const i=e.getInterpolate(t)(a);return i.orgPoint=i.point,i.pointRotated=function(s,o){this._point===1&&(this._point=2);const l=this._y*(1-this._t)+o*this._t;this._context.lineTo(this._x,l),this._context.lineTo(s,l),this._x=s,this._y=o},i.point=function(s,o){this._point===0?this.orgPoint(s,o):this.pointRotated(s,o)},i}:e.getInterpolate(t)},generateDrawLine(t,e){const n=this,{config:a,scale:i}=n,s=a.line_connectNull,o=a.axis_rotated,l=n.generateGetLinePoints(t,e),c=n.getYScaleById.bind(n),u=S=>(e?n.subxx:n.xx).call(n,S),g=(S,I)=>n.isGrouped(S.id)?l(S,I)[0][1]:c(S.id,e)(n.getBaseValue(S));let v=Vu();v=o?v.x(g).y(u):v.x(u).y(g),s||(v=v.defined(S=>n.getBaseValue(S)!==null));const m=e?i.subX:i.x;return S=>{const I=c(S.id,e);let N=s?n.filterRemoveNull(S.values):S.values,L=0,C=0,V;if(n.isLineType(S)){const H=a.data_regions[S.id];H?V=n.lineWithRegions(N,i.zoom||m,I,H):(n.isStepType(S)&&(N=n.convertValuesToStep(N)),V=v.curve(n.getCurve(S))(N))}else N[0]&&(L=m(N[0].x),C=I(N[0].value)),V=o?`M ${C} ${L}`:`M ${L} ${C}`;return V||"M 0 0"}},lineWithRegions(t,e,n,a){const i=this,{config:s}=i,o=s.axis_rotated,l=i.axis.isTimeSeries(),c="2 2",u=Dx.bind(i)(t,a,l),g=i.hasNullDataValue(t);let v,m,S,I;const N=o?dt=>n(dt.value):dt=>e(dt.x),L=o?dt=>e(dt.x):dt=>n(dt.value),C=dt=>`M${dt[0][0]},${dt[0][1]}L${dt[1][0]},${dt[1][1]}`,V=l?(dt,lt,Gt,gt)=>{const Z=dt.x.getTime(),$t=lt.x-dt.x,ct=new Date(Z+$t*Gt),At=new Date(Z+$t*(Gt+gt)),Vt=o?[[n(m(Gt)),e(ct)],[n(m(Gt+S)),e(At)]]:[[e(ct),n(m(Gt))],[e(At),n(m(Gt+S))]];return C(Vt)}:(dt,lt,Gt,gt)=>{const Z=e(lt.x,!o),$t=n(lt.value,o),ct=Gt+gt,At=e(v(Gt),!o),Vt=n(m(Gt),o);let Bt=e(v(ct),!o),Kt=n(m(ct),o);Bt>Z&&(Bt=Z),dt.value>lt.value&&(o?Kt<$t:Kt>$t)&&(Kt=$t);const ne=[[At,Vt],[Bt,Kt]];return o&&ne.forEach(le=>le.reverse()),C(ne)},H={x:i.axis.getAxisType("x"),y:i.axis.getAxisType("y")};let Y="";const _=i.$el.line.filter(({id:dt})=>dt===t[0].id),K=_.clone().style("display","none"),at=(dt,lt)=>dt.attr("d",lt).node().getTotalLength(),mt={dash:[],lastLength:0};let St=!1;for(let dt=0,lt;lt=t[dt];dt++){const Gt=t[dt-1],gt=Gt&&Le(Gt.value);let Z=i.isWithinRegions(lt.x,u);if(Le(lt.value)){if(ln(u)||!Z||!gt)Y+=`${dt&>?"L":"M"}${N(lt)},${L(lt)}`;else if(gt)if(Z=((Z==null?void 0:Z.dasharray)||c).split(" ").map(Number),v=zr(H.x,Gt.x,lt.x),m=zr(H.y,Gt.value,lt.value),g){const $t=e(lt.x)-e(Gt.x),ct=n(lt.value)-n(Gt.value),At=Math.sqrt(Math.pow($t,2)+Math.pow(ct,2));S=Z[0]/At,I=S*Z[1];for(let Vt=S;Vt<=1;Vt+=I)Y+=V(Gt,lt,Vt,S),Vt+I>=1&&(Y+=V(Gt,lt,1,0))}else{let $t=[];if(St=lt.x===t[t.length-1].x,l){const Bt=+Gt.x,Kt=new Date(Bt),ne=new Date(Bt+(+lt.x-Bt));$t=[[e(Kt),n(m(0))],[e(ne),n(m(1))]]}else $t=[[e(v(0)),n(m(0))],[e(v(1)),n(m(1))]];o&&$t.forEach(Bt=>Bt.reverse());const ct=at(K,Y),At=at(K,Y+=`L${$t[1].join(",")}`),Vt=Lx(ct-mt.lastLength,At-mt.lastLength,Z,St);mt.lastLength+=Vt.length,mt.dash.push(Vt.dash)}}}return mt.dash.length&&(!St&&mt.dash.push(at(K,Y)),K.remove(),_.attr("stroke-dasharray",mt.dash.join(" "))),Y},isWithinRegions(t,e){for(let n=0,a;a=e[n];n++)if(a.start<t&&t<=a.end)return a.style;return!1},isWithinStep(t,e){return Math.abs(e-Hn(this.state.event,t)[1])<30},shouldDrawPointsForLine(t){const e=this.config.line_point;return e===!0||ze(e)&&e.indexOf(t.id)!==-1}};const la=()=>gr();var Zi={initialOpacityForCircle(t){const{config:e,state:{withoutFadeIn:n}}=this;let a=e.point_opacity;return ln(a)&&(a=this.getBaseValue(t)!==null&&n[t.id]?this.opacityForCircle(t):"0"),a},opacityForCircle(t){var e;const{config:n}=this;let a=n.point_opacity;return ln(a)&&(a=n.point_show&&!((e=this.isPointFocusOnly)!=null&&e.call(this))?null:"0",a=Le(this.getBaseValue(t))?this.isBubbleType(t)||this.isScatterType(t)?"0.5":a:"0"),a},initCircle(){const t=this,{$el:{main:e}}=t;!t.point&&(t.point=t.generatePoint()),(t.hasType("bubble")||t.hasType("scatter"))&&e.select(`.${Se.chart} > .${$n.chartCircles}`).empty()&&e.select(`.${Se.chart}`).append("g").attr("class",$n.chartCircles)},updateTargetForCircle(t,e){const n=this,{config:a,data:i,$el:s}=n,o=a.interaction_enabled&&a.data_selection_enabled,l=o&&a.data_selection_isselectable,c=n.getClass("circles",!0);if(!a.point_show)return;n.initCircle();let u=t,g=e;if(!u){u=i.targets.filter(m=>this.isScatterType(m)||this.isBubbleType(m));const v=s.main.select(`.${$n.chartCircles}`).style("pointer-events","none").selectAll(`.${$n.circles}`).data(u);v.exit().remove(),g=v.enter()}o&&g.append("g").attr("class",v=>n.generateClass(tn.selectedCircles,v.id)),g.append("g").attr("class",c).call(v=>{n.setCssRule(!0,`.${$n.circles}`,["cursor:pointer"],l)(v),n.setCssRule(!0,` .${$n.circle}`,["fill","stroke"],n.color)(v)}).style("opacity",function(){return st(this.parentNode).attr("class").indexOf($n.chartCircles)>-1?"0":null}),o&&u.forEach(v=>{s.main.selectAll(`.${tn.selectedCircles}${n.getTargetSelectorSuffix(v.id)}`).selectAll(`${tn.selectedCircle}`).each(m=>{m.value=v.values[m.index].value})})},updateCircle(t=!1){const e=this,{config:n,state:a,$el:i}=e,s=e.isPointFocusOnly(),o=t?i.subchart:i;if(n.point_show&&!a.toggling){n.point_radialGradient&&e.updateLinearGradient();const l=o.main.selectAll(`.${$n.circles}`).selectAll(`.${$n.circle}`).data(c=>e.isLineType(c)&&e.shouldDrawPointsForLine(c)||e.isBubbleType(c)||e.isRadarType(c)||e.isScatterType(c)?s?[c.values[0]]:c.values:[]);l.exit().remove(),l.enter().filter(Boolean).append(e.point("create",this,e.pointR.bind(e),e.updateCircleColor.bind(e))),o.circle=o.main.selectAll(`.${$n.circles} .${$n.circle}`).style("stroke",e.getStylePropValue(e.color)).style("opacity",e.initialOpacityForCircle.bind(e))}},updateCircleColor(t){const e=this,n=e.getStylePropValue(e.color);return e.config.point_radialGradient?e.getGradienColortUrl(t.id):n?n(t):null},redrawCircle(t,e,n,a,i=!1){const s=this,{state:{rendered:o},$el:l,$T:c}=s,u=i?l.subchart:l,g=u.main.selectAll(`.${tn.selectedCircle}`);if(!s.config.point_show)return[];const v=s.point("update",s,t,e,s.updateCircleColor.bind(s),n,a,g),m=s.isCirclePoint()?"c":"",S=gr(),I=s.opacityForCircle.bind(s),N=[];return u.circle.each(function(L){let C=v.bind(this)(L);C=c(C,n||!o,S).style("opacity",I),N.push(C)}),[N,c(g,n).attr(`${m}x`,t).attr(`${m}y`,e)]},showCircleFocus(t){const e=this,{state:{hasRadar:n,resizing:a,toggling:i,transiting:s},$el:o}=e;let{circle:l}=o;if(s===!1&&l&&e.isPointFocusOnly()){const c=(n?e.radarCircleX:e.circleX).bind(e),u=(n?e.radarCircleY:e.circleY).bind(e),g=i||ln(t),v=e.point("update",e,c,u,e.getStylePropValue(e.color),a?!1:g);t&&(l=l.filter(function(m){var S;const I=(S=t.filter)==null?void 0:S.call(t,N=>N.id===m.id);return I.length?st(this).datum(I[0]):!1})),l.attr("class",this.updatePointClass.bind(this)).style("opacity",null).each(function(m){const{id:S,index:I,value:N}=m;let L="hidden";Le(N)&&(v.bind(this)(m),e.expandCircles(I,S),L=""),this.style.visibility=L})}},hideCircleFocus(){const t=this,{$el:{circle:e}}=t;t.isPointFocusOnly()&&e&&(t.unexpandCircles(),e.style("visibility","hidden"))},circleX(t){return this.xx(t)},updateCircleY(t=!1){const e=this,n=e.generateGetLinePoints(e.getShapeIndices(e.isLineType),t);return(a,i)=>{const s=a.id;return e.isGrouped(s)?n(a,i)[0][1]:e.getYScaleById(s,t)(e.getBaseValue(a))}},expandCircles(t,e,n){const a=this,i=a.pointExpandedR.bind(a);n&&a.unexpandCircles();const s=a.getShapeByIndex("circle",t,e).classed(Se.EXPANDED,!0),o=i(s)/a.config.point_r,l=1-o;a.isCirclePoint()?s.attr("r",i):s.each(function(){const c=st(this);if(this.tagName==="circle")c.attr("r",i);else{const{width:u,height:g}=this.getBBox(),v=l*(+c.attr("x")+u/2),m=l*(+c.attr("y")+g/2);c.attr("transform",`translate(${v} ${m}) scale(${o})`)}})},unexpandCircles(t){const e=this,n=e.pointR.bind(e),a=e.getShapeByIndex("circle",t).filter(function(){return st(this).classed(Se.EXPANDED)}).classed(Se.EXPANDED,!1);if(a.attr("r",n),!e.isCirclePoint()){const i=n(a)/e.config.point_r;a.attr("transform",i!==1?`scale(${i})`:null)}},pointR(t){const e=this,{config:n}=e,a=n.point_r;let i=a;return e.isBubbleType(t)?i=e.getBubbleR(t):he(a)&&(i=a.bind(e.api)(t)),t.r=i,i},pointExpandedR(t){const e=this,{config:n}=e,a=e.isBubbleType(t)?1.15:1.75;return n.point_focus_expand_enabled?n.point_focus_expand_r||e.pointR(t)*a:e.pointR(t)},pointSelectR(t){const e=this,n=e.config.point_select_r;return he(n)?n(t):n||e.pointR(t)*4},isPointFocusOnly(){const t=this;return t.config.point_focus_only&&!t.hasType("bubble")&&!t.hasType("scatter")&&!t.hasArcType(null,["radar"])},isWithinCircle(t,e){const{config:n,state:a}=this,i=Hn(a.event,t),s=st(t),o=this.isCirclePoint(t)?"c":"",l=n.point_sensitivity==="radius"?t.getAttribute("r"):n.point_sensitivity;let c=+s.attr(`${o}x`),u=+s.attr(`${o}y`);if(!(c||u)&&t.nodeType===1){const{x:g,y:v}=Si(t);c=g,u=v}return Math.sqrt(Math.pow(c-i[0],2)+Math.pow(u-i[1],2))<(e||l)},getPointSensitivity(t){const e=this;let n=e.config.point_sensitivity;return he(n)?n=n.call(e.api,t):n==="radius"&&(n=t.r),n},updatePointClass(t){const e=this,{circle:n}=e.$el;let a=!1;return(Be(t)||n)&&(a=t===!0?n.each(function(i){let s=e.getClass("circle",!0)(i);this.getAttribute("class").indexOf(Se.EXPANDED)>-1&&(s+=` ${Se.EXPANDED}`),this.setAttribute("class",s)}):e.getClass("circle",!0)(t)),a},generateGetLinePoints(t,e){const n=this,{config:a}=n,i=n.getShapeX(0,t,e),s=n.getShapeY(e),o=n.getShapeOffset(n.isLineType,t,e),l=n.getYScaleById.bind(n);return(c,u)=>{const g=l.call(n,c.id,e)(n.getShapeYMin(c.id)),v=o(c,u)||g,m=i(c);let S=s(c);a.axis_rotated&&(c.value>0&&S<g||c.value<0&&g<S)&&(S=g);const I=[m,S-(g-v)];return[I,I,I,I]}},custom:{create(t,e,n){return t.append("use").attr("xlink:href",`#${e}`).attr("class",this.updatePointClass.bind(this)).style("fill",n).node()},update(t,e,n,a,i,s,o){const l=this,{width:c,height:u}=t.node().getBBox(),g=S=>Le(S.value)?e(S)-c/2:0,v=S=>Le(S.value)?n(S)-u/2:0;let m=t;return i&&(s&&m.attr("x",g),m=l.$T(m,i,la()),o&&l.$T(o,i,la())),m.attr("x",g).attr("y",v).style("fill",a)}},circle:{create(t,e,n){return t.append("circle").attr("class",this.updatePointClass.bind(this)).attr("r",e).style("fill",n).node()},update(t,e,n,a,i,s,o){const l=this;let c=t;return l.hasType("bubble")&&c.attr("r",l.pointR.bind(l)),i&&(s&&c.attr("cx",e),c.attr("cx")&&(c=l.$T(c,i,la())),o&&l.$T(c,i,la())),c.attr("cx",e).attr("cy",n).style("fill",a)}},rectangle:{create(t,e,n){const a=i=>e(i)*2;return t.append("rect").attr("class",this.updatePointClass.bind(this)).attr("width",a).attr("height",a).style("fill",n).node()},update(t,e,n,a,i,s,o){const l=this,c=l.config.point_r,u=m=>e(m)-c,g=m=>n(m)-c;let v=t;return i&&(s&&v.attr("x",u),v=l.$T(v,i,la()),o&&l.$T(o,i,la())),v.attr("x",u).attr("y",g).style("fill",a)}}};function Fx(t){return nr(t)&&he(t.create)&&he(t.update)}function Bx(t,e){var n;const a=this,i=(c,u)=>{const g=c.attributes;for(let v=0,m;m=g[v];v++)m=m.name,u.setAttribute(m,c.getAttribute(m))},o=new DOMParser().parseFromString(t,"image/svg+xml").documentElement,l=vn.createElementNS(ae.svg,o.nodeName.toLowerCase());if(l.id=e,l.style.fill="inherit",l.style.stroke="inherit",i(o,l),(n=o.childNodes)!=null&&n.length){const c=st(l);"innerHTML"in l?c.html(o.innerHTML):Dr(o.childNodes).forEach(u=>{i(u,c.append(u.tagName).node())})}a.$el.defs.node().appendChild(l)}var ca={hasValidPointType(t){return/^(circle|rect(angle)?|polygon|ellipse|use)$/i.test(t||this.config.point_type)},hasLegendDefsPoint(){var t;const{config:e}=this;return e.legend_show&&((t=e.point_pattern)==null?void 0:t.length)&&e.legend_usePoint},getDefsPointId(t){const{state:{datetimeId:e}}=this;return`${e}-point${t}`},generatePoint(){const t=this,{$el:e,config:n}=t,a=[],i=cn(n.point_pattern)?n.point_pattern:[n.point_type];return function(s,o,...l){return function(c){var u,g,v,m;const S=t.getTargetSelectorSuffix(c.id||((u=c.data)==null?void 0:u.id)||c),I=st(this);a.indexOf(S)<0&&a.push(S);let N=i[a.indexOf(S)%i.length];if(t.hasValidPointType(N))N=t[N];else if(!Fx(N||n.point_type)){const L=t.getDefsPointId(S);if(e.defs.select(`#${L}`).size()<1&&Bx.bind(t)(N,L),s==="create")return(g=t.custom)==null?void 0:g.create.bind(o)(I,L,...l);if(s==="update")return(v=t.custom)==null?void 0:v.update.bind(o)(I,...l)}return(m=N[s])==null?void 0:m.bind(o)(I,...l)}}}};function Ju(t){const e=t.config.polar_level_max;let n=t.getMinMaxData().max[0].value;return e&&e>n&&(n=e),n}var Ux={initPolar(){const t=this,{$el:{arcs:e},config:n}=t,a=n.polar_level_text_show,i=n.polar_level_text_backgroundColor;e.levels=e.append("g").attr("class",Tr.levels),a&&i&&t.generateTextBGColorFilter(i)},getPolarOuterRadius(t,e){var n;const a=Ju(this);return((n=t==null?void 0:t.data.values[0].value)!=null?n:0)/a*e},updateTargetsForPolar(t){this.updateTargetsForArc(t)},redrawPolar(){const t=this,{config:e}=t;e.polar_level_show&&t.updatePolarLevel()},updatePolarLevel(){const t=this,{config:e,state:n,$el:{arcs:{levels:a}}}=t,i=e.polar_level_depth,s=Ju(t),o=Ai(0,i),l=n.radius,c=o.map(m=>l*((m+1)/i)),u=(e.polar_level_text_format||function(){}).bind(t.api),g=a.selectAll(`.${Tr.level}`).data(o);g.exit().remove();const v=g.enter().append("g").attr("class",(m,S)=>`${Tr.level} ${Tr.level}-${S}`);if(v.append("circle"),v.merge(g).selectAll("circle").style("visibility",e.polar_level_show?null:"hidden").attr("cx",0).attr("cy",0).attr("r",m=>c[m]),e.polar_level_text_show){const m=e.polar_level_text_backgroundColor,S=`#${n.datetimeId}-labels-bg${t.getTargetSelectorSuffix(m)}`;v.append("text").style("text-anchor","middle"),v.merge(g).selectAll("text").attr("dy",I=>-c[I]+5).attr("filter",m?`url(${S})`:null).text(I=>u(s/o.length*(I+1)))}}};function zx(t,e,n,a,i,s){const o=t&&a>0?n-a:a,l=2*Math.PI;return i*(1-s*(e==="x"?Math.sin:Math.cos)(o*l/n))}const ua=Dn.radarPoints,Qu=Dn.radarTextWidth;var jx={initRadar(){const t=this,{config:e,state:{current:n},$el:a}=t;t.hasType("radar")&&(a.radar=a.main.select(`.${Se.chart}`).append("g").attr("class",Jo.chartRadars),a.radar.levels=a.radar.append("g").attr("class",Tr.levels),a.radar.axes=a.radar.append("g").attr("class",dn.axis),a.radar.shapes=a.radar.append("g").attr("class",on.shapes),n.dataMax=e.radar_axis_max||t.getMinMaxData().max[0].value,e.radar_axis_text_show&&(e.interaction_enabled&&t.bindRadarEvent(),t.updateRadarLevel(),t.updateRadarAxes()))},getRadarSize(){const t=this,{config:e,state:{arcWidth:n,arcHeight:a}}=t,i=e.axis_x_categories.length<4?-20:10,s=(Math.min(n,a)-i)/2;return[s,s]},updateTargetsForRadar(t){const e=this,{config:n}=e;_n(n.axis_x_categories)&&(n.axis_x_categories=Ai(0,qn("max",t.map(a=>a.values.length)))),e.generateRadarPoints()},getRadarPosition(t,e,n,a){const i=this,{config:s}=i,[o,l]=i.getRadarSize(),c=s.axis_x_categories.length,u=s.radar_direction_clockwise,g=Dr(t).map(v=>zx(u,v,c,e,Je(n)?n:t==="x"?o:l,ge(a)?a:s.radar_size_ratio));return g.length===1?g[0]:g},generateRadarPoints(){const t=this,e=t.data.targets,[n,a]=t.getRadarSize(),i=t.cache.get(ua)||{},s=i._size;(!s||s.width!==n&&s.height!==a)&&(e.forEach(o=>{i[o.id]=o.values.map((l,c)=>t.getRadarPosition(["x","y"],c,void 0,t.getRatio("radar",l)))}),i._size={width:n,height:a},t.cache.add(ua,i))},redrawRadar(){const t=this,{radar:e,main:n}=t.$el,a=t.getTranslate("radar");a&&(e.attr("transform",a),n.select(`.${In.chartTexts}`).attr("transform",a),t.generateRadarPoints(),t.updateRadarLevel(),t.updateRadarAxes(),t.updateRadarShape())},generateGetRadarPoints(){const t=this.cache.get(ua);return(e,n)=>{const a=t[e.id][n];return[a,a,a,a]}},updateRadarLevel(){const t=this,{config:e,state:n,$el:{radar:a}}=t,[i,s]=t.getRadarSize(),o=e.radar_level_depth,l=e.axis_x_categories.length,c=e.radar_level_text_show,u=a.levels,g=Ai(0,o),v=e.radar_size_ratio*Math.min(i,s),m=g.map(C=>v*((C+1)/o)),S=(e.radar_level_text_format||function(){}).bind(t.api),I=g.map(C=>{const V=m[C];return Ai(0,l).map(Y=>t.getRadarPosition(["x","y"],Y,V,1).join(",")).join(" ")}),N=u.selectAll(`.${Tr.level}`).data(g);N.exit().remove();const L=N.enter().append("g").attr("class",(C,V)=>`${Tr.level} ${Tr.level}-${V}`);L.append("polygon").style("visibility",e.radar_level_show?null:"hidden"),c&&(u.select("text").empty()&&u.append("text").attr("dx","-.5em").attr("dy","-.7em").style("text-anchor","end").text(()=>S(0)),L.append("text").attr("dx","-.5em").style("text-anchor","end").text(C=>S(n.current.dataMax/g.length*(C+1)))),L.merge(N).attr("transform",C=>`translate(${i-m[C]}, ${s-m[C]})`).selectAll("polygon").attr("points",C=>I[C]),c&&u.selectAll("text").attr("x",C=>ln(C)?i:I[C].split(",")[0]).attr("y",C=>ln(C)?s:0)},updateRadarAxes(){const t=this,{config:e,$el:{radar:n}}=t,[a,i]=t.getRadarSize(),s=e.axis_x_categories;let o=n.axes.selectAll("g").data(s);o.exit().remove();const l=o.enter().append("g").attr("class",(c,u)=>`${dn.axis}-${u}`);if(e.radar_axis_line_show&&l.append("line"),e.radar_axis_text_show&&l.append("text"),o=l.merge(o),e.radar_axis_line_show&&o.select("line").attr("x1",a).attr("y1",i).attr("x2",(c,u)=>t.getRadarPosition("x",u)).attr("y2",(c,u)=>t.getRadarPosition("y",u)),e.radar_axis_text_show){const{x:c=0,y:u=0}=e.radar_axis_text_position,g=t.cache.get(Qu)||0;if(o.select("text").style("text-anchor","middle").attr("dy",".5em").call(v=>{v.each(function(m){wa(st(this),String(m),[-.6,1.2])})}).datum((v,m)=>({index:m})).attr("transform",function(v){ln(this.width)&&(this.width=this.getBoundingClientRect().width/2);let m=t.getRadarPosition("x",v.index,void 0,1),S=Math.round(t.getRadarPosition("y",v.index,void 0,1));return m>a?m+=this.width+c:Math.round(m)<a&&(m-=this.width+c),S>i?(S/2===i&&this.firstChild.tagName==="tspan"&&this.firstChild.setAttribute("dy","0em"),S+=u):S<i&&(S-=u),`translate(${m} ${S})`}),!g){const v=[n.axes,n.levels].map(m=>Hl(m.node()).width);v.every(m=>m>0)&&t.cache.add(Qu,v[0]-v[1])}}},bindRadarEvent(){const t=this,{config:e,state:n,$el:{radar:a,svg:i}}=t,s=t.isPointFocusOnly(),{inputType:o,transiting:l}=n,c=o==="mouse",u=g=>{if(n.event=g,!e.interaction_onout)return;const v=t.getDataIndexFromEvent(g),m=ln(v);(c||m)&&(t.hideTooltip(),s?t.hideCircleFocus():t.unexpandCircles(),c?t.setOverOut(!1,v):m&&t.callOverOutForTouch())};a.axes.on(c?"mouseover ":"touchstart",g=>{if(l)return;n.event=g;const v=t.getDataIndexFromEvent(g);t.selectRectForSingle(i.node(),v),c?t.setOverOut(!0,v):t.callOverOutForTouch(v)}).on("mouseout",c?u:null),c||i.on("touchstart",u)},updateRadarShape(){const t=this,e=t.data.targets.filter(s=>t.isRadarType(s)),n=t.cache.get(ua),a=t.$el.radar.shapes.selectAll("polygon").data(e),i=a.enter().append("g").attr("class",t.getChartClass("Radar"));t.$T(a.exit()).remove(),i.append("polygon").merge(a).style("fill",t.color).style("stroke",t.color).attr("points",s=>n[s.id].join(" ")),t.updateTargetForCircle(e,i)},radarCircleX(t){return this.cache.get(ua)[t.id][t.index][0]},radarCircleY(t){return this.cache.get(ua)[t.id][t.index][1]}};function Gx(t){var e=0,n=t.children,a=n&&n.length;if(!a)e=1;else for(;--a>=0;)e+=n[a].value;t.value=e}function Vx(){return this.eachAfter(Gx)}function Xx(t,e){let n=-1;for(const a of this)t.call(e,a,++n,this);return this}function Yx(t,e){for(var n=this,a=[n],i,s,o=-1;n=a.pop();)if(t.call(e,n,++o,this),i=n.children)for(s=i.length-1;s>=0;--s)a.push(i[s]);return this}function Hx(t,e){for(var n=this,a=[n],i=[],s,o,l,c=-1;n=a.pop();)if(i.push(n),s=n.children)for(o=0,l=s.length;o<l;++o)a.push(s[o]);for(;n=i.pop();)t.call(e,n,++c,this);return this}function Wx(t,e){let n=-1;for(const a of this)if(t.call(e,a,++n,this))return a}function Kx(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,a=e.children,i=a&&a.length;--i>=0;)n+=a[i].value;e.value=n})}function Zx(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function kx(t){for(var e=this,n=Jx(e,t),a=[e];e!==n;)e=e.parent,a.push(e);for(var i=a.length;t!==n;)a.splice(i,0,t),t=t.parent;return a}function Jx(t,e){if(t===e)return t;var n=t.ancestors(),a=e.ancestors(),i=null;for(t=n.pop(),e=a.pop();t===e;)i=t,t=n.pop(),e=a.pop();return i}function Qx(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function _x(){return Array.from(this)}function qx(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function t0(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}function*e0(){var t=this,e,n=[t],a,i,s;do for(e=n.reverse(),n=[];t=e.pop();)if(yield t,a=t.children)for(i=0,s=a.length;i<s;++i)n.push(a[i]);while(n.length)}function Ro(t,e){t instanceof Map?(t=[void 0,t],e===void 0&&(e=a0)):e===void 0&&(e=r0);for(var n=new ki(t),a,i=[n],s,o,l,c;a=i.pop();)if((o=e(a.data))&&(c=(o=Array.from(o)).length))for(a.children=o,l=c-1;l>=0;--l)i.push(s=o[l]=new ki(o[l])),s.parent=a,s.depth=a.depth+1;return n.eachBefore(s0)}function n0(){return Ro(this).eachBefore(i0)}function r0(t){return t.children}function a0(t){return Array.isArray(t)?t[1]:null}function i0(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function s0(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function ki(t){this.data=t,this.depth=this.height=0,this.parent=null}ki.prototype=Ro.prototype={constructor:ki,count:Vx,each:Xx,eachAfter:Hx,eachBefore:Yx,find:Wx,sum:Kx,sort:Zx,path:kx,ancestors:Qx,descendants:_x,leaves:qx,links:t0,copy:n0,[Symbol.iterator]:e0};function o0(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Ji(t,e,n,a,i){for(var s=t.children,o,l=-1,c=s.length,u=t.value&&(a-e)/t.value;++l<c;)o=s[l],o.y0=n,o.y1=i,o.x0=e,o.x1=e+=o.value*u}function Qi(t,e,n,a,i){for(var s=t.children,o,l=-1,c=s.length,u=t.value&&(i-n)/t.value;++l<c;)o=s[l],o.x0=e,o.x1=a,o.y0=n,o.y1=n+=o.value*u}var _u=(1+Math.sqrt(5))/2;function qu(t,e,n,a,i,s){for(var o=[],l=e.children,c,u,g=0,v=0,m=l.length,S,I,N=e.value,L,C,V,H,Y,_,K;g<m;){S=i-n,I=s-a;do L=l[v++].value;while(!L&&v<m);for(C=V=L,_=Math.max(I/S,S/I)/(N*t),K=L*L*_,Y=Math.max(V/K,K/C);v<m;++v){if(L+=u=l[v].value,u<C&&(C=u),u>V&&(V=u),K=L*L*_,H=Math.max(V/K,K/C),H>Y){L-=u;break}Y=H}o.push(c={value:L,dice:S<I,children:l.slice(g,v)}),c.dice?Ji(c,n,a,i,N?a+=I*L/N:s):Qi(c,n,a,N?n+=S*L/N:i,s),N-=L,g=v}return o}var tf=function t(e){function n(a,i,s,o,l){qu(e,a,i,s,o,l)}return n.ratio=function(a){return t((a=+a)>1?a:1)},n}(_u);function C1(t){return t==null?null:ef(t)}function ef(t){if(typeof t!="function")throw new Error;return t}function za(){return 0}function ja(t){return function(){return t}}function l0(){var t=tf,e=!1,n=1,a=1,i=[0],s=za,o=za,l=za,c=za,u=za;function g(m){return m.x0=m.y0=0,m.x1=n,m.y1=a,m.eachBefore(v),i=[0],e&&m.eachBefore(o0),m}function v(m){var S=i[m.depth],I=m.x0+S,N=m.y0+S,L=m.x1-S,C=m.y1-S;L<I&&(I=L=(I+L)/2),C<N&&(N=C=(N+C)/2),m.x0=I,m.y0=N,m.x1=L,m.y1=C,m.children&&(S=i[m.depth+1]=s(m)/2,I+=u(m)-S,N+=o(m)-S,L-=l(m)-S,C-=c(m)-S,L<I&&(I=L=(I+L)/2),C<N&&(N=C=(N+C)/2),t(m,I,N,L,C))}return g.round=function(m){return arguments.length?(e=!!m,g):e},g.size=function(m){return arguments.length?(n=+m[0],a=+m[1],g):[n,a]},g.tile=function(m){return arguments.length?(t=ef(m),g):t},g.padding=function(m){return arguments.length?g.paddingInner(m).paddingOuter(m):g.paddingInner()},g.paddingInner=function(m){return arguments.length?(s=typeof m=="function"?m:ja(+m),g):s},g.paddingOuter=function(m){return arguments.length?g.paddingTop(m).paddingRight(m).paddingBottom(m).paddingLeft(m):g.paddingTop()},g.paddingTop=function(m){return arguments.length?(o=typeof m=="function"?m:ja(+m),g):o},g.paddingRight=function(m){return arguments.length?(l=typeof m=="function"?m:ja(+m),g):l},g.paddingBottom=function(m){return arguments.length?(c=typeof m=="function"?m:ja(+m),g):c},g.paddingLeft=function(m){return arguments.length?(u=typeof m=="function"?m:ja(+m),g):u},g}function nf(t,e,n,a,i){var s=t.children,o,l=s.length,c,u=new Array(l+1);for(u[0]=c=o=0;o<l;++o)u[o+1]=c+=s[o].value;g(0,l,t.value,e,n,a,i);function g(v,m,S,I,N,L,C){if(v>=m-1){var V=s[v];V.x0=I,V.y0=N,V.x1=L,V.y1=C;return}for(var H=u[v],Y=S/2+H,_=v+1,K=m-1;_<K;){var at=_+K>>>1;u[at]<Y?_=at+1:K=at}Y-u[_-1]<u[_]-Y&&v+1<_&&--_;var mt=u[_]-H,St=S-mt;if(L-I>C-N){var dt=S?(I*St+L*mt)/S:L;g(v,_,mt,I,N,dt,C),g(_,m,St,dt,N,L,C)}else{var lt=S?(N*St+C*mt)/S:C;g(v,_,mt,I,N,L,lt),g(_,m,St,I,lt,L,C)}}}function c0(t,e,n,a,i){(t.depth&1?Qi:Ji)(t,e,n,a,i)}var u0=function t(e){function n(a,i,s,o,l){if((c=a._squarify)&&c.ratio===e)for(var c,u,g,v,m=-1,S,I=c.length,N=a.value;++m<I;){for(u=c[m],g=u.children,v=u.value=0,S=g.length;v<S;++v)u.value+=g[v].value;u.dice?Ji(u,i,s,o,N?s+=(l-s)*u.value/N:l):Qi(u,i,s,N?i+=(o-i)*u.value/N:o,l),N-=u.value}else a._squarify=c=qu(e,a,i,s,o,l),c.ratio=e}return n.ratio=function(a){return t((a=+a)>1?a:1)},n}(_u);function f0(t,e){const n=this,{scale:{x:a,y:i},state:{width:s}}=n;t.selectAll("g").attr("transform",o=>`translate(${o===e?"0,0":`${a(o.x0)},${i(o.y0)}`})`).select("rect").attr("width",o=>o===e?s:a(o.x1)-a(o.x0)).attr("height",o=>o===e?0:i(o.y1)-i(o.y0))}function d0(t){const e=this;return t.map(n=>{const{id:a,values:i}=n,{value:s}=i[0];return{name:a,id:a,value:s,ratio:e.getRatio("treemap",i[0])}})}function h0(t){const e=this,n=Ro(t).sum(i=>i.value),a=e.getSortCompareFn(!0);return[e.treemap(a?n.sort(a):n)]}var g0={initTreemap(){const t=this,{$el:e,state:{current:{width:n,height:a},clip:i,datetimeId:s}}=t;i.id=`${s}-clip`,t.treemap=l0().tile(t.getTreemapTile()),e.defs.append("clipPath").attr("id",i.id).append("rect").attr("width",n).attr("height",a),e.treemap=e.main.select(`.${Se.chart}`).attr("clip-path",`url(#${i.id})`).append("g").classed(_o.chartTreemaps,!0),t.bindTreemapEvent()},bindTreemapEvent(){const t=this,{$el:e,config:n,state:a}=t,i=s=>{var o;const l=s.isTrusted?s.target:(o=a.eventReceiver.rect)==null?void 0:o.node();let c;return/^rect$/i.test(l.tagName)&&(a.event=s,c=st(l).datum()),c==null?void 0:c.data};if(n.interaction_enabled){const s=a.inputType==="touch";e.treemap.on(s?"touchstart":"mouseover mousemove",o=>{const l=i(o);l&&(t.showTooltip([l],o.currentTarget),/^(touchstart|mouseover)$/.test(o.type)&&t.setOverOut(!0,l))}).on(s?"touchend":"mouseout",o=>{const l=i(o);n.interaction_onout&&(t.hideTooltip(),t.setOverOut(!1,l))})}},getTreemapTile(){var t,e;const n=this,{config:a,state:{current:{width:i,height:s}}}=n,o=(e={binary:nf,dice:Ji,slice:Qi,sliceDice:c0,squarify:tf,resquarify:u0}[(t=a.treemap_tile)!=null?t:"binary"])!=null?e:nf;return(l,c,u,g,v)=>{o(l,0,0,i,s);for(const m of l.children)m.x0=c+m.x0/i*(g-c),m.x1=c+m.x1/i*(g-c),m.y0=u+m.y0/s*(v-u),m.y1=u+m.y1/s*(v-u)}},getTreemapData(t){const e=this;return{name:"root",children:d0.bind(e)(e.filterTargetsToShow(t.filter(e.isTreemapType,e)))}},updateTargetsForTreemap(t){const e=this,{$el:{treemap:n}}=e,a=h0.call(e,e.getTreemapData(t!=null?t:e.data.targets));n.data(a)},updateTreemap(t){const e=this,{$el:n,$T:a}=e,i=n.treemap.datum(),s=e.getChartClass("Treemap"),o=e.getClass("treemap",!0),l=n.treemap.selectAll("g").data(i.children);a(l.exit(),t).style("opacity","0").remove(),l.enter().append("g").append("rect"),n.treemap.selectAll("g").attr("class",s).select("rect").attr("class",o).attr("fill",c=>e.color(c.data.name))},generateGetTreemapPoints(){const t=this,{$el:e,scale:{x:n,y:a}}=t,i={};return e.treemap.selectAll("g").each(s=>{i[s.data.name]=[[n(s.x0),a(s.y0)],[n(s.x1),a(s.y1)]]}),s=>i[s.id]},redrawTreemap(t){const e=this,{$el:n,state:{current:{width:a,height:i}}}=e;return n.defs.select("rect").attr("width",a).attr("height",i),[e.$T(n.treemap,t,gr()).call(f0.bind(e),n.treemap.datum())]},treemapDataLabelFormat(t){const e=this,{config:n}=e,{id:a,value:i}=t,s=n.treemap_label_format,o=e.getRatio("treemap",t),l=(o*100).toFixed(2),c=n.treemap_label_show&&e.meetsLabelThreshold(o,"treemap")?null:"0";return function(u){return u.style("opacity",c),he(s)?s.bind(e.api)(i,o,a):`${a}
|
|
57
|
+
${l}%`}}},Xr={point_show:!0,point_r:2.5,point_radialGradient:!1,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"},fa={area_above:!1,area_below:!1,area_front:!0,area_linearGradient:!1,area_zerobased:!0},v0={bar_front:!1,bar_indices_removeNull:!1,bar_label_threshold:0,bar_linearGradient:!1,bar_overlap:!1,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},p0={bubble_maxR:35,bubble_zerobased:!1},m0={candlestick_width:void 0,candlestick_width_ratio:.6,candlestick_width_max:void 0,candlestick_color_down:"red"},y0={line_connectNull:!1,line_step_type:"step",line_step_tooltipMatch:!1,line_zerobased:!1,line_classes:void 0,line_point:!0},x0={scatter_zerobased:!1},Oo={spline_interpolation_type:"cardinal"},_i={arc_cornerRadius:0,arc_cornerRadius_ratio:0,arc_needle_show:!1,arc_needle_color:void 0,arc_needle_value:void 0,arc_needle_path:void 0,arc_needle_length:100,arc_needle_top_rx:0,arc_needle_top_ry:0,arc_needle_top_width:0,arc_needle_bottom_rx:1,arc_needle_bottom_ry:1,arc_needle_bottom_width:15,arc_needle_bottom_len:0,arc_rangeText_values:void 0,arc_rangeText_unit:"absolute",arc_rangeText_fixed:!1,arc_rangeText_format:void 0,arc_rangeText_position:void 0},T0={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},$0={funnel_neck_width:0,funnel_neck_height:0},S0={gauge_background:"",gauge_fullCircle:!1,gauge_label_show:!0,gauge_label_extents:void 0,gauge_label_format:void 0,gauge_label_ratio:void 0,gauge_label_threshold:0,gauge_enforceMinMax:!1,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},A0={pie_label_show:!0,pie_label_format:void 0,pie_label_ratio:void 0,pie_label_threshold:.05,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},b0={polar_label_show:!0,polar_label_format:void 0,polar_label_threshold:.05,polar_label_ratio:void 0,polar_level_depth:3,polar_level_max:void 0,polar_level_show:!0,polar_level_text_backgroundColor:"#fff",polar_level_text_format:t=>t%1===0?t:t.toFixed(2),polar_level_text_show:!0,polar_padAngle:0,polar_padding:0,polar_startingAngle:0},E0={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:t=>t%1===0?t:t.toFixed(2),radar_level_text_show:!0,radar_size_ratio:.87,radar_direction_clockwise:!1},R0={treemap_tile:"binary",treemap_label_format:void 0,treemap_label_threshold:.05,treemap_label_show:!0};function da(t,e){xn(Gr.prototype,Object.values(Lu).concat(t)),xn(br.prototype,ky),Nr.setOptions(Object.values(Du).concat(e||[]))}function mr(t,e){da([ca,Zi,Nx].concat(t||[])),Nr.setOptions([Xr,y0].concat(e||[]))}function ha(t,e){xn(Gr.prototype,[px,ca].concat(t||[])),Nr.setOptions([Xr].concat(e||[]))}let rf=()=>(mr(oa,[fa]),(rf=()=>se.AREA)()),af=()=>(mr(oa,[fa]),(af=()=>se.AREA_LINE_RANGE)()),sf=()=>(mr(oa,[fa]),(sf=()=>se.AREA_STEP_RANGE)()),of=()=>(mr(oa,[fa,Oo]),(of=()=>se.AREA_SPLINE)()),lf=()=>(mr(oa,[fa,Oo]),(lf=()=>se.AREA_SPLINE_RANGE)()),cf=()=>(mr(oa,[fa]),(cf=()=>se.AREA_STEP)()),uf=()=>(mr(),(uf=()=>se.LINE)()),ff=()=>(mr(void 0,[Oo]),(ff=()=>se.SPLINE)()),df=()=>(mr(),(df=()=>se.STEP)()),hf=()=>(ha(void 0,[_i,T0]),(hf=()=>se.DONUT)()),gf=()=>(ha([Mx],[_i,S0]),(gf=()=>se.GAUGE)()),vf=()=>(ha(void 0,[_i,A0]),(vf=()=>se.PIE)()),pf=()=>(ha([Ux],[_i,b0]),(pf=()=>se.POLAR)()),mf=()=>(ha([Lu.eventrect,Zi,jx],[Xr,E0,{axis_x_categories:Du.optAxis.axis_x_categories}]),(mf=()=>se.RADAR)()),yf=()=>(da([yx,ca],[v0,Xr]),(yf=()=>se.BAR)()),xf=()=>(da([ca,Zi,xx],[p0,Xr]),(xf=()=>se.BUBBLE)()),Tf=()=>(da([bx,ca],[m0,Xr]),(Tf=()=>se.CANDLESTICK)()),$f=()=>(da([ca,Zi],[Xr,x0]),($f=()=>se.SCATTER)()),Sf=()=>(ha([wx],[$0]),(Sf=()=>se.FUNNEL)()),Af=()=>(da([g0],[R0]),(Af=()=>se.TREEMAP)()),Io={};const bf={version:"3.14.0-next.2",generate(t){const e=ea({},Io,t),n=new br(e);return n.internal.charts=this.instance,this.instance.push(n),n},defaults(t){return Be(t)&&(Io=t),Io},instance:[],plugin:{}};Object.keys(d).forEach(t=>d[t]()),Object.keys(f).forEach(t=>f[t]())}],Va={};function jn(x){var E=Va[x];if(E!==void 0)return E.exports;var r=Va[x]={exports:{}};return Co[x].call(r.exports,r,r.exports,jn),r.exports}(function(){jn.d=function(x,E){for(var r in E)jn.o(E,r)&&!jn.o(x,r)&&Object.defineProperty(x,r,{enumerable:!0,get:E[r]})}})(),function(){jn.o=function(x,E){return Object.prototype.hasOwnProperty.call(x,E)}}(),function(){jn.r=function(x){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(x,"__esModule",{value:!0})}}(),jn(0);var Xa=jn(559);return Xa}()});
|